code
stringlengths
5
1.03M
repo_name
stringlengths
5
90
path
stringlengths
4
158
license
stringclasses
15 values
size
int64
5
1.03M
n_ast_errors
int64
0
53.9k
ast_max_depth
int64
2
4.17k
n_whitespaces
int64
0
365k
n_ast_nodes
int64
3
317k
n_ast_terminals
int64
1
171k
n_ast_nonterminals
int64
1
146k
loc
int64
-1
37.3k
cycloplexity
int64
-1
1.31k
----------------------------------------------------------------------------- -- | -- Module : Aether -- Copyright : (c) Allen Guo 2013 -- License : MIT -- -- Maintainer : Allen Guo <guoguo12@gmail.com> -- Stability : alpha -- -- Aether provides a high-level interface for fetching -- information from Wikipedia, ...
guoguo12/aether
src/Aether.hs
mit
6,736
1
15
1,871
1,129
603
526
94
2
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeFamilies #-} module MergeRequestComments (MergeRequestComment (..),...
miciek/mr-stats-haskell-servant
src/MergeRequestComments.hs
mit
1,304
0
15
268
289
158
131
40
1
module Utils.DateUtils where import Data.Time.Calendar import Data.Time.Clock import Data.Time.Format import Data.Time.LocalTime currentUTC = getCurrentTime currentTimeZone = getCurrentTimeZone timeDiff :: UTCTime -> UTCTime -> String timeDiff f l = show $ diffUTCTime l f get...
caneroj1/HaskellDocs
Utils/DateUtils.hs
mit
1,289
0
9
338
366
194
172
31
1
module Character ( Command(..), toCommand, Action(..), Target(..), CommandList, index, listSize, commandMap, fromList, Character, name, strength, intelligence, technique, vitality, agility, luck, level, maxHP, hp, maxMP, mp, commandList, princess, sentry, madman, ...
myuon/OoP
src/Character.hs
mit
4,959
0
11
1,091
1,702
968
734
150
1
badAdd :: (Num a) => [a] -> a badAdd (x:y:z:[]) = x + y + z
v0lkan/learning-haskell
session-003/008-bad-add.hs
mit
60
0
9
16
59
30
29
2
1
module Slide where import System.Console.ANSI import System.IO import Board (Board, move) import Levels import Inputs (getInput) resetScreen :: IO () resetScreen = setCursorPosition 0 0 >> clearScreen printBoards :: Board -> Board -> IO () printBoards start end = do putStr $ show end putStrLn "" putStrLn $ sh...
lshemesh/Slide
src/Slide.hs
mit
720
0
11
166
256
124
132
29
2
{-| Module: Treb.Routes.JobTemplateFilter Description: Trebuchet JobTemplateFilter route type and function definitons. Copyright: Travis Whitaker 2015 License: MIT Maintainer: twhitak@its.jnj.com Stability: Provisional Portability: POSIX -} {-# LANGUAGE DataKinds, TypeOperators, OverloadedStrings #-} mo...
MadSciGuys/trebuchet
src/Treb/Routes/JobTemplateFilter.hs
mit
769
0
9
113
68
42
26
9
1
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE ConstraintKinds #-} module SimplifyLaws (simplifyLaws) where import Test.Tasty import Test.Tasty.QuickCheck as QC import Data.Algebra.Boolean.CoBoolean import Data.Algebra.Boolean.NormalForm simplifyProperty :: (CoBoolean a, NormalForm nf, NFConstraint nf (Either a B...
phadej/boolean-normal-forms
tests/SimplifyLaws.hs
mit
837
0
11
143
297
158
139
-1
-1
{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} module NixFromNpm.Npm.Resolve where -------------------------...
adnelson/nixfromnpm
src/NixFromNpm/Npm/Resolve.hs
mit
36,141
0
22
8,454
8,132
4,192
3,940
-1
-1
-- Implicit CAD. Copyright (C) 2011, Christopher Olah (chris@colah.ca) -- Copyright (C) 2014 2015, Julia Longtin (julial@turinglace.com) -- Copyright (C) 2015 2015, Mike MacHenry (mike.machenry@gmail.com) -- Released under the GNU GPL, see LICENSE -- create a module that is just wrapping up these functions. module Gra...
silky/ImplicitCAD
Graphics/Implicit/ObjectUtil.hs
gpl-2.0
638
0
5
67
74
51
23
5
0
module Main where import System.Environment (getArgs) import Paths_yjftp_libs (version) import Data.Version (showVersion) import Network.Yjftp (runYjftp) main :: IO () main = do args <- getArgs case args of [ "--version" ] -> putStrLn $ "yjftp-ni " ++ showVersion version _ -> ru...
YoshikuniJujo/yjftp-libs
src/Main.hs
gpl-3.0
327
0
11
83
97
53
44
11
2
{-#LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-} module Carnap.Languages.PurePropositional.Logic.BergmannMoorAndNelson (parseLogicBookSD, parseLogicBookSDProof, LogicBookSD(AS), logicBookSDCalc, parseLogicBookSDPlus, parseLogicBookSDPlusProof, LogicBookSDPlus, logicBookSDPlusCalc...
gleachkr/Carnap
Carnap/src/Carnap/Languages/PurePropositional/Logic/BergmannMoorAndNelson.hs
gpl-3.0
14,563
0
16
4,979
3,842
2,054
1,788
289
3
module Data.ByteString.Utils ( lazifyBS, strictifyBS, randomBS, xorBS, ljust ) where import Control.Monad (replicateM) import Data.Bits (xor) import qualified Data.ByteString as SBS import qualified Data.ByteString.Lazy as LBS import Data.Function (on) import Data.Random...
rvion/lamdu
bottlelib/Data/ByteString/Utils.hs
gpl-3.0
970
0
10
213
323
180
143
22
1
{-# LANGUAGE OverloadedStrings #-} module Server.WebsocketsApp where import qualified Network.WebSockets as WS import qualified Network.WebSockets.Connection as WS import qualified Data.ByteString.Lazy as LBS import qualified Data.ByteString as BS hiding (putStrLn) import qualified Data.Byt...
jpotecki/AmexMobileBackend
src/Server/WebsocketsApp.hs
gpl-3.0
2,566
0
21
692
720
369
351
60
2
module Types.Reminder.CmdLine where {- srem --- Timed reminders as notifications Copyright (C) 2015 Sean Whitton This file is part of srem. srem is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Fo...
spwhitton/srem
src/Types/Reminder/CmdLine.hs
gpl-3.0
1,275
0
8
326
120
64
56
11
1
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE OverlappingInstances #-} {- An experiment to see if closed type fa...
ntc2/haskell-call-trace
experiments/closed-type-families.hs
mpl-2.0
3,408
0
13
722
741
396
345
52
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-dataproc/gen/Network/Google/Resource/Dataproc/Projects/Regions/Jobs/Submit.hs
mpl-2.0
6,524
0
22
1,662
1,018
590
428
148
1
module DictMt where import BuildMt import RulesMt import General import Dictionary malteseDict :: Dictionary malteseDict = dictionary [ vStrong "kiteb" () ] -- =========================================================================== -- swedishDict :: Dictionary -- swedishDict = dictionary $ closedLexicon ++ ...
johnjcamilleri/maltese-functional-morphology
malti/DictMt.hs
lgpl-3.0
6,797
0
8
1,749
250
234
16
8
1
{- | Module : $Header$ Description : Solution to problem 13 License : PublicDomain Work out the first ten digits of the sum of the following one-hundred 50-digit numbers. 37107287533902102798797998220837590246510135740250 46376937677490009712648124896970078050417018260538 743249861995247410594742333095130581...
jhnesk/project-euler
src/Solutions/Problem013.hs
unlicense
11,859
1
11
1,492
368
238
130
104
1
{-# LANGUAGE GeneralizedNewtypeDeriving #-} module Gameboy.Emulation ( EmulatorState(..), initialState, loadRom, stepEmulator ) where import Data.Word import qualified Data.Vector.Unboxed as VU import qualified Data.Vector.Unboxed.Mutable as VUM import qualified Data.ByteString as BS import Data.STRef import ...
kyren/hsgb
lib/Gameboy/Emulation.hs
unlicense
8,499
0
24
1,654
2,390
1,215
1,175
194
2
module AdventOfCode.Password (hasSafePair, nextPair, nextPassword) where succNoConfuse :: Char -> Char succNoConfuse 'h' = 'j' succNoConfuse 'n' = 'p' succNoConfuse 'k' = 'm' succNoConfuse c = succ c -- Assumes passwords are reversed. -- It's much easier to work off the head of a list. nextNoConfuse :: String -> Stri...
petertseng/adventofcode-hs
lib/AdventOfCode/Password.hs
apache-2.0
2,824
0
13
711
952
487
465
49
5
-- Copyright 2017 Ondrej Sykora -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in ...
ondrasej/heavenly-bodies
src/HBodies/Player.hs
apache-2.0
14,999
44
14
4,941
2,060
1,105
955
-1
-1
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd"> <helpset version="2.0" xml:lang="id-ID"> <title>Access Control Testing | ZAP Extension</title> <maps> <homeID>top</homeID> ...
0xkasun/security-tools
src/org/zaproxy/zap/extension/accessControl/resources/help_id_ID/helpset_id_ID.hs
apache-2.0
777
74
14
121
311
173
138
-1
-1
{-# LANGUAGE BangPatterns #-} module Ants where import Control.Monad import Control.Concurrent.STM import Data.Ord (comparing) import Data.Maybe import Data.Vector (Vector) import qualified Data.Vector as V import Data.List (sortBy) import Data.Map (Map,unionWith) import qualified Data.Map as M import System.Random ...
fffej/haskellprojects
ants/Ants.hs
bsd-2-clause
7,941
20
22
2,287
2,876
1,546
1,330
185
8
module Application.MiscUtils.Command where import Application.MiscUtils.ProgType import Application.MiscUtils.Job commandLineProcess :: Misc_utils -> IO () commandLineProcess Test = do putStrLn "test called" startJob commandLineProcess (FindXoj machine dest) = do putStrLn "findxoj called" startFindXoj machi...
wavewave/misc-utils
oldcode/lib/Application/MiscUtils/Command.hs
bsd-2-clause
415
0
7
60
97
47
50
13
1
module Network.Minecraft.Internal.Protocol ( protocolVersion, clientVersion ) where protocolVersion = 74 clientVersion = "1.6.2"
ziocroc/Minetlib
Network/Minecraft/Internal/Protocol.hs
bsd-2-clause
132
4
4
16
30
19
11
5
1
module Day17 where import Data.List main :: IO () main = do let sizes = [43, 3, 4, 10, 21, 44, 4, 6, 47, 41, 34, 17, 17, 44, 36, 31, 46, 9, 27, 38] ls = map length $ filter (\x -> sum x == 150) (subsequences sizes) correct = length $ elemIndices (minimum ls) ls putStrLn $ show ...
ksallberg/adventofcode
2015/src/Day17.hs
bsd-2-clause
328
0
15
103
161
91
70
9
1
{-# LANGUAGE ScopedTypeVariables, EmptyDataDecls #-} module Math.ProxN.Peano where data Zero data Succ n type One = Succ Zero type Two = Succ One type Three = Succ Two type Four = Succ Three type Five = Succ Four type Six = Succ Five type Seven = Succ Six type Eight = Succ Seven type Nine = Succ Eight type Ten = Suc...
exFalso/ProxN
src/Math/ProxN/Peano.hs
bsd-3-clause
726
0
13
153
284
152
132
-1
-1
-------------------------------------------------------------------------------- -- | -- Module : Database.EventStore.Internal.Operation.Persist -- Copyright : (C) 2017 Yorick Laupa -- License : (see the file LICENSE) -- -- Maintainer : Yorick Laupa <yo.eight@gmail.com> -- Stability : provisional -- Portability : non-p...
YoEight/eventstore
Database/EventStore/Internal/Operation/Persist.hs
bsd-3-clause
3,441
0
22
983
666
343
323
59
2
{-# LANGUAGE UndecidableInstances #-} {-# OPTIONS_GHC -fno-warn-redundant-constraints #-} module Data.Type.BitRecords.Builder.BitBuffer64 ( type BitBuffer64MaxLength, bitBuffer64MaxLength, bitBuffer64MaxLengthBytes, BitBuffer64 (), bitBuffer64Content, bitBuffer64Length, isBitBuffer64Empty, ...
sheyll/isobmff-builder
src/Data/Type/BitRecords/Builder/BitBuffer64.hs
bsd-3-clause
4,335
0
12
1,027
642
364
278
-1
-1
{-# LANGUAGE OverloadedStrings , FlexibleContexts #-} module Templates.Docs where import Imports hiding (p_) import Path.Extended import Lucid import Data.Url import Data.Markup import Control.Monad.Morph import qualified Data.Text as T docsTemplate :: ( MonadApp m ) => TemplateEnv -> HtmlT ...
athanclark/nested-routes-website
src/Templates/Docs.hs
bsd-3-clause
8,276
0
33
2,990
2,393
1,128
1,265
189
12
{-# LANGUAGE OverloadedStrings, FlexibleContexts, UndecidableInstances, StandaloneDeriving #-} {-# LANGUAGE RankNTypes, MultiParamTypeClasses, DeriveGeneric #-} --------------------------------------------------------------------------------------------------- ----------------------------------------------------------...
lingxiao/CIS700
depricated/CoreDep.hs
bsd-3-clause
2,853
0
10
511
444
248
196
41
1
-- Copyright (c) 2016-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Numeral.FI.Corpus ( corpus ) where import Data.String imp...
facebookincubator/duckling
Duckling/Numeral/FI/Corpus.hs
bsd-3-clause
2,961
0
9
1,201
618
341
277
79
1
{-# LANGUAGE TemplateHaskell #-} module Sound.SfxCacheT where import Control.Lens (makeLenses) import qualified Data.ByteString as B import Types makeLenses ''SfxCacheT newSfxCacheT :: SfxCacheT newSfxCacheT = SfxCacheT { _scLength = 0 , _scLoopStart = 0 , _scSpeed = 0 ...
ksaveljev/hake-2
src/Sound/SfxCacheT.hs
bsd-3-clause
391
0
6
123
84
53
31
14
1
{-# LANGUAGE PackageImports, TupleSections #-} import "monads-tf" Control.Monad.State import "monads-tf" Control.Monad.Error import Control.Applicative data AB = A | B deriving Show data S = Rec S AB | Atom AB deriving Show -- S = S b | a data Fail = Fail | LR deriving Show instance Error Fail where type Result a ...
YoshikuniJujo/papillon
test/leftRecursion/abbM.hs
bsd-3-clause
1,844
22
18
494
797
407
390
64
4
{-# LANGUAGE FlexibleContexts #-} module Opaleye.Manipulation (module Opaleye.Manipulation, U.Unpackspec) where import qualified Opaleye.Internal.Sql as Sql import qualified Opaleye.Internal.Print as Print import qualified Opaleye.RunQuery as RQ import qualified Opaleye.Internal.RunQuery ...
benkolera/haskell-opaleye
src/Opaleye/Manipulation.hs
bsd-3-clause
8,613
0
13
2,509
2,077
1,091
986
-1
-1
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} -- | -- Module: $HEADER$ -- Description: Bindings to Named Pipes Win32 API. -- Copyright: (c) 2016, Ixperta Solutions s.r.o. -- License: BSD3 -- -- Maintainer: Ixcom Core Team <ixcom-core@ixperta.com> -- Stabi...
IxpertaSolutions/windows-named-pipes
src/System/Win32/NamedPipes.hs
bsd-3-clause
12,244
0
12
2,301
1,690
1,006
684
177
2
module TypeSystem.Parser.TypeSystemParser where {- This module parses typesystem-files -} import Utils.Utils import Utils.ToString import TypeSystem.Parser.ParsingUtils import Control.Arrow ((&&&)) import Control.Monad import TypeSystem.TypeSystemData import TypeSystem.Parser.BNFParser import TypeSystem.Parser.Targ...
pietervdvn/ALGT
src/TypeSystem/Parser/TypeSystemParser.hs
bsd-3-clause
3,878
153
33
837
1,405
700
705
118
2
----------------------------------------------------------------------------- -- | -- Module : Debug.QuickCheck.Poly -- Copyright : (c) Andy Gill 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stability : deprecated -- Portability : por...
FranklinChen/hugs98-plus-Sep2006
packages/QuickCheck/Debug/QuickCheck/Poly.hs
bsd-3-clause
570
0
5
81
34
27
7
4
0
-- | working n^2 solution (max 7^5) import qualified Data.List as L import qualified Data.MemoCombinators as Memo type Point = (Integer, Integer) n :: Integer n = 6^5 --(30^5; 24 million) -- | Whether `p1` is topologically less than `p2` pt_less :: Point -> Point -> Bool pt_less p1@(x1, y1) p2@(x2, y2) = (x1 <= x2 ...
bgwines/project-euler
src/solved/problem411/problem411.hs
bsd-3-clause
1,050
0
12
291
322
183
139
23
1
{-# LANGUAGE NoMonomorphismRestriction, GADTs, FlexibleContexts, TemplateHaskell, LiberalTypeSynonyms, MultiParamTypeClasses, DeriveDataTypeable #-} module Parser where import Expr import Text.Parsec hiding ((<+>), string) import qualified Text.Parsec as P import qualified Text.Parsec.Token as P import qual...
jfischoff/gdiff-th
examples/Parser.hs
bsd-3-clause
2,228
0
11
579
674
375
299
59
3
module Database.SadBulkOps.TH ( deriveTupleToRow ) where import Database.SadBulkOps.Types import Control.Monad (forM) import Data.List (foldl') import Language.Haskell.TH deriveTupleToRow :: Int -> Q [Dec] deriveTupleToRow n = do tyVars <- forM [1..n] $ \n -> newName ("t" ++ show n) patVars <- forM [1..n] $ ...
tenniscp25/sad-bulk-ops
src/Database/SadBulkOps/TH.hs
bsd-3-clause
683
0
17
166
317
164
153
-1
-1
{-- --- Day 6: Probably a Fire Hazard --- Because your neighbors keep defeating you in the holiday house decorating contest year after year, you've decided to deploy one million lights in a 1000x1000 grid. Furthermore, because you've been especially nice this year, Santa has mailed you instructions on how to display ...
hlmerscher/advent-of-code-2015
src/Day6.hs
bsd-3-clause
6,099
0
13
1,746
1,079
548
531
74
2
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE ViewPatterns #-} {-# LANGUAGE CPP #-} import Distribution.PackageDescription.Configuration import Distribution.PackageDescription hiding (options) import Distribution.Package import Distribution.Compiler import Distribution.License import Distribution.System import Distributio...
vincenthz/cabal-db
Src/Main.hs
bsd-3-clause
19,238
0
25
5,911
5,845
2,861
2,984
321
29
module Tests where import Quickpull import Quickpull.Laws import Test.QuickCheck maybefy :: Maybe Int -> Maybe Int maybefy = id proptree_maybeMonadLaws :: TestTree proptree_maybeMonadLaws = monad arbitrary arbitrary (return maybefy) proptree_maybeFunctorLaws :: TestTree proptree_maybeFunctorLaws = functor arbitrary...
massysett/quickpull
tests/Tests.hs
bsd-3-clause
1,173
0
10
183
337
182
155
30
1
module Test.Rogue.Suite.UnpureLLVMSpec ( spec ) where import Test.Hspec (Spec, describe, it, shouldReturn) import Test.Rogue.Runner.ProcessLLVM (createProcessLLVM) spec :: Spec spec = describe "Rogue" $ do it "returns sum of 5 and 9 (should be 14)" $ do ...
ChShersh/rogue-lang
test/Test/Rogue/Suite/UnpureLLVMSpec.hs
bsd-3-clause
363
0
11
112
80
47
33
9
1
{-# LANGUAGE DataKinds, PolyKinds, TypeFamilies, GADTs, TypeOperators, DefaultSignatures, ScopedTypeVariables, InstanceSigs, MultiParamTypeClasses, FunctionalDependencies, UndecidableInstances, CPP #-} {-# OPTIONS_GHC -Wno-missing-signatures #-} #if __GLASGOW_HASKELL__ < 806 {-# ...
goldfirere/singletons
singletons/tests/ByHand2.hs
bsd-3-clause
6,360
12
14
1,635
2,403
1,284
1,119
141
1
{-| Haskell to Python opcode generation program. -} {- Copyright (C) 2011, 2012, 2013 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your optio...
vladimir-ipatov/ganeti
src/hs2py.hs
gpl-2.0
1,190
0
12
214
115
62
53
14
3
module ParallelIndependence ( Options , options , execute ) where import Abstract.Rewriting.DPO import Analysis.ParallelIndependent import Control.Monad (unless, when) import Data.Matrix hiding ((<|>)) import Data.Monoid ...
Verites/verigraph
src/CLI/ParallelIndependence.hs
apache-2.0
3,821
0
14
955
953
492
461
80
3
{-# LANGUAGE MultiParamTypeClasses, PatternGuards, TypeSynonymInstances #-} {- | Module : XMonad.Layout.TrackFloating Copyright : (c) 2010 Adam Vogt License : BSD-style (see xmonad/LICENSE) Maintainer : vogt.adam@gmail.com Stability : unstable Portability : unportable Layout modifier that tracks ...
csstaub/xmonad-contrib
XMonad/Layout/TrackFloating.hs
bsd-3-clause
3,461
0
23
1,013
587
312
275
48
1
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE FlexibleContexts #-} module Control.Monad.Rename ( MonadRename , mkname , rename , RenameT , runRenameT ) where import Prelude import qualified Data.Map as M import Control.Ether.TH (ethereal) import Control.Monad.Ether.State ethereal "Rename" "rn...
rscprof/kalium
src/Control/Monad/Rename.hs
bsd-3-clause
999
0
14
252
420
222
198
30
2
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE MonadComprehensions #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RebindableSyntax #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANG...
ulricha/dsh-example-queries
Queries/TPCH/Standard/Q8.hs
bsd-3-clause
2,276
0
13
586
682
362
320
55
2
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.PackageDescription -- Copyright : Isaac Jones 2003-2005 -- License : BSD3 -- -- Maintainer : cabal-devel@haskell.org -- Portabil...
edsko/cabal
Cabal/src/Distribution/PackageDescription.hs
bsd-3-clause
48,115
0
16
13,457
9,247
5,166
4,081
789
4
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ViewPatterns #-} module Yi.UI.SimpleLayout ( Rect (..) , Layout (..) , Point2D (..) , Size2D (..) , coordsOfCharacterB , layout , verticalOffsetsForWindows ) where ...
TOSPIO/yi
src/library/Yi/UI/SimpleLayout.hs
gpl-2.0
7,086
3
16
2,477
2,422
1,281
1,141
164
10
{- | Module : $Header$ Description : Pretty class for pretty printing with instances plus utilities Copyright : (c) jianchun wang and Uni Bremen 2006 License : GPLv2 or higher, see LICENSE.txt Maintainer : Christian.Maeder@dfki.de Stability : provisional Portability : portable 'Pretty' class for ...
mariefarrell/Hets
Common/DocUtils.hs
gpl-2.0
7,353
2
18
1,726
2,708
1,430
1,278
149
4
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
kim/amazonka
amazonka-iam/gen/Network/AWS/IAM/CreateAccessKey.hs
mpl-2.0
4,337
0
9
912
432
270
162
53
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
kim/amazonka
amazonka-redshift/gen/Network/AWS/Redshift/RevokeSnapshotAccess.hs
mpl-2.0
5,320
0
9
1,034
564
344
220
71
1
{-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Unittests for ganeti-htools. -} {- Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions a...
leshchevds/ganeti
test/hs/Test/Ganeti/Query/Filter.hs
bsd-2-clause
8,587
0
19
1,792
1,652
862
790
134
2
-- | Hot forking action, as described at -- <http://developer.github.com/v3/repos/forks/>. module Github.Repos.Forks ( forksFor ,module Github.Data ) where import Github.Data import Github.Private -- | All the repos that are forked off the given repo. -- -- > forksFor "thoughtbot" "paperclip" forksFor :: String -> S...
adinapoli/github
Github/Repos/Forks.hs
bsd-3-clause
434
0
10
64
85
51
34
8
1
-- This benchmark measures the timing overhead added by the various -- functions we use to measure performance. {-# LANGUAGE CPP #-} module Main (main) where import Criterion.Main import Criterion.Measurement as M import GHC.Stats as GHC main :: IO () main = do statsEnabled <- getGCStatsEnabled defaultMain $ [ ...
paulolieuthier/criterion
examples/Overhead.hs
bsd-2-clause
787
0
17
174
202
106
96
19
2
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd"> <helpset version="2.0" xml:lang="el-GR"> <title>Script Console</title> <maps> <homeID>top</homeID> <mapref location="map...
kingthorin/zap-extensions
addOns/scripts/src/main/javahelp/org/zaproxy/zap/extension/scripts/resources/help_el_GR/helpset_el_GR.hs
apache-2.0
984
77
66
156
441
222
219
-1
-1
{-# LANGUAGE DeriveGeneric #-} {-| Module : Idris.Colours Description : Support for colours within Idris. License : BSD3 Maintainer : The Idris Community. -} module Idris.Colours ( IdrisColour(..) , ColourTheme(..) , defaultTheme , colouriseKwd, colouriseBound, colouriseImplicit, colourisePostulate...
kojiromike/Idris-dev
src/Idris/Colours.hs
bsd-3-clause
4,883
0
11
1,555
1,113
603
510
86
3
{-# LANGUAGE QuantifiedConstraints, TypeFamilies #-} module T15244 where class (forall t . Eq (c t)) => Blah c -- Unquantified works foo :: (Eq (a t), Eq (b t), a ~ b) => a t -> b t -> Bool foo a b = a == b -- Works -- Two quantified instances fail with double ambiguity check errors bar :: (forall t . Eq (a t), fora...
sdiehl/ghc
testsuite/tests/quantified-constraints/T15244.hs
bsd-3-clause
2,602
0
9
947
382
219
163
-1
-1
module Main (main) where import T3972A (Expr(E10), Token, spanning, getSpan) import Control.Monad import System.Exit import System.IO main :: IO () main = do h <- openFile "T3972.o" ReadMode s <- hFileSize h hClose h -- size is just under 8k on amd64/Linux in 6.13, but was --...
urbanslug/ghc
testsuite/tests/simplCore/should_run/T3972.hs
bsd-3-clause
720
0
13
202
227
119
108
16
1
module Main (main) where import System.Environment (getArgs) mkText :: Int -> Int -> Char -> String mkText ll ln c = unlines $ [replicate k c | k <- [ll .. ll+ln]] main :: IO () main = do args <- getArgs let (ll, ln, c) = case args of (a1:a2:a3:_) -> (read a1, read a2, head a3) ...
siddhanathan/ghc
testsuite/tests/perf/space_leaks/T4334.hs
bsd-3-clause
511
0
16
183
263
140
123
15
4
{-# LANGUAGE OverloadedStrings #-} -- | C code generator. This module can convert a correct ImpCode -- program to an equivalent C program. This C program is expected to -- be converted to WebAssembly, so we also produce the intended -- JavaScript wrapper. module Futhark.CodeGen.Backends.MulticoreWASM ( compileProg...
HIPERFIT/futhark
src/Futhark/CodeGen/Backends/MulticoreWASM.hs
isc
1,750
0
16
404
409
233
176
46
1
{-# LANGUAGE TemplateHaskell #-} module Database.Toxic.CLI.TSql where import Control.Concurrent import Control.Lens import Control.Monad.IO.Class import Control.Monad.Trans.Class import Control.Monad.Trans.State import qualified Data.ByteString.Char8 as BS import qualified Data.Text as T import System.Console.Haskeli...
MichaelBurge/ToxicSludgeDB
src/Database/Toxic/CLI/TSql.hs
mit
2,589
0
16
493
587
305
282
59
3
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.SVGPoint (js_matrixTransform, matrixTransform, js_setX, setX, js_getX, getX, js_setY, setY, js_getY, getY, SVGPoint, castToSVGPoint, gTypeSVGPoint) where import Prelude ((.), (==), (>...
manyoo/ghcjs-dom
ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGPoint.hs
mit
2,681
36
11
409
705
411
294
44
1
{-# LANGUAGE RankNTypes, GADTs, PolyKinds, TypeOperators #-} module VinylUtils where import Data.Singletons.Prelude import Data.Vinyl rtraverse_ :: Applicative h => (forall x. f x -> h (g x)) -> Rec f rs -> h () rtraverse_ f (x :& xs) = f x *> rtraverse_ f xs rtraverse_ _ RNil = pure () rZipWith :: (forall x. f x -...
vladfi1/hs-misc
VinylUtils.hs
mit
819
0
12
202
451
222
229
19
1
{-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Web.Helojito.Concurrent where import Control.Concurrent.Async.Lifted import Contro...
MSA-Argentina/helojito
src/Web/Helojito/Concurrent.hs
mit
2,645
0
15
627
768
404
364
-1
-1
module ProjectEuler.Problem18 ( problem ) where import qualified Data.Text as T import ProjectEuler.GetData problem :: Problem problem = pureProblemWithData "p018_path.txt" 18 Solved compute -- let's do a line-by-line fold -- acc = first line = [a1], i = next line, [a2, a3] -- a2 -> examine positiion in acc...
Javran/Project-Euler
src/ProjectEuler/Problem18.hs
mit
1,092
0
13
333
273
146
127
19
1
module Mangler (tests) where import Test.Tasty import Test.Tasty.HUnit import Evidences.Mangler import Evidences.Tm import Kit.BwdFwd testUnderScope :: Assertion testUnderScope = do let x = [("x", 0)] npX = NP x y = [("y", 0)] npY = NP y -- constant, it doesn't matter what we try to ...
kwangkim/pigment
tests/Mangler.hs
mit
1,320
0
16
337
515
267
248
28
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module ChallengeTest ( challengeSpecs ) where import App.UTCTimeP import Data.Aeson import Data.Int (Int64) import Data.Text as T import Data.Text.Lazy.Encoding (...
TimeAttack/time-attack-server
tests/ChallengeTest.hs
mit
2,856
0
15
927
528
263
265
44
1
-- {-# LANGUAGE RecordWildCards #-} ----------------------------------------------------------------------------- -- | -- Copyright : (C) 2015 Smelkov Ilya -- License : MIT (see the file LICENSE) -- Maintainer : Smelkov Ilya <triplepointfive@gmail.com> -- Stability : experimental -- Portability : non-...
triplepointfive/sanre
src/Sanre/Graph.hs
mit
1,336
0
11
236
223
133
90
15
1
module Grammar.Greek.Script.Rounds.VocalicSyllable where import Control.Lens (over, _2, toListOf) import Grammar.Common.Round import Grammar.Common.Types import Grammar.Greek.Script.Types data BreakDiphthong = DoBreakDiphthong | NoBreakDiphthong mergeAccentBreaksDiphthong :: AccentBreaksDiphthong -> AccentBreaksDiph...
ancientlanguage/haskell-analysis
greek-script/src/Grammar/Greek/Script/Rounds/VocalicSyllable.hs
mit
8,878
0
16
1,924
3,230
1,677
1,553
-1
-1
-- funct :: Int -> [a] -> [a] funct x xs = take (x + 1) xs ++ drop x xs test = funct 3 [1, 2, 3, 4, 5, 6, 7]
calebgregory/fp101x
wk2/funct.hs
mit
111
0
8
34
64
35
29
2
1
{-# LANGUAGE OverloadedStrings #-} module Main where import Data.Monoid import Data.CSS.Syntax.Tokens import Test.Hspec import Prelude main :: IO () main = hspec spec spec :: Spec spec = parallel $ do describe "Data.CSS.Syntax.Tokens" $ do it "Single Character...
bitemyapp/haskell-css-syntax
test/Test.hs
mit
16,588
0
21
4,184
4,847
2,369
2,478
208
1
module Oden.Compiler.Validation.UntypedValidationSpec where import Test.Hspec import Oden.Compiler.Validation.Untyped import Oden.Core.Untyped as Untyped import Oden.Core.Expr import Oden.Core.Package import Oden.Identifier import Oden.Metad...
oden-lang/oden
test/Oden/Compiler/Validation/UntypedValidationSpec.hs
mit
4,015
0
20
1,136
1,041
529
512
90
1
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables, KindSignatures, RecordWildCards, FlexibleContexts #-} module Radio where import Control.Concurrent import Control.Exception import Control.Monad import Control.Monad.IO.Clas...
ga2arch/youtube-radio.hs
src/Radio.hs
mit
3,303
0
16
889
1,070
551
519
94
2
{-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} module Main ( main ) where import Control.Applicative import Network.Betfair import System.Environment import System.Exit import System.IO main :: IO () main = do args <- getArgs if null args then usageHelp >> exitFailure ...
Noeda/bet
toys/login-test/Main.hs
mit
1,077
0
9
241
228
119
109
31
2
-- List (of booleans) and. module And where and :: [Bool] -> Bool and [] = True and (boolean : remainingBooleans) = boolean && (and remainingBooleans) {- GHCi> and [] and [True] and [False] and [True, True] and [True, False] -} -- True -- True -- False -- True -- False
pascal-knodel/haskell-craft
Examples/· Recursion/· Primitive Recursion/Lists/And.hs
mit
284
0
7
65
58
35
23
5
1
{- | Module : $Header$ Description : Static Analysis for EnCL Copyright : (c) Dominik Dietrich, Ewaryst Schulz, DFKI Bremen 2010 License : GPLv2 or higher, see LICENSE.txt Maintainer : Ewaryst.Schulz@dfki.de Stability : experimental Portability : portable Static Analysis for EnCL -} module CSL....
nevrenato/Hets_Fork
CSL/Analysis.hs
gpl-2.0
5,517
0
13
1,419
1,067
569
498
63
6
-- xmonad: Personal module: Hook Manage -- Author: Simon L. J. Robin | https://sljrobin.org -------------------------------------------------------------------------------- module Hook_Manage where -------------------------------------------------------------------------------- -- * `XMonad.Hooks.ManageDocks` -> Pro...
sljrobin/dotfiles
xmonad/.xmonad/lib/Hook_Manage.hs
gpl-2.0
989
0
7
130
56
39
17
9
1
{- | Module : $Header$ Description : export a development graph to an omega library Copyright : (c) Ewaryst Schulz, DFKI Bremen 2009 License : GPLv2 or higher, see LICENSE.txt Maintainer : Ewaryst.Schulz@dfki.de Stability : provisional Portability : non-portable(Logic) A given development graph wi...
nevrenato/Hets_Fork
Omega/Export.hs
gpl-2.0
2,748
0
20
636
629
333
296
53
1
{-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE FlexibleInstances #-} module GRSynth.GameStructureTest (testList) where import qualified Data.Map as M import Data.Maybe (fromJust) import Data.Functor import Control.Applicative import Test.Framework import Test.HUnit hiding (State, Test) import Test.Framework.Provid...
johnbcoughlin/mucalc
test/GRSynth/GameStructureTest.hs
gpl-2.0
5,748
0
14
2,002
1,735
920
815
82
2
{-# LANGUAGE OverloadedStrings, TypeFamilies #-} module MarXup.Math where import Control.Applicative import MarXup.Latex import MarXup.Latex.Math import MarXup.Tex import MarXup import Data.Monoid import Data.Ratio import Data.String import Control.Monad (unless) instance Element Math where type Target Math = TeX ...
jyp/MarXup
MarXup/Math.hs
gpl-2.0
2,860
0
12
717
1,282
666
616
74
2
type Minute = Int data Time = Time { hours :: Int, minutes :: Minute } deriving (Show, Eq) asMinutes :: Time -> Minute asMinutes time_ = hours time_ * 60 + minutes time_ minus :: Time -> Time -> Minute minus time1_ time2_ = asMinutes time1_ - asMinutes time2_
simonced/haskell-kata
random/time.hs
gpl-3.0
271
0
8
61
103
54
49
9
1
{-# OPTIONS -O0 #-} {-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, TypeApplications #-} module Lamdu.Config where import qualified Control.Lens as Lens import Data.Aeson.TH (deriveJSON) import qualified Data.Aeson.TH.Extended as JsonTH import qualified Data.Aeson.Types as Aeson import Data.Ch...
lamdu/lamdu
src/Lamdu/Config.hs
gpl-3.0
4,708
0
13
1,006
1,389
813
576
-1
-1
module Accelerate ( run ) where import Data.Array.Accelerate.Interpreter
Qinka/reimagined-pancake
toy-backend/toy-backend-classify/src/knn/i/Accelerate.hs
gpl-3.0
100
0
4
35
16
11
5
3
0
instance Bifunctor (,) where bimap f g (x, y) = (f x, g y)
hmemcpy/milewski-ctfp-pdf
src/content/1.8/code/haskell/snippet02.hs
gpl-3.0
63
0
7
18
42
22
20
2
0
{-# LANGUAGE TemplateHaskell, DeriveFunctor #-} module Graphics.UI.Bottle.Sized (Sized(..), atRequestedSize, atFromSize, align) where import Control.Applicative ((<$>), (<*>)) import Data.Vector.Vector2 (Vector2) import Graphics.UI.Bottle.SizeRange (Size, SizeRange) import Graphics.UI.Bottle.Animation (R) import qual...
nimia/bottle
bottlelib/Graphics/UI/Bottle/Sized.hs
gpl-3.0
1,035
0
12
231
348
195
153
24
3
{- - Copyright (C) 2013 Alexander Berntsen <alexander@plaimi.net> - - This file is part of bweakfwu. - - bweakfwu is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your ...
plaimi/bweakfwu
src/bweakfwu/Visible/ScoreKeeper.hs
gpl-3.0
2,301
0
11
493
339
193
146
27
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
dysinger/amazonka
amazonka-s3/gen/Network/AWS/S3/RestoreObject.hs
mpl-2.0
3,763
0
9
929
578
342
236
70
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Update.hs
mpl-2.0
4,182
0
16
938
543
322
221
85
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-spanner/gen/Network/Google/Resource/Spanner/Projects/Instances/Backups/Operations/Get.hs
mpl-2.0
5,474
0
15
1,162
704
414
290
108
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-youtube/gen/Network/Google/Resource/YouTube/Comments/MarkAsSpam.hs
mpl-2.0
4,736
0
18
1,133
729
425
304
105
1
import Prelude (IO, String, Int, Either(Left, Right), return, show, ($), otherwise, (==), (-), (++), concat, error) import Criterion.Main (Benchmark, bgroup, defaultMain, bench, env, whnf) import Graphics.Implicit.ExtOpenScad.Definitions (Expr, StatementI) import Graphics.Implicit.ExtOpenScad.Parser.Expr (expr0) import...
krakrjak/ImplicitCAD
programs/parser-bench.hs
agpl-3.0
2,178
1
13
524
797
427
370
48
2
{-# LANGUAGE TypeSynonymInstances, TypeOperators, ViewPatterns, FlexibleInstances, RecordWildCards, FlexibleContexts, OverlappingInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, DeriveDataTypeable, UndecidableInstances, TypeFamilies, ScopedTypeVariables #-} module Language.Pascal.JVM.Types where import ...
portnov/simple-pascal-compiler
spc-jvm/Language/Pascal/JVM/Types.hs
lgpl-3.0
2,050
0
17
365
643
343
300
47
1
--imports import XMonad import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks --needed for viewShift import Control.Monad (liftM2) import System.IO import qualified XMonad.StackSet as W --additional layouts import XMonad.Layout.NoBorders import XMonad.Layout.Spiral import XMonad.Layout.Tabbed import XMonad.L...
ranebrown/xmonad_solarized
xmonad.hs
unlicense
3,516
65
13
584
641
371
270
59
1
import DMSS.Daemon main :: IO () main = daemonMain
dmp1ce/DMSS
src-bin/dmssd.hs
unlicense
52
0
6
10
21
11
10
3
1