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
module Physics.Integrator ( Integrator(..) , runIntegratorPos , euler , verlet ) where import Control.Wire import FRP.Netwire import Linear.Vector import Prelude hiding ((.), id) -- | Integrator newtype, wrapping around integrator functions. Integrator -- functions in general take an accele...
mstksg/netwire-experiments
src/Physics/Integrator.hs
gpl-3.0
1,886
1
20
617
618
340
278
-1
-1
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} module Types where import Data.Bits(shiftL, shiftR, (.&.), (.|.)) import Data.List(intercalate, transpose, foldl', unfoldr) import Control.Applicative((<$>), (<*)) import Text.ParserCombinators.Parsec(GenParser, (<|>), many, many1, oneOf, newline, digit, eof, c...
peteryland/binoxxo
src/Types.hs
gpl-3.0
2,520
0
19
671
902
491
411
-1
-1
{-#LANGUAGE DeriveGeneric #-} module Handler.Review (getReviewR, putReviewR, deleteReviewR) where import Import import Util.Data import Util.Database import Data.Map as M (fromList) import Data.Tree import Data.List (nub) import Filter.Util (sanatizeHtml) import Text.Read (readMaybe) import Yesod.Form.Bootstrap3 impor...
gleachkr/Carnap
Carnap-Server/Handler/Review.hs
gpl-3.0
18,362
0
28
7,838
3,424
1,760
1,664
-1
-1
-- Try to eventually arrive at a solution that uses foldr, even if -- earlier versions don’t use foldr. lefts' :: [Either a b] -> [a] lefts' ls = foldr f [] ls where f k acc = case k of (Left l) -> l:acc _ -> acc rights' :: [Either a b] -> [b...
nirvinm/Solving-Exercises-in-Haskell-Programming-From-First-Principles
Signaling_Adversity/EitherLib.hs
gpl-3.0
1,020
0
11
352
392
200
192
20
2
module HEP.Automation.MadGraph.Dataset.Set20110704set2 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.SM import HEP.Automation.MadGra...
wavewave/madgraph-auto-dataset
src/HEP/Automation/MadGraph/Dataset/Set20110704set2.hs
gpl-3.0
1,461
0
10
442
312
198
114
40
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
romanb/amazonka
amazonka-glacier/gen/Network/AWS/Glacier/ListJobs.hs
mpl-2.0
8,746
0
12
1,856
951
584
367
96
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/GetMetrics.hs
mpl-2.0
6,978
0
21
1,616
969
565
404
143
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Advertisers/Insert.hs
mpl-2.0
3,285
0
14
739
406
242
164
63
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/RasterCollections/Get.hs
mpl-2.0
2,901
0
12
645
302
186
116
49
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-games/gen/Network/Google/Resource/Games/Applications/Played.hs
mpl-2.0
3,029
0
13
667
332
201
131
51
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-admin-directory/gen/Network/Google/Resource/Directory/RoleAssignments/Get.hs
mpl-2.0
5,285
0
20
1,291
788
458
330
119
1
-- | A @`Maker` a@ is wrapper around a function from @`Tree`@'s to @a@s. They are -- built up using various combinators, then invoked with @`runMaker`@. module Maker ( Maker(),runMaker, (@@),(@?),(@@@),(@@#),(/@@),(/@#),(<?>), (~@),(~?), firstChild,secondChild,mapSubForest,tryMap,filterSubForest,singleChild, ...
joelwilliamson/validator
Maker.hs
agpl-3.0
10,737
0
21
2,913
3,444
1,807
1,637
-1
-1
{- | Module : $Header$ Description : Types used by tempuhs. Copyright : (c) plaimi 2014 License : AGPL-3 Maintainer : tempuhs@plaimi.net -} module Tempuhs.Types where -- | A 'ProperTime' is time measured by a 'Clock'. type ProperTime = Double -- | A 'TimeRange' represents a range between two 'ProperT...
plaimi/tempuhs
src/Tempuhs/Types.hs
agpl-3.0
477
0
5
93
34
24
10
4
0
-- type templated haskell -- http://ghc-devs.haskell.narkive.com/cCdTaqot/new-branch-implementing-typed-untyped-template-haskell -- https://mail.haskell.org/pipermail/ghc-devs/2013-May/001255.html
egaburov/funstuff
Haskell/thsk/tths02.hs
apache-2.0
197
0
2
8
5
4
1
1
0
{-# LANGUAGE TupleSections #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GADTs #-} module World.Statistics where import Control.Lens import qualified Data.Foldable as F import Data.List (intercalate) import qualified Data.Map as M import Data.Maybe import qualified Data.Sequence as S import Numeric (showFFloat) ...
jtapolczai/wumpus
World/Statistics.hs
apache-2.0
5,319
0
39
1,300
2,047
1,089
958
-1
-1
-- Copyright 1999-2011 The Text.XHtml Authors. -- -- Licensed under the Apache License, Version 2.0 (the "License"); you may not -- use this file except in compliance with the License. You may obtain a copy -- of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable...
robinbb/hs-text-xhtml
Text/XHtml/Transitional/Attributes.hs
apache-2.0
4,398
0
5
1,412
504
298
206
88
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} -- | A datatype representing the request attributes Airbrake wants to hear -- about. Conversion functions are provided for: -- -- * wai module Airbrake.WebRequest ( WebRequest (..), waiRequestToRequest ) where import Data.ByteString.U...
pikajude/hs-airbrake
src/Airbrake/WebRequest.hs
bsd-2-clause
1,963
0
14
639
362
205
157
33
3
module Physics.Sloth2D.Stepper ( Stepper , stepper, advance , lerpFactor, timeStep ) where -- | A time step manager entity to fix the time steps of the -- simulation. data Stepper = Stepper { tstep :: Float , tstep' :: Float , dtmax :: Float , tfrac :: Float } -- | Constructing a s...
cobbpg/sloth2d
Physics/Sloth2D/Stepper.hs
bsd-3-clause
1,425
0
11
384
270
158
112
28
1
module Zero.Account.Client ( Credentials(..) ) where import GHC.Generics (Generic) import Data.Text (Text) import Data.Aeson ------------------------------------------------------------------------------ -- Types ------------------------------------------------------------------...
et4te/zero
src/Zero/Account/Client.hs
bsd-3-clause
692
0
8
167
147
87
60
19
0
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RebindableSyntax #-} module Nifty (main) where import Prelude import FFI import Fay.Text import Cinder.SVG main :: Fay () main = addEventListener "load" nifty False nifty :: Fay () nifty = root >>= byTag "path" >>= mapM (tracePath 1 1) >>= stagger "begin" 0 1 ...
crooney/cinder
examples/Nifty.hs
bsd-3-clause
449
0
10
81
141
73
68
14
1
-- -- Copyright © 2014-2015 Anchor Systems, Pty Ltd and Others -- -- The code in this file, and the program it is a part of, is -- made available to you by its authors as open source software: -- you can redistribute it and/or modify it under the terms of -- the 3-clause BSD licence. -- {-# LANGUAGE OverloadedStrings ...
anchor/synchronise
lib/Synchronise/Configuration.hs
bsd-3-clause
7,157
0
17
1,931
1,720
894
826
145
3
{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-orphans #-} ----------------------------------------------------------------------------- -- | -- Module : Geometry.ThreeD.Types -- Copyright : (c) 2011-2017 diagrams team (see LICENSE) -- License : BSD-style (see LICENSE) -- Maintainer : diagrams...
cchalmers/geometry
src/Geometry/ThreeD/Types.hs
bsd-3-clause
2,737
0
12
647
900
511
389
53
1
module Main where import InteractivePrompt import System.Environment main :: IO() main = do args <- getArgs opts <- (if length args /= 2 then withArgs ["--help"] else id) getOpts optionHandler opts
shaurya0/GPWebCrawler
src/Main.hs
bsd-3-clause
212
0
12
45
74
38
36
8
2
{-# LANGUAGE PatternSynonyms #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.ProvokingVertex -- Copyright : (c) Sven Panne 2019 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portabil...
haskell-opengl/OpenGLRaw
src/Graphics/GL/ARB/ProvokingVertex.hs
bsd-3-clause
855
0
5
113
72
52
20
12
0
module Data.Text.Lazy ( module ListBased , Text ) where import ListBased import Types
Soostone/string-compat
src/Data/Text/Lazy.hs
bsd-3-clause
120
0
4
47
22
15
7
5
0
{-# LANGUAGE PatternGuards, ExistentialQuantification, CPP #-} module Idris.Core.Execute (execute) where import Idris.AbsSyntax import Idris.AbsSyntaxTree import IRTS.Lang(FType(..)) import Idris.Primitives(Prim(..), primitives) import Idris.Core.TT import Idris.Core.Evaluate import Idris.Core.CaseTree import Idris...
andyarvanitis/Idris-dev
src/Idris/Core/Execute.hs
bsd-3-clause
26,978
0
6
10,127
240
153
87
27
1
{-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE UndecidableInstances #-} -- | Contains monads which provide environment for references counting and -- remembering. module ...
Martoon-00/toy-compiler
src/Toy/Exp/RefEnv.hs
bsd-3-clause
2,914
0
14
938
809
429
380
-1
-1
module Module5.Task6 where import Module5.Task5 (Log(..)) returnLog :: a -> Log a returnLog = Log []
dstarcev/stepic-haskell
src/Module5/Task6.hs
bsd-3-clause
102
0
6
17
42
24
18
4
1
{-# LANGUAGE Arrows, OverloadedStrings #-} module Main where import FRP.Yampa import FRP.Yampa.Utilities import Data.Colour.SRGB import Graphics import Shapes import Input import System.Random (mkStdGen) cubeX, cubeWidth, cubeHeight :: Double cubeX = 100 cubeWidth = 30 cubeHeight = 30 pipeWidth, pipeGap :: Dou...
pyrtsa/yampa-demos-template
src/Cube.hs
bsd-3-clause
4,989
3
14
1,532
1,332
715
617
99
1
module Main where import D14Lib import System.Environment (getArgs) main :: IO () main = do input <- head <$> getArgs let g = grid input putStrLn $ showGroups g
wfleming/advent-of-code-2016
2017/D14/app/PrintGroups.hs
bsd-3-clause
169
0
10
37
65
33
32
8
1
-- | -- Module : $Header$ -- Copyright : (c) 2013-2014 Galois, Inc. -- License : BSD3 -- Maintainer : cryptol@galois.com -- Stability : provisional -- Portability : portable {-# LANGUAGE PatternGuards #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module REPL.Haskeline where import REPL.Command import...
TomMD/cryptol
cryptol/REPL/Haskeline.hs
bsd-3-clause
5,881
0
21
1,370
1,716
885
831
124
7
{-| Module: Data.Astro.Utils Description: Utility functions Copyright: Alexander Ignatyev, 2016 Utility functions. -} module Data.Astro.Utils ( fromFixed , trunc , fraction , reduceToZeroRange , toRadians , fromRadians , roundToN , tropicalYearLen ) where import Data.Fixed(Fixed(MkFixed), HasResolu...
Alexander-Ignatyev/astro
src/Data/Astro/Utils.hs
bsd-3-clause
1,512
0
14
322
436
239
197
31
2
{-# LANGUAGE ViewPatterns, TupleSections, RecordWildCards, ScopedTypeVariables, PatternGuards #-} module Action.Generate(actionGenerate) where import Data.List.Extra import System.FilePath import System.Directory.Extra import System.Time.Extra import Data.Tuple.Extra import Control.Exception.Extra import Data.IORef i...
BartAdv/hoogle
src/Action/Generate.hs
bsd-3-clause
7,255
0
32
1,770
1,444
738
706
98
6
-- This module is necessary to avoid cyclic imports in some cases. -- Unfortunately it leaks more than is necessary. {-# LANGUAGE DeriveGeneric, OverloadedStrings, DeriveDataTypeable, TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module CommonTypes ( PendingActionsTrackerHandle(..) , PendingActionsS...
javgh/bridgewalker
src/CommonTypes.hs
bsd-3-clause
13,764
0
11
6,489
2,086
1,257
829
251
1
{-# LANGUAGE DeriveGeneric #-} module HipChat.Types.ExternalPage where import Data.Aeson import Data.Aeson.Casing import Data.Text (Text) import GHC.Generics import HipChat.Types.Name data ExternalPage = ExternalPage { externalPageKey :: Text , exter...
oswynb/hipchat-hs
lib/HipChat/Types/ExternalPage.hs
bsd-3-clause
582
0
8
142
126
73
53
16
0
------------------------------------------------------------------------------- -- -- | Main API for compiling plain Haskell source code. -- -- This module implements compilation of a Haskell source. It is -- /not/ concerned with preprocessing of source files; this is handled -- in "DriverPipeline". -- -- There are var...
ssaavedra/liquidhaskell
src/Language/Haskell/Liquid/Desugar710/HscMain.hs
bsd-3-clause
3,000
0
10
518
511
282
229
44
2
module Main where import Test.DocTest --import Test.QuickCheck main :: IO () main = doctest [ "src/Lambda/DataType.hs" ]
ocean0yohsuke/Simply-Typed-Lambda
test/doctests.hs
bsd-3-clause
138
0
6
34
31
18
13
4
1
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances #-} {- | Module : ./THF/StaticAnalysisTHF.hs Description : Static analysis for THF Copyright : (c) A. Tsogias, DFKI Bremen 2011 License : GPLv2 or higher, see LICENSE.txt Maintainer : Alexis.Tsogias@dfki.de Stability : provisional Portability...
spechub/Hets
THF/StaticAnalysisTHF.hs
gpl-2.0
12,733
0
21
3,401
3,080
1,588
1,492
217
9
{-# LANGUAGE CPP, MultiParamTypeClasses, TypeSynonymInstances , FlexibleInstances #-} {- | Module : ./CASL/Logic_CASL.hs Description : Instance of class Logic for the CASL logic Copyright : (c) Klaus Luettich, Uni Bremen 2002-2005 License : GPLv2 or higher, see LICENSE.txt Maintainer : till@informat...
spechub/Hets
CASL/Logic_CASL.hs
gpl-2.0
10,136
0
12
2,437
2,481
1,285
1,196
221
1
-- Copyright : Daan Leijen (c) 1999, daan@cs.uu.nl -- HWT Group (c) 2003, haskelldb-users@lists.sourceforge.net -- License : BSD-style module Opaleye.Internal.HaskellDB.Sql.Generate (SqlGenerator(..)) where import Opaleye.Internal.HaskellDB.PrimQuery import Opaleye.Internal.HaskellDB.Sql impor...
WraithM/haskell-opaleye
src/Opaleye/Internal/HaskellDB/Sql/Generate.hs
bsd-3-clause
885
0
13
208
159
99
60
11
0
----------------------------------------------------------------------------- -- | -- Module : Graphics.HGL.Draw.Monad -- Copyright : (c) Alastair Reid, 1999-2003 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stability : provisional -- Portab...
FranklinChen/hugs98-plus-Sep2006
packages/HGL/Graphics/HGL/Draw/Monad.hs
bsd-3-clause
785
4
4
139
53
41
12
7
0
{-# LANGUAGE Haskell98 #-} {-# LINE 1 "src/Foreign/Marshal/Unsafe/Compat.hs" #-} {-# LANGUAGE CPP, NoImplicitPrelude #-} module Foreign.Marshal.Unsafe.Compat ( -- * Unsafe functions unsafeLocalState ) where import Foreign.Marshal.Unsafe (unsafeLocalState)
phischu/fragnix
tests/packages/scotty/Foreign.Marshal.Unsafe.Compat.hs
bsd-3-clause
310
0
5
81
28
20
8
6
0
module Nitpick.PatternMatches (patternMatches) where import Control.Applicative ((<$>), (<*)) import Control.Arrow (second) import qualified Data.Foldable as F import qualified Data.Map as Map import qualified Data.Maybe as Maybe import qualified Data.Set as Set import qualified AST.Expression.General as E import qua...
pairyo/elm-compiler
src/Nitpick/PatternMatches.hs
bsd-3-clause
8,684
0
18
2,495
2,572
1,314
1,258
258
18
module Viewers ( viewCPU , viewStack , viewMem , viewMem16 ) where import qualified CPU.Instructions as Ops import CPU.FrozenEnvironment (FrozenCPUEnvironment(..), readFrzMemory) import CPU.Types (Address) import BitTwiddling (joinBytes) import Text.Printf (printf) import Data.Word (Word8, Word16...
ChaosCabbage/my-haskell-flailing
src/Viewers.hs
bsd-3-clause
2,733
0
14
829
727
386
341
57
4
{-# LANGUAGE OverloadedStrings #-} -- | Description : Easy IPython kernels = Overview This module provides automation for writing -- simple IPython kernels. In particular, it provides a record type that defines configurations and -- a function that interprets a configuration as an action in some monad that can do IO. ...
artuuge/IHaskell
ipython-kernel/src/IHaskell/IPython/EasyKernel.hs
mit
10,812
0
16
3,181
1,956
1,029
927
157
2
module RenamingSpec (main, spec) where import Test.Hspec import Language.Haskell.Refact.Refactoring.Renaming import TestUtils import System.Directory -- --------------------------------------------------------------------- main :: IO () main = do hspec spec spec :: Spec spec = do describe "Renamin...
RefactoringTools/HaRe
test/RenamingSpec.hs
bsd-3-clause
30,397
0
18
7,509
4,527
2,256
2,271
352
1
-- Copyright (c) Microsoft. All rights reserved. -- Licensed under the MIT license. See LICENSE file in the project root for full license information. {-# LANGUAGE QuasiQuotes, OverloadedStrings, RecordWildCards #-} module Language.Bond.Codegen.Cpp.Enum_h (enum_h) where import Data.Monoid import Prelude import Data....
chwarr/bond
compiler/src/Language/Bond/Codegen/Cpp/Enum_h.hs
mit
1,431
0
10
205
191
123
68
16
3
module C3 (sumTree, myFringe, SameOrNot(..)) where data Tree a = Leaf a | Branch (Tree a) (Tree a) sumTree :: Num a => (Tree a) -> a sumTree (Leaf x) = x sumTree (Branch left right) = (sumTree left) + (sumTree right) myFringe :: (Tree a) -> [a] myFringe (Leaf x) = [x] myFringe (Branch left right...
kmate/HaRe
old/testing/rmFromExport/C3_AstOut.hs
bsd-3-clause
531
0
8
164
241
127
114
15
1
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} module Database.Persist.Class.DeleteCascade ( DeleteCascade (..) , deleteCascadeWhere ) where import Database.Persist.Class.PersistStore import Database.Persist.Class.PersistQuery import Database.Persist.Class.PersistEntity import qualif...
jasonzoladz/persistent
persistent/Database/Persist/Class/DeleteCascade.hs
mit
1,025
0
13
164
278
156
122
22
1
{-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Unittests for "Ganeti.Errors". -} {- Copyright (C) 2012 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. Redi...
apyrgio/snf-ganeti
test/hs/Test/Ganeti/Errors.hs
bsd-2-clause
1,892
0
9
282
98
57
41
13
1
{-# LANGUAGE Trustworthy #-} ----------------------------------------------------------------------------- -- | -- Module : System.Exit -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stability ...
rahulmutt/ghcvm
libraries/base/System/Exit.hs
bsd-3-clause
2,817
0
8
452
244
152
92
25
1
module DoExp1 where f x = do (x:y) <- getLine putStrLn x g x = do x <- getLine putStrLn x
kmate/HaRe
old/testing/foldDef/DoExpr1_TokOut.hs
bsd-3-clause
129
0
9
60
53
25
28
7
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="ar-SA"> <title>WebSockets | ZAP Extension</title> <maps> <homeID>top</homeID> <mapref ...
msrader/zap-extensions
src/org/zaproxy/zap/extension/websocket/resources/help_ar_SA/helpset_ar_SA.hs
apache-2.0
972
82
65
159
411
208
203
-1
-1
{-# LANGUAGE PatternSynonyms #-} module T12108 where type Endo a = a -> a pattern Id :: Endo a pattern Id x = x
ezyang/ghc
testsuite/tests/patsyn/should_compile/T12108.hs
bsd-3-clause
115
0
6
27
37
21
16
5
0
{-# LANGUAGE CPP #-} module Vectorise.Monad.InstEnv ( existsInst , lookupInst , lookupFamInst ) where import Vectorise.Monad.Global import Vectorise.Monad.Base import Vectorise.Env import DynFlags import FamInstEnv import InstEnv import Class import Type import TyCon import Outputable import Util #includ...
urbanslug/ghc
compiler/vectorise/Vectorise/Monad/InstEnv.hs
bsd-3-clause
2,531
0
16
607
398
221
177
-1
-1
{-# LANGUAGE RankNTypes, MultiParamTypeClasses #-} {-# LANGUAGE AllowAmbiguousTypes #-} -- c3 is ambiguous! module T where import qualified Prelude as T(length,Monad,Integer) import qualified Data.ByteString as T(length) import Prelude(length,(+),(=<<),Monad(..),Maybe(..),Eq) import Data.Maybe import Control.Monad(Mo...
urbanslug/ghc
testsuite/tests/ghci/scripts/ghci025.hs
bsd-3-clause
507
0
8
92
198
121
77
-1
-1
-- | Data types representing responses from the API. module Strive.Types ( module Strive.Types.Activities , module Strive.Types.Athletes , module Strive.Types.Authentication , module Strive.Types.Clubs , module Strive.Types.Comments , module Strive.Types.Efforts , module Strive.Types.Gear , module Striv...
bitemyapp/strive
library/Strive/Types.hs
mit
822
0
5
100
165
114
51
25
0
module Main where import Control.Monad.Reader import Control.Monad.Except import Control.Exception (try) import Data.List import Data.Time import System.Directory import System.FilePath import System.Environment import System.Console.GetOpt import System.Console.Haskeline import System.Console.Haskeline.History import...
linuborj/cubicaltt
Main.hs
mit
7,938
0
35
2,535
2,515
1,289
1,226
168
11
module Ast where data Ast a = Value a | Operation Op (Ast a) (Ast a) data Op = Add | Subtract | Multiply | Divide deriving (Show) evaluate :: (Integral a) => (Ast a) -> a evaluate (Value a) = a evaluate (Operation Add a b) = evaluate a + evaluate b evaluate (Operation Subtract a b) = evaluate a -...
Agrosis/haxpr
src/Ast.hs
mit
456
0
8
111
210
108
102
9
1
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TupleSections #-} {- | Module : Database.Couch.Explicit.Doc Description : Document-oriented requests to CouchDB, with explicit parameters Copyright : Copyright (c) 2015, Michael Alan Dorman License : MIT Maintainer : md...
mdorman/couch-simple
src/lib/Database/Couch/Explicit/Doc.hs
mit
5,149
0
13
1,164
433
246
187
50
1
{-# LANGUAGE TemplateHaskell #-} module Example where import Hs2Ps data Array a = Array a data Tuple a b = Tuple a b data Example = A [[Int]] | B [(Maybe Int, Maybe Bool, [Maybe Float])] hs2Ps "Example" {- Result from -ddump-splices data Example = A (Array (Array Int)) | B (Array (Tuple...
izgzhen/purescript-purescript
utils-hs/Example.hs
mit
382
0
10
96
82
48
34
7
0
-- | Strict alternatives to the functions in -- Control.Monad.Conc.CVar. Specifically, values are evaluated to -- normal form before being put into a @CVar@. module Control.Concurrent.CVar.Strict ( -- *@CVar@s CVar , newEmptyCVar , newCVar , takeCVar , putCVar , readCVar , swapCVar , tryTakeCVar , tryPutCVar...
bitemyapp/dejafu
Control/Concurrent/CVar/Strict.hs
mit
3,494
0
13
655
860
474
386
57
1
{-# LANGUAGE StandaloneDeriving #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Data.String.Interpolate.ParseSpec (main, spec) where import Test.Hspec import Data.String.Interpolate.Parse deriving instance Eq a => Eq (Node a) deriving instance Show a => Show (Node a) main :: IO () main = hspec ...
sol/interpolate
test/Data/String/Interpolate/ParseSpec.hs
mit
948
0
18
214
274
136
138
23
1
{-# LANGUAGE DoAndIfThenElse, DeriveDataTypeable #-} module Assets.FileSystem( FileSystemArchive , newFileSystemArchive ) where import Prelude hiding (readFile, writeFile) import Control.Monad.Trans (liftIO) import Control.Monad.Trans.Either import Data.Typeable import Data.ByteString.Lazy (readFile, writeFile...
NCrashed/sinister
src/client/Assets/FileSystem.hs
mit
1,405
0
13
239
363
190
173
34
1
-- https://www.hackerrank.com/challenges/fp-update-list f = map abs -- This section handles the Input/Output and can be used as it is. Do not modify it. main = do inputdata <- getContents mapM_ putStrLn $ map show $ f $ map (read :: String -> Int) $ lines inputdata
Seblink/HackerRank
functional-programming/introduction/fp-update-list.hs
mit
274
0
11
54
64
31
33
4
1
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.Database (js_changeVersion, changeVersion, js_transaction, transaction, js_readTransaction, readTransaction, js_getVersion, getVersion, Database, castToDatabase, gTypeDatabase) where ...
manyoo/ghcjs-dom
ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/Database.hs
mit
4,131
46
10
927
833
473
360
79
1
module Chart.Backend.Chart ( renderChart ) where import Control.Lens import Control.Monad (void) import Data.Default (def) import Data.List.NonEmpty (nonEmpty) import qualified Data.List.NonEmpty ...
SilverSylvester/cplot
src/Chart/Backend/Chart.hs
mit
5,672
0
20
1,561
1,409
731
678
-1
-1
{-# LANGUAGE PackageImports #-} {-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-} -- | Reexports "Control.Concurrent.Compat" -- from a globally unique namespace. module Control.Concurrent.Compat.Repl ( module Control.Concurrent.Compat ) where import "this" Control.Concurrent.Compat
haskell-compat/base-compat
base-compat/src/Control/Concurrent/Compat/Repl.hs
mit
304
0
5
31
28
21
7
5
0
module Jakway.Blackjack.Interface.Config where import Jakway.Blackjack.AI import Jakway.Blackjack.IO.TableNames data Config = Config { verbose :: Bool, whichDealer :: AI, playerAIs :: [AI], numGames :: Integer, tableNames :: TableNames, ...
tjakway/blackjack-simulator
src/Jakway/Blackjack/Interface/Config.hs
mit
367
0
9
129
72
47
25
10
0
{-# LANGUAGE OverloadedStrings #-} module Canteven.Url( URL, (</>) ) where import Data.Monoid ((<>)) import Data.Text (Text, dropWhileEnd) import qualified Data.Text as T (dropWhile) type URL = Text -- |Concatenates a URL and a string of text, and puts a `/` between them. Strips -- away any `/` character...
SumAll/haskell-canteven-url
src/Canteven/Url.hs
mit
573
0
8
123
130
80
50
12
1
{- Copyright (C) 2012-2017 Jimmy Liang, Michal Antkiewicz <http://gsd.uwaterloo.ca> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights...
gsdlab/claferIG
src/Language/Clafer/IG/Sugarer.hs
mit
5,461
0
13
1,303
1,157
611
546
68
12
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-} module Commander.S3 where import Data.Conduit.Binary (sourceFile) import Data.Monoid import Data.List import Control.Lens import Control.Monad.Reader import Control.Monad.State import Network.AWS import Network.AWS.Data.Body import Network.AWS.S3...
Flogistix/aws-commander
src/Commander/S3.hs
mit
1,550
0
14
314
455
238
217
39
1
import Ohua.Prelude import Control.Exception (evaluate) import Test.Hspec import Test.Hspec.QuickCheck import Ohua.Test import Ohua.DFLang.Parser import Ohua.DFLang.Lang import Ohua.ALang.PPrint import Ohua.DFLang.PPrint () import Ohua.Types.Arbitrary dfLangParserPPrinterSpec :: Spec dfLangParserPPrinterSpec = ...
ohua-dev/ohua-core
test-tools/test/Spec.hs
epl-1.0
2,987
0
16
1,197
572
297
275
68
1
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN" "http://java.sun.com/products/javahelp/helpset_1_0.dtd"> <helpset version="1.0"> <!-- title --> <title>Hilfe zum Modul Heapsort</title> <!-- maps --> <maps> <homeID>heapso...
jurkov/j-algo-mod
res/module/heapsort/help/jhelp/heapsort_help.hs
gpl-2.0
1,644
126
89
221
651
326
325
-1
-1
--Copyright 2017 by John F. Miller {-# LANGUAGE GeneralizedNewtypeDeriving, MultiParamTypeClasses #-} module Test.Parameters ( module Eval.Parameters , module Test.Parameters , module Name , module Object , quickCheck ) where import Control.Monad.State import Control.Monad.Except import Data.String impor...
antarestrader/sapphire
Test/Parameters.hs
gpl-3.0
2,049
0
16
510
674
357
317
62
4
{-# LANGUAGE ExistentialQuantification, RankNTypes #-} module SymLens.Database where import SymLens import Database.Memory import qualified Data.Map as Map import qualified Data.Bimap as Bimap import Data.Maybe (fromMaybe,fromJust,maybe) import qualified Data.Tuple as T type TableLens = SymLens Table Table type Da...
cornell-pl/evolution
SymLens/Database.hs
gpl-3.0
5,713
0
17
1,913
1,615
856
759
66
5
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE UndecidableInstances #-} module Qlogic.SatSolver ...
mzini/qlogic
Qlogic/SatSolverHash.hs
gpl-3.0
10,044
0
14
3,173
4,080
2,063
2,017
232
5
{- This file is part of HNH. HNH 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) any later version. HNH is distributed in the hope that ...
fferreira/hnh
ProgToLet.hs
gpl-3.0
1,903
0
18
567
369
193
176
31
2
{- Assembly Language Monad Part of Aex Copyright (C) 2015 Jeffrey Sharp -} {-# LANGUAGE OverloadedStrings #-} module Asm where import Control.Monad.State.Lazy import Data.Monoid (mconcat, (<>)) import Data.Text.Lazy (Text) import Data.Text.Lazy.Builder (Builder, fromLazyText, to...
sharpjs/haskell-learning
before-stack/Asm.hs
gpl-3.0
1,260
0
9
317
395
219
176
40
1
{-# language FlexibleContexts, TypeFamilies #-} module Data.Sparse.Internal.SVector.Mutable where import Data.Foldable import qualified Data.Vector as V import qualified Data.Vector.Mutable as VM import qualified Data.Vector.Generic as VG import Control.Arrow ((&&&)) import Control.Monad.Primitive data SMVector m a...
ocramz/sparse-linear-algebra
src/Data/Sparse/Internal/SVector/Mutable.hs
gpl-3.0
3,698
0
12
1,320
489
283
206
30
2
{- | Module : Data.Grib.Raw.ContextSpec Copyright : (c) Mattias Jakobsson 2015 License : GPL-3 Maintainer : mjakob422@gmail.com Stability : unstable Portability : portable Unit and regression tests for Data.Grib.Raw.Context. -} module Data.Grib.Raw.ContextSpec ( main, spec ) where import Control.Excep...
mjakob/hgrib
test/Data/Grib/Raw/ContextSpec.hs
gpl-3.0
2,071
0
13
430
478
233
245
43
2
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/List.hs
mpl-2.0
8,354
0
23
1,937
1,151
671
480
163
1
{- This file is part of Tractor. Tractor is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Tractor is distribu...
ak1211/tractor
src/SBIsecCoJp/Scraper.hs
agpl-3.0
18,403
0
30
6,002
4,562
2,445
2,117
361
4
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE ExistentialQuantification #-} -- {-# LANGUAGE Impredicative #-} import Control.Monad.State myID :: forall a . a -> a myID = id pairwiseAutomorphism :: forall a b . (forall c . c -> c) -> (a, b) -> (a, b) pairwiseAutomorphism f (a, b) = (f...
Crazycolorz5/Haskell-Code
rankntypes.hs
unlicense
4,105
1
14
923
1,448
778
670
64
1
{-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} module PPrelude ( Word4, word4to8, packWord8, fstWord4, sndWord4, word4toInt, unpackWord4s , ByteString, Word8, Map , DB, insertDB, lookupDB, runDB , encodeInt, decodeInt , module X ) where import Control.App...
haroldcarr/learn-haskell-coq-ml-etc
haskell/playpen/blockchain/ben-kirwin-merkle/src/PPrelude.hs
unlicense
2,439
0
13
717
867
470
397
61
3
-- |Assorted REPL (read-eval-print-loop) functionality for console UIs. module Console.REPL ( repl', repl, askFor, askForBy', askForBy, putPrompt) where import Control.Monad import System.IO import Text.Read -- |Executes a REP loop until a given condition is met. -- Variant of @repl'@ which perfo...
ombocomp/Renaming
Console/REPL.hs
apache-2.0
2,233
0
14
582
605
301
304
41
3
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} module Main where import Conduit import Data.Hashable import Control.Exception import Control.Lens import Control.Monad import Data.Aeson import qualified Data.Aeson as A impor...
erochest/york-scripts
src/Main.hs
apache-2.0
3,080
0
17
918
836
468
368
73
1
{-# LANGUAGE OverloadedStrings #-} module Codec.Sarsi.Spec where import Data.Attoparsec.Text (Parser) import Data.Attoparsec.Text.Machine (streamParser) import Data.Machine (ProcessT, runT, source, (<~)) import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Text.IO as TextIO import Sarsi.To...
aloiscochard/sarsi
tests/Codec/Sarsi/Spec.hs
apache-2.0
893
0
10
141
323
173
150
20
1
{- GPC lexer -} {-# LANGUAGE NoMonomorphismRestriction #-} module GPC.Lexer ( ident , reserved , reservedOp , parens , int , ch , str , float , bool , semi , whiteSpace , braces , typeT , commaSep , parseCh , brackets ) where import Control.Applicat...
RossMeikleham/GPC
src/GPC/Lexer.hs
bsd-2-clause
2,059
0
9
451
489
284
205
54
1
{-# LANGUAGE CPP, NamedFieldPuns, RecordWildCards #-} -- | cabal-install CLI command: freeze -- module Distribution.Client.CmdFreeze ( freezeCommand, freezeAction, ) where import Distribution.Client.ProjectOrchestration import Distribution.Client.ProjectPlanning import Distribution.Client.ProjectConfig ...
mydaum/cabal
cabal-install/Distribution/Client/CmdFreeze.hs
bsd-3-clause
9,877
0
29
2,356
1,433
806
627
162
4
module Problem265 where import Data.Array n :: Int n = 5 type Seq = [Int] type State = (Seq, Array Int Bool) main :: IO () main = print $ sum $ map (sum . (zipWith (*) (iterate (* 2) 1) . drop (n - 1)) . fst) $ (!! (2 ^ n - 1)) $ iterate (concatMap go) [ (...
adityagupta1089/Project-Euler-Haskell
src/problems/Problem265.hs
bsd-3-clause
696
0
17
270
387
218
169
-1
-1
{-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeOperators #-} module Cayley where import Data.Profunctor import Data.Functor.Contravariant import Control.Category import Prelude hiding (id, (.)) newtype Cayley a b = Cayley (forall x. (x -> a) -> x -> b) ...
isovector/category-theory
Cayley.hs
bsd-3-clause
837
0
10
184
328
173
155
25
1
{-# LANGUAGE FlexibleInstances , BangPatterns , MagicHash , ScopedTypeVariables , TypeFamilies , UndecidableInstances , OverlappingInstances , DeriveDataTypeable , MultiParamTypeClasses , NamedFieldPuns #-} -- State monad transformer is needed for both step & graph: #ifndef MODNAME #define MODNAME...
rrnewton/Haskell-CnC
Intel/Cnc7.hs
bsd-3-clause
3,099
57
15
771
715
377
338
60
3
{-# LANGUAGE RankNTypes #-} -- | Creation of clatch-like types. module Penny.Clatch.Create where import Penny.Balance import Penny.Clatch.Types import Penny.Clatch.Access.Converted import Penny.Converter import Penny.Core import Penny.Ents (Balanced, balancedToSeqEnt) import Penny.SeqUtil import Penny.Serial import P...
massysett/penny
penny/lib/Penny/Clatch/Create.hs
bsd-3-clause
3,835
0
14
790
1,576
882
694
115
1
{-# language DeriveFunctor #-} {-# language QuasiQuotes #-} {-# language RankNTypes #-} {-# language TemplateHaskell #-} module OpenCV.Internal.Exception ( -- * Exception type CvException(..) , CoerceMatError(..) , ExpectationError(..) , CvCppException -- * Handling C++ exceptions , ha...
Cortlandd/haskell-opencv
src/OpenCV/Internal/Exception.hs
bsd-3-clause
4,645
0
14
930
1,068
607
461
-1
-1
module Ygit.LsFiles ( lsFiles ) where import qualified Data.ByteString.Lazy as BS import System.Directory import System.FilePath.Posix import Data.Binary.Get import Data.Word lsFiles :: [String] -> IO () lsFiles args = do indexFileContent <- indexFile print $ runGet readHeader indexFileContent indexFi...
jmpak/ygit
src/Ygit/LsFiles.hs
bsd-3-clause
601
0
12
109
177
92
85
22
1
{-| Copyright : (c) Dave Laing, 2017 License : BSD3 Maintainer : dave.laing.80@gmail.com Stability : experimental Portability : non-portable -} module Fragment.KiBase.Helpers ( kiBase ) where import Control.Lens (review) import Ast.Kind import Fragment.KiBase.Ast.Kind kiBase :: AsKiBase k => Kind k a...
dalaing/type-systems
src/Fragment/KiBase/Helpers.hs
bsd-3-clause
348
0
6
65
64
37
27
7
1
module Lambdasim.NMEA ( FixQuality(..), gga, ) where import Data.Bits (xor) import Data.Char (ord) import Data.List import Data.Time.Clock import Data.Time.Format (formatTime) import System.Locale (defaultTimeLocale) import Text.Printf (prin...
jystic/lambdasim
src/Lambdasim/NMEA.hs
bsd-3-clause
2,560
0
13
689
699
384
315
62
1
module Mandelbrot.Coloring (diverseColoring , greenColoring , grayColoring , maxDepth , Coloring) where import Data.Word -- 1 byte per color channel maxDepth :: Integral a => a maxDepth = fromIntegral (maxBound...
matt-keibler/mandelbrot
src/Mandelbrot/Coloring.hs
bsd-3-clause
745
0
8
215
205
119
86
19
1
{-# LANGUAGE OverloadedStrings #-} ------------------------------------------------------------------------------- -- | -- Module : Generator.Printer.Section.Decode -- Copyright : (c) 2016 Michael Carpenter -- License : BSD3 -- Maintainer : Michael Carpenter <oldmanmike.dev@gmail.com> -- Stability : ...
oldmanmike/hs-minecraft-protocol
generate/src/Generator/Printer/Section/Decode.hs
bsd-3-clause
2,194
0
14
761
246
140
106
23
2