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
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE RankNTypes #-} module Main where import ClassyPrelude hiding (Element, FilePath, elem, getCurrentTime, readFile, writeFile) import Control.Concurrent.Async (mapConcurrently) import C...
pmiddend/reviewer
src/Reviewer/Main.hs
gpl-3.0
9,278
1
28
2,394
2,492
1,270
1,222
-1
-1
module Dep.Printing.Schematics where import Data.Bits import Data.Word import Dep.Structures(CombElem(..)) import Dep.Utils (safeTail,safeMapHeads,findDefault,succR,predR,nSuccR) data Direction = U | R | D | L deriving (Enum,Show,Eq,Bounded) data Wire = Space | End Direction | VLine | HLine | Cross | TSplit Direction...
KommuSoft/dep-software
Dep.Printing.Schematics.hs
gpl-3.0
3,562
0
10
819
1,533
789
744
84
1
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE TypeSynonymInstances #-} -----------------------------------------------------------------...
mzini/TcT
source/Tct/Processor/Args/Instances.hs
gpl-3.0
7,797
0
16
2,040
2,115
1,141
974
144
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-androiddeviceprovisioning/gen/Network/Google/Resource/AndroidDeviceProvisioning/Partners/Devices/Metadata.hs
mpl-2.0
5,963
0
20
1,379
902
521
381
129
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/Accounts/Labels/List.hs
mpl-2.0
6,028
0
20
1,457
911
526
385
131
1
-- -- Copyright 2017-2018 Azad Bolour -- Licensed under GNU Affero General Public License v3.0 - -- https://github.com/azadbolour/boardgame/blob/master/LICENSE.md -- module Bolour.Util.DataFileSpec where import Test.Hspec import Bolour.Util.FileUtil spec :: Spec spec = do describe "read word list" $ do it "r...
azadbolour/boardgame
haskell-server/test/Bolour/Util/DataFileSpec.hs
agpl-3.0
430
0
14
75
79
44
35
9
1
{-# OPTIONS -XMultiParamTypeClasses #-} -------------------------------------------------------------------------------- -- $Id: ClassRestrictionRule.hs,v 1.15 2004/01/07 19:49:12 graham Exp $ -- -- Copyright (c) 2003, G. KLYNE. All rights reserved. -- See end of this file for licence information. ------------...
amccausl/Swish
Swish/HaskellRDF/ClassRestrictionRule.hs
lgpl-2.1
26,626
0
14
6,576
3,462
2,029
1,433
-1
-1
module ESpec where import Test.Hspec ------------------------------------------------------------------------------ import E spec :: Spec spec = t01
haroldcarr/learn-haskell-coq-ml-etc
haskell/topic/existentials/2017-03-arnaud-bailly-understanding-existentials/test/ESpec.hs
unlicense
174
0
4
39
23
15
8
6
1
{-# LANGUAGE DataKinds, TypeFamilies, TemplateHaskell, QuasiQuotes #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE UndecidableInstances #-} --import Data.Singletons -- .TH import Data.Singletons.TH hiding (Min, Compare, CompareSym0) $(singletons [d| data Nat = Zero | Succ Nat deriving (Show, Eq) |]) $(promote...
egaburov/funstuff
Haskell/dsl_fold/offer_dtp_singl_th.hs
apache-2.0
3,358
0
11
888
416
220
196
75
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="ro-RO"> <title>HTTPS Info Add-on</title> <maps> <homeID>httpsinfo</homeID> <mapref loca...
secdec/zap-extensions
addOns/httpsInfo/src/main/javahelp/org/zaproxy/zap/extension/httpsinfo/resources/help_ro_RO/helpset_ro_RO.hs
apache-2.0
968
77
67
157
413
209
204
-1
-1
{-# LANGUAGE TemplateHaskell #-} {-| The Ganeti WConfd core functions. This module defines all the functions that WConfD exports for RPC calls. They are in a separate module so that in a later stage, TemplateHaskell can generate, e.g., the python interface for those. -} {- Copyright (C) 2013, 2014 Google Inc. All ...
dimara/ganeti
src/Ganeti/WConfd/Core.hs
bsd-2-clause
16,598
0
14
3,844
2,563
1,434
1,129
222
3
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FunctionalDependencies #-} module Data.Geodetic.EllipsoidReaderT( EllipsoidReaderT(..) , EllipsoidReader , runEllipsoidReader , toEllipsoidReaderT , hoistEllipsoidReader ,...
NICTA/coordinate
src/Data/Geodetic/EllipsoidReaderT.hs
bsd-3-clause
6,472
0
26
1,722
2,227
1,198
1,029
206
1
{-# OPTIONS -Wall #-} -- The pec embedded compiler -- Copyright 2011-2012, Brett Letner module Pec.C (cModules) where import Control.Concurrent import Control.Monad import Data.Char import Data.Generics.Uniplate.Data import Data.List import Data.Maybe import Development.Shake.FilePath import Grm.Prims import Languag...
stevezhee/pec
Pec/C.hs
bsd-3-clause
16,915
0
28
4,731
8,633
4,258
4,375
488
14
{-# LANGUAGE ScopedTypeVariables #-} module Main where import Test.Framework (defaultMain, testGroup) import Test.Framework.Providers.HUnit import Test.Framework.Providers.QuickCheck2 (testProperty) import Test.QuickCheck import Test.HUnit import NLP.Semiring import NLP.Semiring.Boolean import NLP.Semiring.Prob imp...
srush/SemiRings
tests/Tests.hs
bsd-3-clause
5,326
0
14
1,458
1,916
1,108
808
105
1
-- |An 'RdfParser' implementation for the Turtle format -- <http://www.w3.org/TeamSubmission/turtle/>. module Text.RDF.RDF4H.TurtleParser( TurtleParser(TurtleParser) ) where import Data.Char (toLower,toUpper) import Data.RDF.Types import Data.RDF.Namespace import Text.RDF.RDF4H.ParserUtils import Text.Parsec impo...
LeifW/rdf4h
src/Text/RDF/RDF4H/TurtleParser.hs
bsd-3-clause
29,131
0
20
6,734
8,125
4,257
3,868
-1
-1
{-# LANGUAGE GADTs #-} -- | Provide a notion of fanout wherein a single input is passed to -- several consumers. module Data.Machine.Fanout (fanout, fanoutSteps) where import Control.Applicative import Control.Arrow import Control.Monad (foldM) import Data.Machine import Data.Maybe (catMaybes) import Data.Monoid import...
treeowl/machines
src/Data/Machine/Fanout.hs
bsd-3-clause
3,386
0
16
893
1,083
571
512
49
4
{-# LANGUAGE PatternSynonyms #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.NV.VertexProgram3 -- Copyright : (c) Sven Panne 2019 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portabilit...
haskell-opengl/OpenGLRaw
src/Graphics/GL/NV/VertexProgram3.hs
bsd-3-clause
668
0
5
91
47
36
11
7
0
module Control.Concurrent.AsCtrl ( module Control.Concurrent.AsCtrl ) where -- generated by https://github.com/rvion/ride/tree/master/jetpack-gen import qualified Control.Concurrent as I -- ctrl_forkFinally :: forall a. IO a -> (Either SomeException a -> IO ()) -> IO ThreadId ctrl_forkFinally = I.forkFinally --...
rvion/ride
jetpack/src/Control/Concurrent/AsCtrl.hs
bsd-3-clause
5,087
0
6
841
513
322
191
63
1
module BrownPLT.JavaScript.Contracts.Compiler ( compile , compile' , compileFormatted , compileRelease ) where import Control.Monad import qualified Data.Map as M import Text.PrettyPrint.HughesPJ ( render, vcat ) import Text.ParserCombinators.Parsec.Pos (SourcePos) import Paths_JsContracts -- created by Ca...
brownplt/javascript-contracts
src/BrownPLT/JavaScript/Contracts/Compiler.hs
bsd-3-clause
13,488
0
17
3,311
3,317
1,694
1,623
248
8
module Network.EmailSend.SMTP(SMTPBackend(..)) where ---------------------------------------- ---- STDLIB ---------------------------------------- ---------------------------------------- ---- SITE-PACKAGES ---------------------------------------- import Data.ByteString (ByteString) import qualified Network.HaskellNe...
weissi/haskell-email
Network/EmailSend/SMTP.hs
bsd-3-clause
1,105
0
11
163
269
141
128
18
1
{-# OPTIONS -Wall -Werror #-} -- #hide module Data.Time.Clock.UTCDiff where import Data.Time.Clock.POSIX import Data.Time.Clock.UTC -- | addUTCTime a b = a + b addUTCTime :: NominalDiffTime -> UTCTime -> UTCTime addUTCTime x t = posixSecondsToUTCTime (x + (utcTimeToPOSIXSeconds t)) -- | diffUTCTime a b = a - b diff...
FranklinChen/hugs98-plus-Sep2006
packages/time/Data/Time/Clock/UTCDiff.hs
bsd-3-clause
441
0
9
68
104
60
44
8
1
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE RecordWildCards #-} module Lib where import Control.Monad (join) import Con...
muhbaasu/pfennig-cli
src/Lib.hs
bsd-3-clause
13,889
1
22
3,623
3,999
2,106
1,893
343
4
module Sexy.Instances.Monoid.Either () where import Sexy.Data (Either) import Sexy.Classes (Monoid(..), Nil) import Sexy.Instances.Nil.Either () import Sexy.Instances.Plus.Either () instance (Nil e, Monoid a) => Monoid (Either e a) where
DanBurton/sexy
src/Sexy/Instances/Monoid/Either.hs
bsd-3-clause
240
0
7
30
89
55
34
6
0
module Ellipsoid where -- | To represent a reference ellipsoid. data Ellipsoid = Ellipsoid { semiMajorAxis :: Double -- ^ Semi major axis. , semiMinorAxis :: Double -- ^ Semi minor axis. , eccentricitySquared :: Double -- ^ Eccentricity squared. , flattening :: Double -- ^ Flatten...
danfran/hcoord
src/Ellipsoid.hs
bsd-3-clause
4,268
0
11
663
804
437
367
75
1
{-# LANGUAGE CPP #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TemplateHaskell #-} module Stack.Upgrade ( upgrade , Upgrad...
Fuuzetsu/stack
src/Stack/Upgrade.hs
bsd-3-clause
10,265
0
26
3,506
2,079
1,042
1,037
227
6
{-# LANGUAGE TupleSections, FlexibleInstances, MultiParamTypeClasses #-} module Data.Parser.Grempa.Parser.SLR ( Item(..) ) where import Data.Set(Set) import qualified Data.Set as S import Data.Parser.Grempa.Auxiliary.Auxiliary import Data.Parser.Grempa.Parser.Item import Data.Parser.Grempa.Grammar.Token import...
ollef/Grempa
Data/Parser/Grempa/Parser/SLR.hs
bsd-3-clause
1,486
0
13
461
459
250
209
35
2
{- (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[RnNames]{Extracting imported and top-level names in scope} -} {-# LANGUAGE CPP, NondecreasingIndentation #-} module RnNames ( rnImports, getLocalNonValBinders, newRecordSelector, rnExports, extendGlobalRdrEnvRn, gresFromAva...
tjakway/ghcjvm
compiler/rename/RnNames.hs
bsd-3-clause
88,862
3
29
28,036
16,684
8,616
8,068
-1
-1
module HSync.Server.Import.NoFoundation ( module Import ) where import ClassyPrelude.Yesod as Import hiding (Update,Query,get,delete,update , host, port ) -- import HSync.Server.Model as Import import HSy...
noinia/hsync-server
src/HSync/Server/Import/NoFoundation.hs
bsd-3-clause
985
0
5
351
155
113
42
17
0
{-- snippet ternary --} data Ternary = Yes | No | Unknown deriving (Eq,Show) {-- /snippet ternary --}
binesiyu/ifl
examples/ch11/Ternary.hs
mit
119
0
6
34
27
16
11
5
0
-- https://www.codewars.com/kata/can-you-get-the-loop module CanYouGetTheLoop where import CanYouGetTheLoop.Types {- data Node a instance Eq a => Eq (Node a) next :: Node a -> Node a -} loopSize :: Eq a => Node a -> Int loopSize head = walk 1 (next intersection) intersection where intersection = race head (...
airtial/Codegames
codewars/can-you-get-the-loop.hs
gpl-2.0
492
0
11
132
169
82
87
11
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="de-DE"> <title>Forced Browse Add-On</title> <maps> <homeID>top</homeID> <mapref locati...
veggiespam/zap-extensions
addOns/bruteforce/src/main/javahelp/org/zaproxy/zap/extension/bruteforce/resources/help_de_DE/helpset_de_DE.hs
apache-2.0
965
79
67
158
415
210
205
-1
-1
module ParsecChar {-# DEPRECATED "This module has moved to Text.ParserCombinators.Parsec.Char" #-} (module Text.ParserCombinators.Parsec.Char) where import Text.ParserCombinators.Parsec.Char
alekar/hugs
fptools/hslibs/text/parsec/ParsecChar.hs
bsd-3-clause
191
0
5
16
22
16
6
4
0
{-| Module : Qux.Command.Dependencies Description : Options and handler for the dependencies subcommand. Copyright : (c) Henry J. Wylde, 2015 License : BSD3 Maintainer : hjwylde@gmail.com Options and handler for the dependencies subcommand. -} module Qux.Command.Dependencies ( -- * Options Option...
qux-lang/qux
src/Qux/Command/Dependencies.hs
bsd-3-clause
1,202
0
14
245
255
145
110
22
1
module Eta.CodeGen.Env where import Eta.BasicTypes.Id import Eta.StgSyn.StgSyn import Eta.Types.TyCon import Codec.JVM import Eta.Utils.Util import Eta.CodeGen.Types import Eta.CodeGen.Closure import Eta.CodeGen.Monad import Eta.CodeGen.Utils import Eta.CodeGen.ArgRep import Eta.CodeGen.Name import Control.Monad (...
rahulmutt/ghcvm
compiler/Eta/CodeGen/Env.hs
bsd-3-clause
3,085
0
12
517
1,067
533
534
-1
-1
{-# LANGUAGE Haskell2010 #-} {-# LINE 1 "Data/Aeson/Encoding.hs" #-} -- | -- -- Functions in this module return well-formed 'Encoding''. -- Polymorphic variants, which return @'Encoding' a@, return a textual JSON -- value, so it can be used as both @'Encoding'' 'Text'@ and @'Encoding' = 'Encoding'' 'Value'@. module Dat...
phischu/fragnix
tests/packages/scotty/Data.Aeson.Encoding.hs
bsd-3-clause
1,260
0
4
339
198
137
61
38
0
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Program.Builtin -- Copyright : Isaac Jones 2006, Duncan Coutts 2007-2009 -- -- Maintainer : cabal-devel@haskell.org -- Portability : portable -- -- The module defines all the known built-in 'Pr...
DavidAlphaFox/ghc
libraries/Cabal/Cabal/Distribution/Simple/Program/Builtin.hs
bsd-3-clause
11,280
0
18
2,867
2,119
1,208
911
224
3
----------------------------------------------------------------------------- -- | -- Module : Haddock.Version -- Copyright : (c) Simon Marlow 2003 -- License : BSD-like -- -- Maintainer : haddock@projects.haskell.org -- Stability : experimental -- Portability : portable ----------------------------...
jwiegley/ghc-release
utils/haddock/src/Haddock/Version.hs
gpl-3.0
687
0
5
95
75
50
25
9
1
{-# LANGUAGE GADTs #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeInType #-} module T13780b where data family Sing (a :: k) data instance Sing (z :: Bool) = z ~ False => SFalse | z ~ True => STrue
ezyang/ghc
testsuite/tests/dependent/should_fail/T13780b.hs
bsd-3-clause
210
0
8
48
57
34
23
-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>Automation Framework</title> <maps> <homeID>top</homeID> <mapref locatio...
kingthorin/zap-extensions
addOns/automation/src/main/javahelp/org/zaproxy/addon/automation/resources/help_da_DK/helpset_da_DK.hs
apache-2.0
965
77
66
156
407
206
201
-1
-1
{-# LANGUAGE CPP, UnboxedTuples, MagicHash #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} -- -- (c) The University of Glasgow 2002-2006 -- -- --------------------------------------------------------------------------- -- The dynamic linker for object code (.o .so .dll files) -- --------------------------------...
sdiehl/ghc
libraries/ghci/GHCi/ObjLink.hs
bsd-3-clause
7,099
0
19
1,580
1,389
724
665
113
2
{-# TYPE nat = {x | x > 0} #-} {-# TYPE notNull = {xs | not (null xs)} #-} {-# CONTRACT f :: nat -> nat #-} f :: Int -> Int f x = x {-# CONTRACT g :: notNull -> any #-} g :: [Int] -> Int g (x:xs) = x
urbanslug/ghc
testsuite/tests/esc/synonym.hs
bsd-3-clause
203
0
7
57
49
28
21
4
1
{-# LANGUAGE PolyKinds, FunctionalDependencies, MultiParamTypeClasses #-} module T9201 where class MonoidalCCC (f :: x -> y) (d :: y -> y -> *) | f -> d where ret :: d a (f a)
urbanslug/ghc
testsuite/tests/typecheck/should_fail/T9201.hs
bsd-3-clause
180
0
9
38
62
35
27
4
0
module Main (main) where import System.Environment import LrcPrelude import Funcs_Parser_Lazy import Data_Lazy import Visfun_Lazy -- runSemantics :: String -> [BibEntry] runSemantics inp pw = lrcEval (runParser inp) pw runEval fn pw = do s <- readFile fn let (code,errors,te,pp) = runSemantics s pw ...
urbanslug/ghc
testsuite/tests/programs/joao-circular/Main.hs
bsd-3-clause
2,099
0
13
602
729
357
372
58
1
{-# LANGUAGE MagicHash #-} -- !! pattern-matching failure on functions that return Int# --import PrelBase --ghc1.3 import GHC.Base main = putStr (shows (I# (foo bar1 bar2)) "\n") where bar1 = Bar1 40 (39,38) resps bar2 = Bar1 2 ( 1, 0) resps resps = error "1.2 responses" data Response = Response -- st...
urbanslug/ghc
testsuite/tests/codeGen/should_run/cgrun032.hs
bsd-3-clause
475
0
11
116
186
101
85
13
1
-- | -- Module: src-test/Main.hs -- There are three property tests. -- propPrime : verifies the prime number generator generates prime numbers. -- propTabulator : verifies the tabulator is producing a multiplication table. -- propFormatter : verifies the formatted data is accurately produced from -- tabulator. -- --...
mlitchard/primenator
src-test/Main.hs
isc
956
0
8
153
129
76
53
19
1
{- Copyright (C) 2014 Calvin Beck Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
Chobbes/SerialTimer
Main.hs
mit
1,765
0
10
418
157
77
80
18
1
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} module ListAp where import Data.Semigroup import GHC.Generics import Test.QuickCheck (Arbitrary, CoArbitrary, arbitrary, oneof) import Test.QuickCheck.Checkers (Eq...
JoshuaGross/haskell-learning-log
Code/Haskellbook/Applicatives/src/ListAp.hs
mit
1,917
0
13
542
852
452
400
55
1
-------------------------------------------------------------------- -- Simple Grammar Parser -- Created: April 2015, Samy Narrainen -------------------------------------------------------------------- module Grammar where import Char type NonTerminal = String type Terminal = Strin...
SamyNarrainen/SimpleGrammarParser
Haskell/Grammar.hs
mit
3,388
0
15
665
1,000
560
440
53
2
----------------------------------------------------------------------------- -- -- Module : Language.PureScript.Optimizer.MagicDo -- Copyright : (c) Phil Freeman 2013-14 -- License : MIT -- -- Maintainer : Phil Freeman <paf31@cantab.net> -- Stability : experimental -- Portability : -- -- | -- This m...
bergmark/purescript
src/Language/PureScript/Optimizer/MagicDo.hs
mit
7,383
0
25
1,458
2,405
1,228
1,177
84
18
import Data.Char (toUpper) import Data.Time.Calendar (fromGregorian) import System.Exit (ExitCode (..), exitWith) import Test.HUnit (Assertion, Counts (..), Test (..), runTestTT, (@=?)) import Person ...
stevejb71/xhaskell
lens-person/lens-person_test.hs
mit
2,347
0
12
983
554
310
244
47
2
module Network.Skype.Parser.ChatMember where import Control.Applicative import Data.Attoparsec.ByteString.Lazy import Network.Skype.Parser.Chat import Network.Skype.Parser.Types import Network.Skype.Protocol.ChatMember chatMemberProperty :: Parser ChatMemberProperty chatMemberProperty = choice [ ChatMemberChatName ...
emonkak/skype4hs
src/Network/Skype/Parser/ChatMember.hs
mit
587
0
10
79
142
81
61
13
1
{- | Module : Main Description : Evaluate a BrainFuck program Copyright : (c) Sebastian Galkin, 2014 License : MIT Maintainer : paraseba@gmail.com Stability : experimental Usage: > brainfuck path/to/program.bf It will parse the program and evaluate it by doing I/O to the console. In case of parsing or ...
paraseba/haskell-brainfuck
Main/Main.hs
mit
2,167
0
16
496
524
279
245
41
2
{-# LANGUAGE RecordWildCards #-} module Database.Mongodb.Internal ( StrictByteString , LazyByteString , RequestIdCounter(..) , ObjectIdCounter(..) , newRequestIdCounter , newObjectIdCounter , newRequestId , newObjectId ) where import Data.Int (Int32) import Data.IORef (IORef, newIO...
lambda-llama/mnogo
src/Database/Mongodb/Internal.hs
mit
1,766
0
11
282
480
272
208
40
1
module Main where import System.Console.GetOpt import System.IO import System.Exit import System.Environment import Data.List import qualified Data.Map as M import qualified Data.ByteString.Char8 as B import qualified Data.ByteString.Lazy.Char8 as BL import Tokens import Payload import APNS data Flag = Message ...
asukharev/apnpush
src/Main.hs
mit
2,382
0
15
738
753
396
357
70
4
-- Copyright 2015 Mitchell Kember. Subject to the MIT License. -- | Implements the read-eval-print loop in the 'repl' function. module Lam.Repl (loadFile, startRepl) where import Control.Error.Util (maybeT) import Control.Monad (foldM) import Control.Monad.IO.Class (MonadIO, liftIO) import Control.Monad.Trans.Maybe (...
mk12/lam
src/Lam/Repl.hs
mit
6,543
0
19
1,440
1,692
857
835
96
6
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.SVGClipPathElement (js_getClipPathUnits, getClipPathUnits, SVGClipPathElement, castToSVGClipPathElement, gTypeSVGClipPathElement) where import Prelude ((.), (==), (>>=), return, IO, Int, Floa...
manyoo/ghcjs-dom
ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGClipPathElement.hs
mit
1,525
6
10
197
371
236
135
26
1
inverter[] = [] inverter(x:xs) = inverter xs ++ [x] pali s = if inverter s == s then True else False pertence a [] = False pertence a (x:xs) = if a == x then True else pertence a xs repete [] = False repete (x:xs) = if pertence x xs then True else repete xs --1 uniao [] ys = ys uniao (x:xs) ys = if not (pertence x ...
AndressaUmetsu/PapaEhPop
exercicios.hs
mit
1,637
2
12
431
951
486
465
-1
-1
module Parser.Parser where import Control.Monad (liftM) import Numeric (readFloat) import Text.ParserCombinators.Parsec hiding (spaces) import Parser.Types.LispVal parseExpr :: Parser LispVal parseExpr = parseAtom <|> parseString <|> parseNumber <|> parseQuasiQuoted <|> parseQuoted <|> par...
slogsdon/haskell-exercises
write-a-scheme/evaluation-part1/src/Parser/Parser.hs
mit
2,372
0
15
558
813
391
422
87
3
import Control.Applicative import Control.Monad import qualified Data.ByteString.Char8 as BS import Data.Maybe solve :: [Int] -> Int solve arr = let minValue = minimum arr in minimum [f x | x <- [(minValue - 5)..minValue]] where f i = sum $ map (\x -> c i x) arr ...
m00nlight/hackerrank
algorithm/Dynamic-Programming/Equal/main.hs
gpl-2.0
687
0
15
236
308
163
145
20
1
fac :: (Integral a) => a -> a fac 0 = 1 fac x = x * fac (x - 1)
BenedictEggers/haskell
fac.hs
gpl-2.0
63
0
8
20
49
25
24
3
1
module PanRNA where import qualified Text.Parsec as P import qualified Text.Parsec.Token as T import Text.Parsec ((<?>), (<|>)) import Data.Maybe import Data.List import qualified Data.HashMap.Strict as HM import qualified Data.HashSet as HS import Debug.Trace data Tag = Tag String deriving Show data Sequence = Seque...
michael-sloma/panRNA
src/PanRNA.hs
gpl-2.0
6,256
0
14
1,904
2,549
1,316
1,233
135
2
---------------------------------------------------------------------------- -- | -- Module : Dates -- Copyright : (c) Simon Foster 2004 -- License : GPL version 2 (see COPYING) -- -- Maintainer : aca01sdf@shef.ac.uk -- Stability : experimental -- Portability : non-portable (ghc >= 6 only) -- -- An...
twopoint718/haifa
src/Dates.hs
gpl-2.0
3,364
0
12
553
774
447
327
41
1
-- grid is a game written in Haskell -- Copyright (C) 2018 karamellpelle@hotmail.com -- -- This file is part of grid. -- -- grid 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 Lice...
karamellpelle/grid
source/Game/Run/Output/Fancy/SoundRun.hs
gpl-3.0
1,150
0
10
205
122
73
49
13
1
import Src.Model.Employee import Src.Model.Store import qualified Src.Model.SecureEmployee as SE import Src.Model.Credential import Src.IO.JSONHandler import Src.IO.TestIOFunctions import Security.SecureFlow import qualified Security.SecureComputation as SC import Security.ThreeLevels import Security.Unsecure import Da...
mdipirro/haskell-secure-types
app/Main.hs
gpl-3.0
6,168
0
22
2,806
1,322
645
677
89
7
module Logic.DatalogC.Fresh where import Control.Applicative import Control.Arrow (second) import Control.Monad.State import Logic.General.Entities type Fresh = (String, Integer) type FreshState = State Fresh freshVar :: Fresh -> E freshVar (prefix, n) = Variable $ prefix ++ show n next :: FreshState () next = modi...
bogwonch/SecPAL
src/Logic/DatalogC/Fresh.hs
gpl-3.0
401
0
7
65
136
78
58
13
1
average :: Fractional a => Int -> Stream a -> a average n stm = (sumS n stm) / (fromIntegral n)
hmemcpy/milewski-ctfp-pdf
src/content/3.7/code/haskell/snippet23.hs
gpl-3.0
95
0
8
20
52
25
27
2
1
{-# LANGUAGE FlexibleContexts #-} -- | -- Copyright : (c) 2010-2012 Benedikt Schmidt & Simon Meier -- License : GPL v3 (see LICENSE) -- -- Maintainer : Benedikt Schmidt <beschmi@gmail.com> -- -- AC unification based on maude and free unification. module Term.Unification ( -- * Unification modulo AC unifyLT...
ekr/tamarin-prover
lib/term/src/Term/Unification.hs
gpl-3.0
9,746
0
19
2,825
2,811
1,465
1,346
181
12
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-bigquery/gen/Network/Google/Resource/BigQuery/RowAccessPolicies/List.hs
mpl-2.0
4,988
0
19
1,212
651
381
270
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/Accounts/Listlinks.hs
mpl-2.0
6,402
0
21
1,577
1,004
577
427
141
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Update.hs
mpl-2.0
6,932
0
23
1,761
1,095
634
461
159
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-compute/gen/Network/Google/Resource/Compute/TargetTCPProxies/Get.hs
mpl-2.0
3,660
0
15
812
393
237
156
67
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-dns/gen/Network/Google/Resource/DNS/DNSKeys/List.hs
mpl-2.0
4,852
0
18
1,196
658
386
272
100
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-apps-tasks/gen/Network/Google/Resource/Tasks/TaskLists/Delete.hs
mpl-2.0
2,760
0
14
647
311
190
121
50
1
import Data.List dropEvery n x = [x | x <- x, x `mod` n /= 0 ]
nstarke/icc13-introduction-to-haskell
ex16.hs
lgpl-3.0
63
0
8
17
41
22
19
2
1
module Game where import qualified Data.Map.Strict as M import qualified Data.Aeson as Ae import qualified Data.ByteString.Lazy.Char8 as BS8 import Data.List (isPrefixOf, union) import Data.List.Split (splitOn) import Data.Maybe (listToMaybe, fromMaybe, mapMaybe) import Data.String (fromString) i...
gizmo-mk0/kartofwar-server
src/Game.hs
unlicense
9,209
0
16
2,677
2,402
1,250
1,152
184
5
module X_2012_01_29_unicode where {- Created : 2014 Oct 07 (Tue) 08:53:35 by Harold Carr. Last Modified : 2015 Sep 01 (Tue) 14:48:43 by Harold Carr. 2012-01-29 http://www.haskellforall.com/2012/01/haskell-for-engineers-unicode.html UNICODE {-# LANGUAGE UnicodeSyntax #-} http://en.wikipedia.org/wiki/Unicode_inp...
haroldcarr/learn-haskell-coq-ml-etc
haskell/topic/general/haskellforall/src/X_2012_01_29_unicode.hs
unlicense
326
0
2
43
5
4
1
1
0
-- Symbiotic - math library including linear algebra package, graphs package, and virtual database. -- @author Jiangcheng Oliver Chu module Symbiotic ( rref , rrefi , transpose , countRows , countCols , mul , mul' , wellFormed , add , elemMul , elementWise , sub , divide , scale , newMatrix , newVector , cross , dot ) ...
Carrotlord/matrix-library
symbolic.hs
apache-2.0
7,285
0
16
1,890
3,689
1,974
1,715
171
2
-- http://www.codewars.com/kata/529e2e1f16cb0fcccb000a6b module Split where splitInteger :: Int -> Int -> [Int] splitInteger n p = replicate (p-r) q ++ replicate r (q+1) where (q, r) = quotRem n p
Bodigrim/katas
src/haskell/6-Almost-Even.hs
bsd-2-clause
199
0
8
32
78
42
36
4
1
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable, KindSignatures, NoMonomorphismRestriction, TupleSections, OverloadedStrings, ScopedTypeVariables, FlexibleContexts, GeneralizedNewtypeDeriving, Rank2Types, GADTs, LambdaCase, ViewPatterns, OverloadedStrings #-} {-# OPT...
christiaanb/DepCore
Test.hs
bsd-2-clause
31,990
0
25
11,652
15,096
7,598
7,498
702
8
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} -------------------------------------------------------------------- -- | -- Copyright : (c) Edward Kmett and Dan Doel 2013-2014 -- License : BSD3 -- Maintainer: Edward Kmett <ekme...
ekmett/ermine
src/Ermine/Syntax/Id.hs
bsd-2-clause
2,050
0
12
362
480
265
215
56
0
module Traffic where import Data.Map (Map) import qualified Data.Map as M import Data.List (sortBy) import Data.Maybe (fromJust) import Data.Ord (comparing) import System.Random import Text.Printf import Test.QuickCheck import Debug.Trace type Position = (Double,Double) type Speed = Double type Route = Map (Locati...
fffej/haskellprojects
traffic/Traffic.hs
bsd-2-clause
5,666
0
14
1,509
2,080
1,117
963
107
1
-- Copyright (c) 2017, Travis Bemann -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- o Redistributions of source code must retain the above copyright notice, this -- list of conditio...
tabemann/amphibian
src/Network/IRC/Client/Amphibian/IRCConnection.hs
bsd-3-clause
28,915
0
22
6,612
6,095
2,957
3,138
555
16
-- | Specialized versions of the general functions in -- Text.PrettyPrint.Annotated.HughesPJ. Normally you shouldn't need these, but -- they might help if ambiguities arise. module Text.PrettyPrint.Annotated.String ( -- * The document type Doc, TextDetails(..), AnnotDetails(..), -- * Construc...
ddssff/pretty-listlike
src/Text/PrettyPrint/Annotated/String.hs
bsd-3-clause
3,377
0
11
908
594
376
218
65
1
module HLearn.Optimization.Amoeba where import Control.Monad import Control.Monad.ST import Data.List import Debug.Trace import qualified Data.Vector as V import qualified Data.Vector.Mutable as VM import qualified Data.Vector.Storable as VS import qualified Data.Vector.Storable.Mutable as VSM import qualified Dat...
ehlemur/HLearn
src/HLearn/Optimization/Amoeba.hs
bsd-3-clause
3,542
0
22
1,234
1,228
656
572
-1
-1
{-# LANGUAGE MagicHash #-} module System.Random.Mersenne.Pure64.Internal ( PureMT(..) , blockLen , blockSize , MTBlock(..) ) where import GHC.Exts import System.Random.Mersenne.Pure64.Base -- | 'PureMT', a pure mersenne twister pseudo-random number generator -- data PureMT = PureMT {-# UNPACK #-} !MTBlock...
bgamari/mersenne-random-pure64
System/Random/Mersenne/Pure64/Internal.hs
bsd-3-clause
440
0
7
77
92
57
35
12
0
{-| Module : Database.Relational.As Description : Definition of AS. Copyright : (c) Alexander Vieth, 2015 Licence : BSD3 Maintainer : aovieth@gmail.com Stability : experimental Portability : non-portable (GHC only) -} {-# LANGUAGE AutoDeriveTypeable #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE DataKinds #-} {...
avieth/Relational
Database/Relational/As.hs
bsd-3-clause
720
0
8
148
75
50
25
12
0
-- powerseries.hs module MPS.Math.PowerSeries (PowerSeries (..), t, coeffsPS, coeffsPS', leadingPS, (~=), (*/), diagonalSumPS, inversePS, binomial1, (^%), binomialPS, expPS, log1PS, fromOGF, fibonacciOGF, catalanOGF, ramanujanTauOGF, fromEGF, bernoulliEGF, bellEGF) where ...
nfjinjing/mps
src/MPS/Math/PowerSeries.hs
bsd-3-clause
10,782
30
16
2,708
3,409
1,792
1,617
157
3
module Chap04 where -- | Ex 4.1 -- -- X \subseteq R \cap (S \cap T) -- = {- 交わりの普遍性 -} -- X \subseteq R /\ X \subseteq (S \cap T) -- = {- 交わりの普遍性 -} -- X \subseteq R /\ (X \subseteq S /\ X \subseteq T) -- = {- 連言は結合的 -} -- (X \subseteq R /\ X \subseteq S) /\ X \subseteq T -- = {- 交わりの普遍性 -} -- X \subseteq (R \cap...
cutsea110/aop
src/Chap04.hs
bsd-3-clause
16,358
0
2
3,777
564
563
1
1
0
{-# LANGUAGE OverloadedStrings #-} module Main where import Test.Tasty import Test.Tasty.HUnit import Text.Hastache import qualified Trurl as T import qualified SimpleParams as S main :: IO () main = defaultMain tests tests :: TestTree tests = testGroup "Tests" [trurlTests, simplParamsTests] trurlTests :: TestTre...
DNNX/trurl
tests/Main.hs
bsd-3-clause
3,384
0
14
562
600
292
308
56
1
{-# LANGUAGE OverloadedStrings #-} module Kmip10Spec where import Ttlv.Data import Ttlv.Parser.Binary import Ttlv.Tag import Test.Hspec import Data.Either (isRight) import qualified Data.ByteString as B import qualified Data.ByteString.Base16 as B16 impo...
nymacro/hs-kmip
tests/Kmip10Spec.hs
bsd-3-clause
9,360
0
24
2,027
1,322
524
798
173
1
{-# LANGUAGE ExistentialQuantification #-} module Maxhbr.Types where import Text.Blaze.Html5 (Html) import Data.Text (Text) data NavEntry = NavEntry { navEntryTitle :: String , navEntryTarget :: String , navEntryChildren :: [NavEntry] , navOrderingIndex :: Int } deriving (Eq) instan...
maximilianhuber/maximilian-huber.de
src/Maxhbr/Types.hs
bsd-3-clause
1,372
0
9
319
384
231
153
47
0
{-# LANGUAGE JavaScriptFFI #-} {-# LANGUAGE OverloadedStrings #-} ----------------------------------------------------------------------------- -- | -- Module : Program.Controllers.GeoJSONFileImport -- Copyright : (c) Artem Chirkin -- License : MIT -- -- Maintainer : Artem Chirkin <chirkin@arch.ethz.ch>...
achirkin/ghcjs-modeler
src/Program/Controllers/GeoJSONFileImport.hs
bsd-3-clause
2,364
5
11
554
261
146
115
22
2
{-| Module : Operations.WithExternalSymbols Description : Contains all FA operations. Each operation uses the implicit alphabet. -} module Operations.Regular ( charsToSymbols , isMacrostateAccepting , run , module Operations.WithExternalSymbols , postForEachSymbol , union , productUnion...
jakubriha/automata
src/Operations/Regular.hs
bsd-3-clause
3,464
0
10
666
1,000
526
474
65
2
{-# LANGUAGE PackageImports #-} module Foreign.Storable (module M) where import "base" Foreign.Storable as M
silkapp/base-noprelude
src/Foreign/Storable.hs
bsd-3-clause
114
0
4
18
21
15
6
3
0
module Module4.Task1 where -- system code data Color = Red | Green | Blue -- solution code instance Show Color where show Red = "Red" show Green = "Green" show Blue = "Blue"
dstarcev/stepic-haskell
src/Module4/Task1.hs
bsd-3-clause
192
0
6
51
53
30
23
6
0
--------------------------------------------------------------------------------- -- | -- Module : Data.SBV.Bridge.Boolector -- Copyright : (c) Levent Erkok -- License : BSD3 -- Maintainer : erkokl@gmail.com -- Stability : experimental -- -- Interface to the Boolector SMT solver. Import this module i...
Copilot-Language/sbv-for-copilot
Data/SBV/Bridge/Boolector.hs
bsd-3-clause
5,395
0
14
1,467
716
409
307
60
1
module Exp.Test where -- $Id$ import Exp.Property import Autolib.Exp import Autolib.Exp.Einfach import Autolib.Exp.Sanity import Autolib.Reporter import Autolib.Reporter.Set import Autolib.ToDoc import Autolib.Reader import Autolib.Size import Autolib.Symbol tests ps exp = sequence_ $ do p <- ps ; return $ test p...
Erdwolf/autotool-bonn
src/Exp/Test.hs
gpl-2.0
1,253
4
15
349
412
200
212
35
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
kim/amazonka
amazonka-ec2/gen/Network/AWS/EC2/DescribeNetworkAcls.hs
mpl-2.0
6,320
0
10
1,254
625
399
226
66
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="bs-BA"> <title>Support for the Open API Specification | ZAP Extension</title> <maps> <homeI...
veggiespam/zap-extensions
addOns/openapi/src/main/javahelp/org/zaproxy/zap/extension/openapi/resources/help_bs_BA/helpset_bs_BA.hs
apache-2.0
1,000
80
66
164
423
214
209
-1
-1
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} module Handler.HomeSpec (spec) where import TestImport spec :: Spec spec = withApp $ do describe "Homepage" $ do it "loads the index and checks it looks right" $ do get HomeR statusIs 200 htmlAnyContain "h...
SaintOlga/FruitHools
test/Handler/HomeSpec.hs
apache-2.0
1,257
0
19
400
206
92
114
25
1