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
-- | A store for stroing and retreiving items -- {-# LANGUAGE ExistentialQuantification, ScopedTypeVariables #-} module Hakyll.Core.Store ( Store , StoreGet (..) , makeStore , storeSet , storeGet ) where import Control.Applicative ((<$>)) import Control.Concurrent.MVar (MVar, newMVar, readMVar,...
sol/hakyll
src/Hakyll/Core/Store.hs
bsd-3-clause
3,676
0
17
1,045
986
523
463
73
3
module ResultWorthy.Tests.Util where import ResultWorthy.Util import Test.HUnit tests = TestLabel "The Util Tests" $ TestList [ TestLabel "withIndeces" $ TestCase $ assertEqual "Arrays should be equal" (withIndeces ["foo", "bar", "baz", "bong"]) [(0, "foo"), (1, "bar...
lawrencelomax/ResultWorthy
ResultWorthy/Tests/Util.hs
bsd-3-clause
596
0
12
200
152
88
64
12
1
{-| Description: SDL audio support. -} module Graphics.UI.SDL.Audio ( ) where
abbradar/MySDL
src/Graphics/UI/SDL/Audio.hs
bsd-3-clause
94
0
3
27
12
9
3
2
0
{-# LANGUAGE TemplateHaskell #-} {-| Module : AERN2.Poly.Basics Description : Basics of unary sparse polynomials Copyright : (c) Michal Konecny License : BSD3 Maintainer : [email protected] Stability : experimental Portability : portable Basics of unary sparse p...
michalkonecny/aern2
aern2-fun-univariate/src/AERN2/Poly/Basics.hs
bsd-3-clause
9,205
0
12
2,135
2,579
1,408
1,171
-1
-1
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} module React.Flux.Mui.Badge where import Protolude import Data.Aeson import Data.Aeson.Casing import Data.String (String) import React.Flux import React.Flux.Mui.Util data Badge = Badge { badgeClassName :: !(Maybe Text) , badgePrimary :: !(Maybe ...
pbogdan/react-flux-mui
react-flux-mui/src/React/Flux/Mui/Badge.hs
bsd-3-clause
820
0
11
146
247
137
110
34
1
{-# LANGUAGE DeriveGeneric, OverloadedStrings #-} module Pygmalion.Core ( CommandInfo (..) , SourceFile , SourceFileHash , SourceFileWrapper , unwrapSourceFile , SourceFileHashWrapper , unwrapSourceFileHash , WorkingPath , Time , TimeHash , Language (..) , Inclusion (..) , DefInfo (..) , DefUpdate (..) , SourceLocatio...
sethfowler/pygmalion
src/Pygmalion/Core.hs
bsd-3-clause
7,991
0
11
1,784
1,653
956
697
315
1
-- |NullPoint: -- Pointed types (usually containers) that can be empty. -- Corresponds to Data.Monoid.mempty module Data.NullPoint ( -- * Classes NullPoint (..) ) where import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as L -- ---------------------------------------------- -- |NullPoint...
iteloo/tsuru-sample
iteratee-0.8.9.6/src/Data/NullPoint.hs
bsd-3-clause
609
0
6
99
105
65
40
12
0
-- * Implements set theoristic operators for the Ord type. -- | Haskell Prelude "intersect", "(\\)" and "nub" implementations require an -- Eq instance. -- If we have an implementations for Ord type as well, the evaluation can be -- sped up significantly. module Data.Extension.Ord ( intersect , nub , ...
shingoOKAWA/hsarg-haskell
src/Data/Extension/Ord.hs
bsd-3-clause
1,231
0
15
432
457
253
204
26
3
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE FlexibleContexts #-} {-# OPTIONS_GHC -Wall -fenable-rewrite-rules -ddump-rule-firings -ddump-to-file #-} import Control.Applicative import Control.Arrow (first) import qualifi...
JohnLato/transducers
tests/transducers.hs
bsd-3-clause
14,965
166
26
3,416
5,383
2,801
2,582
351
7
{-# LINE 1 "GHC.Stats.hsc" #-} {-# LANGUAGE Trustworthy #-} {-# LINE 2 "GHC.Stats.hsc" #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE RecordWildCards #-} {-# OPTIONS_GHC -funbox-strict-fields #-} ----------------------------------------------------------------------------- -- | This module provides access to inte...
phischu/fragnix
builtins/base/GHC.Stats.hs
bsd-3-clause
7,011
17
16
1,446
902
511
391
106
1
{-- snippet plus --} a `plus` b = a + b data a `Pair` b = a `Pair` b deriving (Show) -- we can use the constructor either prefix or infix foo = Pair 1 2 bar = True `Pair` "quux" {-- /snippet plus --}
binesiyu/ifl
examples/ch04/Plus.hs
mit
220
0
6
65
68
40
28
5
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="el-GR"> <title>Customizable HTML Report</title> <maps> <homeID>top</homeID> <mapref lo...
veggiespam/zap-extensions
addOns/customreport/src/main/javahelp/org/zaproxy/zap/extension/customreport/resources/help_el_GR/helpset_el_GR.hs
apache-2.0
970
79
66
158
411
208
203
-1
-1
{-# LANGUAGE LambdaCase #-} {-# LANGUAGE ScopedTypeVariables #-} module Cardano.Wallet.Kernel.CoinSelection.Generic.Random ( PrivacyMode(..) , random , findRandomOutput ) where import Universum import Cardano.Wallet.Kernel.CoinSelection.Generic import qualified Cardano.Wallet.K...
input-output-hk/cardano-sl
wallet/src/Cardano/Wallet/Kernel/CoinSelection/Generic/Random.hs
apache-2.0
10,737
0
17
2,919
1,800
947
853
-1
-1
{-# LANGUAGE BangPatterns, FlexibleInstances, UndecidableInstances, CPP #-} #include "fusion-phases.h" -- | Irregular two dimensional arrays. --- -- * TODO: The inner arrays should be unboxed so we don't get an unboxing overhead -- for every call to unsafeIndex2. This might need an extension to the GHC -- ...
mainland/dph
dph-prim-seq/Data/Array/Parallel/Unlifted/Vectors.hs
bsd-3-clause
8,684
0
15
2,617
2,045
1,048
997
-1
-1
-- | -- Module: Network.Riak -- Copyright: (c) 2011 MailRank, Inc. -- License: Apache -- Maintainer: Mark Hibberd <[email protected]>, Nathan Hunter <[email protected]> -- Stability: experimental -- Portability: portable -- -- A client for the Riak decentralized data store. -- -- The functions in this ...
k-bx/riak-haskell-client
src/Network/Riak.hs
apache-2.0
2,586
0
6
506
264
194
70
35
0
{-# LANGUAGE CPP #-} #if __GLASGOW_HASKELL__ >= 702 {-# LANGUAGE Trustworthy #-} -- Imports internal modules #endif {-# OPTIONS_GHC -fno-warn-warnings-deprecations #-} -- | -- Module : Data.Attoparsec.Text.Lazy -- Copyright : Bryan O'Sullivan 2007-2015 -- License : BSD3 -- -- Maintainer : bos@serpentin...
beni55/attoparsec
Data/Attoparsec/Text/Lazy.hs
bsd-3-clause
3,702
0
11
961
814
451
363
47
5
module MediaWiki.API.Query.Revisions.Import where import MediaWiki.API.Types import MediaWiki.API.Utils import MediaWiki.API.Query.Revisions import Text.XML.Light.Types import Text.XML.Light.Proc ( strContent ) import Control.Monad import Data.Maybe stringXml :: String -> Either (String,[{-Error msg-}String]) Rev...
neobrain/neobot
mediawiki/MediaWiki/API/Query/Revisions/Import.hs
bsd-3-clause
1,926
4
13
463
747
371
376
52
2
{-# LANGUAGE CPP #-} #if __GLASGOW_HASKELL__ < 709 import qualified HastePkg708 as Real #else import qualified HastePkg710 as Real #endif main :: IO () main = Real.main
beni55/haste-compiler
utils/haste-pkg/haste-pkg.hs
bsd-3-clause
171
0
6
29
28
18
10
4
1
{- (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[NameEnv]{@NameEnv@: name environments} -} {-# LANGUAGE CPP #-} module NameEnv ( -- * Var, Id and TyVar environments (maps) NameEnv, -- ** Manipulating these environments mkNameEnv,...
olsner/ghc
compiler/basicTypes/NameEnv.hs
bsd-3-clause
5,502
0
11
1,463
1,323
697
626
87
1
{-# LANGUAGE DeriveGeneric #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.InstalledPackageInfo -- Copyright : (c) The University of Glasgow 2004 -- -- Maintainer : [email protected] -- Portability : portable -- -- This is the information ...
x-y-z/cabal
Cabal/Distribution/InstalledPackageInfo.hs
bsd-3-clause
16,058
0
14
5,123
3,109
1,773
1,336
308
2
{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.Dependency.Types -- Copyright : (c) Duncan Coutts 2008 -- License : BSD-like -- -- Maintainer : [email protected] -- Stability : provisional -- Portability : ...
randen/cabal
cabal-install/Distribution/Client/Dependency/TopDown.hs
bsd-3-clause
48,703
0
21
12,351
9,331
4,873
4,458
724
13
module T7702Plugin ( plugin ) where import GhcPlugins -- A plugin that does nothing but tickle CoreM's writer. plugin :: Plugin plugin = defaultPlugin { installCoreToDos = install } where install :: [CommandLineOption] -> [CoreToDo] -> CoreM [CoreToDo] install _ todos = do putMsgS "T...
ezyang/ghc
testsuite/tests/simplCore/should_compile/T7702plugin/T7702Plugin.hs
bsd-3-clause
1,886
0
10
412
414
210
204
32
1
-- !!! Conflicting re-exportation of dcon module M (module Mod144_A,module M) where import Mod144_A data Foo1 = Bar
urbanslug/ghc
testsuite/tests/module/mod144.hs
bsd-3-clause
119
0
5
21
25
17
8
3
0
-- This caused 6.10.1 to segfault when run with +RTS -hb -- trac #3001 module Main (main) where main :: IO () main = print $ replicate 40000 'x'
urbanslug/ghc
testsuite/tests/profiling/should_run/T3001.hs
bsd-3-clause
148
0
6
31
35
20
15
3
1
fork :: (a -> b, a -> c) -> a -> (b, c) fork (f, g) x = (f x, g x) unzip :: [(a,b)] -> ([a], [b]) unzip = fork (map fst, map snd) cross :: (a -> b, a -> c) -> (a, a) -> (b, c) cross (f, g) = fork (f . fst, g . snd)
dirkz/Thinking_Functionally_With_Haskell
4/Unzip.hs
isc
217
0
7
62
182
103
79
6
1
{-# LANGUAGE OverloadedStrings #-} module MacFinder.Controllers.Delete ( deleteMac ) where import Web.Scotty.Trans as S import Web.Scotty.Hastache import Control.Monad.IO.Class (liftIO) import qualified Database.Redis as R import qualified Data.Text.Lazy as T import qualified Data.ByteString as B import Control.M...
tlunter/MacFinder
src/MacFinder/Controllers/Delete.hs
mit
954
0
16
183
295
159
136
24
1
module System.RedProx.Chaos ( ) where
adarqui/redprox-core
src/System/RedProx/Chaos.hs
mit
38
0
3
5
10
7
3
1
0
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleInstances #-} module Text.Hamlet.Parse ( Result (..) , Content (..) , Doc (..) , parseDoc , HamletSettings (..) , defaultHamletSettings , xhtmlHaml...
psibi/shakespeare
Text/Hamlet/Parse.hs
mit
25,913
0
26
8,086
8,509
4,347
4,162
633
28
{-# LANGUAGE CPP #-} module GHCJS.DOM.HTMLOptGroupElement ( #if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT) module GHCJS.DOM.JSFFI.Generated.HTMLOptGroupElement #else module Graphics.UI.Gtk.WebKit.DOM.HTMLOptGroupElement #endif ) where #if (defined(ghcjs_HOST_OS) && defined(USE_...
plow-technologies/ghcjs-dom
src/GHCJS/DOM/HTMLOptGroupElement.hs
mit
480
0
5
39
33
26
7
4
0
data Tree a = Empty | Node a (Tree a) (Tree a) deriving Show treeMap :: Tree a -> (a -> b) -> Tree b treeMap Empty _ = Empty treeMap (Node x l r) f = Node (f x) (treeMap l f) (treeMap r f) clone :: Num a => Tree a -> a -> a -> Tree a clone t x y = Node x increased increased where increased = treeMap t (+ y) clonin...
fmi-lab/fp-elective-2017
exams/02/variant-b/task-2.hs
mit
437
0
11
109
250
126
124
10
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE NoMonomorphismRestriction #-} module Main where import Asm as A import AsmOptimize import Assembler import Compiler import Memory import Parser import Pretty ( pretty_ ) import PrettyAsm ( pretty ) import...
djeik/fuckdown2
src/Main.hs
mit
2,041
0
15
546
572
273
299
63
5
{-| Module : Main Description : Parses command line and dispatches to correct backend Copyright : (c) Rodrigo Setti, 2017 License : MIT Maintainer : [email protected] Stability : experimental Portability : POSIX -} {-# LANGUAGE UnicodeSyntax #-} module Main (main) where import Data.List ...
rodrigosetti/master-plan
app/Main.hs
mit
6,328
0
18
2,709
1,300
662
638
98
3
module Melchior.EventSources.Mouse where import Control.Applicative import Melchior.Control import Melchior.Data.String import Melchior.Dom import Melchior.Dom.Events position :: Element -> Signal (Int, Int) position el = (\x -> coords x) <$> s where s = createEventedSignal (Of MouseMove) el (MouseEvt M...
kjgorman/melchior
Melchior/EventSources/Mouse.hs
mit
515
1
9
82
155
86
69
13
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE UndecidableInstances #-} {-#...
nickspinale/lambda-calculi
src/Data/Type/Nat.hs
mit
830
4
9
176
211
125
86
-1
-1
{-# LANGUAGE OverloadedStrings #-} module EDDA.Schema.ShipyardV1 where import EDDA.Types import EDDA.Schema.Util import Data.Aeson import Data.Aeson.Types import qualified Data.Text as T import qualified Data.Text.Encoding as TE import qualified Data.HashMap.Strict as HM import qualified Data.HashSet as HS getShips...
troydm/edda
src/EDDA/Schema/ShipyardV1.hs
mit
1,160
0
14
468
226
125
101
24
1
{-# Language TupleSections, ViewPatterns #-} {- | Module : Language.Egison.Core Copyright : Satoshi Egi Licence : MIT This module provides functions to evaluate various objects. -} module Language.Egison.Core ( -- * Egison code evaluation evalTopExprs , evalTopExprsTestOnly , evalTop...
beni55/egison
hs-src/Language/Egison/Core.hs
mit
41,566
0
28
9,847
14,759
7,192
7,567
-1
-1
{-# htermination intersectFM_C :: (b1 -> b2 -> b3) -> FiniteMap Float b1 -> FiniteMap Float b2 -> FiniteMap Float b3 #-} import FiniteMap
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/FiniteMap_intersectFM_C_6.hs
mit
138
0
3
24
5
3
2
1
0
--The sum of the squares of the first ten natural numbers is, --12 + 22 + ... + 102 = 385 --The square of the sum of the first ten natural numbers is, --(1 + 2 + ... + 10)2 = 552 = 3025 --Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 − 385 = 264...
sravan-s/euler
euler-0006/sumSquareDiff.hs
mit
642
0
11
153
137
75
62
6
1
{- (**) Decode a run-length encoded list. Given a run-length code list generated as specified in problem 11. Construct its uncompressed version. Example in Haskell: P12> decodeModified [Multiple 4 'a',Single 'b',Multiple 2 'c', Multiple 2 'a',Single 'd',Multiple 4 'e'] "aaaabccaadeee...
gaoce/haskell_99
12.hs
mit
534
0
9
129
92
49
43
5
2
{-# LANGUAGE ScopedTypeVariables #-} module JSaddleHello ( main ) where import Data.Monoid ((<>)) import Control.Monad (forever) import Control.Monad.IO.Class (MonadIO(..)) import Control.Concurrent (forkIO) import Control.Concurrent.MVar (takeMVar, putMVar, newEmptyMVar) import Control.Lens ((^.)) import Language.Jav...
ghcjs/jsaddle-hello
src/JSaddleHello.hs
mit
2,076
0
22
555
631
327
304
40
1
{-# LANGUAGE FlexibleContexts, NoImplicitPrelude, DeriveTraversable, NamedFieldPuns, DerivingVia, DeriveGeneric #-} module Conflict ( Conflict(..), Sides(..), LineNo , setEachBody, setStrings , pretty, prettyLines , parse ) where import Control.Monad.State (MonadState, state, evalStateT) import Co...
Peaker/git-mediate
src/Conflict.hs
gpl-2.0
4,233
0
20
1,195
1,422
775
647
-1
-1
{-# LANGUAGE OverloadedStrings #-} module Sites.AmyaChronicles ( amyaChronicles ) where import Network.HTTP.Types.URI (decodePathSegments) import Data.Maybe (maybeToList, listToMaybe) import qualified Data.Text as T import qualified Data.Text.Lazy as TL import qualified Data.Text.Lazy.Encoding as TLE import ...
pharaun/hComicFetcher
src/Sites/AmyaChronicles.hs
gpl-3.0
3,869
0
21
970
1,178
617
561
-1
-1
module Main where import GrammarOfZones import DistanceTables import R import Piece import Board import qualified Data.Vector as V import Control.Monad main :: IO () main = do {-- let s_color = White let s_rank = Bishop let start = (3,2) let destination = (4,5) let subject = makeChessPiece s_col...
joshuaunderwood7/HaskeLinGeom
GrammarOfZonesMain.hs
gpl-3.0
3,539
0
18
865
863
455
408
37
2
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} module Users.ModelSpec where import Control.Monad (void) import ...
emhoracek/smooch
app/tests/Users/ModelSpec.hs
gpl-3.0
2,933
0
20
951
757
360
397
68
1
module Paths_wizzard ( version, getBinDir, getLibDir, getDataDir, getLibexecDir, getDataFileName ) where import qualified Control.Exception as Exception import Data.Version (Version(..)) import System.Environment (getEnv) import Prelude catchIO :: IO a -> (Exception.IOException -> IO a) -> IO a catchIO ...
eniac314/wizzard
dist/dist-sandbox-de3c8ba2/build/autogen/Paths_wizzard.hs
gpl-3.0
1,299
0
10
167
332
190
142
26
1
{-# LANGUAGE OverloadedStrings #-} module Network.Refraction.Discover.Types ( adFinder , tao , onionLengthWithoutTLD , Location , Nonce ) where import Data.ByteString (ByteString) import Data.Text import Data.Word (Word64) import Network.Refraction.BitcoinUtils -- TODO(hudon): make this fee d...
hudon/refraction-hs
src/Network/Refraction/Discover/Types.hs
gpl-3.0
561
0
5
101
96
63
33
16
1
{- Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan <[email protected]> This file is part of FuncTorrent. FuncTorrent 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 you...
vu3rdd/functorrent
test/MagneturiTests.hs
gpl-3.0
2,813
0
17
286
254
146
108
16
1
-- grid is a game written in Haskell -- Copyright (C) 2018 [email protected] -- -- 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/MEnv.hs
gpl-3.0
1,252
0
5
251
145
99
46
25
0
module Filter.TreeDeduction (makeTreeDeduction) where import Text.Pandoc import Filter.Util (splitIt, intoChunks,formatChunk, unlines') import Data.Map (fromList, toList, unions) import Prelude makeTreeDeduction :: Block -> Block makeTreeDeduction cb@(CodeBlock (_,classes,extra) contents) | "TreeDeduction" `elem`...
opentower/carnap
Carnap-Server/Filter/TreeDeduction.hs
gpl-3.0
2,504
0
16
910
910
493
417
43
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Accounts/Patch.hs
mpl-2.0
3,633
0
14
849
482
285
197
71
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/Disks/Resize.hs
mpl-2.0
4,823
0
19
1,207
638
380
258
95
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-healthcare/gen/Network/Google/Resource/Healthcare/Projects/Locations/DataSets/ConsentStores/SetIAMPolicy.hs
mpl-2.0
6,857
0
16
1,368
784
460
324
126
1
{-# OPTIONS_GHC -fno-warn-orphans #-} -- | -- Module : Properties.Series -- Copyright : (c) 2012 Brendan Hay <[email protected]> -- 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 LICE...
brendanhay/numbersd
test/Properties/Series.hs
mpl-2.0
13,481
0
14
2,394
2,937
1,528
1,409
-1
-1
module Git.Command.Cvsimport (run) where run :: [String] -> IO () run args = return ()
wereHamster/yag
Git/Command/Cvsimport.hs
unlicense
87
0
7
15
42
23
19
3
1
{- Created : 2013 Dec 23 (Mon) 23:15:11 by carr. Last Modified : 2014 Jul 30 (Wed) 09:07:30 by Harold Carr. TODO: - use Shelly to - start up fuseki - run test program - CLI with flags instead of order (and to enable optional arguments) - optional: dbAddress; multiple users, groups, permissions in one CLI c...
haroldcarr/learn-haskell-coq-ml-etc
haskell/playpen/interview/zalora/src/Interview.hs
unlicense
10,914
0
13
3,019
2,653
1,338
1,315
201
2
{-# LANGUAGE DeriveDataTypeable, TypeFamilies, TypeOperators, StandaloneDeriving, FlexibleContexts #-} -- Workaround {-# LANGUAGE CPP, UndecidableInstances #-} module Main where import Flow import Flow.Vector import Flow.Kernel import Flow.Builder import Control.Monad import Data.Typeable -- --------...
SKA-ScienceDataProcessor/RC
MS5/programs/imaging.hs
apache-2.0
11,853
0
15
2,414
3,174
1,574
1,600
-1
-1
{-# LANGUAGE TemplateHaskell #-} module Session where import Control.Applicative import Control.Monad.Reader -- lens import Control.Lens -- happstack framework import Data.Acid import Data.SafeCopy import Happstack.Server import Happstack.Server.ClientSession import Text.I18n -- local import State import State.He...
mcmaniac/blog.nils.cc
src/Session.hs
apache-2.0
1,519
0
9
260
406
216
190
45
1
{-# LANGUAGE ExistentialQuantification, OverloadedStrings #-} module HStyle.Rule ( Rule (..) , Options (..) , FileState (..) , FileM , runFileM , runRule ) where import Control.Monad (forM_, unless) import Control.Monad.Reader (ReaderT, ask, runReaderT) import Control.Monad.State (State, ge...
jaspervdj/hstyle
src/HStyle/Rule.hs
bsd-3-clause
4,448
0
18
1,364
1,081
595
486
85
6
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import System.Environment (lookupEnv) import System.Exit (exitFailure) import System.IO (hPutStrLn, stderr) import qualified Data.ByteString.Base64 as BS import qualified Data.ByteString.Char8 as BS import HerokuBuild main :: IO () main = withOptions $ \(Op...
pbrisbin/heroku-build
main.hs
bsd-3-clause
1,455
0
22
436
494
248
246
38
4
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Orphans () where import Data.Vector (Vector) import qualified Data.Vector as V import Test.SmallCheck.Series as SC import Test.Tasty.QuickCh...
quchen/qa-playground
test/Testsuite/Orphans.hs
bsd-3-clause
561
0
9
146
134
76
58
13
0
{-# LANGUAGE TypeFamilies, DeriveFunctor, DeriveDataTypeable #-} module Test.LazySmallCheck2012.FunctionalValues.Instances where import Control.Applicative import Data.Data import Data.Typeable import Test.LazySmallCheck2012.Instances import Test.LazySmallCheck2012.FunctionalValues instance Argument () where type ...
UoYCS-plasma/LazySmallCheck2012
Test/LazySmallCheck2012/FunctionalValues/Instances.hs
bsd-3-clause
2,972
0
11
638
1,375
740
635
63
0
{-# LANGUAGE OverloadedStrings #-} module Data.LTSV.String ( ltsv , record , encode , decode , decodeLTSV , ToRecord(..) , FromRecord(..) , Field, FieldMap, Record, LTSV ) where import Control.Monad (liftM2) import Control.Applicative ((<*)) import Text.Parsec ( pa...
krdlab/haskell-ltsv
Data/LTSV/String.hs
bsd-3-clause
2,981
0
10
743
673
382
291
56
2
module Language.Java.JVM.Generator where import Language.Java.JVM.JavapParser import Language.Java.JVM.SignatureParser import Control.Monad.Identity import Control.Monad.State import Data.Char (toUpper) import Data.List (foldl') import qualified Data.Set as Set import Language.Haskell.Exts.Syntax import Text.Parse...
JPMoresmau/HJVM
src/Language/Java/JVM/Generator.hs
bsd-3-clause
5,998
0
25
1,692
2,076
1,065
1,011
120
4
module GeoLabel.Geometry.Polar (Polar(..)) where import Prelude () -- Don't import anything from standard prelude import Numeric.Units.Dimensional.Prelude import GeoLabel.Real (R) data Polar = Polar { r :: Length R, theta :: Angle R, phi :: Angle R } deriving Show
wyager/GeoLabel
src/GeoLabel/Geometry/Polar.hs
bsd-3-clause
311
0
9
85
79
49
30
7
0
{-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} module Main where import System.Environment (getArgs) import qualified Funk.CLI as CLI handleArgs :: [String] -> IO () handleArgs ["init"] = CLI.handleInit handleArgs args@("status":"playing":_) = CLI.handlePlaying args handleArgs _ = putStrLn "?" main...
apa512/funk
src/Main.hs
bsd-3-clause
360
0
9
53
111
62
49
11
1
module Main where import Data.Char (digitToInt) highesNumber = 999999 isCoolNumber :: Int -> Bool isCoolNumber n = n == (sum $ map (\x -> (digitToInt x)^5) $ show n) main = print $ sum $ filter isCoolNumber [2..highesNumber]
stulli/projectEuler
eu30.hs
bsd-3-clause
229
0
14
42
98
53
45
6
1
module GivenTypeWriteFunction where co :: (b -> c) -> (a -> b) -> a -> c co bToC aToB a = bToC (aToB a) a :: (a -> c) -> a -> a a aToC a = a a' :: (a -> b) -> a -> b a' aToB a = aToB a
renevp/hello-haskell
src/givenTypeWriteFunction.hs
bsd-3-clause
188
0
8
56
119
63
56
7
1
{-# LANGUAGE CPP #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} #include "kinds.h" #ifdef DataPolyKinds {-# LANGUAGE DataKinds #-} {-# LANGUAGE PolyKinds #-} #endif #ifdef SafeHaskell {-# LANGUAGE Safe #-} #endif module Type.Semigroup ( (:<>) ) where --------------------------------------...
duairc/symbols
types/src/Type/Semigroup.hs
bsd-3-clause
2,489
38
9
404
887
523
364
-1
-1
module Cloud.AWS.RDS.Types.Tag ( Tag(..) ) where import Data.Text (Text) data Tag = Tag { tagValue :: Text , tagKey :: Text } deriving (Show, Eq)
worksap-ate/aws-sdk
Cloud/AWS/RDS/Types/Tag.hs
bsd-3-clause
170
0
8
49
60
38
22
7
0
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE TupleSections #-} {-# OP...
zohl/postgresql-simple-bind
tests/Test/PGComment.hs
bsd-3-clause
3,606
0
17
774
971
532
439
77
1
------------------------------------------------------------------------------------- -- | -- Copyright : (c) Hans Hoglund 2012 -- -- License : BSD-style -- -- Maintainer : [email protected] -- Stability : experimental -- Portability : portable -- -- Provides Balances, i.e. mappings from relative to absolut...
music-suite/music-dynamics
src/Music/Dynamics/Balance.hs
bsd-3-clause
630
0
4
72
48
36
12
6
0
module Language.Lambda ( module Language.Lambda.Syntax , module Language.Lambda.Parser ) where import Language.Lambda.Syntax import Language.Lambda.Parser
utky/lambda-cute
src/Language/Lambda.hs
bsd-3-clause
162
0
5
21
34
23
11
5
0
{-# LANGUAGE PolyKinds, DataKinds, TemplateHaskell, TypeFamilies, GADTs, TypeOperators, RankNTypes, FlexibleContexts, UndecidableInstances, FlexibleInstances, ScopedTypeVariables, MultiParamTypeClasses, OverlappingInstances, StandaloneDeriving #-} module Oxymoron.Description.Material where import Data.Singl...
jfischoff/oxymoron
src/Oxymoron/Description/Material.hs
bsd-3-clause
881
0
10
169
121
71
50
17
0
{- This file is part of the package devalot-hakyll. It is subject to the license terms in the LICENSE file found in the top-level directory of this distribution and at git://pmade.com/devalot-hakyll/LICENSE. No part of devalot-hakyll package, including this file, may be copied, modified, propagated, or distributed ex...
pjones/devalot-hakyll
src/Hakyll/Web/JavaScript.hs
bsd-3-clause
1,621
0
17
258
239
129
110
19
1
module Web.Mp3Convertr where import System.FilePath.Posix (combine) import System.Process (readProcess) data ConvertConf = ConvertConf { getFFmpegCommand :: FilePath , getTempDir :: FilePath , getExt :: String ...
algas/mp3huntr
src/Web/Mp3Convertr.hs
bsd-3-clause
866
0
9
344
211
120
91
16
1
---------------------------------------------------------------------------- -- | -- Module : Server.Tags.SearchM -- Copyright : (c) Sergey Vinokurov 2016 -- License : BSD3-style (see LICENSE) -- Maintainer : [email protected] -- Created : Tuesday, 23 August 2016 ----------------------------------...
sergv/tags-server
src/Haskell/Language/Server/Tags/SearchM.hs
bsd-3-clause
1,823
0
11
317
329
190
139
41
1
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE UndecidableInstances #-} -- | Representations for signed and unsigned integer types -- -- The reason for using symbol names ending with @_t@ is that 'deriveRender' -- uses everything that comes before @_@ when rendering the constructor. module Data.TypeRep.Types.IntWord w...
emilaxelsson/open-typerep
src/Data/TypeRep/Types/IntWord.hs
bsd-3-clause
2,323
0
8
407
692
341
351
-1
-1
{-# LANGUAGE OverloadedStrings #-} -- | Downloads page controller. module HL.C.Downloads where import HL.C import HL.V.Downloads -- | Downloads controller. getDownloadsR :: C Html getDownloadsR = senza downloadsV -- | Downloads for particular OS. getDownloadsForR :: OS -> C Html getDownloadsForR = senza . download...
yogsototh/hl
src/HL/C/Downloads.hs
bsd-3-clause
326
0
6
50
59
35
24
8
1
{-# LANGUAGE DeriveGeneric, OverloadedStrings #-} module DB.CardSimple.Model where import Prelude hiding (id) import Data.Text import GHC.Generics import Data.Aeson import Data.Time.Clock import Control.Applicative import Database.PostgreSQL.Simple import Database.PostgreSQL.Simple.FromRow data CardSimple = CardSim...
ppseafield/backend-flashcard
src/DB/CardSimple/Model.hs
bsd-3-clause
880
0
13
285
192
112
80
31
0
module Import ( module Import ) where import Foundation as Import import Import.NoFoundation as Import
MaxGabriel/hackvote-yesod
Import.hs
cc0-1.0
124
0
4
36
22
16
6
4
0
module PatConstructor where f :: Bool -> Int f ((:) x xs) = 3
roberth/uu-helium
test/typeerrors/Examples/PatConstructor.hs
gpl-3.0
63
0
7
15
31
18
13
3
1
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- ...
fmapfmapfmap/amazonka
amazonka-cognito-sync/gen/Network/AWS/CognitoSync/SetIdentityPoolConfiguration.hs
mpl-2.0
6,862
0
14
1,312
912
542
370
112
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="ko-KR"> <title>Replacer | ZAP Extension</title> <maps> <homeID>top</homeID> <mapref lo...
veggiespam/zap-extensions
addOns/replacer/src/main/javahelp/org/zaproxy/zap/extension/replacer/resources/help_ko_KR/helpset_ko_KR.hs
apache-2.0
970
80
66
159
413
209
204
-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="sl-SI"> <title>Plug-n-Hack | ZAP Extension</title> <maps> <homeID>top</homeID> <mapref...
veggiespam/zap-extensions
addOns/plugnhack/src/main/javahelp/org/zaproxy/zap/extension/plugnhack/resources/help_sl_SI/helpset_sl_SI.hs
apache-2.0
973
80
68
159
421
213
208
-1
-1
{-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TupleSections #-} module Language.Haskell.Liquid.GHC.Play where import GHC import CoreSyn import Var import TypeRep import TcRnMonad import Coercion import ...
abakst/liquidhaskell
src/Language/Haskell/Liquid/GHC/Play.hs
bsd-3-clause
2,898
0
13
887
1,508
752
756
68
1
{-# LANGUAGE CPP #-} #include "fusion-phases.h" -- | Selectors. -- -- See "Data.Array.Parallel.Unlifted" for how this works. -- module Data.Array.Parallel.Unlifted.Sequential.USel ( -- * Types USel2(..) -- * Operations on selectors , mkUSel2 , lengthUSel2 , tags...
mainland/dph
dph-prim-seq/Data/Array/Parallel/Unlifted/Sequential/USel.hs
bsd-3-clause
3,266
0
16
883
658
387
271
66
3
{-# LANGUAGE FlexibleContexts #-} module Futhark.Internalise.AccurateSizes ( shapeBody , annotateArrayShape , argShapes , ensureResultShape , ensureResultExtShape , ensureShape , ensureShapeVar ) where import Control.Applicative import Control.Monad import Data.Loc import qualified Data.HashMap.Lazy ...
CulpaBS/wbBach
src/Futhark/Internalise/AccurateSizes.hs
bsd-3-clause
3,529
0
17
1,005
1,112
541
571
90
2
module B where import B1
sdiehl/ghc
testsuite/tests/ghci/prog019/B.hs
bsd-3-clause
26
0
3
6
7
5
2
2
0
<?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>Requester</title> <maps> <homeID>requester</homeID> <mapref location="ma...
thc202/zap-extensions
addOns/requester/src/main/javahelp/help_de_DE/helpset_de_DE.hs
apache-2.0
960
92
29
155
389
208
181
-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="fa-IR"> <title>Revisit | ZAP Extension</title> <maps> <homeID>top</homeID> <mapref loca...
kingthorin/zap-extensions
addOns/revisit/src/main/javahelp/org/zaproxy/zap/extension/revisit/resources/help_fa_IR/helpset_fa_IR.hs
apache-2.0
968
90
29
158
396
211
185
-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="ja-JP"> <title>Passive Scan Rules - Beta | ZAP Extension</title> <maps> <homeID>top</homeID>...
thc202/zap-extensions
addOns/pscanrulesBeta/src/main/javahelp/org/zaproxy/zap/extension/pscanrulesBeta/resources/help_ja_JP/helpset_ja_JP.hs
apache-2.0
1,012
96
27
162
398
210
188
-1
-1
module A (T,t) where data T = T t = T instance Eq T where t1 == t2 = False
ghc-android/ghc
testsuite/tests/driver/recomp008/A2.hs
bsd-3-clause
80
0
6
25
43
24
19
5
1
module Main.Statements where import Prelude import Contravariant.Extras import Hasql.Statement import qualified Hasql.Encoders as E import qualified Hasql.Decoders as D createAccountTable :: Statement () () createAccountTable = Statement sql E.noParams D.noResult False where sql = "create table account...
nikita-volkov/hasql-transaction
conflicts-test/Main/Statements.hs
mit
1,261
0
12
244
342
183
159
39
1
{-# LANGUAGE OverloadedStrings, CPP #-} {-| Module : Examples Description : Provides predefined networks. Copyright : (c) Tessa Belder 2015. Provides predefined networks. -} module Examples( networkMap, networkMapFlattened, networkMapTyped, module Examples.InvariantTestNetwork, module Examples.Macr...
julienschmaltz/madl
examples/Examples.hs
mit
3,414
0
8
639
930
549
381
85
1
module Main (main) where import Data.Word import System.Environment (getArgs, getProgName) import System.Exit (ExitCode(..), exitFailure) import System.IO (hPutStrLn, stderr) import qualified System.Process as P (shell) import System.Process.ByteString () import qualified System.Process.Common as P import Data.ByteS...
NicolasT/reedsolomon
cbits/reedsolomon-gal-mul-stdio-quickcheck.hs
mit
2,259
0
13
607
722
392
330
55
4
{-# LANGUAGE FlexibleContexts, LambdaCase, RankNTypes, TypeSynonymInstances, FlexibleInstances, ViewPatterns, OverloadedStrings, ScopedTypeVariables, ConstraintKinds, NamedFieldPuns, NoMonomorphismRestriction #-} {-# OPTIONS_GHC -fno-warn-missing-signatures -fno-warn-partial-type-signatures -fno-warn-orphans #-} modu...
sboosali/commands
commands-spiros/config/Commands/Plugins/Spiros/Extra.hs
mit
10,480
0
12
1,877
2,156
1,206
950
147
7
module Main where import Control.Monad.Trans import System.Directory import System.FilePath import System.Environment import System.Exit import Text.PrettyPrint.HughesPJ import ConstantCode import CSPMDataStructures import CSPMParser import CSPMPrettyPrinter import CSPMRecursionRefactorings import CSPMTypeChecker.TCM...
tomgr/tyger
src/Main.hs
mit
3,109
75
22
586
866
433
433
84
2
exs :: [([Bool], Bool)] exs = [ ([True, True, True], True), ([False, False, False], False), ([True, False], True), ([False, True], True) ]
santolucito/ives
tests/benchmarks/bool_or.hs
mit
169
0
9
52
95
59
36
5
1
module Statistics where import Data.List import Control.Monad import System.Directory import Submissions import Users import Assignments data Bucket = Bucket { rangeMin :: Double , rangeMax :: Double , count :: Int } deriving Show data Statistics = Statis...
cromulen/puh-project
src/Statistics.hs
mit
4,251
0
14
1,203
1,412
704
708
105
2
{-# LANGUAGE OverloadedStrings #-} -- | Mobile application authentication flow example -- -- Please remember to substitute __YOUR_API_KEY__, -- __YOUR_SECRET__, __USERNAME__ and __PASSWORD__ -- for real values import Control.Lens -- lens import Data.Aeson.Lens -- lens-aeson import qua...
supki/liblastfm
example/mobile-authentication.hs
mit
984
5
16
235
217
112
105
-1
-1