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
import Hangman import System.Environment --main :: IO () main = getArgs >>= parseArguments >>= startGame -- If the user only specifies one argument then they are properly using their own word list, -- otherwise we just use the internal word list. parseArguments :: [String] -> IO String parseArguments [] = return "...
skejserjensen/Hangman
haskell/src/Main.hs
gpl-3.0
374
0
7
62
71
38
33
6
1
module Accelerate ( run ) where import Data.Array.Accelerate.LLVM.Native
Qinka/reimagined-pancake
toy-backend/toy-backend-classify/src/knn/llvm/native/Accelerate.hs
gpl-3.0
98
0
4
33
17
12
5
3
0
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/ExpansionFiles/Update.hs
mpl-2.0
5,582
0
19
1,285
645
381
264
104
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-shopping-content/gen/Network/Google/Resource/Content/Buyongoogleprograms/Onboard.hs
mpl-2.0
6,677
0
20
1,491
899
526
373
127
1
module Model.Permission (PermissionLevel (..), permissionLevelField) where import Import import Model.Permission.Internal import qualified Data.Text as T permissionLevelField :: (RenderMessage (HandlerSite m) FormMessage, m ~ HandlerT site IO) => Field m PermissionLevel permissionLevelField = (radioField' . option...
Happy0/snowdrift
Model/Permission.hs
agpl-3.0
465
0
8
59
127
73
54
-1
-1
module Git.Command.SymbolicRef (run) where run :: [String] -> IO () run args = return ()
wereHamster/yag
Git/Command/SymbolicRef.hs
unlicense
89
0
7
15
42
23
19
3
1
module HaskellSetup where {- This is the low-level stuff that hooks into the ncurses library, together with the Haskell versions of the Agda types. You should not need to bother reading or modifying this file. -} import Debug.Trace import Foreign import Foreign.C (CInt(..)) import ANSIEscapes import System.IO import ...
haroldcarr/learn-haskell-coq-ml-etc
agda/course/2017-conor_mcbride_cs410/CS410-17-master/lectures/HaskellSetup.hs
unlicense
5,090
0
22
1,343
2,000
1,029
971
151
11
module Standard.Parser(parseToplevel) where import Text.Parsec import Text.Parsec.String (Parser) import qualified Text.Parsec.Char as Ch import ParserSupport (range, contents) import Lexer import Standard.Syntax toplevel :: Parser Expr toplevel = do Ch.string "evendistr" whitespace count <- range whitespa...
eigengo/hwsexp
core/main/Standard/Parser.hs
apache-2.0
516
0
9
83
150
79
71
19
1
{-# LANGUAGE OverloadedStrings #-} module Network.Ldap.SSHA ( slappasswd ) where import qualified Data.Digest.Pure.SHA as SHA import qualified Data.ByteString.Char8 as B import qualified Data.ByteString.Lazy.Char8 as L import Data.Text.Lazy.Encoding (encodeUtf8) import Data.ByteString.Base64 (encode) im...
MaxDaten/ldap-simple
Network/Ldap/SSHA.hs
bsd-2-clause
1,733
0
11
328
347
199
148
29
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TupleSections #-} module Language.Indescript.AST where import Control.IxFix -- #### -- # Type Indexes and Proxies data AstIx = AstDecl | Ast...
notcome/indescript
src/Language/Indescript/AST.hs
bsd-3-clause
5,292
0
12
1,413
1,994
994
1,000
100
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE DeriveGeneric #-} module Server where import Prelude () import Prelude.Compat import Control.Monad.E...
sgeop/micro
src/Server.hs
bsd-3-clause
1,702
0
16
438
433
231
202
52
1
{-# OPTIONS -Wall #-} {-# LANGUAGE BangPatterns #-} {-| Module : Esge.Core Description : Most lowlevel edge module. Copyright : (c) Simon Goller, 2015 License : BSD Maintainer : neosam@posteo.de Esge.Core provides the low level data types and functions to the user. It defines the core Ingame type, what Ac...
neosam/esge
src/Esge/Core.hs
bsd-3-clause
11,812
0
12
3,022
2,620
1,413
1,207
223
3
module Problem102 where import Data.List.Split main :: IO () main = readFile "txt/102.txt" >>= print . length . filter containsOrigin . map (map read . wordsBy (== ',')) . lines containsOrigin :: [Double] -> Bool -- line through two points should have origin and th...
adityagupta1089/Project-Euler-Haskell
src/problems/Problem102.hs
bsd-3-clause
1,012
0
11
274
398
230
168
24
1
{-# LANGUAGE ConstraintKinds, DeriveDataTypeable, FlexibleContexts, FlexibleInstances, OverloadedStrings, RecordWildCards, ScopedTypeVariables #-} -- | handle cards module Web.MangoPay.Cards where import Web.MangoPay.Documents import Web.MangoPay.Monad import Web.MangoPay.Types import Web.Man...
prowdsponsor/mangopay
mangopay/src/Web/MangoPay/Cards.hs
bsd-3-clause
7,249
1
33
2,209
1,263
699
564
123
1
{-# LANGUAGE OverloadedStrings #-} {-| Minimalist implementation of type-safe formatted strings, borrowing heavily from the implementation of the @formatting@ package. Example use of this module: >>> :set -XOverloadedStrings >>> import Turtle.Format >>> format ("This is a "%s%" string that takes "%d%" argume...
maoe/Haskell-Turtle-Library
src/Turtle/Format.hs
bsd-3-clause
4,353
6
12
972
886
500
386
63
1
-- | This is a pretty-printer for turning the internal representation -- of generic structured XML documents into the Doc type (which can -- later be rendered using Text.ParserCombinators.HughesPJ.render). -- Essentially there is one pp function for each type in -- Text.Xml.HaXml.Types, so you can pretty-print ...
FranklinChen/hugs98-plus-Sep2006
packages/HaXml/src/Text/XML/HaXml/Pretty.hs
bsd-3-clause
11,378
0
16
4,234
3,520
1,704
1,816
194
2
{-# LANGUAGE RankNTypes #-} module NAT ( NAT(..) , z' , s' , zero' , mult' , plus' , pred' ) where import ORD import BOOL ----------------------------------------- -- Primitive Recursive Type ----------------------------------------- type PRType = forall r. r -> (r -> r) -> r oneN :: PRType oneN =...
godsme/haskell-adt
src/NAT.hs
bsd-3-clause
2,070
0
13
431
784
424
360
51
1
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-} import System.Environment import Control.Applicative import qualified Data.ByteString as BS import Data.X509 import Data.X509.File import Data.X509.CertificateStore import Network import TlsClient import Data.HandleLike import Control.Monad import System.Exit im...
YoshikuniJujo/forest
subprojects/tls-analysis/client/mkClient.hs
bsd-3-clause
2,948
59
17
460
830
434
396
77
3
{-# LANGUAGE BangPatterns , RankNTypes, GADTs, DataKinds #-} {- | The 'Numerical.HBLAS.BLAS.Level1' module provides a fully general yet type safe Level1 BLAS API. When in doubt about the semantics of an operation, consult your system's BLAS api documentation, or just read the documentation for <https://software.intel...
wellposed/hblas
src/Numerical/HBLAS/BLAS/Level1.hs
bsd-3-clause
10,337
0
8
1,795
1,965
1,003
962
130
1
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TemplateHaskell #-} -------------------------------------------------------------------------------- -- | -- Module HipChat.AddOn.Registrat...
mjhopkins/hipchat
src/HipChat/AddOn/Registration.hs
bsd-3-clause
1,519
0
9
306
151
96
55
20
0
{-# LANGUAGE CPP #-} -- | A module for 'FilePath' operations, to be used instead of "System.FilePath" -- when writing build systems. In build systems, when using the file name -- as a key for indexing rules, it is important that two different strings do -- not refer to the same on-disk file. We therefore follow ...
nh2/shake
Development/Shake/FilePath.hs
bsd-3-clause
3,171
0
11
663
600
347
253
38
5
{-# LANGUAGE OverloadedStrings #-} module Bot ( openConnection, startBot ) where import Network.Socket import Data.Maybe (mapMaybe) import qualified Data.Text as T import qualified Types as IT import Actions openConnection :: IT.Server -> IT.User -> IT.Channel -> IO IT.Connection openConnection server...
weeezes/Hik
src/Bot.hs
bsd-3-clause
1,907
0
14
552
613
291
322
45
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE BangPatterns #-} -- This module is based on the implementation from Falko Peters' -- 'scrypt' package and used under the terms of the BSD3 license. module Tinfoil.KDF.Scrypt.Internal( Scry...
ambiata/tinfoil
src/Tinfoil/KDF/Scrypt/Internal.hs
bsd-3-clause
3,565
0
18
834
1,064
570
494
88
4
module GoogleApi where import Data.Text (Text) import qualified Data.Text as T geocodeUrl = "maps.googleapis.com/maps/api/geocode/json" -- | https://developers.google.com/maps/documentation/geocoding/#ComponentFiltering -- data Component = Route -- ^ matches long or short name of a route. | Locality -- ^ ma...
Romer4ig/geodb
src/GoogleApi/Reverse.hs
bsd-3-clause
1,090
1
11
203
129
85
44
-1
-1
{-# LANGUAGE TypeFamilies, TypeOperators, FlexibleInstances #-} -- | Index space transformation between arrays and slices. module Data.Array.Repa.Slice ( All (..) , Any (..) , FullShape , SliceShape , Slice (..)) where import Data.Array.Repa.Index import Prelude hiding (replicate, drop) -- | Select...
kairne/repa-lts
Data/Array/Repa/Slice.hs
bsd-3-clause
2,091
67
9
459
555
323
232
48
0
module Playlistach.Util.List where proportionate :: [[a]] -> [a] proportionate = concat
aemxdp/playlistach
backend/Playlistach/Util/List.hs
bsd-3-clause
88
0
7
11
30
19
11
3
1
{-# LINE 1 "Foreign.Ptr.hs" #-} {-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP, NoImplicitPrelude, MagicHash, GeneralizedNewtypeDeriving, StandaloneDeriving #-} ----------------------------------------------------------------------------- -- | -- Module : For...
phischu/fragnix
builtins/base/Foreign.Ptr.hs
bsd-3-clause
4,911
0
11
1,428
721
420
301
43
1
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-} ----------------------------------------------------------------------------- -- | -- Copyright : (C) 2013-15 Edward Kmett -- License : BSD-style (see the file LICENSE) -- Maintainer : Edward Kmett <ekmett@gmail.com> -- Stability : experimen...
ekmett/succinct
src/Succinct/Tree/Types.hs
bsd-2-clause
1,713
0
9
281
520
281
239
30
1
{-# LANGUAGE DeriveDataTypeable, TypeFamilies, TemplateHaskell, RankNTypes, NamedFieldPuns, RecordWildCards, DoRec, BangPatterns, CPP #-} module Distribution.Server.Features.HoogleData ( initHoogleDataFeature, HoogleDataFeature(..), ) where import Distribution.Server.Framework hiding (path) import Distributi...
mpickering/hackage-server
Distribution/Server/Features/HoogleData.hs
bsd-3-clause
14,896
0
29
4,233
3,631
1,850
1,781
288
5
module Language.Mecha.Visual ( visual ) where import Graphics.UI.GLUT import Language.Mecha.Assembly visual :: Asm -> IO () visual _ = do initialize "Mecha" [] initialWindowSize $= Size 800 600 initialDisplayMode $= [RGBAMode, WithDepthBuffer, DoubleBuffered] actionOnWindowClose $= MainLoopReturns c...
tomahawkins/mecha
attic/Visual.hs
bsd-3-clause
1,605
0
13
357
641
297
344
51
1
-- (c) The University of Glasgow 2006 -- -- FamInstEnv: Type checked family instance declarations {-# LANGUAGE CPP, GADTs, ScopedTypeVariables #-} module FamInstEnv ( FamInst(..), FamFlavor(..), famInstAxiom, famInstTyCon, famInstRHS, famInstsRepTyCons, famInstRepTyCon_maybe, dataFamInstRepTyCon, ...
TomMD/ghc
compiler/types/FamInstEnv.hs
bsd-3-clause
42,766
0
19
12,019
6,348
3,426
2,922
-1
-1
{-# LANGUAGE Rank2Types, ScopedTypeVariables #-} module STMatrix where import Data.Elem.BLAS import Data.Vector.Dense import Data.Matrix.Dense import Data.Matrix.Dense.ST import qualified Test.Matrix.Dense as Test import Driver -------------------------- Creating Matrices -------------------------------- new...
patperry/hs-linear-algebra
tests-old/STMatrix.hs
bsd-3-clause
12,020
0
17
2,807
4,084
2,123
1,961
-1
-1
module Main where import System.FilePath.Glob (glob) import Test.DocTest (doctest) main = glob "src/**/*.hs" >>= doctest
TomRegan/HaskellStarter
test/DocTest.hs
mit
123
0
6
17
37
22
15
4
1
{-# LANGUAGE OverloadedStrings #-} {- | Module : Network.MPD.Applicative.Output Copyright : (c) Joachim Fasting 2012 License : MIT Maintainer : joachifm@fastmail.fm Stability : stable Portability : unportable Audio output devices. -} module Network.MPD.Applicative.Output ( disableOutput , enab...
matthewleon/libmpd-haskell
src/Network/MPD/Applicative/Output.hs
mit
1,071
0
7
211
194
112
82
18
1
module ShrdliteGrammar where import CombinatorParser type SParser = Parser String -- Data types data Command = Take Entity | Put Location | Move Entity Location deriving (Eq, Ord, Show) data Location = Relative Relation Entity deriving (Eq, Ord, Show) data Entity = Floor | BasicEnt...
gautsson/elitresse
haskell/ShrdliteGrammar.hs
gpl-3.0
4,171
0
14
1,314
1,519
859
660
97
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="sk-SK"> <title>Active Scan Rules - Alpha | ZAP Extension</title> <maps> <homeID>top</homeID...
0xkasun/security-tools
src/org/zaproxy/zap/extension/ascanrulesAlpha/resources/help_sk_SK/helpset_sk_SK.hs
apache-2.0
987
80
67
163
422
213
209
-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="da-DK"> <title>Technology detection | ZAP Extension</title> <maps> <homeID>top</homeID> ...
0xkasun/security-tools
src/org/zaproxy/zap/extension/wappalyzer/resources/help_da_DK/helpset_da_DK.hs
apache-2.0
980
80
66
160
418
211
207
-1
-1
{- (c) The GRASP/AQUA Project, Glasgow University, 1993-1998 \section[Specialise]{Stamping out overloading, and (optionally) polymorphism} -} {-# LANGUAGE CPP #-} module Specialise ( specProgram, specUnfolding ) where #include "HsVersions.h" import Id import TcType hiding( substTy, extendTvSubstList ) import Type ...
fmthoma/ghc
compiler/specialise/Specialise.hs
bsd-3-clause
86,510
1
22
25,210
10,520
5,690
4,830
-1
-1
{-# LANGUAGE TypeFamilies, PatternGuards, CPP #-} module Yesod.Core.Internal.LiteApp where #if !(MIN_VERSION_base(4,11,0)) import Data.Semigroup (Semigroup(..)) #endif import Yesod.Routes.Class import Yesod.Core.Class.Yesod import Yesod.Core.Class.Dispatch import Yesod.Core.Types import Yesod.Core.Content import Data....
geraldus/yesod
yesod-core/src/Yesod/Core/Internal/LiteApp.hs
mit
2,644
0
14
608
923
483
440
68
2
module Ho.Library( LibDesc(..), collectLibraries, libModMap, libHash, libMgHash, libProvides, libName, libBaseName, libHoLib, preprocess, listLibraries ) where import Util.Std import Data.Version import System.Directory import Text.Printf import qualified Data.Map as Map...
hvr/jhc
src/Ho/Library.hs
mit
7,464
0
22
1,954
2,541
1,322
1,219
-1
-1
module Let1 where import Control.Parallel.Strategies (rpar, runEval) fib n | n <= 1 = 1 | otherwise = let n1 = fib (n-1) n2 = fib (n-2) (n1_2, n2_2) = runEval (do n1_2 <- rpar n1 ...
RefactoringTools/HaRe
old/testing/evalAddEvalMon/Let1_TokOut.hs
bsd-3-clause
461
0
15
275
139
70
69
10
1
module Multi1 where import Control.Parallel.Strategies fib n | n <= 1 = 1 | otherwise = n1_2 + n2_2 + 1 where n1 = fib (n-1) n2 = fib (n-2) (n1_2, n2_2) = runEval (do n1_2 <- rpar n1 n2_2 <- rpar n2 ...
RefactoringTools/HaRe
old/testing/introThreshold/Multi1.hs
bsd-3-clause
364
0
12
180
135
68
67
14
1
{-# LANGUAGE CPP #-} module Distribution.Simple.HaskellSuite where import Control.Monad #if __GLASGOW_HASKELL__ < 710 import Control.Applicative #endif import Data.Maybe import Data.Version import qualified Data.Map as M (empty) import Distribution.Simple.Program import Distribution.Simple.Compiler as Compiler import...
DavidAlphaFox/ghc
libraries/Cabal/Cabal/Distribution/Simple/HaskellSuite.hs
bsd-3-clause
8,345
0
21
1,869
2,008
1,044
964
176
4
{-# LANGUAGE GADTs, KindSignatures #-} -- Test a couple of trivial things: -- explicit layout -- trailing semicolons -- kind signatures module ShouldCompile where data Expr :: * -> * where { EInt :: Int -> Expr Int ; EBool :: Bool -> Expr Boo...
urbanslug/ghc
testsuite/tests/gadt/gadt8.hs
bsd-3-clause
437
0
10
161
88
52
36
6
0
{-# LANGUAGE TypeFamilies, MultiParamTypeClasses #-} module ShouldFail where -- must fail: defaults have no patterns class C2 a b where type S2 a :: * type S2 Int = Char
siddhanathan/ghc
testsuite/tests/indexed-types/should_fail/SimpleFail4.hs
bsd-3-clause
176
0
6
36
33
20
13
5
0
module HsPredictor.ExportCSV where -- standard import Control.Monad (liftM) import Data.Text (pack) import System.IO (appendFile) -- 3rd party import Database.Esqueleto ((^.)) import qualified Database.Esqueleto as E import ...
Taketrung/HsPredictor
library/HsPredictor/ExportCSV.hs
mit
5,105
0
14
1,494
1,308
661
647
115
2
{-# LANGUAGE OverloadedStrings #-} module Y2017.M10.D24.Exercise where {-- So, yesterday, we loaded in a slice of the NYT archive then saved it off as JSON (the articles, proper) and haskell lists (the subject-linking information). So, what are we going to do today? Load back in that slice, obviously. --} import q...
geophf/1HaskellADay
exercises/HAD/Y2017/M10/D24/Exercise.hs
mit
2,191
0
8
376
236
141
95
21
1
module ReflexExtensions where import Reflex import Reflex.Dom import Data.Monoid ((<>)) metaViewport :: MonadWidget t m => String -> m () metaViewport s = elAttr "meta" ("name" =: "viewport" <> "content" =: s) blank metaCharSet :: MonadWidget t m => String -> m () metaCharSet s = elAttr "meta" ("charset" =: s) blan...
muhbaasu/pfennig-client-reflex
src/ReflexExtensions.hs
mit
1,231
0
11
257
537
265
272
26
1
module Watcher.Action ( exec , textAction , cmdAction , printChangedAction , actionsList , Action ) where import System.Process import Control.Exception import Data.List import Watcher.Arquivo import Help.Command import Utils.JSON newtype Action a = Action (Tag, [a] -> IO()) type Tag = String inst...
Miguel-Fontes/hs-file-watcher
src/Watcher/Action.hs
mit
3,655
0
16
1,219
735
400
335
60
1
module Main where import Hastron.Server.Types import Hastron.Game.Engine main :: IO() main = putStrLn "Hello World"
abhin4v/hastron
src/Main.hs
mit
118
0
6
17
34
20
14
5
1
{-# htermination (==) :: (Eq a, Eq k) => (a, k) -> (a, k) -> Bool #-}
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/Prelude_EQEQ_12.hs
mit
70
0
2
17
3
2
1
1
0
{-# htermination compare :: Float -> Float -> Ordering #-}
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/Prelude_compare_6.hs
mit
59
0
2
10
3
2
1
1
0
module PayPal.Vault ( createCreditCard , getCreditCard , deleteCreditCard ) where createCreditCard = undefined getCreditCard = undefined deleteCreditCard = undefined
AndrewRademacher/hs-paypal-rest
src/PayPal/Vault.hs
mit
185
0
4
38
32
20
12
7
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TupleSections #-} module Phb.Db.TimeLog where import BasePrelude hiding (on) import Prelude () import qualified Control.Lens as L import ...
benkolera/phb
hs/Phb/Db/TimeLog.hs
mit
3,253
3
18
869
1,096
576
520
-1
-1
module Optimizer.Constants(optimize) where import Datatypes import Data.Maybe import Data.Bits import Control.Monad.Writer import Control.Monad.State import Optimizer.Dataflow(fixedPoint) import qualified Data.Map as Map type Constants = Map.Map Int Int optimize :: [IR] -> Writer [String] [IR] optimize ir = do le...
aleksanb/hdc
src/Optimizer/Constants.hs
mit
2,441
0
17
654
1,034
515
519
78
12
import Test.Hspec import Test.QuickCheck import Test.Server.Environment describes :: [Spec] describes = serverEnvironmentSpecs main :: IO () main = mapM_ hspec describes
yulii/mdslide
test/spec.hs
mit
174
0
6
25
50
28
22
7
1
{-# LANGUAGE ConstraintKinds #-} module Station.Types.Implementation where import Import import Station.Types.Card import Station.Types.Deck import Station.Types.Version import Station.Types.VersionContext -- | 'n' is what you code your 'Implementation' to. This is ...
seagreen/station
src/Station/Types/Implementation.hs
mit
1,733
0
13
482
232
138
94
22
0
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-georestriction.html module Stratosphere.ResourceProperties.CloudFrontDistributionGeoR...
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/CloudFrontDistributionGeoRestriction.hs
mit
2,392
0
13
212
265
151
114
28
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dax-subnetgroup.html module Stratosphere.Resources.DAXSubnetGroup where import Stratosphere.ResourceImports ...
frontrowed/stratosphere
library-gen/Stratosphere/Resources/DAXSubnetGroup.hs
mit
2,341
0
15
300
369
210
159
35
1
{- | Module : $Header$ Description : abstract syntax for Relational Schemes Copyright : Dominik Luecke, Uni Bremen 2008 License : GPLv2 or higher, see LICENSE.txt or LIZENZ.txt Maintainer : luecke@informatik.uni-bremen.de Stability : provisional Portability : portable Abstract syntax for Relation...
nevrenato/Hets_Fork
RelationalScheme/AS.hs
gpl-2.0
5,285
0
16
1,778
1,312
678
634
112
1
module CSP.Fail.Quiz where import CSP.Roll import CSP.Step import qualified CSP.STS.Roll import CSP.Fail.Compute import CSP.STS.Type import CSP.STS.Dot import CSP.STS.Semantics.Trace import Autolib.NFA hiding ( symdiff, cross, alphabet ) import qualified Autolib.NFA import Autolib.NFA.Ops ( cross ) import Autolib....
marcellussiegburg/autotool
collection/src/CSP/Fail/Quiz.hs
gpl-2.0
2,158
3
18
755
766
413
353
52
4
module Scryptic.Language.LayoutScrypt where import Scryptic.Language.LexScrypt import Data.Maybe (isNothing, fromJust) -- Generated by the BNF Converter -- local parameters topLayout = True layoutWords = [] layoutStopWords = [] -- layout separators layoutOpen = "{" layoutClose = "}" layoutSep = ";" -- | Rep...
JohnLato/scryptic
src/Scryptic/Language/LayoutScrypt.hs
gpl-3.0
8,679
0
18
2,760
2,150
1,118
1,032
148
23
{-# LANGUAGE CPP #-} -- | Command line options interface for user module UserOptions ( UserOptions (..) , UserCommand (..) , DumpCommand (..) , getUserOptions ) where import Control.Applicative (optional) import Data.Int (Int64) import ...
input-output-hk/rscoin-haskell
src/User/UserOptions.hs
gpl-3.0
18,513
0
38
7,079
2,920
1,489
1,431
397
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-adexchange-seller/gen/Network/Google/Resource/AdExchangeSeller/Accounts/List.hs
mpl-2.0
3,349
0
13
736
411
245
166
60
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-books/gen/Network/Google/Resource/Books/MyLibrary/Bookshelves/List.hs
mpl-2.0
2,977
0
13
631
305
187
118
48
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-shopping-content/gen/Network/Google/Resource/Content/Orderinvoices/Createrefundinvoice.hs
mpl-2.0
6,766
0
20
1,608
890
519
371
133
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/OperatingSystemVersions/Get.hs
mpl-2.0
3,600
0
14
804
421
249
172
66
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
kim/amazonka
amazonka-rds/gen/Network/AWS/RDS/Types.hs
mpl-2.0
149,886
0
85
37,289
25,068
14,365
10,703
-1
-1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
romanb/amazonka
amazonka-ec2/gen/Network/AWS/EC2/AttachVpnGateway.hs
mpl-2.0
4,504
0
9
979
551
335
216
67
1
{-# LANGUAGE TypeOperators, TypeFamilies, FlexibleContexts , TypeSynonymInstances, MultiParamTypeClasses, Rank2Types , FlexibleInstances #-} {-# OPTIONS_GHC -Wall -fno-warn-orphans #-} ---------------------------------------------------------------------- -- | -- Module : Shady.Image -- Co...
sseefried/shady-graphics
src/Shady/Image.hs
agpl-3.0
7,818
0
12
1,605
1,998
1,099
899
107
1
-- CIS 194, Spring 2015 -- -- Test cases for HW 01 module HW01Tests where import HW01 import Testing -- Exercise 1 ----------------------------------------- testLastDigit :: (Integer, Integer) -> Bool testLastDigit (n, d) = lastDigit n == d testDropLastDigit :: (Integer, Integer) -> Bool testDropLastDigit (n, d) =...
nicokosi/intro-to-haskell-cis-194
HW01/HW01Tests.hs
unlicense
2,236
0
9
512
703
431
272
55
1
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} module Consensus ( AppendEntry (..) , AppendEntryResponse (..) , ConsensusMessage , handleConsensusMessage , HandleConsensusMessage ) where import Blockchain (Block, BlockData) impo...
haroldcarr/learn-haskell-coq-ml-etc
haskell/playpen/blockchain/blockchain-framework-DELETE/src/Consensus.hs
unlicense
2,843
0
25
849
652
341
311
56
6
module SubprimeFib.A282814 (a282814) where import Helpers.Table (tableByAntidiagonals) import Helpers.SubprimeFib (loopLength) a282814 n = loopLength (n' + 1) (k' + 1) where (n', k') = tableByAntidiagonals (n - 1)
peterokagey/haskellOEIS
src/SubprimeFib/A282814.hs
apache-2.0
219
0
9
33
82
46
36
5
1
-- Copyright 2020 Google LLC -- -- 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 ...
google/hrepl
hrepl/tests/ReplTestLib.hs
apache-2.0
5,754
0
16
1,431
822
463
359
78
2
{-# LANGUAGE CPP #-} {-# OPTIONS_HADDOCK not-home #-} ----------------------------------------------------------------------------- -- | -- Copyright : (C) 2015 Edward Kmett -- License : BSD-style (see the file LICENSE) -- Maintainer : Edward Kmett <ekmett@gmail.com> -- Stability : experimental -- Portabil...
bitemyapp/structs
src/Data/Struct/Internal/LinkCut.hs
bsd-2-clause
10,680
12
15
3,913
3,151
1,526
1,625
248
7
module Paths_Hermes ( version, getBinDir, getLibDir, getDataDir, getLibexecDir, getDataFileName ) where import Data.Version (Version(..)) import System.Environment (getEnv) version :: Version version = Version {versionBranch = [0,0,0], versionTags = []} bindir, libdir, datadir, libexecdir :: FilePath ...
kostas1/Hermes
dist/build/autogen/Paths_Hermes.hs
bsd-2-clause
977
0
10
144
280
161
119
22
1
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} module Life.Engine.QTree where import Data.QuadTree import Data.Boolean (xor) import Life.Types type Board = LifeBoard Config (QuadTree Bool) neighbs :: Config -> Pos -> [Pos] neighbs ((w,h),warp) (x,y) = if warp then map (\(x,y) -> (x `mod` w, y `mod` h)) ...
ku-fpg/better-life
Life/Engine/QTree.hs
bsd-2-clause
1,704
10
18
373
959
507
452
38
2
-- | -- Module : Crypto.Hash.Algorithms -- License : BSD-style -- Maintainer : Vincent Hanquez <vincent@snarc.org> -- Stability : experimental -- Portability : unknown -- -- Definitions of known hash algorithms -- module Crypto.Hash.Algorithms ( HashAlgorithm -- * hash algorithms , MD2(..) ,...
nomeata/cryptonite
Crypto/Hash/Algorithms.hs
bsd-3-clause
1,461
0
5
434
318
224
94
46
0
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE OverloadedStrings #-} module Snap.Chat.ChatRoom.Tests (tests) where ------------------------------------------------------------------------------ import Control.Concurrent import qualified Data.ByteString.Char8 as S import System.PosixCompat.Time im...
snapframework/cufp2011
test/suite/Snap/Chat/ChatRoom/Tests.hs
bsd-3-clause
5,482
0
17
1,433
899
449
450
94
3
----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.FloatSnap -- Copyright : (c) 2009 Anders Engstrom <ankaan@gmail.com> -- License : BSD3-style (see LICENSE) -- -- Maintainer : Anders Engstrom <ankaan@gmail.com> -- Stability : unstable -- Port...
CaptainPatate/xmonad-contrib
XMonad/Actions/FloatSnap.hs
bsd-3-clause
17,084
0
24
5,825
4,226
2,221
2,005
222
18
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} module Web.RTBBidder.Types.Request.Segment (Segment(..)) where import qualified Data.Aeson as AESON import Data.Aeson ((.=), (.:), (.:?), (.!=)) import qualified Data.Text as TX data Segment = Segment { segId :: Maybe TX.Text , segName :: Maybe T...
hiratara/hs-rtb-bidder
src/Web/RTBBidder/Types/Request/Segment.hs
bsd-3-clause
807
0
11
174
268
152
116
25
0
-- Keyed scheduler, exists to ensure that no more than one task is -- active per 'key' at a time. In this context, a key is likely a -- filepath or directory path. Wraps another scheduler. module KeyedSched ( newKeyedSched ) where import Control.Monad (join) import Control.Exception (finally, assert) import ...
dmbarbour/awelon
hsrc_util/KeyedSched.hs
bsd-3-clause
1,546
0
12
364
673
349
324
34
3
-- 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.PhoneNumber.Corpus ( corpus , negativeCorpus ) where i...
facebookincubator/duckling
Duckling/PhoneNumber/Corpus.hs
bsd-3-clause
2,009
0
9
641
327
188
139
46
1
module Utils where import Data.Word import Data.List (elemIndex) tr :: [Char] -> [Char] -> String -> String tr as bs str = flip map str $ \c -> maybe c (\ix -> bs !! ix) $ elemIndex c as readBinary :: String -> Word32 readBinary = bin2dec . read bin2dec :: Word32 -> Word32 bin2dec = convertBase 2 10 {-dec2bin ::...
talw/crisp-compiler
src/Utils.hs
bsd-3-clause
845
0
13
278
300
160
140
19
3
module Control.Concurrent.Timer ( Timer , TimerIO , oneShotTimer , oneShotStart , oneShotRestart , repeatedTimer , repeatedStart , repeatedRestart , newTimer , stopTimer ) where ------------------------------------------------------------------------------ import Control.Applicative import Contr...
uwap/timers
src/Control/Concurrent/Timer.hs
bsd-3-clause
7,354
0
14
1,845
1,151
594
557
111
3
{-# LANGUAGE TypeOperators #-} {-# LANGUAGE MultiParamTypeClasses #-} module JFlow.ReachAC ( RACFact , racFlow , mayReach , mayReaches , mayReachingVars , isAcyclic ) where import Jinja.Program import Jat.Utils.Pretty as PP import JFlow.Data import Prelude import qualified Data.Set as S import Da...
ComputationWithBoundedResources/jat
src/JFlow/ReachAC.hs
bsd-3-clause
7,216
0
19
2,155
2,932
1,542
1,390
144
26
{-# LANGUAGE Arrows #-} module Playlistach.Model.WithId where import Data.Profunctor.Product (p2) import Control.Arrow import Opaleye type WithId r = (Int, r) type IdColumn = Column PGInt4 type WithIdColumn r = (IdColumn, r) withId :: TableProperties a b -> TableProperties (Column id_t, a) (Column id_t, b) withId...
aemxdp/playlistach
backend/Playlistach/Model/WithId.hs
bsd-3-clause
524
1
10
100
202
110
92
15
1
module Machine.Internal.Step where import Control.Lens import qualified Data.HashMap.Lazy as H import Machine.Internal.Data import Machine.Internal.GC.MarkScan import Machine.Internal.Heap (Addr) import Machine.Internal.Instantiate import qualified Machine.Internal.Heap as U -- TODO use prism? isDataNode :: Node -> ...
joelburget/graphreduction
src/Machine/Internal/Step.hs
bsd-3-clause
10,258
0
16
3,342
3,047
1,568
1,479
-1
-1
----------------------------------------------------------------------------- -- -- Pretty-printing assembly language -- -- (c) The University of Glasgow 1993-2005 -- ----------------------------------------------------------------------------- {-# OPTIONS -fno-warn-tabs #-} -- The above warning supression flag is a t...
mcmaniac/ghc
compiler/nativeGen/PPC/Ppr.hs
bsd-3-clause
22,262
371
18
6,201
7,931
3,913
4,018
522
72
module Embot.Slack where import ClassyPrelude import Control.Lens (Getter, view, to) import Control.Lens.TH (makeLenses, makePrisms) import Data.Aeson ((.:), (.:?), (.=), (.!=), Value(Object, String), Object, FromJSON(parseJSON), ToJSON(toJSON), object, withText, withObject, wit...
Dridus/embot
src/Embot/Slack.hs
bsd-3-clause
31,959
0
77
8,619
8,474
4,438
4,036
-1
-1
{-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE TypeApplications #-} module Database.PostgreSQL.PQTypes.Format ( PQFormat(..) , pqFormatP , pqFormat0P , pqVariablesP , (:*:)(..) ) where import Data.Functor.Identity import Data.Int import Data.Proxy import Data.Time import Data.Word import Data.UUID....
scrive/hpqtypes
src/Database/PostgreSQL/PQTypes/Format.hs
bsd-3-clause
53,042
0
9
11,728
23,796
12,623
11,173
-1
-1
{-# LANGUAGE PackageImports #-} module Data.Typeable.Internal (module M) where import "base" Data.Typeable.Internal as M
silkapp/base-noprelude
src/Data/Typeable/Internal.hs
bsd-3-clause
126
0
4
18
23
17
6
3
0
module Control.Distributed.Process.Internal.Messaging ( sendPayload , sendBinary , sendMessage , disconnect , closeImplicitReconnections , impliesDeathOf , sendCtrlMsg ) where import Data.Accessor ((^.), (^=)) import Data.Binary (Binary, encode) import qualified Data.Map as Map (partitionWithKey, elems...
haskell-distributed/distributed-process
src/Control/Distributed/Process/Internal/Messaging.hs
bsd-3-clause
6,903
0
21
1,880
1,698
896
802
177
3
module TestHelpers where import Data.Decimal import Data.List import SplitBill defaultState :: BillProcessingState defaultState = BillProcessingState 0 0 0 0 0 runActions :: WhoPaidQuestion -> [ (Decimal, BoughtForWhomQuestion, CategoryQuestion) ] -> BillProcessingState runActions payee action...
Minoru/split-bill-hs
test/TestHelpers.hs
bsd-3-clause
422
0
10
84
118
65
53
12
1
----------------------------------------------------------------------------- -- | -- Module : TestSuite.BitPrecise.MergeSort -- Copyright : (c) Levent Erkok -- License : BSD3 -- Maintainer : erkokl@gmail.com -- Stability : experimental -- -- Test suite for Data.SBV.Examples.BitPrecise.MergeSort ----...
Copilot-Language/sbv-for-copilot
SBVUnitTest/TestSuite/BitPrecise/MergeSort.hs
bsd-3-clause
879
0
12
171
138
82
56
12
1
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- ...
fmapfmapfmap/amazonka
amazonka-s3/gen/Network/AWS/S3/GetBucketTagging.hs
mpl-2.0
3,732
0
14
781
538
322
216
68
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="si-LK"> <title>Replacer | ZAP Extension</title> <maps> <homeID>top</homeID> <mapref lo...
veggiespam/zap-extensions
addOns/replacer/src/main/javahelp/org/zaproxy/zap/extension/replacer/resources/help_si_LK/helpset_si_LK.hs
apache-2.0
970
80
66
159
413
209
204
-1
-1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ParallelListComp #-} {-# LANGUAGE PatternGuards #-} {- Copyright 2019 The CodeWorld Authors. All rights reserved. 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 co...
alphalambda/codeworld
codeworld-compiler/src/CodeWorld/Compile/Base.hs
apache-2.0
3,536
1
16
856
1,013
536
477
70
2
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} module Stack.Init ( initProject , InitOpts (..) ) where import Control.Exception (assert) import Control.Exception.En...
AndrewRademacher/stack
src/Stack/Init.hs
bsd-3-clause
23,369
0
21
7,979
4,712
2,413
2,299
433
6
-- | -- Module : Debian.Package.Data.Packages -- Copyright : 2014-2015 Kei Hibino -- License : BSD3 -- -- Maintainer : ex8k.hibino@gmail.com -- Stability : experimental -- Portability : portable -- -- This module provides data types of debian packages meta information. module Debian.Package.Data.Packages ...
khibino/haskell-debian-build.rebuild
src/Debian/Package/Data/Packages.hs
bsd-3-clause
9,572
0
17
2,108
2,644
1,437
1,207
207
5