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 DeriveGeneric #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE TemplateHaskell #-} module Bones.Skeletons.BranchAndBound.HdpH.Types where import Control.Parallel.HdpH (Closure, Par, StaticDecl, declare, mkClosure, static) import GHC.Generics...
BlairArchibald/bones
lib/src/Bones/Skeletons/BranchAndBound/HdpH/Types.hs
bsd-3-clause
1,295
0
15
361
446
257
189
37
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.Ordinal.ET.Corpus ( corpus ) where import Prelude import D...
facebookincubator/duckling
Duckling/Ordinal/ET/Corpus.hs
bsd-3-clause
681
0
8
140
114
72
42
17
1
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} module Language.Haskell.GHC.ExactPrint.Types ( -- * Core Types Anns , emptyAnns , Annotation(..) , annNone ,...
mpickering/ghc-exactprint
src/Language/Haskell/GHC/ExactPrint/Types.hs
bsd-3-clause
8,397
0
18
2,065
1,862
1,004
858
144
15
{-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE NoImplicitPrelude #-} module Language.Fay.JQuery.Cookie where import Language.Fay.Prelude import Language.Fay.FFI data Cookie a = Cookie { cookieName :: String , cookieValue :: a , cookieExpires :: Maybe Double , cookiePath :: Maybe String } -- | Set a ...
faylang/fay-server
modules/library/Language/Fay/JQuery/Cookie.hs
bsd-3-clause
997
0
12
193
227
122
105
25
2
{-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeFamilies #-} module HVX.Internal.DCP ( Vex(..) , GetVex(getVex) , Mon(..) , GetMon(getMon) , ValidVex(validVex) , FlipVex , FlipMon , ApplyVex , ApplyMon , AddVex , AddMon ) where class GetVex (v :: Vex) where getVex :: e (v :: Vex) (m :: Mon) -> S...
chrisnc/hvx
src/HVX/Internal/DCP.hs
bsd-3-clause
2,838
0
10
780
884
482
402
77
0
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} module Handler.Download where import qualified Data.Text as Text import qualified Data.Text.Encoding as Text import Yesod import Foundation getDownloadR :: Int -> Handler TypedContent getDownloadR ident = do Store...
grauwoelfchen/cowberry
Handler/Download.hs
bsd-3-clause
536
0
10
84
113
62
51
14
1
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveTraversable #-} module Language.Lambda.Syntax.Named.Exp ( Exp (Var,App,Lam,Let) -- , bound -- , free , uname , name , fold , gFold , (#) , (!) ) where #if __GLASGOW_HASKEL...
julmue/UntypedLambda
src/Language/Lambda/Syntax/Named/Exp.hs
bsd-3-clause
2,682
0
12
839
1,399
715
684
85
4
{-# LANGUAGE FlexibleContexts, Rank2Types #-} module Rede.SpdyProtocol.Session( -- trivialSession basicSession -- ,showHeadersIfPresent ) where import Control.Concurrent (forkIO) import Control.Monad.IO.Class (liftIO) import Control.M...
loadimpact/http2-test
hs-src/Rede/SpdyProtocol/Session.hs
bsd-3-clause
36,820
0
28
12,370
9,174
5,281
3,893
590
11
instance Pointed Point where point = Point instance MonadStep Point where type SS Point = Point step f xs = xs >>= f
davdar/quals
writeup-old/sections/04MonadicAAM/02RecoveringConcrete/03PointMonadStep.hs
bsd-3-clause
123
0
6
29
45
23
22
-1
-1
{-# LANGUAGE FlexibleContexts, FlexibleInstances #-} module Instances where import Prelude as P import Control.Applicative import Test.QuickCheck import Test.QuickCheck.Arbitrary import Data.SparseVector import qualified Data.Vector as V import Data.Vector (Vector) instance Arbitrary a => Arbitrary (Vector a) wher...
copumpkin/vector-sparse
tests/Instances.hs
bsd-3-clause
1,439
0
10
257
134
78
56
13
0
{-# LANGUAGE OverloadedStrings #-} ----------------------------------------------------------------------------- -- | -- Module : Hasmin.Parser.Internal -- Copyright : (c) 2017 Cristian Adrián Ontivero -- License : BSD3 -- Stability : experimental -- Portability : unknown -- -------------------------------...
contivero/hasmin
src/Hasmin/Parser/Internal.hs
bsd-3-clause
13,226
0
17
3,401
2,383
1,245
1,138
184
3
{-# language QuasiQuotes #-} {-# language TemplateHaskell #-} module OpenCV.Internal.Core.Types.Vec.TH ( mkVecType ) where import "base" Data.List ( intercalate ) import "base" Data.Monoid ( (<>) ) import "base" Foreign.Marshal.Alloc ( alloca ) import "base" Foreign.Storable ( peek ) import "base" System.IO.Unsaf...
Cortlandd/haskell-opencv
src/OpenCV/Internal/Core/Types/Vec/TH.hs
bsd-3-clause
6,443
0
22
2,813
1,395
780
615
-1
-1
module Network.Riak.HTTP.JSON (put, tryPut, putWithRandomKey, putWithIndexes, get, defaultClient) where import Network.Riak.HTTP.Types import Network.Riak.HTTP.Internal import Network.HTTP import Data.Aeson import Data.ByteString.Lazy (ByteString(..)) import qualified Data.ByteString.Lazy.Char8 as BLC put :: (ToJ...
ThoughtLeadr/Riak-Haskell-HTTP-Client
src/Network/Riak/HTTP/JSON.hs
bsd-3-clause
1,316
0
14
269
456
245
211
25
1
-- | Equations. {-# LANGUAGE TypeFamilies #-} module Twee.Equation where import Twee.Base import Control.Monad -------------------------------------------------------------------------------- -- * Equations. -------------------------------------------------------------------------------- data Equation f = (:=:) { ...
nick8325/kbc
src/Twee/Equation.hs
bsd-3-clause
1,895
8
12
389
616
316
300
34
1
data Cartesian = Cartesian Double Double deriving Show mulC :: Cartesian -> Double -> Cartesian mulC (Cartesian x y) n = Cartesian (x * n) (y * n) point1 :: Cartesian point1 = Cartesian 8 5 data Polar = Polar Double Double deriving Show mulP :: Polar -> Double -> Polar mulP (Polar d r) n = Polar (d * n) r point2 :...
YoshikuniJujo/funpaala
samples/21_adt/cpd.hs
bsd-3-clause
355
0
7
77
159
84
75
10
1
----------------------------------------------------------------------------- -- | -- Module : Main (HaddockCoverage) -- Copyright : (C) 2015 Ivan Perez -- License : BSD-style (see the file LICENSE) -- Maintainer : Ivan Perez <ivan.perez@keera.co.uk> -- Stability : provisional -- Portability : porta...
ivanperez-keera/Yampa
yampa/tests/HaddockCoverage.hs
bsd-3-clause
3,394
0
14
656
574
317
257
42
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. module Duckling.Dimensions.KM ( allDimensions ) where import Duckling.Dimensions.Types allDimensions :: [Se...
facebookincubator/duckling
Duckling/Dimensions/KM.hs
bsd-3-clause
461
0
6
90
75
44
31
11
1
module Experiment (experiment, generators) where import Data.Monoid import Control.Arrow import Simulation.Aivika import Simulation.Aivika.Experiment import Simulation.Aivika.Experiment.Chart import qualified Simulation.Aivika.Results.Transform as T -- | The simulation specs. specs = Specs { spcStartTime = 0.0, ...
dsorokin/aivika-experiment-chart
examples/PortOperations/Experiment.hs
bsd-3-clause
2,683
0
9
531
510
293
217
56
1
-- |Some common functions that are available to all hasp programs by default. -- -- Note that this does not include syntactic forms such as if, define, lambda, -- and and (since they require behaviour such as short circuiting and mutation -- that are not available to hasp functions), as well as standard library -- func...
aldld/hasp
src/Builtins.hs
bsd-3-clause
5,719
0
13
1,573
2,288
1,202
1,086
138
5
-- | The type of tile kinds. Every terrain tile in the game is -- an instantiated tile kind. module Game.LambdaHack.Content.TileKind ( pattern S_UNKNOWN_SPACE, pattern S_UNKNOWN_OUTER_FENCE, pattern S_BASIC_OUTER_FENCE, pattern AQUATIC , TileKind(..), ProjectileTriggers(..), Feature(..) , makeData , isUknownSpa...
LambdaHack/LambdaHack
definition-src/Game/LambdaHack/Content/TileKind.hs
bsd-3-clause
10,569
5
20
2,923
1,856
1,039
817
-1
-1
module Action where import Storage import Glue generateSolutions :: IO () generateSolutions = do prepareDB dbName mRest <- dbDo getRest case mRest of Nothing -> do (sols, rest) <- return $ firstSolutions 1 dbDo (addSolutions sols) dbDo (replaceRest rest) Just rest -> do (sols, ne...
Stulv/sudoku
src/Action.hs
bsd-3-clause
944
0
14
202
344
159
185
31
2
module Data.Geo.GPX.Lens.HdopL where import Data.Lens.Common class HdopL a where hdopL :: Lens a (Maybe Double)
tonymorris/geo-gpx
src/Data/Geo/GPX/Lens/HdopL.hs
bsd-3-clause
117
0
9
20
40
23
17
4
0
{-# LANGUAGE ScopedTypeVariables #-} module SplitBill where import Control.Exception import Control.Monad import Data.Char import Data.Decimal import System.Directory import System.Environment import System.FilePath import System.IO import qualified Data.Map as Map -- | `AnswersMap` binds textual answers to values ...
Minoru/split-bill-hs
src/SplitBill.hs
bsd-3-clause
9,743
0
16
2,592
2,198
1,141
1,057
203
12
{-# OPTIONS_HADDOCK hide, prune #-} module Import.NoFoundation ( module Import ) where import ClassyPrelude.Yesod as Import hiding (race_) import Model as Import import Settings as Import import Settings.StaticFiles as Import import Yesod.Auth as Import import Yesod.C...
mb21/qua-kit
apps/hs/qua-server/src/Import/NoFoundation.hs
mit
396
0
5
100
71
51
20
10
0
module TestDemoNeuron where import Test.Hspec import AI.DemoNeuron import TestNeuron testDemoNeuron :: IO () testDemoNeuron = hspec $ do describe "Reduced Neuron" $ it "should pass tests" $ True `shouldBe` True describe "L2 Neuron" $ it "should pass tests" $ True `shouldBe` True
jbarrow/LambdaNet
test/TestDemoNeuron.hs
mit
308
0
11
70
82
43
39
12
1
{-# LANGUAGE RecordWildCards #-} -- | Logic of application and verification of data in Poll. module Pos.DB.Update.Poll.Logic.Apply ( verifyAndApplyUSPayload , verifyAndApplyProposal , verifyAndApplyVoteDo ) where import Universum hiding (id) import Control.Monad.Excep...
input-output-hk/pos-haskell-prototype
db/src/Pos/DB/Update/Poll/Logic/Apply.hs
mit
18,113
0
18
4,939
3,363
1,729
1,634
-1
-1
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft } func = do let foo True = True foo _ = False return ()
lspitzner/brittany
data/Test493.hs
agpl-3.0
180
0
10
37
35
16
19
5
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="sl-SI"> <title>&gt;Run Applications | ZAP Extensions</title> <maps> <homeID>top</homeID> ...
veggiespam/zap-extensions
addOns/invoke/src/main/javahelp/org/zaproxy/zap/extension/invoke/resources/help_sl_SI/helpset_sl_SI.hs
apache-2.0
983
78
55
160
421
212
209
-1
-1
-- | Miscellaneous string manipulation functions. -- module Hakyll.Core.Util.String ( trim , replaceAll , splitAll ) where import Data.Char (isSpace) import Data.Maybe (listToMaybe) import Text.Regex.TDFA ((=~~)) -- | Trim a string (drop spaces, tabs and newlines at both sides). -- trim :: String -> ...
sol/hakyll
src/Hakyll/Core/Util/String.hs
bsd-3-clause
1,466
0
15
457
366
201
165
30
2
{-# LANGUAGE CPP #-} module Data.Streaming.FilesystemSpec (spec) where import Test.Hspec import Data.Streaming.Filesystem import Control.Exception (bracket) import Data.List (sort) #if !WINDOWS import System.Posix.Files (removeLink, createSymbolicLink, createNamedPipe) import Control.Exception (bracket, try, IOExcepti...
phadej/streaming-commons
test/Data/Streaming/FilesystemSpec.hs
mit
2,234
0
18
735
639
306
333
54
1
{- portable environment variables - - Copyright 2013 Joey Hess <joey@kitenet.net> - - License: BSD-2-clause -} {-# LANGUAGE CPP #-} module Utility.Env where #ifdef mingw32_HOST_OS import Utility.Exception import Control.Applicative import Data.Maybe import qualified System.Environment as E import qualified Syst...
avengerpenguin/propellor
src/Utility/Env.hs
bsd-2-clause
2,003
0
10
365
452
259
193
22
1
{-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Unittests for the LV Parser -} {- Copyright (C) 2013 Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistri...
andir/ganeti
test/hs/Test/Ganeti/Storage/Lvm/LVParser.hs
bsd-2-clause
4,731
0
26
1,025
616
342
274
82
1
{-# LANGUAGE OverloadedStrings #-} module ListTeamsForOrganization where import qualified Github.Auth as Github import qualified Github.Organizations.Teams as Github import System.Environment (getArgs) main = do args <- getArgs result <- case args of [team, token] -...
beni55/github
samples/Organizations/Teams/ListTeamsForOrganization.hs
bsd-3-clause
637
0
15
187
157
83
74
14
4
{-# OPTIONS_HADDOCK hide #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.GLboolean -- Copyright : (c) Sven Panne 2002-2013 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable --...
hesiod/OpenGL
src/Graphics/Rendering/OpenGL/GL/GLboolean.hs
bsd-3-clause
940
0
8
132
119
74
45
10
2
module Aws.S3.Commands.DeleteObject where import Aws.Core import Aws.S3.Core import Data.ByteString.Char8 ({- IsString -}) import qualified Data.Text as T import qualified Data.Text.Encoding as T data DeleteObject = DeleteObject { doObjectName :: T.Text, ...
frms-/aws
Aws/S3/Commands/DeleteObject.hs
bsd-3-clause
1,624
1
11
578
282
166
116
-1
-1
-- The intention is that this will be the new unit test framework. -- Please add any working tests here. This file should do nothing -- but import tests from other modules. -- -- Stephen Blackheath, 2009 module Main where import PackageTests.BenchmarkExeV10.Check import PackageTests.BenchmarkOptions.Check import Pac...
DavidAlphaFox/ghc
libraries/Cabal/Cabal/tests/PackageTests.hs
bsd-3-clause
8,160
0
14
1,351
1,473
842
631
135
4
module Type1 where data Data a = C1 a Int Char | C2 Int | C3 Float f :: Data a -> Int f (C1 a b c) = b f (C2 a) = a f (C3 a) = 42 (C1 (C1 x y z) b c) = 89
kmate/HaRe
old/testing/removeField/Type1.hs
bsd-3-clause
194
2
8
88
114
60
54
9
1
module Test2 () where {-@ predicate CyclicC1 Q = CyclicC2 Q && CyclicC3 Q @-} {-@ predicate CyclicC2 Q = CyclicC1 Q @-} {-@ predicate CyclicC3 Q = CyclicC1 Q @-}
abakst/liquidhaskell
tests/crash/CyclicPredAlias2.hs
bsd-3-clause
164
0
3
33
10
8
2
1
0
module Plugins ( FrontendPlugin(..), defaultFrontendPlugin, Plugin(..), CommandLineOption, defaultPlugin ) where import CoreMonad ( CoreToDo, CoreM ) import TcRnTypes ( TcPlugin ) import GhcMonad import DriverPhases -- | Command line options gathered from the -PModule.Name:stuff syntax -- are given t...
tjakway/ghcjvm
compiler/main/Plugins.hs
bsd-3-clause
1,772
0
12
350
237
148
89
21
1
{-# LANGUAGE TypeFamilyDependencies #-} module T6018failclosed2 where -- this one is a strange beast. Last equation is unreachable and thus it is -- removed. It is then impossible to typecheck barapp and thus we generate an -- error type family Bar a = r | r -> a where Bar Int = Bool Bar Bool = Int Bar ...
olsner/ghc
testsuite/tests/typecheck/should_fail/T6018failclosed2.hs
bsd-3-clause
398
0
6
97
83
48
35
10
1
-- 0xbf is an invalid character bad = '¿'
wxwxwwxxx/ghc
testsuite/tests/parser/unicode/utf8_011.hs
bsd-3-clause
42
0
4
9
7
4
3
1
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANG...
ogma-project/ogma
src/Web/Ogma/Api.hs
mit
4,325
0
17
1,223
1,530
779
751
92
0
main :: IO () main = do putStrLn "Ingrese un numero" numeroStr <- getLine putStrLn "Ingrese una potencia" potenciaStr <- getLine let numero = read numeroStr :: Int potencia = read potenciaStr :: Int putStrLn $ show $ exponente numero potencia where exponente :: Int -> Int ...
clinoge/primer-semestre-udone
src/05-ciclos/exponente.hs
mit
534
0
10
181
194
94
100
15
3
{-# htermination (fsEsFloat :: Float -> Float -> MyBool) #-} import qualified Prelude data MyBool = MyTrue | MyFalse data List a = Cons a (List a) | Nil data Float = Float MyInt MyInt ; data MyInt = Pos Nat | Neg Nat ; data Nat = Succ Nat | Zero ; primEqNat :: Nat -> Nat -> MyBool; primEqNat Zero Zero ...
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/SLASHEQ_5.hs
mit
1,940
0
9
415
905
479
426
47
1
module NLP.Senna.Foreign.Types where import Foreign type CSenna = Ptr ()
slyrz/hase
src/NLP/Senna/Foreign/Types.hs
mit
76
0
6
13
22
14
8
3
0
{-# LANGUAGE LambdaCase #-} {-@ fooMap :: _ -> i:[a] -> {o:[b] | (len i) = (len o)} @-} fooMap :: (a -> b) -> [a] -> [b] fooMap f = \case [] -> [] l -> map f l
santolucito/ives
tests/Foo.hs
mit
167
0
8
47
60
32
28
5
2
module Language.FA ( driverDFA, driverNFA, trimUnreachableStates, minimizeDFA, replaceStatesDFA, replaceStatesNFA, nubStatesDFA, nubStatesNFA, collectState, collectStates, collect, dfa2nfa, nfa2dfa, -- NFA epsilonClosure, undistinguishableStates,...
banacorn/formal-language
haskell-legacy/Language/fa.hs
mit
14,187
0
15
4,025
4,547
2,422
2,125
236
4
import Data import Data.Elements ( MasyuPearl (..), Thermometer, ) import qualified Data.Grid as Grid import Data.Grid import Data.GridShape import qualified Data.GridShapeSpec import qualified Data.GridSpec import Data.List (sort) import qualified Data.Map.Strict as Map import Data.Pyramid (PyramidSol (..)) im...
robx/puzzle-draw
tests/tests.hs
mit
9,424
0
15
2,691
3,595
2,120
1,475
262
1
module Test.MLP(test) where import Data.MLP as P import qualified Data.DNN.Trainer as T import qualified Data.Matrix as M --utils import Control.Monad.Identity(runIdentity) import Control.Monad(forever,when,foldM) --test modules import System.Exit (exitFailure) import Test.QuickCheck(verboseCheckWithResult) import T...
aeyakovenko/rbm
Test/MLP.hs
mit
6,475
0
18
1,916
3,179
1,716
1,463
156
2
{-# LANGUAGE CPP, DeriveDataTypeable, FlexibleContexts,OverloadedStrings, GeneralizedNewtypeDeriving, MultiParamTypeClasses, NoImplicitPrelude , TemplateHaskell, TypeFamilies, RecordWildCards, DeriveGeneric, DeriveDataTypeable #-} module Tach.Acid.Impulse.Cruds.Types where import CorePrelude import qualified Da...
smurphy8/tach
core-libs/tach-acid-impulse-lib/src/Tach/Acid/Impulse/Cruds/Types.hs
mit
902
0
8
108
162
96
66
13
0
--marySue :: Maybe Bool marySue = do k <- Just 9 Just (k>8)
RAFIRAF/HASKELL
A Fistful of Monads/mary.hs
mit
65
0
9
18
30
14
16
3
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-applicationconfiguration.html module Stratosphere.ResourceProperties.KinesisAn...
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/KinesisAnalyticsV2ApplicationApplicationConfiguration.hs
mit
6,799
0
12
350
509
296
213
47
1
module P004 where import Euler solution :: EulerType solution = Left $ foldl ( \m a -> foldMaybe ( \m b -> let c = a * b in if c <= m then Nothing else if pal c then Just c else Just m ) m [999, (if a `divides` 11 then 998 else 988) .. a] ) 0 [999, 998 .. 100] main = printEuler solution...
Undeterminant/euler-haskell
P004.hs
cc0-1.0
321
14
16
101
156
87
69
12
4
module ControlPassesSpec where import Ohua.Prelude import Ohua.ALang.Lang import Ohua.ALang.PPrint (quickRender) import Ohua.ALang.Passes (normalize) import Ohua.ALang.Passes.If (ifRewrite) import Ohua.Test (embedALang, showWithPretty) import Test.Hspec runPass pass expr = runSilentLoggingT $ runFromExpr def pas...
ohua-dev/ohua-core
tests/src/ControlPassesSpec.hs
epl-1.0
3,489
0
11
1,622
186
106
80
-1
-1
{-@ LIQUID "--pruneunsorted" @-} -- | Formats Haskell source code using HTML with font tags. module Language.Haskell.HsColour.HTML ( hscolour , top'n'tail -- * Internals , renderAnchors, renderComment, renderNewLinesAnchors, escape ) where {-@ LIQUID "--totality" @-} import Language.Haskell.HsC...
nikivazou/hscolour
Language/Haskell/HsColour/HTML.hs
gpl-2.0
3,589
0
15
813
1,097
582
515
74
2
{-# LANGUAGE LambdaCase #-} -- | -- Most of the code is borrowed from -- <http://haskell.1045720.n5.nabble.com/darcs-patch-GenT-monad-transformer-variant-of-Gen-QuickCheck-2-td3172136.html a mailing list discussion>. -- Therefor, credits go to Paul Johnson and Felix Martini. module Sara.TestUtils.GenT where import q...
Lykos/Sara
tests/Sara/TestUtils/GenT.hs
gpl-3.0
6,204
0
15
1,451
2,278
1,174
1,104
109
3
import Data.Maybe import Distribution.PackageDescription import Distribution.Simple import Distribution.Simple.LocalBuildInfo import Distribution.Simple.Program import Distribution.Simple.Setup import Distribution.Verbosity import System.Di...
kvnesterov/IdaHaskell
Setup.hs
gpl-3.0
5,029
0
16
1,406
1,111
558
553
95
4
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, TemplateHaskell, NoMonomorphismRestriction, ViewPatterns, TypeOperators, FlexibleContexts, TypeFamilies #-} {-# OPTIONS -Wall #-} module EdgeCentered( module Triangulation, module SimplicialPartialQuotient, EdgeNeighborhoodVertex(..), makeEdgeNeighb...
DanielSchuessler/hstri
EdgeCentered.hs
gpl-3.0
4,359
0
23
1,419
892
473
419
94
2
-- Copyright (c) 2015, Sven Thiele <sthiele78@gmail.com> -- This file is part of hasple. -- hasple 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 option) an...
sthiele/hasple
Test.hs
gpl-3.0
5,421
0
34
1,359
1,464
748
716
148
2
-- | Tests main module Main where import qualified MagneturiTests as Muri import qualified BencodeTests as Benc import qualified MetainfoTests as Minfo main :: IO () main = do Muri.tests Minfo.tests Benc.tests
vu3rdd/functorrent
test/Main.hs
gpl-3.0
220
0
7
42
53
33
20
9
1
{-| Module : Videotex Description : Copyright : (c) Frédéric BISSON, 2014 License : GPL-3 Maintainer : zigazou@free.fr Stability : experimental Portability : POSIX -} module Minitel.Type.Videotex ( MColor , ToMColor (toMColor) , Color (Black, Red, Green, Yellow, Blue, Magenta, Cyan, White) , Grey (Grey...
Zigazou/HaMinitel
src/Minitel/Type/Videotex.hs
gpl-3.0
3,111
0
8
889
536
350
186
75
0
module XMonad.Hooks.DynamicLog.PrettyPrinter.PrettyLog where import XMonad.Hooks.DynamicLog.PrettyPrinter.DynamicLog
Fizzixnerd/xmonad-config
site-haskell/src/XMonad/Hooks/DynamicLog/PrettyPrinter/PrettyLog.hs
gpl-3.0
119
0
4
7
17
13
4
2
0
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE QuasiQuotes #-} -- | TODO we need to fix the start symbol (not that important, from whatever -- non-terminal we read the final result, make said non-terminal the start -- symbol. module Main...
choener/GrammarProducts
old/MultiAlign.hs
gpl-3.0
4,924
0
10
1,212
429
249
180
34
1
{-# LANGUAGE PatternGuards #-} {-# LANGUAGE NoMonomorphismRestriction #-} -- | -- -- local TODO list -- -- - build sstree -- - have diagrams running -- - be able to draw overlapped secondary structures -- - implement algorithm for being free of overlaps -- -- TODO we are repeating a lot of existing code for the sake o...
choener/RNAdraw
RNAdraw.hs
gpl-3.0
13,512
0
14
2,768
2,347
1,331
1,016
122
2
-- 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/Grid/GridWorld/CameraCommand.hs
gpl-3.0
4,972
0
9
1,350
803
489
314
122
1
module Database.Design.Ampersand ( -- Data Constructors: A_Context , P_Context(..), P_Population(..), PairView(..), PairViewSegment(..), SrcOrTgt(..), P_Rule(..), Term(..), TermPrim(..), P_NamedRel(..), P_Sign(..), P_Concept(..), P_Declaration(..), P_Pattern(..), P_Gen(..) , P_Markup(..), PRef2Obj(..), PP...
guoy34/ampersand
src/Database/Design/Ampersand.hs
gpl-3.0
3,826
0
5
632
1,021
730
291
93
0
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-jobs/gen/Network/Google/Resource/Jobs/Projects/Jobs/SearchForAlert.hs
mpl-2.0
6,479
0
17
1,435
796
470
326
118
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-admin-directory/gen/Network/Google/Resource/Directory/ChromeosDevices/Action.hs
mpl-2.0
3,883
0
18
945
477
283
194
79
1
{-# 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/Entitlements/List.hs
mpl-2.0
4,398
0
17
1,061
662
382
280
93
1
{- ORMOLU_DISABLE -} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE LambdaCase #-} module GoldenSpec.Util (golden) where import Control.Monad.IO.Class (liftIO) import Graphics.Implicit (SymbolicObj3, writeSTL) import Prelude (IO, FilePath, Bool (True, False), String, Double, pure, (==), readFile, writeFile, (>>=), (<>)...
colah/ImplicitCAD
tests/GoldenSpec/Util.hs
agpl-3.0
2,449
0
17
447
419
236
183
32
3
module Network.Haskoin.Node.Bloom ( BloomFlags(..) , BloomFilter(..) , FilterLoad(..) , FilterAdd(..) , bloomCreate , bloomInsert , bloomContains , isBloomValid , isBloomEmpty , isBloomFull ) where import Control.Monad (replicateM, forM_) import Control.DeepSeq (NFData, rnf) import Data.Word import Data.Bits import D...
tphyahoo/haskoin
haskoin-core/Network/Haskoin/Node/Bloom.hs
unlicense
7,638
0
13
1,958
1,655
900
755
148
1
{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE PackageImports #-} {-# LANGUAGE ScopedTypeVariables #-} module HW07_Editor where import System.IO import HW07_Buffer import Control.Exception import "mtl" Control.Monad.State import Control....
haroldcarr/learn-haskell-coq-ml-etc
haskell/course/2014-06-upenn/cis194/src/HW07_Editor.hs
unlicense
3,946
0
14
1,285
1,421
714
707
106
2
{-# LANGUAGE RecordWildCards, NamedFieldPuns, BangPatterns #-} module SSync.RollingChecksum ( RollingChecksum , init , value , value16 , forBlock , roll ) where import Prelude hiding (init) import Data.Bits (shiftR, shiftL, xor, (.&.)) import Data.ByteString (ByteString) import qualified Data.ByteString as BS impor...
socrata-platform/ssync
src/main/haskell/SSync/RollingChecksum.hs
apache-2.0
2,513
0
15
572
752
414
338
51
1
{-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Unittests for ganeti-htools. -} {- Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following condit...
apyrgio/snf-ganeti
test/hs/Test/Ganeti/Rpc.hs
bsd-2-clause
4,509
0
14
680
771
414
357
65
1
module Data.Drasil.Software.Products where import Language.Drasil import Utils.Drasil import Data.Drasil.Concepts.Documentation (game, video, open, source) import Data.Drasil.Concepts.Computation (computer) import Data.Drasil.Concepts.Software (program) import Data.Drasil.IdeaDicts prodtcon :: [NamedChunk] prodtcon...
JacquesCarette/literate-scientific-software
code/drasil-data/Data/Drasil/Software/Products.hs
bsd-2-clause
744
0
7
107
182
110
72
17
1
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeSynonymInstances #-} module Database.Sqroll.Table ( -- * Types Table (..) , NamedTable (..) , FieldInfo (..) -- * Creating tables , namedTable , field ...
pacak/sqroll
src/Database/Sqroll/Table.hs
bsd-3-clause
7,280
0
19
2,115
2,667
1,358
1,309
161
4
{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.Sandbox -- Maintainer : cabal-devel@haskell.org -- Portability : portable -- -- UI for the sandboxing functionality. ----------------------------------------------------------...
ian-ross/cabal
cabal-install/Distribution/Client/Sandbox.hs
bsd-3-clause
37,321
0
19
10,127
5,810
3,045
2,765
546
6
module Lang.Php.Ast.Stmt ( module Lang.Php.Ast.StmtParse, module Lang.Php.Ast.StmtTypes, module Lang.Php.Ast.StmtUnparse ) where import Lang.Php.Ast.StmtParse import Lang.Php.Ast.StmtTypes import Lang.Php.Ast.StmtUnparse
facebookarchive/lex-pass
src/Lang/Php/Ast/Stmt.hs
bsd-3-clause
230
0
5
26
55
40
15
7
0
module Instruction ( RegUsage(..), noUsage, GenBasicBlock(..), blockId, ListGraph(..), NatCmm, NatCmmDecl, NatBasicBlock, topInfoTable, entryBlocks, Instruction(..) ) where import GhcPrelude import Reg import GHC.Cmm.BlockId import GHC...
sdiehl/ghc
compiler/nativeGen/Instruction.hs
bsd-3-clause
6,365
0
13
2,418
708
420
288
103
2
module ParseOutput(parseOutput) where import Text.Parsec import Text.Parsec.String import Text.Parsec.Perm import Data.Char import Types import ParseUtil parseOutput = do r <- permute ( combine <$$> (skipMany unwanted >> result) <||> (skipMany unwanted >> solutionLine)) skipMany unwanted ...
EJahren/PBCompOutputChecker
src/ParseOutput.hs
bsd-3-clause
1,495
0
14
350
415
208
207
55
1
{-# LANGUAGE OverloadedStrings #-} module Cheapskate.Inlines ( parseInlines , pHtmlTag , pReference , pLinkLabel) where import Cheapskate.ParserCombinators import Cheapskate.Util import Cheapskate.Types import Data.Char hiding (Space) import qualified Data.Sequence as Seq import Data.Sequence ...
nukisman/elm-format-short
markdown/Cheapskate/Inlines.hs
bsd-3-clause
16,282
0
20
4,103
4,832
2,506
2,326
323
4
main :: IO () main = print $ sum [1..100] ^ 2 - sum (map (^ 2) [1..100])
jaredks/euler
006/006.hs
bsd-3-clause
73
0
9
18
56
29
27
2
1
{-# LANGUAGE PatternSynonyms #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.Compatibility30 -- Copyright : (c) Sven Panne 2019 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portability ...
haskell-opengl/OpenGLRaw
src/Graphics/GL/Compatibility30.hs
bsd-3-clause
45,469
0
5
6,485
7,549
4,668
2,881
1,768
0
module Data.UI.Input.Keyboard.ModKey(ModKey(..), unModKey, pretty) where import Data.Monoid(mempty) import Data.UI.Input.Keyboard.Mods(ModsState) import qualified Data.UI.Input.Keyboard.Mods as Mods import Data.UI.Input.Keyboard.Keys(Key) import qualified Data.UI.Input.Keyboard.Keys as Keys data ModKey = ModKey ModsS...
Peaker/keyboard
src/Data/UI/Input/Keyboard/ModKey.hs
bsd-3-clause
589
0
10
85
207
126
81
16
2
-- #hide -------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.GL.Texturing.TextureTarget -- Copyright : (c) Sven Panne 2002-2005 -- License : BSD-style (see the file libraries/OpenGL/LICENSE) -- -- Maintainer : sven.panne@aedion.de ...
FranklinChen/hugs98-plus-Sep2006
packages/OpenGL/Graphics/Rendering/OpenGL/GL/Texturing/TextureTarget.hs
bsd-3-clause
2,185
0
7
330
330
194
136
43
6
{-# LANGUAGE BangPatterns, CPP, OverloadedStrings #-} #if MIN_VERSION_ghc_prim(0,3,1) {-# LANGUAGE MagicHash #-} #endif -- | -- Module: Data.Aeson.Parser.Internal -- Copyright: (c) 2011-2016 Bryan O'Sullivan -- (c) 2011 MailRank, Inc. -- License: BSD3 -- Maintainer: Bryan O'Sullivan <bos@serpe...
roelvandijk/aeson
Data/Aeson/Parser/Internal.hs
bsd-3-clause
13,841
1
31
4,215
3,631
1,890
1,741
270
9
----------------------------------------------------------------------------- -- | -- Module : Application.DevAdmin.Cabal -- Copyright : (c) 2011, 2012 Ian-Woo Kim -- -- License : BSD3 -- Maintainer : Ian-Woo Kim <ianwookim@gmail.com> -- Stability : experimental -- Portability : GHC -- ------------------...
wavewave/devadmin
lib/Application/DevAdmin/Cabal.hs
bsd-3-clause
2,720
0
17
484
523
280
243
38
2
{-# LANGUAGE OverloadedStrings #-} module RealWorld.Api ( Api, server ) where import Servant import qualified RealWorld.Api.Articles as Articles import qualified RealWorld.Api.Authentication as Authentication import qualified RealWorld.Api.Profiles as Profiles import qualified RealWorld.Api.Tags ...
zudov/servant-realworld-example-app
src/RealWorld/Api.hs
bsd-3-clause
775
0
14
189
161
98
63
-1
-1
{- (c) The AQUA Project, Glasgow University, 1993-1998 \section[SimplMonad]{The simplifier Monad} -} module SimplMonad ( -- The monad SimplM, initSmpl, traceSmpl, getSimplRules, getFamEnvs, -- Unique supply MonadUnique(..), newId, -- Counting SimplCoun...
GaloisInc/halvm-ghc
compiler/simplCore/SimplMonad.hs
bsd-3-clause
7,734
0
15
2,466
1,654
907
747
128
2
{-# LANGUAGE BangPatterns, PatternGuards #-} module SECDH.Eval ( secdhEval , secdhInit , secdhInitProgram , secdhFinish , secdhEvalStats , secdhFinishStats , secdhIter , Rule (..) ) where --import Debug.Trace import Language.Slambda.Types import Languag...
pgavin/secdh
lib/SECDH/Eval.hs
bsd-3-clause
23,297
0
28
8,685
8,783
4,408
4,375
532
25
module Main where putStr str = case str of [ ] -> return () c : cs -> putChar c >> putStr cs putStrLn str = putStr str >> putChar '\n' main = putStrLn "Hello, world!"
YoshikuniJujo/toyhaskell_haskell
examples/hello.hs
bsd-3-clause
172
4
9
41
79
38
41
6
2
-- | -- Module : Main -- Copyright : Jared Tobin 2012 -- License : BSD3 -- -- Maintainer : jared@jtobin.ca -- Stability : experimental -- Portability : unknown {-# OPTIONS_GHC -Wall #-} module Main where import Kospi import Control.Monad (forever, when) import Control.Monad.Trans (lift) imp...
jtobin/prompt-pcap
Main.hs
bsd-3-clause
4,897
0
19
1,248
1,181
624
557
78
3
{-# OPTIONS_GHC -XFlexibleInstances #-} module Database.CouchDB.Tests ( main, allTests) where import Control.Monad.Trans (liftIO) import Control.Exception (finally) import Test.HUnit import Database.CouchDB import Database.CouchDB.JSON import Text.JSON -- --------------------------------------------------------------...
astro/haskell-couchdb
src/Database/CouchDB/Tests.hs
bsd-3-clause
2,815
0
17
538
885
440
445
65
1
module PFDS.Sec5.Ex8a where import PFDS.Commons.PairingHeap (PairingHeap (..)) data BinTree e = E' | T' e (BinTree e) (BinTree e) deriving (Show) toBinary :: PairingHeap e -> BinTree e toBinary E = E' toBinary (T e []) = T' e E' E' toBinary (T e (h1:hs)) = T' e (toBinary h1) (unloop hs) where unloop [] =...
matonix/pfds
src/PFDS/Sec5/Ex8a.hs
bsd-3-clause
777
0
10
175
218
114
104
10
3
{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveDataTypeable, ScopedTypeVariables #-} module Test.Type( sleep, sleepFileTime, sleepFileTimeCalibrate, testBuildArgs, testBuild, testSimple, testNone, shakeRoot, defaultTest, hasTracker, notCI, notWindowsCI, notMacCI, copyDirectoryChanged, copyFileChang...
ndmitchell/shake
src/Test/Type.hs
bsd-3-clause
13,510
0
28
3,475
4,330
2,195
2,135
278
8
{-# LANGUAGE RecordWildCards #-} -- | Logic of local data processing in Update System. module Pos.DB.Update.Logic.Local ( -- * Proposals isProposalNeeded , getLocalProposalNVotes , processProposal -- * Votes , isVoteNeeded , getLocalVote , processV...
input-output-hk/pos-haskell-prototype
db/src/Pos/DB/Update/Logic/Local.hs
mit
17,535
0
17
4,442
3,546
1,859
1,687
-1
-1
{-# LANGUAGE TypeOperators #-} {-# Language RebindableSyntax #-} {-# Language ScopedTypeVariables #-} {-# Language FlexibleContexts #-} module Main where import Prelude hiding ((>>=), (>>), fail, return, id, lookup) import Symmetry.Language import Symmetry.Verify import Symmetry.SymbEx import SrcHelper -- msg1 : All...
abakst/symmetry
checker/tests/todo/SrcConcDB.hs
mit
4,690
0
32
2,046
1,515
752
763
-1
-1
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleInstances #-} module Lamb...
lambdacms/lambdacms
lambdacms-core/LambdaCms/Core/Models.hs
mit
686
0
8
210
81
49
32
16
0
import Debug.Trace data Val = IntVal Integer | StringVal String | BooleanVal Bool -- since we are implementing a Functional language, functions are -- first class citizens. | FunVal [String] Expr Env deriving (Show, Eq) ------------------------------------------------...
2016-Fall-UPT-PLDA/homework
homework-02/your_name_here.hs
gpl-3.0
1,291
0
7
410
172
103
69
19
0
module CO4.Algorithms.Instantiator (MonadInstantiator(..), Instantiable(..), instantiateSubexpressions, instantiateSubtypes) where import CO4.Language class Monad m => MonadInstantiator m where instantiateScheme :: Scheme -> m Scheme instantiateScheme scheme = case scheme of SType t -> instantiate t >>...
abau/co4
src/CO4/Algorithms/Instantiator.hs
gpl-3.0
5,828
0
13
1,291
1,795
843
952
159
9