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 BangPatterns, DeriveDataTypeable, DeriveGeneric, FlexibleInstances, MultiParamTypeClasses #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} module Com.Mysql.Cj.Mysqlx.Protobuf.ViewSqlSecurity (ViewSqlSecurity(..)) where import Prelude ((+), (/), (.)) import qualified Prelude as Prelude' import qualified Da...
naoto-ogawa/h-xproto-mysql
src/Com/Mysql/Cj/Mysqlx/Protobuf/ViewSqlSecurity.hs
mit
2,561
0
11
417
631
347
284
53
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ssm-patchbaseline.html module Stratosphere.Resources.SSMPatchBaseline where import Stratosphere.ResourceImport...
frontrowed/stratosphere
library-gen/Stratosphere/Resources/SSMPatchBaseline.hs
mit
7,439
0
15
768
1,177
668
509
83
1
{-# LANGUAGE CPP #-} {- | Module : $Header$ Description : Writing various formats, according to Hets options Copyright : (c) Klaus Luettich, C.Maeder, Uni Bremen 2002-2006 License : GPLv2 or higher, see LICENSE.txt Maintainer : Christian.Maeder@dfki.de Stability : provisional Portability : non-por...
nevrenato/HetsAlloy
Driver/WriteFn.hs
gpl-2.0
16,131
0
25
4,842
4,832
2,380
2,452
335
22
module Main where import Test.Framework (defaultMain) main :: IO () main = defaultMain Data.KDTree.Test.tests
kaoskorobase/mescaline
lib/mescaline-patterns/runtests.hs
gpl-3.0
113
0
6
17
36
21
15
4
1
module Eksamen2012 where import Data.List import Data.Char {-Programmer en Haskell funksjon posteval::String->[String]->Int (helst uten noen hjelpefunksjoner) som evaluerer slike postfiks uttrykk, gitt som streng i første argumentet, ved ˚a bruke stabel [String] som forklart over. Funksjonen kalles initielt med tom s...
RakNoel/INF122
src/Eksamen2012.hs
gpl-3.0
752
0
11
152
136
72
64
9
3
{-# LANGUAGE ViewPatterns #-} {-# LANGUAGE OverloadedStrings #-} -- | -- Copyright : (c) 2010, 2011 Benedikt Schmidt -- License : GPL v3 (see LICENSE) -- -- Maintainer : Benedikt Schmidt <beschmi@gmail.com> -- -- Pretty printing and parsing of Maude terms and replies. module Term.Maude.Parser ( -- * pretty pr...
rsasse/tamarin-prover
lib/term/src/Term/Maude/Parser.hs
gpl-3.0
10,870
0
18
3,146
2,661
1,369
1,292
202
9
module Problem003 (answer) where import Primes (factorize) answer :: Int answer = maximum $ factorize 600851475143
geekingfrog/project-euler
Problem003.hs
gpl-3.0
117
0
6
18
34
20
14
4
1
{-# LANGUAGE OverloadedStrings #-} module FuncTorrent.PeerThreadMain ( peerThreadMain ) where import Prelude hiding (readFile) import Control.Concurrent import Control.Monad hiding ( forM , forM_ , mapM , mapM_ , msum , sequence , sequence_ ) import Control.Lens import Data.IORef import FuncTorrent.PeerThr...
dfordivam/functorrent
src/FuncTorrent/PeerThreadMain.hs
gpl-3.0
2,358
0
13
505
442
233
209
44
7
{- ============================================================================ | Copyright 2010 Matthew D. Steele <mdsteele@alum.mit.edu> | | | | This file is part of Pylos. | ...
mdsteele/pylos
src/Pylos/Data/TotalMap.hs
gpl-3.0
4,952
0
13
1,388
990
537
453
-1
-1
{-# LANGUAGE MultiParamTypeClasses #-} module Algebra.Morphism.Ratio where import Algebra.Classes import Prelude (Ord(..), Eq(..),Integer,Show(..), error, otherwise, (.), Int, ($)) import Text.Show (showParen, showString) import qualified Data.Ratio ---------------------------------------------------------------------...
jyp/gasp
Algebra/Morphism/Ratio.hs
gpl-3.0
4,315
0
11
1,079
1,009
558
451
63
1
{-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE TupleSections #-} {-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE MultiParamTypeClasses, ConstraintKinds, FlexibleContexts, FlexibleInstances, DeriveGeneric #-} module Algebra...
jyp/gasp
Algebra/Morphism/Exponential.hs
gpl-3.0
1,431
0
9
289
563
283
280
35
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-adsense-host/gen/Network/Google/Resource/AdSenseHost/Accounts/AdUnits/GetAdCode.hs
mpl-2.0
4,651
0
18
1,085
562
333
229
92
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-doubleclick-bids/gen/Network/Google/Resource/DoubleClickBidManager/Reports/Listreports.hs
mpl-2.0
2,890
0
13
643
319
193
126
50
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-bigtableadmin/gen/Network/Google/Resource/BigtableAdmin/Projects/Instances/PartialUpdateInstance.hs
mpl-2.0
6,785
0
17
1,444
876
513
363
134
1
{-# LANGUAGE OverloadedStrings #-} -------------------------------------------------------------------------------- -- See end of this file for licence information. -------------------------------------------------------------------------------- -- | -- Module : QName -- Copyright : (c) 2003, Graham Klyne,...
DougBurke/swish
src/Swish/QName.hs
lgpl-2.1
9,947
0
18
2,047
1,210
679
531
96
6
module Network.Haskoin.Crypto.ExtendedKeys.Tests (tests) where import Test.Framework (Test, testGroup) import Test.Framework.Providers.QuickCheck2 (testProperty) import Data.String (fromString) import Data.String.Conversions (cs) import Data.Word (Word32) import Data.Bits ((.&.)) import Network.Haskoin.Test import N...
tphyahoo/haskoin
haskoin-core/tests/Network/Haskoin/Crypto/ExtendedKeys/Tests.hs
unlicense
3,194
0
9
527
770
403
367
54
1
qs1 [] = [] qs1 (x : xs) = qs1 larger ++ [x] ++ qs1 smaller where smaller = [a | a <- xs, a <= x] larger = [b | b <- xs, b > x] qs2 [] = [] qs2 (x : xs) = reverse (qs2 smaller ++ [x] ++ qs2 larger) where smaller = [a | a <- xs, a <= x] larger = [b...
rabbitonweb/fp101x
w01/qs.hs
apache-2.0
1,250
0
11
504
724
365
359
38
1
{-# LANGUAGE CPP #-} module System.Console.Hawk.PackageDbs.TH ( compileTimeEnvVar , compileTimeWorkingDirectory ) where import Language.Haskell.TH.Syntax (TExp(TExp), Q, lift, runIO) #if MIN_VERSION_template_haskell(2,17,0) import Language.Haskell.TH.Syntax (Code, liftCode) #endif import System.Directory (...
gelisam/hawk
src/System/Console/Hawk/PackageDbs/TH.hs
apache-2.0
854
0
11
138
240
132
108
20
1
module TextToys.Utils ( takeTo ) where import Control.Arrow (first) takeTo :: (a -> Bool) -> [a] -> ([a], [a]) takeTo _ [] = ([], []) takeTo p (x:xs) | p x = ([x], xs) | otherwise = first (x:) $ takeTo p xs
erochest/text-toys
src/TextToys/Utils.hs
apache-2.0
263
0
8
99
138
76
62
7
1
module Main where import Test.Hspec import Test.Hspec.Contrib.HUnit import Test.HUnit -- (1) Import your test module qualified here. import qualified System.IO.FileSync.Tests.Join as Join import qualified System.IO.FileSync.Tests.Tree as Tree import qualified System.IO.FileSync.Tests.TreeT as TreeT -- (2) Insert its...
jtapolczai/FileSync
tests/System/IO/FileSync/Tests.hs
apache-2.0
530
0
7
104
126
80
46
13
1
module Main (main) where import Control.Applicative ((<$>)) import Control.Monad (forever) import Data.Data (toConstr) import Data.Function (on) import Data.List (groupBy) import System.IO (hFlush, hPutStrLn, stdout) import Poker.Cards import Poker.Hands main :: IO () main = do let ghs = groupBy (\h1 h2 -> h1 `co...
mkscrg/chinese-poker
smart-player/main.hs
bsd-2-clause
882
0
16
179
412
221
191
29
1
{-# LANGUAGE BangPatterns, CPP, MagicHash, Rank2Types, RecordWildCards, UnboxedTuples, UnliftedFFITypes #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- | -- Module : Data.Text.Array -- Copyright : (c) 2009, 2010, 2011 Bryan O'Sullivan -- -- License : BSD-style -- Maintainer : bos@serpentine.com -- P...
bos/text
src/Data/Text/Array.hs
bsd-2-clause
7,210
0
17
1,943
1,691
931
760
117
1
-- | -- Module : Data.Packer.Endian -- License : BSD-style -- Maintainer : Vincent Hanquez <vincent@snarc.org> -- Stability : experimental -- Portability : unknown -- -- Simple module to handle endianness swapping, -- but GHC should provide (some day) primitives to call -- into a cpu optimised version (e.g....
vincenthz/hs-packer
Data/Packer/Endian.hs
bsd-2-clause
3,015
0
14
713
495
304
191
41
1
{-# LANGUAGE TypeOperators, DataKinds, PolyKinds, TypeFamilies, TemplateHaskell, GADTs, UndecidableInstances, RankNTypes, ScopedTypeVariables, MultiWayIf #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Promotion.Prelude.List -- Cop...
int-index/singletons
src/Data/Promotion/Prelude/List.hs
bsd-3-clause
10,266
0
7
2,065
1,465
1,003
462
181
0
module Horbits.UI.Camera.Zoom (ZoomModel(..), linearZoom, geometricZoom, maxZoom) where import Control.Applicative import Control.Lens import Control.Monad import Data.List.NonEmpty as NE newtype ZoomModel a = ZoomModel (NonEmpty a) deriving (Show, Eq) maxZoom :: Getting a (...
chwthewke/horbits
src/horbits/Horbits/UI/Camera/Zoom.hs
bsd-3-clause
805
0
11
175
324
180
144
15
1
{-# LANGUAGE OverloadedStrings #-} import System.FilePath.FindCompat((||?),always,extension,find,(==?)) import qualified Data.ByteString as BS import Control.Applicative((<$>)) import qualified Data.ByteString.Char8 as BSC import Text.Regex import Maybe(isJust,fromJust) import System(getArgs) import qualified Data.List...
marcmo/includeSpellChecker
old/checker_old.hs
bsd-3-clause
1,497
0
16
358
509
273
236
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 GADTs #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} module Duckling.Temperatur...
facebookincubator/duckling
Duckling/Temperature/TR/Rules.hs
bsd-3-clause
2,859
0
18
636
731
403
328
76
3
{-# LANGUAGE QuasiQuotes #-} module ApiSpecSpec (main,spec) where import Control.Lens hiding ((.=)) import Data.Aeson import Data.Aeson.QQ import qualified Data.ByteString.Lazy as LazyBytes import qualified Data.HashMap.Strict as Map import Data.Text (Text) import Lib...
pbogdan/swagger
test/ApiSpecSpec.hs
bsd-3-clause
7,996
0
28
3,472
1,393
698
695
-1
-1
{-# LANGUAGE QuasiQuotes #-} import LiquidHaskell import Prelude hiding (reverse) foo :: Int -> Int -> Int [lq| foo :: n:Nat -> m:Nat -> Nat /[n+m] |] foo n m | cond 1 = 0 | cond 2 && n > 1 = foo (n-1) m | cond 3 && m > 2 = foo (n+1) (m-2) [lq| cond :: Int -> Bool |] cond :: Int -> Bool cond _ = undefin...
spinda/liquidhaskell
tests/gsoc15/unknown/pos/GeneralizedTermination.hs
bsd-3-clause
898
0
10
294
381
196
185
24
1
module Main (main) where import Criterion.Main (bgroup, defaultMain) import qualified MVC.ServiceBench main :: IO () main = defaultMain [ bgroup "MVC.Service" MVC.ServiceBench.benchmarks ]
cmahon/mvc-service
benchmark/Bench.hs
bsd-3-clause
209
0
8
43
57
33
24
6
1
-- | {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE OverloadedStrings #-} module WebApi.Schema where import Data.Proxy import WebApi.Docs import Language.Haskell.TH.Quote import Language.Haskell.TH import Data.Text (Text) discovery :: Proxy api -> () dis...
byteally/webapi
webapi-docs/src/WebApi/Schema.hs
bsd-3-clause
339
0
6
81
62
39
23
11
1
{-# Language OverloadedStrings #-} -------------------------------------------------------------------- -- | -- Module : Utils.Katt.Utils -- -- Contains shared type declarations and various utility functions. -- module Utils.Katt.Utils where import Control.Error hiding (tryIO) import qualified Control.Exce...
davnils/katt
katt-lib/src/Utils/Katt/Utils.hs
bsd-3-clause
6,195
1
18
1,205
1,397
767
630
106
2
module Day12 (part1,part2,test1) where import Control.Applicative import Data.Map.Strict (Map) import qualified Data.Map.Strict as Map import Text.Trifecta type Register = Char data Instruction = CpyI Integer Register | CpyR Register Register | Inc Register | Dec Register | JnzR...
z0isch/aoc2016
src/Day12.hs
bsd-3-clause
3,240
0
11
699
1,148
583
565
62
8
#!/usr/bin/runhaskell module Main where import GameLoader import Data.String.Utils import Website main = do putStrLn "Welcome to the HSB.\nPlease standby..." putStrLn "Loading Team Info" teamInfos <- loadTeams writeFile "teamdata.csv" . join "\n" . map show $ teamInfos --Write the main team info out for AO pu...
TheGreenMachine/Scouting-Backend
src/Main.hs
bsd-3-clause
479
0
10
78
85
40
45
12
1
{-# LANGUAGE TemplateHaskell #-} ----------------------------------------------------------------------------- -- | -- Licence : BSD-style (see LICENSE) -- -- Embeded driver assembly that helps in generating bindings. -- ----------------------------------------------------------------------------- module Foreig...
tim-m89/Salsa
Foreign/Salsa/Driver.hs
bsd-3-clause
524
0
7
59
54
37
17
7
1
module Language.Haskell.Stepeval (Scope, eval, itereval, printeval, stepeval) where import Control.Arrow (first) import Control.Applicative ((<$), (<$>), (<*>), (<|>)) import Control.Monad (guard, join, replicateM) import Data.Foldable (foldMap) import Data.List (delete, find, partition, unfoldr) import Data.Maybe (fr...
bmillwood/stepeval
src/Language/Haskell/Stepeval.hs
bsd-3-clause
28,500
0
29
7,210
9,972
5,188
4,784
475
44
-- ^ -- Handlers for Lono endpoints module Handlers.Lono where import Api.Lono import Handlers.Common import qualified Handlers.RssReaders.Feeds as F import qualified Handlers.RssReaders.Subscriptions as S import qualified Handlers.RssReaders.UserPosts as U import Persistence.Lono.Common import Persistence.RssReaders....
gabesoft/kapi
src/Handlers/Lono.hs
bsd-3-clause
3,126
0
17
619
560
287
273
82
1
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE ScopedTypeVari...
meteogrid/sigym4-units-accelerate
src/Sigym4/Units/Accelerate.hs
bsd-3-clause
679
0
5
111
87
66
21
20
0
-- | -- This module contains functions which help when unmarshalling query responses module Network.TableStorage.Query ( edmBinary, edmBoolean, edmDateTime, edmDouble, edmGuid, edmInt32, edmInt64, edmString ) where import Data.Time ( UTCTime ) import Network.TableStorage.Types ( Entity(entityColumns), E...
paf31/tablestorage
src/Network/TableStorage/Query.hs
bsd-3-clause
2,446
0
10
566
617
315
302
56
2
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, TypeFamilies #-} import qualified Common.Matrix.Matrix as M import Common.NumMod.MkNumMod mkNumMod True 100000000 type Zn = Int100000000 solve :: Integer -> Zn solve n = (((mat `M.power` p) `M.multiply` initial) M.! (1, 1)) - 1 where p = 987654321...
foreverbell/project-euler-solutions
src/356.hs
bsd-3-clause
490
0
11
112
213
123
90
11
1
{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Network -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/network/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stability : provisi...
bjornbm/network
Network.hs
bsd-3-clause
15,722
0
15
4,103
2,174
1,167
1,007
162
2
module Chp84 where {-- Functor typeclass --} {-- And now, we're going to take a look at the Functor typeclass, which is basically for things that can be mapped over. You're probably thinking about lists now, since mapping over lists is such a dominant idiom in Haskell. And you're right, the list type is part of the...
jamesyang124/haskell-playground
src/Chp84.hs
bsd-3-clause
9,801
0
8
2,173
312
163
149
14
1
{-# LANGUAGE FlexibleContexts #-} module Cloud.AWS.RDS.Event ( describeEvents , describeEventCategories ) where import Cloud.AWS.Lib.Parser.Unordered (XmlElement, (.<), content) import Control.Applicative import Control.Monad.Trans.Resource (MonadThrow, MonadResource, MonadBaseControl) import Data.Text (T...
worksap-ate/aws-sdk
Cloud/AWS/RDS/Event.hs
bsd-3-clause
2,140
0
15
470
511
280
231
58
1
-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.Raw.NV.PixelDataRange -- Copyright : (c) Sven Panne 2015 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portability : portable -...
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/NV/PixelDataRange.hs
bsd-3-clause
963
0
4
106
67
52
15
11
0
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} -- | -- Module: Graphics.ChalkBoard.Types -- Copyright: (c) 2009 Andy Gill -- License: BSD3 -- -- Maintainer: Andy Gill <andygill@ku.edu> -- Stability: unstable -- Portability: ghc -- -- This module contains the types used by chalkboard, except Board itself. -- m...
andygill/chalkboard2
Graphics/ChalkBoard/Types.hs
bsd-3-clause
5,487
39
11
1,269
1,482
802
680
110
1
-- | Tools to build and access an AO dictionary. module AO.Dict ( AODef, AODictMap, AODict , buildAODict, cleanAODict, emptyAODict , readAODict, updateAODict, unsafeUpdateAODict , AODictIssue(..) ) where import Control.Monad ((>=>)) import Data.Maybe (fromJust) import qualified Data.List as L impo...
dmbarbour/awelon
hsrc/AO/Dict.hs
bsd-3-clause
6,940
0
18
1,726
1,976
1,052
924
-1
-1
{-# LANGUAGE DeriveDataTypeable #-} {- | Module : $Header$ Description : Morphism of Common Logic Copyright : (c) Uni Bremen DFKI 2010 License : GPLv2 or higher, see LICENSE.txt Maintainer : eugenk@informatik.uni-bremen.de Stability : experimental Portability : non-portable (via Logic.Logic) Morp...
keithodulaigh/Hets
CommonLogic/Morphism.hs
gpl-2.0
7,047
0
23
1,770
2,287
1,169
1,118
144
8
data A = A Int | B Char deriving (Eq, Show) main = (A 3 == A 3, show (B 'q'))
roberth/uu-helium
test/correct/EqAndShow.hs
gpl-3.0
96
0
8
39
56
29
27
4
1
-- | -- Module: BDCS.Utils.Error -- Copyright: (c) 2016-2017 Red Hat, Inc. -- License: LGPL -- -- Maintainer: https://github.com/weldr -- Stability: alpha -- Portability: portable -- -- Functions to help with errors module BDCS.Utils.Error(errorToEither, errorToMaybe, ma...
atodorov/bdcs
src/BDCS/Utils/Error.hs
lgpl-2.1
1,187
0
9
238
250
141
109
10
1
-- Tests for Statistics.Test.NonParametric module Tests.NonParametric (tests) where import Statistics.Distribution.Normal (standard) import Statistics.Test.KolmogorovSmirnov import Statistics.Test.MannWhitneyU import Statistics.Test.KruskalWallis import Statistics.Test.WilcoxonT import Test.Framework (Test, testGroup)...
fpco/statistics
tests/Tests/NonParametric.hs
bsd-2-clause
12,172
0
13
4,508
4,040
2,477
1,563
214
1
-- %************************************************************************ -- %* * -- The known-key names for Template Haskell -- %* * -- %**********************************...
ml9951/ghc
compiler/prelude/THNames.hs
bsd-3-clause
39,682
0
8
7,971
7,465
4,331
3,134
680
1
{-# LANGUAGE MagicHash #-} ----------------------------------------------------------------------------- -- -- GHCi Interactive debugging commands -- -- Pepe Iborra (supported by Google SoC) 2006 -- -- ToDo: lots of violation of layering here. This module should -- decide whether it is above the GHC API (import GHC a...
pparkkin/eta
compiler/ETA/Interactive/Debugger.hs
bsd-3-clause
10,188
0
3
3,169
222
220
2
2
0
{-# LANGUAGE BangPatterns, GeneralizedNewtypeDeriving, StandaloneDeriving #-} import Prelude hiding (mapM) import Options.Applicative import Data.Monoid ((<>)) import Control.Monad.Trans.Class import Data.Vector (Vector) import qualified Data.Vector.Unboxed as VU imp...
beni55/bayes-stack
network-topic-models/RunCI.hs
bsd-3-clause
7,455
0
22
2,770
2,085
1,057
1,028
-1
-1
module Boo where {-@ incr :: Int -> Bool @-} incr :: Int -> Int incr x = x + 1
ssaavedra/liquidhaskell
tests/crash/errmsg-mismatch.hs
bsd-3-clause
81
0
5
23
26
15
11
3
1
-- | -- This module contains the Relapse type expression. module Data.Katydid.Relapse.Exprs.Type ( mkTypeExpr , typeExpr ) where import Data.Katydid.Relapse.Expr -- | -- mkTypeExpr is used by the parser to create a type expression for the specific input type. mkTypeExpr :: [AnyExpr] -> Either String ...
katydid/haslapse
src/Data/Katydid/Relapse/Exprs/Type.hs
bsd-3-clause
1,218
0
13
271
353
181
172
20
6
{-# LANGUAGE TemplateHaskell, Rank2Types, CPP #-} #ifndef NO_SAFE_HASKELL {-# LANGUAGE Trustworthy #-} #endif -- | Test all properties in the current module, using Template Haskell. -- You need to have a @{-\# LANGUAGE TemplateHaskell \#-}@ pragma in -- your module for any of these to work. module Test.QuickCheck.All( ...
soenkehahn/quickcheck
Test/QuickCheck/All.hs
bsd-3-clause
7,492
0
20
1,509
1,353
743
610
85
5
{- | Module : $Header$ Copyright : (c) Klaus Hartke, Uni Bremen 2008 License : GPLv2 or higher, see LICENSE.txt Maintainer : Christian.Maeder@dfki.de Stability : experimental Portability : portable -} module Main where import Control.Monad (when) import Data.List (intersperse) import System.Dire...
mariefarrell/Hets
Temporal/Main.hs
gpl-2.0
1,776
0
23
769
367
182
185
34
7
{-# LANGUAGE FlexibleInstances, FlexibleContexts, TypeSynonymInstances , UndecidableInstances, OverlappingInstances, MultiParamTypeClasses #-} {- | Module : $Header$ Description : Reduce instance for the AssignmentStore class Copyright : (c) Ewaryst Schulz, DFKI Bremen 2010 License : GPLv2 or higher, s...
keithodulaigh/Hets
CSL/ReduceInterpreter.hs
gpl-2.0
8,987
0
16
2,154
2,102
1,076
1,026
183
2
-- Module : Network.AWS.EMR -- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com> -- License : This Source Code Form is subject to the terms of -- the Mozilla Public License, v. 2.0. -- A copy of the MPL can be found in the LICENSE file or -- you can obt...
kim/amazonka
amazonka-emr/gen/Network/AWS/EMR.hs
mpl-2.0
2,495
0
5
372
310
231
79
39
0
{-# language ViewPatterns #-} module Physics.Chipmunk.StickyEdges.Tests.Rendering where import Prelude hiding (catch) import Data.Abelian import Control.Exception import System.Random import Graphics.Qt hiding (scale) import Physics.Chipmunk import Utils import Physics.Chipmunk.StickyEdges.Tests.Properties ...
geocurnoff/nikki
src/testsuite/Physics/Chipmunk/StickyEdges/Tests/Rendering.hs
lgpl-3.0
3,253
0
19
812
1,171
573
598
76
2
{-# LANGUAGE CPP #-} import Data.Function import System.Environment import System.FilePath import Test.Haddock import Test.Haddock.Utils checkConfig :: CheckConfig String checkConfig = CheckConfig { ccfgRead = Just , ccfgClean = \_ -> id , ccfgDump = id , ccfgEqual = (==) `on` crlfToLf } dirC...
Fuuzetsu/haddock
latex-test/Main.hs
bsd-2-clause
567
0
11
129
153
87
66
19
1
{-| ConstantUtils contains the helper functions for constants This module cannot be merged with 'Ganeti.Utils' because it would create a circular dependency if imported, for example, from 'Ganeti.Constants'. -} {- Copyright (C) 2013 Google Inc. All rights reserved. Redistribution and use in source and binary forms...
andir/ganeti
src/Ganeti/ConstantUtils.hs
bsd-2-clause
6,686
0
12
1,061
925
533
392
99
1
module Models.NRS where import BasicPrelude ( Show ) import Data.Aeson ( ToJSON ) import Data.Time ( Day ) import GHC.Generics ( Generic ) import Models.Tree import Year data NRS ...
dogweather/nevada-revised-statutes-parser
src/Models/NRS.hs
bsd-3-clause
489
0
8
217
98
59
39
14
0
module WhereBind where main :: Fay () main = let x = 10 :: Int in print $ x + y where y = 20
fpco/fay
tests/whereBind.hs
bsd-3-clause
104
0
8
36
48
26
22
6
1
{-# LANGUAGE BangPatterns #-} module ArgParse ( mkArgSpecs, parseArgs, flagSpan, ArgSpec(..), boolFlagSpec, argParseTests ) where import qualified Data.Map as Map import qualified TclObj as T import qualified Data.ByteString.Char8 as B import Util (commaList) import Test.HUnit data A...
tolysz/hiccup
ArgParse.hs
lgpl-2.1
2,801
0
21
973
1,114
605
509
60
6
{-# LANGUAGE UnboxedTuples, CPP #-} module State where #if __GLASGOW_HASKELL__ < 709 import Control.Applicative #endif newtype State s a = State { runState' :: s -> (# a, s #) } instance Functor (State s) where fmap f m = State $ \s -> case runState' m s of (# r, s' #) -> (# f r, ...
siddhanathan/ghc
compiler/utils/State.hs
bsd-3-clause
1,332
0
15
503
592
311
281
33
1
{-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_HADDOCK show-extensions #-} -- | -- Module : Yi.Mode.Latex -- License : GPL-2 -- Maintainer : yi-devel@googlegroups.com -- Stability : experimental -- Portability : portable -- -- Collection of 'Mode's for working with LaTeX. module Yi.Mode.Latex (latexM...
siddhanathan/yi
yi-misc-modes/src/Yi/Mode/Latex.hs
gpl-2.0
2,230
0
12
467
538
318
220
37
1
{-# LANGUAGE Trustworthy #-} -- ---------------------------------------------------------------------------- -- | This module provides scalable event notification for file -- descriptors and timeouts. -- -- This module should be considered GHC internal. -- -- -----------------------------------------------------------...
spacekitteh/smcghc
libraries/base/GHC/Event.hs
bsd-3-clause
1,132
0
5
256
130
90
40
30
0
----------------------------------------------------------------------------- -- | -- Module : XMonad.Actions.TagWindows -- Copyright : (c) Karsten Schoelzel <kuser@gmx.de> -- License : BSD -- -- Maintainer : Karsten Schoelzel <kuser@gmx.de> -- Stability : unstable -- Portability : unportable -- -- ...
pjones/xmonad-test
vendor/xmonad-contrib/XMonad/Actions/TagWindows.hs
bsd-2-clause
7,669
0
16
1,943
2,134
1,132
1,002
107
2
----------------------------------------------------------------------------- -- | -- Module : Distribution.ParseUtils -- Copyright : (c) The University of Glasgow 2004 -- License : BSD3 -- -- Maintainer : cabal-devel@haskell.org -- Portability : portable -- -- Utilities for parsing 'PackageDescription...
tolysz/prepare-ghcjs
spec-lts8/cabal/Cabal/Distribution/ParseUtils.hs
bsd-3-clause
29,528
0
22
8,429
8,453
4,399
4,054
495
7
-- Test case of known literal with wraparound test = case 1 :: Int of 0x10000000000000001 -> "A" _ -> "B" test2 = case 0x10000000000000001 :: Int of 1 -> "A" _ -> "B" main = putStrLn $ test ++ test2
ezyang/ghc
testsuite/tests/codeGen/should_run/T9533b.hs
bsd-3-clause
237
0
7
79
63
34
29
7
2
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE CPP , NoImplicitPrelude , MagicHash , UnboxedTuples #-} {-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.TopHandler -- Copyright : (c) The University of G...
urbanslug/ghc
libraries/base/GHC/TopHandler.hs
bsd-3-clause
8,607
0
22
2,018
1,081
577
504
118
6
{-# LANGUAGE DataKinds #-} module T8455 where ty = [t| 5 |]
ghc-android/ghc
testsuite/tests/quotes/T8455.hs
bsd-3-clause
62
0
4
14
14
11
3
-1
-1
import System.Environment import System.IO import System.Directory import Control.Monad import Shake import JsonSettings import RevReport import WithLatestLogs import Summary import GraphReport import BenchNames import GraphSummaries import GHC.IO.Encoding {- We want to build everything into one executable, bit stil...
nomeata/gipeda
src/gipeda.hs
mit
1,225
0
10
284
224
112
112
30
9
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-table-pointintimerecoveryspecification.html module Stratosphere.ResourceProperties.DynamoDBTablePoin...
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/DynamoDBTablePointInTimeRecoverySpecification.hs
mit
2,017
0
12
159
175
102
73
22
1
-- This file is part of the 'union-find-array' library. It is licensed -- under an MIT license. See the accompanying 'LICENSE' file for details. -- -- Authors: Bertram Felgenhauer {-# LANGUAGE RankNTypes, FlexibleContexts, CPP #-} -- | -- Low-level interface for managing a disjoint set data structure, based on -- 'Con...
haskell-rewriting/union-find-array
src/Data/Union/ST.hs
mit
4,700
0
18
1,307
1,616
824
792
102
4
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE RankNTypes #-} module Crud.Core where -- import Data.Generics import qualified Language.Haskell.TH as TH -- import Language.Haskell.TH.Quote -- import Data.Data import Import import Yesod.Form.Bootstrap3 import Text.Blaze {- Este conjunto de operaciones permite al pr...
jairoGilC/Yesod-CRUD-Generator
Crud/Core.hs
mit
10,805
0
14
3,469
2,350
1,201
1,149
-1
-1
module GUBS.Solver.Formula where import Data.Foldable (toList) import GUBS.Algebra data Atom e = Geq e e | Eq e e deriving (Functor, Foldable, Traversable) data BoolLit l = BoolLit l | NegBoolLit l deriving (Functor, Foldable, Traversable) -- TODO gadtify data Formula l e = Top | Bot | Lit (BoolLit l) ...
mzini/gubs
src/GUBS/Solver/Formula.hs
mit
2,876
0
12
712
1,349
693
656
71
2
-- The sum of the squares of the first ten natural numbers is, -- 1^2 + 2^2 + ... + 10^2 = 385 -- The square of the sum of the first ten natural numbers is, -- (1 + 2 + ... + 10)^2 = 55^2 = 3025 -- Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 −...
daniel-beard/projecteulerhaskell
Problems/p6.hs
mit
565
0
11
127
83
47
36
4
1
data MyType = MyType deriving (Show)
zhangjiji/real-world-haskell
ch6/ch6.hs
mit
49
0
6
18
15
8
7
2
0
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.EXTsRGB (pattern SRGB_EXT, pattern SRGB_ALPHA_EXT, pattern SRGB8_ALPHA8_EXT, pattern FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT, EXTsRGB, castToEXTsRGB, gTypeEXTsRGB) where imp...
plow-technologies/ghcjs-dom
src/GHCJS/DOM/JSFFI/Generated/EXTsRGB.hs
mit
1,204
0
6
142
335
217
118
24
0
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.HTMLEmbedElement (js_getSVGDocument, getSVGDocument, js_setAlign, setAlign, js_getAlign, getAlign, js_setHeight, setHeight, js_getHeight, getHeight, js_setName, setName, js_getName, getName,...
manyoo/ghcjs-dom
ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLEmbedElement.hs
mit
6,343
90
10
944
1,457
806
651
88
1
module GetOpt.Declarative.UtilSpec (spec) where import Prelude () import Helper import System.Console.GetOpt import GetOpt.Declarative.Util spec :: Spec spec = do describe "mkUsageInfo" $ do it "restricts output size to 80 characters" $ do let options = [ ...
hspec/hspec
hspec-core/test/GetOpt/Declarative/UtilSpec.hs
mit
987
0
20
351
221
116
105
22
1
module Rebase.GHC.IO.Encoding.Types ( module GHC.IO.Encoding.Types ) where import GHC.IO.Encoding.Types
nikita-volkov/rebase
library/Rebase/GHC/IO/Encoding/Types.hs
mit
107
0
5
12
26
19
7
4
0
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot1click-project-placementtemplate.html module Stratosphere.ResourceProperties.IoT1ClickProjectPlacementTemp...
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/IoT1ClickProjectPlacementTemplate.hs
mit
2,300
0
12
201
240
139
101
27
1
-- Copyright (c) 2014 Contributors as noted in the AUTHORS file -- -- This file is part of frp-arduino. -- -- frp-arduino 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 -...
rickardlindberg/frp-arduino-old
src/Arduino/Uno.hs
gpl-3.0
3,628
0
18
987
869
459
410
84
1
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} module Granada.Ast where -- |Given {-- nonExistantActions :: Expr.Program -> [Expr.Action] nonExistantActions program = map nonExistantActions characters where characters = charactersInProgram program as = actionsInProgram program nonExistantAction...
adolfosilva/granada
library/Granada/Ast.hs
gpl-3.0
797
0
3
120
10
8
2
2
0
{-# LANGUAGE ExistentialQuantification #-} module HEP.Physics.TTBar.Reconstruction.Combined where import HEP.Parser.LHCOAnalysis.PhysObj hiding (fourmomfrometaphipt, FourMomentum) import Numeric.LinearAlgebra import Numeric.GSL.Minimization import HEP.Util.Functions import HEP.Util.Combinatorics import Data.List...
wavewave/ttbar
lib/HEP/Physics/TTBar/Reconstruction/Combined.hs
gpl-3.0
17,125
0
17
5,722
5,417
3,041
2,376
339
3
module HEP.Automation.MadGraph.Dataset.Set20110717set7ATLAS where import HEP.Storage.WebDAV.Type import HEP.Automation.MadGraph.Model import HEP.Automation.MadGraph.Machine import HEP.Automation.MadGraph.UserCut import HEP.Automation.MadGraph.SetupType import HEP.Automation.MadGraph.Model.C8V import HEP.Automation....
wavewave/madgraph-auto-dataset
src/HEP/Automation/MadGraph/Dataset/Set20110717set7ATLAS.hs
gpl-3.0
1,615
0
10
527
382
241
141
46
1
module Hammertime.CLI ( Action(..) , cliParserInfo , cliParserPrefs ) where import Data.Char (toLower) import Data.List (find, intercalate) import Options.Applicative import Options.Applicative.Types import qualified Hammertime.Types as Types data Action = Start { project :: String ...
divarvel/hammertime
lib/Hammertime/CLI.hs
gpl-3.0
3,600
0
15
1,045
994
506
488
106
2
module Network where import Control.Applicative (pure, (<$>), (<*>)) import Data.Binary import Data.Binary.Get import Data.ByteString.Lazy (ByteString, empty) import Ethernet (EtherFrame(..), EtherType(..), fromEtherType) import Datalink import IP4 data Network = IP4 Packet | UnsupportedNetwork !Intege...
bflyblue/parse-quote
Network.hs
unlicense
703
0
13
125
210
119
91
21
2
module GuiHCPN(simMain) where import Control.Concurrent import Data.Maybe (fromMaybe) import Graphics.UI.WX import Graphics.UI.WXCore (windowRaise) import NetEdit hiding (version) import qualified SimpleHCPN as S version = "NetSim v0.1" data SimState t n m w ti = SimState{tick :: ti ...
haroldcarr/learn-haskell-coq-ml-etc
haskell/playpen/hcpn/src/GuiHCPN.hs
unlicense
6,174
0
23
2,361
1,995
1,016
979
139
2
-- import Data.Char data Operator = Plus | Minus | Times | Div deriving (Show,Eq) opToChar :: Operator -> Char -- opToChar = undefined opToChar Plus = '+' opToChar Minus = '-' opToChar Times = '*' opToChar Div = '/' opToStr :: Operator -> String opToStr Plus = "+" opToStr Minus = "-" opToStr Times = "*" opToS...
egaburov/funstuff
Haskell/BartoszBofH/7_TokenizerHOF/tokenize.hs
apache-2.0
3,402
0
12
979
1,424
732
692
91
2
{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Haddock.Utils -- Copyright : (c) The University of Glasgow 2001-2002, -- Simon Marlow 2003-2006, -- David Waern 2006-2009 -- License : BSD-like -- -- M...
jstolarek/haddock
haddock-api/src/Haddock/Utils.hs
bsd-2-clause
15,975
0
20
3,378
3,904
2,089
1,815
251
4
{-# LANGUAGE ScopedTypeVariables #-} module Import ( module Prelude , module Foundation , (<>) , Text , module Data.Monoid , module Control.Applicative , module Gitolite , module Data.Maybe , module Settings.StaticFiles , getGitolite , withRepo , withRepoObj , isBlob ...
konn/gitolist
Import.hs
bsd-2-clause
4,831
0
20
1,261
1,380
726
654
-1
-1
{-# LANGUAGE TupleSections #-} module Driver where import Control.Applicative ((<$>),(<*>)) import Control.Monad (when) import Data.Foldable (forM_) import Distribution.Package import Distribution.PackageDescription import Distribution.ModuleName import Distribution.PackageDescription.Parse import Distribution.Verb...
wavewave/metapackage
src/Driver.hs
bsd-2-clause
2,470
0
18
581
689
358
331
48
2
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, CPP #-} module Network.DNS.StateBinary where import Control.Monad.State (State, StateT) import qualified Control.Monad.State as ST import Control.Monad.Trans.Resource (ResourceT) import qualified Data.Attoparsec.ByteString as A import qualified Data.Attoparsec.Typ...
greydot/dns
Network/DNS/StateBinary.hs
bsd-3-clause
4,973
0
15
965
1,699
895
804
122
3
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {- | Module: Main Maintainer: Thomas Sutton This module implements a command-line tool to perform formal concept analysis on data sets. -} module Main where import Control.Applicative import qualified Data.ByteString.Lazy as BL import ...
thsutton/fca
src/Main.hs
bsd-3-clause
4,322
0
15
1,344
1,004
502
502
102
6
{-# OPTIONS_GHC -Wall #-} module Classy.Casadi.Integrator where import Control.Applicative ( (<$>) ) import Python.Exceptions import Python.Interpreter import Python.Objects import Foreign.C.Types ( CDouble ) import qualified Classy.Convenience as CC import Classy.State hiding ( run ) import Classy.Types import Clas...
ghorn/classy-dvda
src/Classy/Casadi/Integrator.hs
bsd-3-clause
3,400
0
14
610
1,155
576
579
79
1
#!/usr/bin/env stack -- stack --install-ghc runghc --package turtle {-# LANGUAGE OverloadedStrings #-} import Turtle import Filesystem.Path.CurrentOS import Data.Text main = sh $ do m <- using $ mktempfile "." "m.pdf" sr <- using $ mktempfile "." "sr.pdf" let p1 = ["bbc-oca/msr/79ths.score"] ...
nkpart/score-writer
library/make-msr.hs
bsd-3-clause
1,005
0
14
213
277
139
138
16
1