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 ExistentialQuantification #-} module Actor where import Data.Identifiable import Belief (Beliefs) import qualified Belief as B import Health import Knowledge (Knowledge) import qualified Knowledge as K import Terrain import Entity.Map import Point data Actor = Actor { actorId :: ActorId , actorSym ::...
bhickey/catamad
src/Actor.hs
gpl-3.0
1,046
0
10
203
367
203
164
34
1
-- TabCode - A parser for the Tabcode lute tablature language -- -- Copyright (C) 2015-2017 Richard Lewis -- Author: Richard Lewis <richard@rjlewis.me.uk> -- This file is part of TabCode -- TabCode is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as publi...
TransformingMusicology/tabcode-haskell
tests/ParseTests.hs
gpl-3.0
31,680
0
16
8,011
10,917
5,658
5,259
366
3
{-- If we take 47, reverse and add, 47 + 74 = 121, which is palindromic. Not all numbers produce palindromes so quickly. For example, 349 + 943 = 1292, 1292 + 2921 = 4213 4213 + 3124 = 7337 That is, 349 took three iterations to arrive at a palindrome. Although no one ...
goalieca/haskelling
055.hs
gpl-3.0
1,898
0
11
427
211
112
99
10
1
split x = (x, x)
hmemcpy/milewski-ctfp-pdf
src/content/3.7/code/haskell/snippet30.hs
gpl-3.0
16
0
5
4
15
8
7
1
1
{-# LANGUAGE Rank2Types, GADTs #-} {-# LANGUAGE ScopedTypeVariables #-} module Helium.ModuleSystem.ExtractImportDecls where import Helium.Syntax.UHA_Syntax import Helium.Syntax.UHA_Utils import Lvm.Common.Id import qualified Lvm.Core.Expr as Core import qualified Lvm.Core.Module as Core import Helium.Utils.Utils (int...
roberth/uu-helium
src/Helium/ModuleSystem/ExtractImportDecls.hs
gpl-3.0
290,106
56
20
64,495
58,666
31,972
26,694
5,202
2
-- file: ch03/Braces.hs -- Using layout to determine structure bar = let a =1 b = 2 c = 3 in a + b + c -- Using explicit structuring (hardly ever used) foo = let { a = 1; b = 2; c = 3 } in a + b +c
craigem/RealWorldHaskell
ch03/Braces.hs
gpl-3.0
240
0
8
94
76
43
33
7
1
{-# LANGUAGE OverloadedStrings #-} -- Module : System.APT.Options -- Copyright : (c) 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 fi...
brendanhay/apteryx
apteryx/System/APT/Options.hs
mpl-2.0
1,706
0
14
436
378
207
171
27
3
{-# 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-iam/gen/Network/AWS/IAM/GetGroupPolicy.hs
mpl-2.0
5,626
0
16
1,162
780
471
309
100
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-compute/gen/Network/Google/Resource/Compute/InstanceGroups/Get.hs
mpl-2.0
3,888
0
16
932
468
280
188
76
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-games/gen/Network/Google/Resource/Games/Players/List.hs
mpl-2.0
5,831
0
22
1,504
971
559
412
135
1
-- Implicit CAD. Copyright (C) 2011, Christopher Olah (chris@colah.ca) -- Copyright (C) 2016 Julia Longtin (julial@turinglace.com) -- Released under the GNU AGPLV3+, see LICENSE -- FIXME: describe why we need this. {-# LANGUAGE OverloadedStrings #-} module Graphics.Implicit.Export.NormedTriangleMeshFormats (obj) wher...
krakrjak/ImplicitCAD
Graphics/Implicit/Export/NormedTriangleMeshFormats.hs
agpl-3.0
2,174
3
17
607
543
315
228
26
1
module Libaddutil.Collision where import Libaddutil.Primitives boxIntersect :: Area -> Area -> Bool boxIntersect ((x1,y1,z1),(x2,y2,z2)) ((x3,y3,z3),(x4,y4,z4)) = if x2 < x3 || y2 < y3 || z2 < z3 || x1 > x4 || y1 > y4 || z1 > z4 then False else True {- ((x1 > x3 && x1 < x4) || (x2 > x3 ...
anttisalonen/freekick
haskell/addutil/Libaddutil/Collision.hs
agpl-3.0
470
0
16
164
135
79
56
6
2
module Akarui.FOL.PrettyPrint ( PrettyPrint(..) ) where import qualified Data.Text as T import Akarui.FOL.Symbols class PrettyPrint t where prettyPrint :: Symbols -> t -> T.Text
PhDP/Manticore
Akarui/FOL/PrettyPrint.hs
apache-2.0
182
0
9
28
54
33
21
6
0
module Lambda.Deconstruct ( -- * Convenient polymorphic deconstruction app , lam , var -- * Combinator , (|>) , (<!>) -- ** From "Control.Applicative" , Alternative , (<|>) ) where import Control.Applicative ( Alternative , empty , (<|>) ) i...
edom/ptt
src/Lambda/Deconstruct.hs
apache-2.0
1,138
0
11
322
430
242
188
30
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} module Openshift.V1.Handler where import GHC.Generics import Openshift.V1.ExecAction import Openshift.V1.HTTPGetAction import Openshift.V1.TCPSocketAc...
minhdoboi/deprecated-openshift-haskell-api
openshift/lib/Openshift/V1/Handler.hs
apache-2.0
889
0
9
140
116
71
45
18
0
module Helpers.Binary (lastBits, bitsList, splitBits) where -- Number of partitions of the binary expansion of n into consecutive blocks with no leading zeroes. -- 23 = 0b11011 -> [0, 0b1, 0b11, 0b011, 0b1011] = [0,1,3,3,11] lastBits :: Int -> [Int] lastBits n = recurse 0 n where recurse _ 0 = [] recurse k n' = (n...
peterokagey/haskellOEIS
src/Helpers/Binary.hs
apache-2.0
733
0
10
176
336
179
157
16
2
-- | -- Module : Text.Megaparsec.ByteString -- Copyright : © 2015 Megaparsec contributors -- © 2007 Paolo Martini -- License : BSD3 -- -- Maintainer : Mark Karpov <markkarpov@opmbx.org> -- Stability : experimental -- Portability : portable -- -- Convenience definitions for working wit...
neongreen/megaparsec
Text/Megaparsec/ByteString.hs
bsd-2-clause
1,330
0
9
253
122
79
43
9
1
{-# LANGUAGE TypeFamilies, FlexibleInstances, FlexibleContexts, DeriveDataTypeable, TypeSynonymInstances #-} module HEP.ModelScan.MSSMScan.Model.MSUGRA where import HEP.ModelScan.MSSMScan.Model import qualified Data.ByteString.Lazy.Char8 as B import Data.ByteString.Lex.Lazy.Double instance Model M...
wavewave/MSSMScan
src/HEP/ModelScan/MSSMScan/Model/MSUGRA.hs
bsd-2-clause
1,236
0
16
474
343
183
160
22
0
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ExtendedDefaultRules #-} module Control.Monad.Shmonad.ExpressionSpec (main, spec, VStr(..), VInt(..)) where import Test.Hspec import Test.QuickCheck import Control.Monad import Control.Monad.Shmonad.Expression import Control.Applicative ((<$>), (<*>)) import Data.Char (i...
corajr/shmonad
test/Control/Monad/Shmonad/ExpressionSpec.hs
bsd-2-clause
5,547
0
18
1,602
1,721
829
892
-1
-1
module AERN2.PPoly.Eval where import MixedTypesNumPrelude import qualified AERN2.Poly.Cheb as Cheb hiding (evalDf) import AERN2.Poly.Cheb (ChPoly) import qualified AERN2.Poly.Cheb.Eval as ChE (evalDirect, evalDf, evalLDf) import AERN2.PPoly.Type import AERN2.MP.Ball import AERN2.Poly.Ball import AERN2.Interval import...
michalkonecny/aern2
aern2-fun-univariate/src/AERN2/PPoly/Eval.hs
bsd-3-clause
2,584
0
14
504
950
509
441
-1
-1
{-# LANGUAGE DeriveDataTypeable , DeriveFunctor , DeriveFoldable , DeriveTraversable #-} module Language.TNT.Location ( Point (..) , Location (..) , Located (..) ) where import Control.Comonad import Data.Data import Data.Foldable import Data.Functor.Apply import Data.Semigroup...
sonyandy/tnt
Language/TNT/Location.hs
bsd-3-clause
1,206
0
9
469
346
183
163
32
0
----------------------------------------------------------------------------- -- | -- Module : Data.Group.Combinators -- Copyright : (c) Edward Kmett 2009 -- License : BSD-style -- Maintainer : ekmett@gmail.com -- Stability : experimental -- Portability : portable -- -- Utilities for working with Gr...
ekmett/monoids
Data/Group/Combinators.hs
bsd-3-clause
1,410
0
12
346
363
203
160
18
1
{-# LANGUAGE GADTs #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE MultiParamTypeClasses #-} module Language.SynArrow where import Prelude hiding ((.),id,init) import Control.Category import ...
svenkeidel/hsynth
src/Language/SynArrow.hs
bsd-3-clause
3,579
0
16
1,139
1,633
859
774
86
14
{-| Copyright : (c) Dave Laing, 2017 License : BSD3 Maintainer : dave.laing.80@gmail.com Stability : experimental Portability : non-portable -} {-# LANGUAGE ConstraintKinds #-} module Fragment.Tuple.Rules.Type ( TupleNormalizeConstraint , tupleNormalizeRules ) where import Control.Lens (review, previe...
dalaing/type-systems
src/Fragment/Tuple/Rules/Type.hs
bsd-3-clause
914
0
10
207
206
109
97
20
1
----------------------------------------------------------------------------- -- | -- Module : Data.SBV.Examples.Uninterpreted.Function -- Copyright : (c) Levent Erkok -- License : BSD3 -- Maintainer : erkokl@gmail.com -- Stability : experimental -- -- Demonstrates function counter-examples ---------...
josefs/sbv
Data/SBV/Examples/Uninterpreted/Function.hs
bsd-3-clause
759
0
8
126
112
67
45
6
1
{-# LANGUAGE OverloadedStrings #-} module Main where import CMark (Node(..)) import Data.Maybe (fromMaybe) import Data.Monoid ((<>)) import Data.Morgue.Agenda import Data.Morgue.Agenda.Types import Data.Text (Text, pack, stripSuffix) import qualified Data.Text as T import qualified Data.Text.IO as TIO import System....
ibabushkin/morgue
app/Dump.hs
bsd-3-clause
1,619
0
12
340
554
293
261
36
2
-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.Raw.IBM.VertexArrayLists -- Copyright : (c) Sven Panne 2015 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portability : portabl...
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/IBM/VertexArrayLists.hs
bsd-3-clause
1,481
0
4
154
115
84
31
27
0
{-# LANGUAGE TypeFamilies #-} module LOGL.Internal.Shader ( ) where import Graphics.GLUtil import LOGL.Internal.Resource instance Resource ShaderProgram where type LoadParam ShaderProgram = (String, FilePath, FilePath) load (name, vfile, ffile) = do shader <- simpleShaderProgram vfile ffile r...
atwupack/LearnOpenGL
src/LOGL/Internal/Shader.hs
bsd-3-clause
368
0
9
74
102
57
45
11
0
------------------------------------------------------------------------------- ---- | ---- Module : Parser ---- Copyright : (c) Syoyo Fujita ---- License : BSD-style ---- ---- Maintainer : syoyo@lighttransport.com ---- Stability : experimental ---- Portability : GHC 6.10 ---- ---- Parser : A ...
syoyo/LLL
LLL/Parser.hs
bsd-3-clause
10,335
1
17
4,201
1,598
879
719
124
3
{-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ViewPatterns #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE OverlappingInstances #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeSynonymInstances ...
texodus/forml
src/hs/lib/Forml/Types/Namespace.hs
bsd-3-clause
1,574
0
14
271
415
239
176
41
0
-- (c) 1999-2005 by Martin Erwig [see file COPYRIGHT] -- | Static and Dynamic Inductive Graphs module Data.Graph.Inductive.Graph ( -- * General Type Defintions -- ** Node and Edge Types Node,LNode,UNode, Edge,LEdge,UEdge, -- ** Types Supporting Inductive Graph View Adj,Context,MContext,Decomp,...
FranklinChen/hugs98-plus-Sep2006
packages/fgl/Data/Graph/Inductive/Graph.hs
bsd-3-clause
16,059
0
15
4,293
4,408
2,435
1,973
180
2
{-# LANGUAGE TupleSections, GADTs, StandaloneDeriving, FlexibleInstances, MultiParamTypeClasses, FlexibleContexts #-} module IndexedState where newtype IStateT m i o a = IStateT { runIState :: i -> m (o, a) } class IMonad m where ireturn :: a -> m i i a (>>>=) :: m i j a -> (a -> m j k b) -> m i k b (>>>) :: I...
homam/fsm-conversational-ui
src/IndexedState.hs
bsd-3-clause
8,330
0
13
1,828
2,994
1,572
1,422
173
3
-- Copyright (c) 2017 Eric McCorkle. 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. Redistributions of source code must retain the above copyright -- notice, this list of conditions...
emc2/clash-riscv
src/RISCV/ISA/Registers/Regular.hs
bsd-3-clause
3,540
0
6
878
736
405
331
110
0
{-# LANGUAGE FlexibleContexts, ConstraintKinds #-} ----------------------------------------------------------------------------- -- | -- Module : Call.Util.Deck -- Copyright : (c) Fumiaki Kinoshita 2014 -- License : BSD3 -- -- Maintainer : Fumiaki Kinoshita <fumiexcel@gmail.com> -- Stability : experi...
fumieval/audiovisual
src/Audiovisual/Sampler.hs
bsd-3-clause
1,505
0
29
369
488
258
230
30
2
{-# LANGUAGE CPP, OverloadedStrings #-} -- | DNS Resolver and generic (lower-level) lookup functions. module Network.DNS.Resolver ( -- * Documentation -- ** Configuration for resolver FileOrNumericHost(..), ResolvConf(..), defaultResolvConf -- ** Intermediate data type for resolver , ResolvSeed, makeResolv...
greydot/dns
Network/DNS/Resolver.hs
bsd-3-clause
17,032
0
23
4,476
3,004
1,622
1,382
219
7
{-# LANGUAGE PatternSynonyms #-} module System.Win32.SystemServices.Services ( HandlerFunction , ServiceMainFunction , SCM_ACCESS_RIGHTS (..) , SVC_ACCESS_RIGHTS (..) , SERVICE_ACCEPT (..) , SERVICE_CONTROL (..) , SERVICE_ERROR (..) , SERVICE_STATE (..) , pattern SERVICE_CONTINUE_PEN...
nick0x01/Win32-services
src/System/Win32/SystemServices/Services.hs
bsd-3-clause
18,709
0
21
4,043
3,307
1,769
1,538
293
4
import Criterion.Main import IOCP.Windows main = defaultMain [bench "getLastError" getLastError]
joeyadams/hs-windows-iocp
lab/bench-getLastError.hs
bsd-3-clause
98
0
7
11
27
14
13
3
1
{-# LANGUAGE OverloadedStrings #-} module ReadXLSX.AllSheetsToJSON where import Codec.Xlsx import Data.Aeson (encode, Value) import Data.ByteString.Lazy (ByteString) import qualified Data.Map as DM import Data.Text (Text) import ReadXLSX.S...
stla/jsonxlsx
src/ReadXLSX/AllSheetsToJSON.hs
bsd-3-clause
1,648
0
12
469
339
181
158
21
1
module Termination.Generaliser where import Core.Renaming (Out) import Core.Syntax (Var) import Evaluator.Syntax import Utilities (FinMap, FinSet, Tag, Tagged, injectTag, tag, tagInt) import qualified Data.IntMap as IM import qualified Data.IntSet as IS data Generaliser = Generaliser { generaliseStackFrame :: ...
osa1/chsc
Termination/Generaliser.hs
bsd-3-clause
1,227
0
11
207
336
186
150
27
1
{-# LANGUAGE RecordWildCards #-} module Target ( targetRules ) where import Control.Applicative ((<$>)) import Control.Monad (forM_, when) import Development.Shake import Development.Shake.FilePath import Config import Dirs import LocalCommand import HaddockMaster import OS import Paths import PlatformDB i...
bgamari/haskell-platform
hptool/src/Target.hs
bsd-3-clause
6,025
0
19
1,831
1,403
698
705
124
4
----------------------------------------------------------------------------- -- | -- Module : Language.Pylon.Util.Generics -- Copyright : Lukas Heidemann 2014 -- License : BSD -- -- Maintainer : lukasheidemann@gmail.com -- Stability : experimental -- Portability : semi-portable -------------------...
zrho/pylon
src/Language/Pylon/Util/Generics.hs
bsd-3-clause
1,242
0
11
232
220
126
94
14
1
{-# LANGUAGE PartialTypeSignatures #-} {-# OPTIONS_GHC -fno-warn-partial-type-signatures #-} module MultiClockFifo where import CLaSH.Prelude import CLaSH.Prelude.Explicit import Data.Maybe (isJust) fifoMem wclk rclk addrSize wfull raddr wdataM = asyncRam' wclk rclk (pow2SNat addrSize) ...
trxeste/wrk
haskell/cl3sh/MultiClockFifo.hs
bsd-3-clause
2,032
0
13
567
609
333
276
-1
-1
-------------------------------------------------------------------------- -- | -- Module : Language.Assembly.X86 -- Copyright : (c) Martin Grabmueller and Dirk Kleeblatt -- License : BSD3 -- -- Maintainer : martin@grabmueller.de,klee@cs.tu-berlin.de -- Stability : provisional -- Portability : porta...
cnc-patch/disass
src/Language/Assembly/X86.hs
bsd-3-clause
5,729
0
12
1,226
1,030
570
460
78
3
module Control.ComonadTrans where import Prelude() import Control.Comonad class ComonadTrans f where lower :: Comonad g => f g a -> g a
tonymorris/lens-proposal
src/Control/ComonadTrans.hs
bsd-3-clause
152
0
9
38
50
26
24
8
0
----------------------------------------------------------------------------- -- | -- Module : Distribution.PackageDescription.Check -- Copyright : Lennart Kolmodin 2008 -- License : BSD3 -- -- Maintainer : cabal-devel@haskell.org -- Portability : portable -- -- This has code for checking for various p...
garetxe/cabal
Cabal/Distribution/PackageDescription/Check.hs
bsd-3-clause
74,822
0
22
19,949
14,050
7,284
6,766
1,257
33
module PL.Find_Model ( make_fixed ) where -- $Id$ import PL.Type import PL.Tree import PL.Param import PL.Signatur import PL.Struktur import PL.Interpretation import PL.Semantik import Challenger.Partial import Autolib.ToDoc import Autolib.Reporter import Autolib.Set import Autolib.Size import Inter.Types ...
florianpilz/autotool
src/PL/Find_Model.hs
gpl-2.0
1,387
11
17
340
404
205
199
-1
-1
{-| Module : Isotope.Parsers Description : Parsers for chemical and condensed formulae. Copyright : Michael Thomas License : GPL-3 Maintainer : Michael Thomas <Michaelt293@gmail.com> Stability : Experimental This module provides parsers for element symbols and elemental composition as well molecular, con...
Michaelt293/isotope
src/Isotope/Parsers.hs
gpl-3.0
5,472
0
12
958
1,081
573
508
108
2
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE ScopedTypeVariables #-} module Behave.Units ( module Export , DMoisture , DFraction , DRatio ...
albertov/behave-hs
src/Behave/Units.hs
bsd-3-clause
3,872
0
7
959
967
548
419
105
1
{-# LANGUAGE Haskell98 #-} {-# LINE 1 "Data/Text/Internal/Read.hs" #-} -- | -- Module : Data.Text.Internal.Read -- Copyright : (c) 2014 Bryan O'Sullivan -- -- License : BSD-style -- Maintainer : bos@serpentine.com -- Stability : experimental -- Portability : GHC -- -- Common internal functions for reading...
phischu/fragnix
tests/packages/scotty/Data.Text.Internal.Read.hs
bsd-3-clause
1,641
0
13
527
571
307
264
46
2
module Hint.Sandbox ( sandboxed ) where import Hint.Base import Hint.Context import Hint.Configuration import Hint.Util import {-# SOURCE #-} Hint.Typecheck ( typeChecks_unsandboxed ) import Control.Monad.Catch sandboxed :: MonadInterpreter m => (Expr -> m a) -> (Expr -> m a) sandboxed = if ghcVersion >= 610 then i...
konn/hint-forked
src/Hint/Sandbox.hs
bsd-3-clause
3,665
0
27
1,664
643
333
310
50
4
<?xml version='1.0' encoding='ISO-8859-1' ?> <!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN" "http://java.sun.com/products/javahelp/helpset_1_0.dtd"> <helpset xml:lang=de version="1.0"> <!-- title --> <title>JBackpack-Hilfe</title> <!-- maps --> <maps> ...
amon-ra/jbackpack
src/ch/fhnw/jbackpack/help/windows/HelpSet_de.hs
gpl-3.0
961
75
60
203
375
193
182
-1
-1
{-# LANGUAGE CPP #-} {-# LANGUAGE PatternGuards #-} #ifdef TRUSTWORTHY {-# LANGUAGE Trustworthy #-} #endif ----------------------------------------------------------------------------- -- | -- Module : Control.Lens.Internal.FieldTH -- Copyright : (C) 2014-2015 Edward Kmett, (C) 2014 Eric Mertens -- License ...
timjb/lens
src/Control/Lens/Internal/FieldTH.hs
bsd-3-clause
21,608
0
20
5,368
6,018
3,151
2,867
356
6
module Test () where {-@ foo :: {vv:[{v:[a]|((len v) = 1)}]|((len vv)= 1)} -> [[a]] @-} foo [[x]] = [[x]]
abakst/liquidhaskell
tests/pos/grty2.hs
bsd-3-clause
110
0
7
24
28
18
10
2
1
module Vec0 () where import Language.Haskell.Liquid.Prelude import Data.Vector hiding(map, concat, zipWith, filter, foldl, foldr, (++)) xs = [1,2,3,4] :: [Int] vs = fromList xs --prop0 = liquidAssertB (x >= 0) -- where x = Prelude.head xs -- --prop1 = liquidAssertB (n > 0) -- where n = Prelude.lengt...
mightymoose/liquidhaskell
tests/neg/vector0a.hs
bsd-3-clause
472
0
7
100
108
71
37
7
1
module T5776 where -- The point about this test is that we should get a rule like this: -- "foo" [ALWAYS] -- forall (@ a) -- ($dEq :: Eq a) -- ($dEq1 :: Eq a) -- (x :: a) -- (y :: a) -- (z :: a). -- T5776.f (g @ a $dEq1 x y) -- (g @ a $dEq y z) -...
ezyang/ghc
testsuite/tests/simplCore/should_compile/T5776.hs
bsd-3-clause
713
0
7
245
115
69
46
11
1
module Main where import Control.Monad (forever, when) import Data.List (intercalate) import Data.Traversable (traverse) import Morse (stringToMorse, morseToChar) import System.Environment (getArgs) import System.Exit (exitFailure, exitSuccess) import System.IO (hGetLine, hIsEOF, stdin) convertToM...
candu/haskellbook
ch14/morse/src/Main.hs
mit
1,530
0
15
480
427
210
217
49
4
module Handler.Repo where import Import import Data.Maybe (fromJust) import qualified GitHub as GH getRepoR :: Text -> Text -> Handler Html getRepoR ownerLogin name = do -- TODO: Factor all this out. userId <- requireAuthId user <- runDB $ get userId let token = userToken $ fromJust user client <...
jspahrsummers/ScrumBut
Handler/Repo.hs
mit
541
0
12
124
158
76
82
15
1
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE UnicodeSyntax #-} module Main where import Test.Hspec import Test.QuickCheck import Data.Word (Word8) import ...
ayberkt/pixs
tests/Spec.hs
mit
7,253
149
21
2,297
2,332
1,183
1,149
170
2
{-# LANGUAGE OverloadedStrings #-} module JoScript.Util.JsonTest (tests) where import Prelude (flip, String, ($), Int) import Test.HUnit import JoScript.Util.Json import Data.Aeson hiding (withObject) tests = [ TestLabel "JoScript.Util.JsonTest.withObject" withObjectUniques , TestLabel "JoScript.Util.JsonTes...
AKST/jo
source/test/JoScript/Util/JsonTest.hs
mit
848
0
15
158
282
153
129
18
1
{-| Module: Treb.Routes Description: Trebuchet types. Copyright: Travis Whitaker 2015 License: MIT Maintainer: twhitak@its.jnj.com Stability: Provisional Portability: POSIX -} {-# LANGUAGE DataKinds, PolyKinds, RankNTypes, TypeFamilies, TypeOperators, ScopedTypeVariables, OverloadedStrings, ...
MadSciGuys/trebuchet
src/Treb/Routes.hs
mit
2,268
0
5
446
105
80
25
16
1
module Network.S3URLSpec ( main , spec ) where import Prelude import Control.Lens import Data.Aeson import Data.Monoid ((<>)) import Network.S3URL import Network.AWS ( Endpoint , Region(..) , _svcEndpoint , endpointHost , endpointPort , endpointSecure ) import Network.AWS.S3 (B...
pbrisbin/tee-io
test/Network/S3URLSpec.hs
mit
2,253
0
15
607
595
305
290
55
1
import Graphics.Gloss import System.IO.Unsafe import System.Environment import Data.Char -- | Main entry point to the application. -- | module Main where -- | The main entry point. main = animate (InWindow "Sierpinski Triangles" (500, 650) (20, 20)) black (picture_sierpinski getDegree) getDegree :: Int getDegre...
kylegodbey/haskellProject
src/sierpinski.hs
mit
1,256
10
20
303
530
289
241
33
1
module Util.TextPos ( TextPos(..), append ) where import qualified Data.ByteString.UTF8 as BS import Data.Monoid type Line = Int type Column = Int data TextPos = TextPos !Line !Column deriving (Eq,Show) instance Monoid TextPos where mempty = TextPos 0 0 mappend (TextPo...
DrNico/rhodium
tools/rhc-strap/Util/TextPos.hs
mit
648
0
9
219
243
132
111
26
2
module Data.AER where
fhaust/aer
src/Data/AER.hs
mit
29
0
3
10
6
4
2
1
0
module Decibel (Decibel, mkDecibel, toDecibel, fromDecibel) where data Decibel a = Decibel a instance Show a => Show (Decibel a) where show (Decibel a) = show a mkDecibel :: a -> Decibel a mkDecibel x = Decibel x -- from linear to decibels toDecibel :: (Floating ...
Vetii/SCFDMA
src/Decibel.hs
mit
517
0
10
145
205
107
98
13
1
let timeAction action = getCurrentTime >>= (\t1 -> action >>= (\g -> getCurrentTime >>= (\t2 -> let timeInUnits = (realToFrac $ diffUTCTime t2 t1 :: Float) in return timeInUnits))) let runData f = randomIO >>= (\randomChar -> if (last (show f)) == randomChar then return () else return ()) -- TODO: deepseq let timeDat...
jprider63/LMonad
benchmark/bench.hs
mit
683
5
20
129
311
163
148
-1
-1
-- Generated by protobuf-simple. DO NOT EDIT! module Types.Fixed64List where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB newtype Fixed64List = Fixed64List { value :: PB.Seq PB.Word64 } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default Fixed64List where defau...
sru-systems/protobuf-simple
test/Types/Fixed64List.hs
mit
852
0
13
156
291
156
135
20
0
-- This is a helper module, defining some commonly used code. -- Other lessons can import this module. module Helper ( module Lesson01 ) where import Lesson01 (Suit (..), Rank (..), Card (..), deck)
snoyberg/haskell-impatient-poker-players
src/Helper.hs
mit
208
0
6
43
41
29
12
3
0
dopt_set dfs f = dfs{ dumpFlags = IntSet.insert (fromEnum f) (dumpFlags dfs) }
chreekat/vim-haskell-syntax
test/golden/toplevel/with-rec-update-after-eq.hs
mit
79
0
9
13
38
19
19
1
1
{-# OPTIONS_HADDOCK ignore-exports #-} {-| In module EXParser we export two main functions(evaluate and parseArithmetic) through which we come to the parsed expression, that is from input data-string to the output-some data structure like parse tree. -} module EXParser( evaluate, parseArithmetic ) where im...
lepoticka/ExcellingCabbage
EXParser.hs
gpl-2.0
3,814
0
13
869
762
391
371
56
1
module Main where import Amath.Types import Amath.Proof import Amath.Expr.AbsExp import Amath.Expr.ExprFuncs import Data.Maybe import Sequence5 import System (getArgs, getProgName) import Control.Monad.State import Data.List import qualified Data.Map as Map import Data.Char --import Amath.Expr.ExprFuncs import System...
arnizamani/SeqSolver
seqsolver5.hs
gpl-2.0
5,101
0
20
1,875
1,625
813
812
103
5
{-# LANGUAGE TemplateHaskell #-} module Rushhour.Data where -- $Id$ import Autolib.TES.Identifier import Autolib.Reader import Autolib.ToDoc import Autolib.Size import Autolib.Hash import Autolib.FiniteMap import Data.Typeable import Data.Array import Control.Monad ( guard ) data Rushhour = Rushhour deriving ( ...
florianpilz/autotool
src/Rushhour/Data.hs
gpl-2.0
5,455
29
23
1,672
2,291
1,274
1,017
127
3
{-# LANGUAGE CPP #-} #if defined(mingw32_HOST_OS) || defined(__MINGW32__) module Access.System.FilePath ( module Access.System.FilePath.Windows ) where import Access.System.FilePath.Windows #else module Access.System.FilePath ( module Access.System.FilePath.Posix ) where import Access.System.FilePat...
bheklilr/filepath-io-access
Access/System/FilePath.hs
gpl-2.0
335
0
5
48
28
21
7
4
0
-- -- Copyright (c) 2014 Citrix Systems, Inc. -- -- This program 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 2 of the License, or -- (at your option) any later version. -- -- This progra...
OpenXT/manager
xenmgr/XenMgr/PowerManagement.hs
gpl-2.0
18,563
0
19
5,001
4,154
2,051
2,103
365
7
module Examples.ShoeLift.KeenHeel where import CornerPoints.Create(slopeAdjustedForVerticalAngle, Slope(..), Angle(..), flatXSlope, flatYSlope ) import CornerPoints.HorizontalFaces(createBottomFaces, createTopFacesWithVariableSlope, createTopFaces,) import CornerPoints.Points(Point(..)) import CornerPoints.CornerPoint...
heathweiss/Tricad
src/Examples/ShoeLift/KeenHeel.hs
gpl-2.0
7,935
0
11
1,513
1,746
1,010
736
171
1
-- https://patternsinfp.wordpress.com/2011/01/31/lenses-are-the-coalgebras-for-the-costate-comonad/ {-# LANGUAGE RankNTypes #-} module Comonad where import Prelude hiding ((.), id) import Control.Category class Functor w => Comonad w where extract :: w a -> a duplicate :: w a -> w (w a) f <==> g = \x -> ...
andorp/presentations
HAL2016/Comonad.hs
gpl-3.0
1,905
0
13
480
690
375
315
38
1
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE ViewPatterns #-} -- FIXME: Better solution for abstrTerm {-# LANGUAGE Fle...
samscott89/tamarin-prover
lib/theory/src/Theory/Tools/RuleVariants.hs
gpl-3.0
5,197
0
19
1,604
876
486
390
70
5
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE OverlappingInstances #-} module Game.OrbRPG.Combinations where import Game.OrbRPG.Types import System.Random -- Main combination function (@>>) :: Orb -> Orb -> Orb -- Null Combinations _ @>> Null = Null Null @>> Black = Whit...
deontologician/orbRPG
Game/OrbRPG/Combinations.hs
gpl-3.0
17,672
0
11
4,600
9,372
4,045
5,327
507
9
{-- .. Notation is important as per this link: exporting data constructors: http://en.wikibooks.org/wiki/Haskell/Modules. --} module Login(Login (..), Email, Name, getLoginEmail, empty) where import Control.Monad.State import Control.Monad.Reader import qualifi...
dservgun/erp
src/common/Login.hs
gpl-3.0
1,038
0
8
196
266
166
100
-1
-1
{-| Module : Devel.Config Description : To have wai-devel depend on it's environment a lot less. Copyright : (c) License : GPL-3 Maintainer : njagi@urbanslug.com Stability : experimental Portability : POSIX Currently we'll query for this information from the stack binary. Ideal case it to use the stack ...
bitemyapp/wai-devel
src/Devel/Config.hs
gpl-3.0
1,892
0
15
419
434
228
206
35
2
module Data.XDR.Parser ( LanguageOptions (..) , parseString , parseFile , ParseError ) where import Control.Applicative hiding (many, (<|>)) import Control.Arrow import Control.Monad import Control.Monad.Identity import Control.Monad.Trans import Data.ByteString (ByteString) import qualified Data.B...
jthornber/xdrgen
Data/XDR/Parser.hs
gpl-3.0
14,479
0
19
4,033
4,297
2,239
2,058
272
2
module Dep.Algorithms.Seq ( overLabel,labelHead,reduceFSM,overFSM,concatFSM,headFSM,concatReduceFSM, graySequence ) where import Data.BitVector import Data.Function (flip) import Data.Hashable (Hashable(..)) import qualified Data.HashMap.Strict as HM import Data.List(intersperse,find) import Data.Word(Word64) ...
KommuSoft/dep-software
Dep.Algorithms.Seq.hs
gpl-3.0
3,465
0
13
833
1,741
904
837
69
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/ExpansionFiles/Upload.hs
mpl-2.0
8,728
0
43
2,703
1,252
696
556
190
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/Uploads/Get.hs
mpl-2.0
4,492
0
19
1,067
550
326
224
93
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/InAppProducts/Batch.hs
mpl-2.0
2,991
0
14
677
309
188
121
53
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-storage/gen/Network/Google/Resource/Storage/Buckets/List.hs
mpl-2.0
4,422
0
16
1,062
660
385
275
93
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/InterconnectLocations/Get.hs
mpl-2.0
3,923
0
15
854
393
237
156
70
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} -- Module : Gen.IO -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com> -- Stability : provisional -- Portability : non-portable (GHC extensions) m...
brendanhay/gogol
gen/src/Gen/IO.hs
mpl-2.0
2,960
0
14
856
1,010
513
497
68
2
{-# LANGUAGE MultiWayIf, OverloadedStrings, TupleSections #-} module HTTP.Client ( HTTPClient , initHTTPClient , checkContentOk , CookiesT , runCookiesT -- , withCookies , withResponseCookies , requestAcceptContent , httpParse , httpMaybe , httpRequestJSON ) where -- import Control.Arrow ((&&&)...
databrary/databrary
src/HTTP/Client.hs
agpl-3.0
3,055
0
15
501
907
490
417
-1
-1
module Main where import Test.Tasty -- import Test.Tasty.QuickCheck as QC -- import Test.Tasty.HUnit as HU -- import Test.Tasty.Golden as TG -- import Test.Tasty.Hspec tests :: TestTree tests = testGroup "cabal-new" [ -- testCase "something" specs ] main :: IO () main = defaultMain tests
erochest/cabal-new
specs/Specs.hs
apache-2.0
305
0
6
60
49
29
20
7
1
-- Defines a list of tests that test the "show" aspects of expressions -- that is, how they are rendered in to strings by the "show" function module UnitTests.Show where import Test.HUnit (Test(TestCase, TestLabel)) import CAS import UnitTests.Base tests = [ TestLabel "Rendering plain symbols" $ ...
abid-mujtaba/haskell-cas
test/UnitTests/Show.hs
apache-2.0
3,493
0
15
1,671
1,065
504
561
60
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="ru-RU"> <title>Getting started Guide</title> <maps> <homeID>top</homeID> <mapref locati...
secdec/zap-extensions
addOns/gettingStarted/src/main/javahelp/org/zaproxy/zap/extension/gettingStarted/resources/help_ru_RU/helpset_ru_RU.hs
apache-2.0
977
82
52
157
412
216
196
-1
-1
{- Copyright 2018 The CodeWorld Authors. All rights reserved. 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 applicab...
tgdavies/codeworld
codeworld-prediction/src/CodeWorld/Prediction/Trivial.hs
apache-2.0
5,164
0
13
1,097
1,167
624
543
79
1
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QTextEdit_h.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:15 Warning : this file is machine generated - do n...
keera-studios/hsQt
Qtc/Gui/QTextEdit_h.hs
bsd-2-clause
72,016
0
18
15,932
24,169
11,620
12,549
-1
-1
module GTKInitialization ( initUI , buildUI , setupUI , startUI ) where import BattleContext import GTKContext import GTKMainWindow import GTKButtonPanel import GTKOverlay import GTKUnit import qualified Data.Text as DT import Data.IORef import Control.Monad.Trans import Control.Monad.Trans.Reader import...
nbrk/ld
executable/GTK.hs
bsd-2-clause
2,269
0
12
407
371
205
166
43
1
module TestImport ( module TestImport , module X ) where import Test.Hspec as X import Data.Text as X (Text) import Database.Persist.Sqlite as X import Control.Monad.IO.Class as X (liftIO, MonadIO) import Control.Monad ...
rzetterberg/orgmode-sql
test/TestImport.hs
bsd-3-clause
2,708
0
13
744
622
347
275
-1
-1
import qualified Wigner.Transformations as T import qualified Wigner.Symbols as S import qualified Wigner.DefineExpression as D import qualified Wigner.OperatorAlgebra as O import Wigner.Texable import Wigner.Expression import qualified Data.Map as M import qualified Data.List as L index :: Integer -> Index index i =...
fjarri/wigner
examples/master_equation.hs
bsd-3-clause
1,759
9
22
451
915
450
465
42
1
-- | https://github.com/eugenkiss/7guis/wiki#the-seven-tasks module LGtk.Demos.SevenGuis.Timer (timer) where import Control.Monad import Control.Lens import LGtk import Numeric timer :: Widget timer = do d <- newRef 10.0 e <- liftM (lensMap _2) $ extendRef d (lens fst $ \(_, t) d -> (d, min t d) ) (0, 0) ...
divipp/lgtk
lgtkdemo/LGtk/Demos/SevenGuis/Timer.hs
bsd-3-clause
1,044
0
21
358
382
190
192
-1
-1
-- | Functions to create a Fragment for (parts of) an abstract syntax tree. module Language.Python.TypeInference.CFG.ToFragment ( convertModule, runConversion, ConversionState ) where import Control.Monad.State import Data.Map (Map) import Data.Maybe import Data.Set (Set) import Language.Python.Common.SrcL...
lfritz/python-type-inference
python-type-inference/src/Language/Python/TypeInference/CFG/ToFragment.hs
bsd-3-clause
45,554
0
20
13,402
14,325
7,148
7,177
839
13
----------------------------------------------------------------------------- -- | -- Module : Text.Show.Functions -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stability : provisional -- Por...
OS2World/DEV-UTIL-HUGS
libraries/Text/Show/Functions.hs
bsd-3-clause
694
0
7
110
57
39
18
4
0