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
#!/usr/bin/env runhaskell import PGF import System.Environment import Control.Applicative import Data.Maybe import Data.List type Sentence = String type Word = String main = do args <- getArgs if length args == 2 then do [p, l] <- getArgs pgf <- readPGF p loop $ fromMaybe (\x -> x ...
vinit-ivar/apertium-gf
GhettoDisambiguator.hs
gpl-2.0
2,312
0
15
589
1,017
515
502
52
2
{- | Module : ./Static/WACocone.hs Description : heterogeneous signatures colimits approximations Copyright : (c) Mihai Codescu, and Uni Bremen 2002-2006 License : GPLv2 or higher, see LICENSE.txt Maintainer : mcodescu@informatik.uni-bremen.de Stability : provisional Portability : non-portable Het...
gnn/Hets
Static/WACocone.hs
gpl-2.0
19,591
269
27
5,550
6,318
3,353
2,965
384
8
-- udisksevt source file -- Copyright (C) Vladimir Matveev, 2010 -- Disk structure related functions module UDisksEvt.Disk where import Control.Monad import Control.Concurrent.STM import DBus.Types import Data.Maybe import qualified Data.Map as M import qualified Data.Text as B import UDisksEvt.Datatypes -- Cast Ob...
netvl/udisksevt
UDisksEvt/Disk.hs
gpl-2.0
1,454
0
12
245
340
182
158
-1
-1
{- ----------------------------------------------------------------------------- PTrader is a Personal Stock Trader Toolbox. Copyright (C) 2012 Luis Cabellos 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 Foun...
zhensydow/ptrader
src/PTrader/Graph.hs
gpl-3.0
5,813
2
14
1,112
1,817
925
892
107
3
module TB.Useless.Permutations ( carvePerms, dupPerms ) where -- | carvePerms -- -- >>> carvePerms 4 [0,1] -- [[0],[1],[0,0],[0,1],[1,0],[1,1],[0,0,0],[0,0,1],[0,1,0],[0,1,1],[1,0,0],[1,0,1],[1,1,0],[1,1,1],[0,0,0,0],[0,0,0,1],[0,0,1,0],[0,0,1,1],[0,1,0,0],[0,1,0,1],[0,1,1,0],[0,1,1,1],[1,0,0,0],[1,0,0,1],[1,0,1,0...
adarqui/ToyBox
haskell/adarqui/useless/src/TB/Useless/Permutations.hs
gpl-3.0
713
0
11
101
207
115
92
11
1
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE FlexibleInstances #-} module Helper.EnumHelper where import Data.Bits(shiftL,(.&.),(.|.),Bits) all ::(Enum a, Bounded a) => [a] all = [minBound .. maxBound] enumToMask :: (Enum a, Num b, Bits b) => a -> b enumToMask x = fromInte...
shinjiro-itagaki/shinjirecs
shinjirecs-api/src/Helper/EnumHelper.hs
gpl-3.0
350
0
7
53
120
72
48
9
1
-- Tests.hs -- Copyright 2015 Remy E. Goldschmidt <taktoa@gmail.com> -- This file is part of hskpipe. -- hskpipe 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 -...
taktoa/hskpipe
src/Tests.hs
gpl-3.0
8,958
0
6
2,604
227
214
13
4
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
romanb/amazonka
amazonka-ec2/gen/Network/AWS/EC2/DeleteVpnGateway.hs
mpl-2.0
3,737
0
9
793
401
246
155
51
1
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- | -- Module : Network.Google.AndroidEnterprise.Types -- Copyright : (c) 2015-2016 B...
brendanhay/gogol
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types.hs
mpl-2.0
16,883
0
7
3,995
1,759
1,232
527
474
1
{-# OPTIONS_GHC -fno-warn-orphans #-} module Orphans() where import Control.Applicative import Data.Binary import qualified Data.ByteString as BS import qualified Data.ByteString.Lazy as BSL import qualified Data.ByteString.Short as BSS import qualified Data.Text as T import...
bsummer4/ogz
src/Orphans.hs
agpl-3.0
1,411
0
9
274
442
243
199
-1
-1
-- Author: Eric Kalosa-Kenyon module Tictactoe where import Data.Matrix import Control.Monad data Player = X | O | E deriving (Show, Read, Eq) type Board = Matrix Player -- define initial variables dim = (3, 3) -- NOTE: This should be treated as hardcoded - the winchecking -- methods below rely on 3x3 bo...
ekalosak/haskell-practice
tictactoe/Tictactoe.hs
lgpl-3.0
1,863
0
11
459
567
312
255
29
1
import System.Environment import System.IO import Network.HTTP.Proxy import Network.TShot.Parser import Network.TShot.Remote main = putStrLn "tshot"
crab2313/tshot
Main.hs
artistic-2.0
151
0
5
16
37
22
15
6
1
module Handler.Plans where import Import import Util import Util.Angular postPlansR :: Handler RepJson postPlansR = do userId <- requireAuthIdPreventingXsrf newPlan <- parseJsonBody_ -- TODO error page is HTML, not friendly! planEntity <- runDB $ createPlan userId newPlan jsonToRepJson planEntity postComple...
samstokes/yesodoro-reboot
Handler/Plans.hs
bsd-2-clause
1,307
0
11
248
392
186
206
36
2
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QCompleter.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:35 Warning : this file is machine generated - do no...
uduki/hsQt
Qtc/Enums/Gui/QCompleter.hs
bsd-2-clause
4,469
0
18
961
1,142
570
572
101
1
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QGraphicsSceneDragDropEvent.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:16 Warning : this file is machine ...
keera-studios/hsQt
Qtc/Gui/QGraphicsSceneDragDropEvent.hs
bsd-2-clause
11,982
0
12
1,476
2,847
1,447
1,400
-1
-1
module TriangleKata.Day10Spec (spec) where import Test.Hspec import TriangleKata.Day10 (triangle, TriangleType(..)) spec :: Spec spec = do it "equilateral triangle has all sides equal" $ do triangle (10, 10, 10) `shouldBe` Equilateral it "isosceles triangle has first two s...
Alex-Diez/haskell-tdd-kata
old-katas/test/TriangleKata/Day10Spec.hs
bsd-3-clause
1,457
0
12
449
385
207
178
26
1
{-# LANGUAGE RecordWildCards #-} {-# LANGUAGE BangPatterns #-} module Sequence.Alignment ( Substitution, Gap, Alignment (..) , alignment , mkGlobal, mkLocal, mkSemiglobal, mkEditDistance ) where import Data.Array (array, range, (!)) import Data.ByteString.Char8 ...
zmactep/zero-aligner
src/Sequence/Alignment.hs
bsd-3-clause
2,248
0
13
861
912
491
421
44
4
module Test.Themis.Test.Arbitrary ( alpha , alphaNum , num , Interval(..) , module Test.QuickCheck.Arbitrary ) where -- Reimports the quickcheck's arbitrary module. import Test.QuickCheck.Arbitrary import Test.QuickCheck.Gen alpha = elements ['a' .. 'z'] num = elements ['0' .. '9'] alphaNum = oneof ...
andorp/themis
src/Test/Themis/Test/Arbitrary.hs
bsd-3-clause
612
0
12
140
243
134
109
20
1
----------------------------------------------------------------------------- -- | -- Module : FRP.UISF.UIMonad -- Copyright : (c) Daniel Winograd-Cort 2014 -- License : see the LICENSE file in the distribution -- -- Maintainer : dwc@cs.yale.edu -- Stability : experimental {-# LANGUAGE RecursiveDo #...
dwincort/UISF
FRP/UISF/UITypes.hs
bsd-3-clause
16,358
0
22
3,932
2,868
1,679
1,189
195
13
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE TypeFamilies #-} -- --------------------------------------------------------------------------- -- | -- Module : Data.Vector.Algorithms.Merge -- Copyright : (c) 2008-2011 Dan Doel -- Maintainer : Dan Doel <dan.doel@gmail.com> -- Stability : Experimental -- Portabili...
tolysz/vector-algorithms
src/Data/Vector/Algorithms/Merge.hs
bsd-3-clause
3,471
0
14
1,032
1,051
523
528
65
2
{-# LANGUAGE ExtendedDefaultRules #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE CPP #-} import Test.Hspec import Data.Conduit.Shell hiding (ignore) -- https://github.com/fpco/stackage/issues/2355#issue-212177275 import Data.Conduit.Shell.PATH (true, false) import Data.Conduit.Shell.Segments (strings, ignore) i...
chrisdone/shell-conduit
test/Spec.hs
bsd-3-clause
5,583
0
24
1,925
1,525
764
761
111
1
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-} module Language.C.Simple.CType.Types where import Data.Data import Data.Typeable import GHC.Generics -- |Primitive C Types data PrimitiveType = TChar | TSChar | TUChar | TShort | TUShort ...
jfischoff/simple-c-type
src/Language/C/Simple/CType/Types.hs
bsd-3-clause
1,574
0
7
787
295
177
118
45
0
-- Copyright (c) 2016-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE OverloadedStrings #-} module Duckling.Temperature.ZH.Corpus ( corpus ) where import Prelude impo...
facebookincubator/duckling
Duckling/Temperature/ZH/Corpus.hs
bsd-3-clause
1,291
0
9
451
205
126
79
36
1
{-# LANGUAGE BangPatterns #-} module Network.HPACK.Huffman.Tree ( -- * Huffman decoding HTree(..) , eosInfo , toHTree , showTree , printTree , flatten ) where import Control.Arrow (second) import Data.List (partition) import Network.HPACK.Huffman.Bit import Network.HPACK.Huffman.Params ------------...
bergmark/http2
Network/HPACK/Huffman/Tree.hs
bsd-3-clause
2,440
0
13
748
843
451
392
54
1
{- - Hacq (c) 2013 NEC Laboratories America, Inc. All rights reserved. - - This file is part of Hacq. - Hacq is distributed under the 3-clause BSD license. - See the LICENSE file for more details. -} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE MultiParamTypeClasses #-...
ti1024/hacq
src/Control/Monad/Quantum/PhaseShift/Binary/Class.hs
bsd-3-clause
1,998
0
11
331
353
193
160
27
1
{-# LANGUAGE ExistentialQuantification #-} module Jerimum.Storage.PostgreSQL.SqlMonad ( SqlMonadError(..) , SqlMonad , performIO , performSQL , performTxn , catchError , throwError , runSqlM ) where import Control.Exception import Control.Monad.Except import Control.Mon...
dgvncsz0f/nws
src/Jerimum/Storage/PostgreSQL/SqlMonad.hs
bsd-3-clause
1,513
0
15
361
486
249
237
42
2
{-# LANGUAGE DataKinds #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} module...
GaloisInc/ivory
ivory-examples/examples/BitData.hs
bsd-3-clause
4,094
0
19
1,014
789
408
381
64
1
module Control.ConstraintClasses.KeyFoldableFunctor ( -- * Constraint KeyFoldableFunctor CKeyFoldableFunctor ) where import Control.ConstraintClasses.Domain import Control.ConstraintClasses.Key import Control.ConstraintClasses.KeyFoldable import Control.ConstraintClasses.KeyFunctor import Data.Key -- base ...
guaraqe/constraint-classes
src/Control/ConstraintClasses/KeyFoldableFunctor.hs
bsd-3-clause
1,137
0
6
94
145
93
52
-1
-1
{-# LANGUAGE OverloadedStrings #-} -- | Visualize a force-directed network from connectivity. module Web.Lightning.Plots.Force ( ForcePlot(..) , Visualization (..) , forcePlot ) where -------------------------------------------------------------------------------- import Control.Monad.Reader ...
cmoresid/lightning-haskell
src/Web/Lightning/Plots/Force.hs
bsd-3-clause
3,606
0
11
1,224
608
342
266
55
1
{-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-orphans #-} -- | Arbitrary instances for Delegation types. module Test.Pos.Chain.Delegation.Arbitrary ( genDlgPayload ) where import Universum import qualified Data.HashMap.Strict as HM import Test.QuickCheck (Arbitrary ...
input-output-hk/pos-haskell-prototype
chain/test/Test/Pos/Chain/Delegation/Arbitrary.hs
mit
1,601
0
10
403
385
221
164
37
1
{-# LANGUAGE FlexibleInstances #-} {- | Module : ./CASL/Amalgamability.hs Description : Amalgamability analysis for CASL. Copyright : (c) Maciek Makowski, Warsaw University 2004-2006 License : GPLv2 or higher, see LICENSE.txt Maintainer : till@informatik.uni-bremen.de Stability : provisional Portab...
spechub/Hets
CASL/Amalgamability.hs
gpl-2.0
47,803
24
48
17,773
11,160
5,839
5,321
746
17
module Rewriting.DPO.TypedGraphRule.NacManipulationSpec where import Data.Maybe (fromMaybe) import Test.Hspec import Abstract.Category import Abstract.Category.FindMorphism import Abstract.Rewriting.DPO import Data.TypedGrap...
rodrigo-machado/verigraph
tests/Rewriting/DPO/TypedGraphRule/NacManipulationSpec.hs
gpl-3.0
2,589
0
14
574
508
265
243
47
1
{-# LANGUAGE PackageImports #-} import "12Factor" Application (getApplicationDev) import Network.Wai.Handler.Warp (runSettings, defaultSettings, settingsPort) import Control.Concurrent (forkIO) import System.Directory (doesFileExist, removeFile) import System.Exit (exitSuccess) import Control.Concurrent (threadDela...
beni55/12Factor
devel.hs
bsd-2-clause
702
0
10
123
186
101
85
23
2
-- | -- Module : Foundation.List.DList -- License : BSD-style -- Maintainer : Nicolas Di Prima <nicolas@primetype.co.uk> -- Stability : statble -- Portability : portable -- -- Data structure for optimised operations (append, cons, snoc) on list -- module Foundation.List.DList ( DList ) where import...
vincenthz/hs-foundation
foundation/Foundation/List/DList.hs
bsd-3-clause
3,001
0
12
755
1,147
581
566
-1
-1
module L10.Compose where import Control.Applicative -- Exactly one of these exercises will not be possible to achieve. newtype Compose f g a = Compose (f (g a)) -- Exercise 1 -- Implement a Functor instance for Compose instance (Functor f, Functor g) => Functor (Compose f g) where fmap f (Compose k) = e...
juretta/course
src/L10/Compose.hs
bsd-3-clause
939
0
9
205
210
112
98
-1
-1
{-# LANGUAGE ScopedTypeVariables #-} module Main where import Prelude hiding ( mod, id, mapM ) import GHC --import Packages import HscTypes ( isBootSummary ) import Digraph ( flattenSCCs ) import DriverPhases ( isHaskellSrcFilename ) import HscTypes ( msHsFilePath ) import Name ...
ml9951/ghc
utils/ghctags/Main.hs
bsd-3-clause
14,667
0
20
4,251
3,935
1,992
1,943
274
23
-- These types follow the format of Twitter search results, as can be -- found in the benchmarks/json-data directory. -- -- For uses of these types, see the Twitter subdirectory. -- -- There is one deviation for the sake of convenience: the Geo field -- named "type_" is really named "type" in Twitter's real feed. I --...
tolysz/prepare-ghcjs
spec-lts8/aeson/examples/Twitter.hs
bsd-3-clause
2,032
0
9
586
448
275
173
56
0
-- (c) The University of Glasgow 2006 {-# LANGUAGE CPP, ScopedTypeVariables #-} module Eta.Utils.Digraph( Graph, graphFromVerticesAndAdjacency, graphFromEdgedVertices, SCC(..), Node, flattenSCC, flattenSCCs, stronglyConnCompG, topologicalSortG, dfsTopSortG, verticesG, edgesG, h...
rahulmutt/ghcvm
compiler/Eta/Utils/Digraph.hs
bsd-3-clause
23,836
0
17
6,926
6,099
3,221
2,878
332
5
{-# LANGUAGE Haskell98, MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances #-} {-# LINE 1 "Control/Monad/RWS/Class.hs" #-} {-# LANGUAGE UndecidableInstances #-} -- Search for UndecidableInstances to see why this is needed ----------------------------------------------------------------------------- -- | ...
phischu/fragnix
tests/packages/scotty/Control.Monad.RWS.Class.hs
bsd-3-clause
2,382
0
8
382
466
279
187
-1
-1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TupleSections #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE TemplateHaskell #-} module Stack.PackageDump ( Line , eachSe...
mrkkrp/stack
src/Stack/PackageDump.hs
bsd-3-clause
18,082
0
27
6,044
4,738
2,417
2,321
-1
-1
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternSynonyms #-} module SDL.Event ( Event(..) , EventPayload(..) , KeyMotion(..) , KeyState(..) , MouseButton(..) , MouseMo...
svenkeidel/sdl2
src/SDL/Event.hs
bsd-3-clause
11,071
0
15
2,356
3,304
1,772
1,532
265
16
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
romanb/amazonka
amazonka-sdb/gen/Network/AWS/SDB/CreateDomain.hs
mpl-2.0
3,314
0
9
701
337
210
127
45
1
{- Copyright 2015 Google Inc. 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 applicable law or a...
Ye-Yong-Chi/codeworld
codeworld-base/src/Data/Unique.hs
apache-2.0
737
0
4
136
23
17
6
4
0
module Graphics.Vty.Error where -- | The type of exceptions specific to vty. -- -- These have fully qualified names by default since, IMO, exception -- handling requires this. data VtyException = VtyFailure String -- ^ Uncategorized failure specific to vty.
jtdaugherty/vty
src/Graphics/Vty/Error.hs
bsd-3-clause
264
0
6
46
21
15
6
3
0
{- (c) The GRASP Project, Glasgow University, 1994-1998 \section[TysWiredIn]{Wired-in knowledge about {\em non-primitive} types} -} {-# LANGUAGE CPP #-} -- | This module is about types that can be defined in Haskell, but which -- must be wired into the compiler nonetheless. C.f module TysPrim module TysWiredIn ( ...
forked-upstream-packages-for-ghcjs/ghc
compiler/prelude/TysWiredIn.hs
bsd-3-clause
33,431
0
14
8,709
5,157
2,826
2,331
444
10
{- (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[FloatOut]{Float bindings outwards (towards the top level)} ``Long-distance'' floating of bindings towards the top level. -} {-# LANGUAGE CPP #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module FloatOut ( floatOutwards ) where import CoreSyn import ...
green-haskell/ghc
compiler/simplCore/FloatOut.hs
bsd-3-clause
20,987
1
27
5,706
4,008
2,156
1,852
241
5
#!/usr/bin/runhaskell import Distribution.Simple main = defaultMain
jordanemedlock/fungen
Setup.hs
bsd-3-clause
68
0
4
6
12
7
5
2
1
{-# LANGUAGE TypeApplications #-} module E where import A import B import C import D c :: F (a, C) -> Bool c = id e :: () -> Bool e = c . b @ C
ezyang/ghc
testsuite/tests/driver/recomp017/E.hs
bsd-3-clause
144
0
7
37
65
38
27
10
1
module Language.Atom.MSP430 ( module Language.Atom, module Language.Atom.MSP430.Watchdog, module Language.Atom.MSP430.DigitalIO, module Language.Atom.MSP430.TimerA, module Language.Atom.MSP430.Interrupts, module Language.Atom.MSP430.Compile ) where import Language.Atom import Language.Atom.MSP...
eightyeight/atom-msp430
Language/Atom/MSP430.hs
mit
482
0
5
56
95
68
27
13
0
-- Counting Change Combinations -- http://www.codewars.com/kata/541af676b589989aed0009e7/ module Change where import Data.List (sortBy) countChange :: Integer -> [Integer] -> Integer countChange n ss = f n (sortBy (flip compare) ss) where f 0 _ = 1 f _ [] = 0 f n [x] = toInteger . fromEnum ....
gafiatulin/codewars
src/4 kyu/Change.hs
mit
425
0
15
109
197
106
91
8
4
-- Compiler Toolkit: compiler state management basics -- -- Author : Manuel M. T. Chakravarty -- Created: 7 November 97 -- -- Copyright (C) [1997..1999] Manuel M. T. Chakravarty -- -- This file is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as publi...
ian-ross/c2hs-macos-test
c2hs-0.26.1/src/Control/StateBase.hs
mit
4,685
0
10
1,157
683
415
268
38
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticache-cache-cluster.html module Stratosphere.Resources.ElastiCacheCacheCluster where import Stratosphe...
frontrowed/stratosphere
library-gen/Stratosphere/Resources/ElastiCacheCacheCluster.hs
mit
13,261
0
15
1,252
2,008
1,131
877
128
1
module GHCJS.DOM.SVGFEDiffuseLightingElement ( ) where
manyoo/ghcjs-dom
ghcjs-dom-webkit/src/GHCJS/DOM/SVGFEDiffuseLightingElement.hs
mit
57
0
3
7
10
7
3
1
0
module Main where import Test.Hspec.Runner import Test.Hspec.Formatters import qualified Spec main :: IO () main = hspecWith defaultConfig { configFormatter = Just specdoc , configColorMode = ColorAlways } Spec.spec
wayofthepie/emu-mos-6502
test/Main.hs
mit
224
0
8
37
59
35
24
9
1
module Oczor.Compiler.CommandLine where import ClassyPrelude import Data.Version (showVersion) import Options.Applicative import Oczor.Compiler.Compiler import Oczor.Compiler.State import Oczor.Utl hiding (argument) import Paths_oczor (version) data Options = Options { lng :: String , output :: String , showMdl ...
ptol/oczor
src/Oczor/Compiler/CommandLine.hs
mit
1,476
0
17
276
477
244
233
36
1
-- | -- Module : System.AtomicWrite.Writer.LazyText -- Copyright : © 2015-2019 Stack Builders Inc. -- License : MIT -- -- Maintainer : Stack Builders <hackage@stackbuilders.com> -- Stability : experimental -- Portability : portable -- -- Provides functionality to dump the contents of a Text -- to a ...
stackbuilders/atomic-write
src/System/AtomicWrite/Writer/LazyText.hs
mit
1,651
0
9
377
184
113
71
24
1
{-# LANGUAGE BangPatterns #-} import qualified Data.ByteString as BS import qualified Data.ByteString.Char8 as BSC8 import Data.List.Split import Data.Bits import Data.Word import Prelude filename = "p059_cipher.txt" word :: BS.ByteString word = BSC8.pack "chapter" -- All possible key combinations combinations :...
RossMeikleham/Project-Euler-Haskell
59.hs
mit
1,805
0
20
475
714
387
327
45
4
module Hasgel.Game.Movement ( maxSpeed, tryMove ) where import Data.List (findIndex) import Data.Maybe (fromMaybe, isNothing) import Control.Lens ((^.)) import qualified Linear as L import Hasgel.Transform (Transform (..), translate) -- | Maximum speed of movement allowed when checking collisions. maxSpeed :: Fl...
Th30n/hasgel
src/Hasgel/Game/Movement.hs
mit
2,579
13
24
777
738
419
319
46
4
{-# htermination addListToFM :: FiniteMap Char b -> [(Char,b)] -> FiniteMap Char b #-} import FiniteMap
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/FiniteMap_addListToFM_3.hs
mit
104
0
3
16
5
3
2
1
0
-- | -- Module : Occlusion.TH -- Description : Experimental Template Haskell module -- Copyright : (c) Jonatan H Sundqvist, 2015 -- License : MIT -- Maintainer : Jonatan H Sundqvist -- Stability : experimental|stable -- Portability : POSIX (not sure) -- -- Created Jonatan H Sundqvist 2015 -- Based on htt...
SwiftsNamesake/Occlusion
src/Occlusion/TH.hs
mit
3,080
1
13
439
470
250
220
-1
-1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module FlagsSpec ( flagsSpec ) where import DarkSky.Response.Flags import DarkSky.Unit import Data.Aeson import Data.ByteString.Lazy as BL import Test.Hspec import Text.RawString.QQ flagsSpec :: IO () flagsSpec = hspec $ describe "Flags" $ des...
peterstuart/dark-sky
test/FlagsSpec.hs
mit
1,397
0
13
263
291
167
124
43
1
module Display where import Graphics.Rendering.OpenGL as GL import Graphics.UI.GLFW as GLFW import Graphics.Rendering.OpenGL (($=)) import DataStructures as DS import Data.List hiding (concat, foldl, foldl') import Numeric.Units.Dimensional.Prelude ((*~), meter) import qualified Data.Sequence as Seq import Data.Foldab...
Stratege/NBody-Simulation
display.hs
mit
5,178
30
21
1,006
1,401
780
621
62
1
{-# LANGUAGE OverloadedStrings #-} module Data.NGH.Formats.Fasta ( writeSeq ) where import Data.Convertible import qualified Data.ByteString as S import qualified Data.ByteString.Char8 () -- import IsString instance import qualified Data.ByteString.Lazy as L -- |writeSeq formats a sequence in Fast-A format wr...
luispedro/NGH
Data/NGH/Formats/Fasta.hs
mit
796
0
11
176
244
136
108
16
2
import Text.CSV import Data.List import Data.Function import DBGrader.Flags import DBGrader.Questions import DBGrader.Types import DBGrader.Config -- CSV file to parse for grades. -- The csv columns are as follows: -- name, view, db, matches, notes, flags, query, errors csvFile :: String csvFile = "studentGrades.csv"...
GarrisonJ/DBGrader
CreateSummarySheets.hs
mit
3,321
0
17
1,169
750
392
358
54
2
{-# LANGUAGE RankNTypes #-} {- | Module : $Header$ Copyright : (c) 2005, Amr Sabry, Chung-chieh Shan, Oleg Kiselyov and Daniel P. Friedman License : GPLv2 or higher, see LICENSE.txt Maintainer : Christian.Maeder@dfki.de Stability : experimental Portability : non-portable (RankNTypes...
nevrenato/Hets_Fork
Common/SFKT.hs
gpl-2.0
2,217
0
14
540
760
398
362
34
2
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE...
Hi-Angel/yi
yi-core/src/Yi/Snippets.hs
gpl-2.0
14,849
308
17
4,416
4,205
2,222
1,983
-1
-1
{-# OPTIONS -w -O0 #-} {- | Module : Adl/ATC_Adl.der.hs Description : generated Typeable, ShATermConvertible instances Copyright : (c) DFKI Bremen 2008 License : GPLv2 or higher, see LICENSE.txt Maintainer : Christian.Maeder@dfki.de Stability : provisional Portability : non-portable(overlapping Ty...
nevrenato/Hets_Fork
Adl/ATC_Adl.der.hs
gpl-2.0
3,423
0
5
466
157
117
40
19
0
{-# language TypeFamilies, FlexibleContexts #-} module Numeric.LinearAlgebra.EigenSolvers.Experimental where import Control.Exception.Common import Control.Iterative import Data.Sparse.Common import Control.Monad.Catch import Control.Monad.State.Strict -- | `eigRayleigh n mm` performs `n` iterations of the Rayleig...
ocramz/sparse-linear-algebra
src/Numeric/LinearAlgebra/EigenSolvers/Experimental.hs
gpl-3.0
2,178
23
11
576
500
307
193
37
1
{-| Module : PhaseImport License : GPL Maintainer : helium@cs.uu.nl Stability : experimental Portability : portable -} module Helium.Main.PhaseImport(phaseImport) where import Helium.ModuleSystem.GatherImports import Helium.Main.CompileUtils import Helium.ModuleSystem.CoreToImportEnv...
Helium4Haskell/helium
src/Helium/Main/PhaseImport.hs
gpl-3.0
1,469
0
14
277
259
147
112
17
1
module Lamdu.Sugar.Convert.Annotation ( makeAnnotation, makeTypeAnnotation ) where import Control.Monad.Unit (Unit) import Control.Monad.Transaction (MonadTransaction) import qualified Lamdu.Annotations as Annotations import qualified Lamdu.Calc.Type as T import Lamdu.Sugar.Annota...
lamdu/lamdu
src/Lamdu/Sugar/Convert/Annotation.hs
gpl-3.0
1,567
0
12
299
406
222
184
-1
-1
<?xml version='1.0' encoding='ISO-8859-1' ?> <!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"> <title>Help</title> <maps> <homeID>top</homeID> <mapref locati...
senbox-org/snap-desktop
snap-product-library-ui-v2/src/main/resources/org/esa/snap/product/library/ui/v2/docs/help.hs
gpl-3.0
761
54
44
164
278
141
137
-1
-1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-shopping-content/gen/Network/Google/Resource/Content/Accounts/Updatelabels.hs
mpl-2.0
5,850
0
20
1,412
903
522
381
131
1
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE ExistentialQuantification #-} module Affection.MessageBus.Class ( Participant(..) , genUUID , UUID ) where import Affection.MessageBus.Message import Affectio...
nek0/affection
src/Affection/MessageBus/Class.hs
lgpl-3.0
1,882
0
12
406
312
176
136
39
1
data Slovo = Samo Char | Crtica Slovo deriving (Eq) instance Show Slovo where show (Samo c) = [c] show (Crtica s) = (show s) ++ "'" data Lambda = Varijabla Slovo | Aplikacija Lambda Lambda | Apstrakcija Slovo Lambda instance Show Lambda where show (Varijabla s) = show s show (Apl...
vedgar/mlr
2016 Kolokvij/Z5.hs
unlicense
2,050
90
13
554
900
456
444
45
1
{-# OPTIONS_GHC -fno-warn-missing-signatures #-} module Test where import qualified FAM (test) import qualified FM_DebasishG_2013_01_a_language_and_its_interpretation as FM_D (test) import qualified FM_GG_2012_07_purify_code as FM...
haroldcarr/learn-haskell-coq-ml-etc
haskell/topic/fix-free/free/src/Test.hs
unlicense
584
0
7
212
88
55
33
13
1
module ShapeTest1 where import Test.HUnit data Shape = Circle Float Float Float | Rectangle Float Float Float Float deriving Show surface :: Shape -> Float surface (Circle _ _ r) = pi * r ^ 2 surface (Rectangle x1 y1 x2 y2) = (abs $ x2 - x1) * (abs $ y2 - y1) circleSurfaceTest :: Test circleSurfaceTest = TestCa...
dnvriend/study-category-theory
haskell/learn_a_haskell/ch8/ShapeTest1.hs
apache-2.0
627
0
9
127
226
121
105
16
1
module Presentation where import System.IO (hFlush, stdout) banner :: String -> IO () banner msg = do putStrLn line putStrLn $ " " ++ msg putStrLn line where len = length msg + 2 line = replicate len '-' prompt :: String -> String -> IO String prompt msg status = do putStrLn ...
tr00per/adventure
src/main/haskell/Presentation.hs
bsd-2-clause
714
0
10
209
241
114
127
25
2
{-# LANGUAGE PackageImports #-} import "yosogr" Application (getApplicationDev) import Network.Wai.Handler.Warp (runSettings, defaultSettings, settingsPort, settingsHost) import Control.Concurrent (forkIO) import System.Directory (doesFileExist, removeFile) import System.Exit (exitSuccess) import Control.Concurrent...
yogsototh/yosogr
devel.hs
bsd-2-clause
748
0
10
135
196
107
89
24
2
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE PackageImports #-} module PkgStore(PkgStore(..) --,serlN2 ,Store,getSize ,sd) where -- Store,serializeF,deserializeF) where import Control.Exception import ...
tittoassini/flat
benchmarks/PkgStore.hs
bsd-3-clause
1,939
0
10
419
520
283
237
45
1
module Sound.Fluidsynth.Event ( Channel , Key , Velocity , Duration , BankNum , PresetNum , SoundFontID , Value , Control , ClientID , Pitch , SeqEventType(..) , SeqEvent(..) , seqEventType , seqEventSource , seqEventDestination ) where import Sound.Fluidsynth.Interna...
projedi/fluidsynth-hs-complete
src/Sound/Fluidsynth/Event.hs
bsd-3-clause
328
0
5
90
72
49
23
18
0
-------------------------------------------------------------------------------- -- | -- Module : Graphics.Rendering.OpenGL.Raw.EXT.TextureFilterAnisotropic -- Copyright : (c) Sven Panne 2015 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portability : ...
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/EXT/TextureFilterAnisotropic.hs
bsd-3-clause
745
0
4
81
40
33
7
4
0
import Control.Monad (filterM, forM_) import qualified Data.Vector.Unboxed.Mutable as MV import qualified Data.Vector.Unboxed as V import Data.Vector.Unboxed ((!)) m = 10^9 k = 4321 n = 1234567898765 pd = [5, 41, 25343, 237631] divisor = map product xs where xs = filterM (const [False, True]) pd conv :: V.Vector...
foreverbell/project-euler-solutions
src/511.hs
bsd-3-clause
1,205
36
9
388
582
317
265
35
3
module Main where import Dropbox ( DropboxSession(..) , getSession , accountInfo , metadata) main = do session <- getSession Nothing -- res <- getAccountInfo sID let url = getAuthorizationUrl session putStrLn url putStrLn "Continue?" inputStr <- getLi...
tinkhaven/haskell-dropbox-api
test/DropboxTest.hs
bsd-3-clause
380
0
10
122
92
45
47
13
1
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-} {-# LANGUAGE OverloadedStrings #-} module Hop.Apps.Juno.Ledger ( dirtyPickOutAccount50a ,runQuery ,convertQuery ,Transaction(..) ,SwiftAPI(..) ,AcctRole(..) ,LedgerQuery(..) ,QueryResult(..) ) where import Data.Either () import Control.Lens import Contr...
haroldcarr/juno
z-no-longer-used/src/Hop/Apps/Juno/Ledger.hs
bsd-3-clause
6,009
1
20
1,186
2,006
1,104
902
-1
-1
{-# LANGUAGE OverloadedStrings, DeriveGeneric #-} module Lib ( someFunc ) where import Data.Text as T import qualified Data.ByteString.Char8 as C import qualified Data.ByteString.Base64 as B64 import Data.ByteString as BS hiding (putStrLn) import Data.ByteString.Char8 as Ch8 (pack) import Data.ByteString.Lazy ...
ashgaliyev/tweeter-viewer
src/Lib.hs
bsd-3-clause
3,026
0
25
636
892
475
417
-1
-1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-| Module : $Header$ Copyright : (c) 2016 Deakin Software & Technology Innovation Lab License : BSD3 Maintainer : Shannon Pace <shannon.pace@deakin.edu.au> Stability : unstable Portability : portable Utilities for testing Eclogues function...
rimmington/eclogues
eclogues-impl/test/TestUtils.hs
bsd-3-clause
6,117
0
13
996
2,032
1,072
960
-1
-1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE RecordWildCards #-} module SnapshotVersions.Output where import Control.Monad.IO.Class import Control.Monad.Reader import Control.Mon...
vigoo/snapshot-versions
src/SnapshotVersions/Output.hs
bsd-3-clause
2,940
0
19
935
958
494
464
75
1
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-} module Raven.DataBase ( ensureUsers , checkUser , getAllUsers , Raven.DataBase.addUser , deleteUser , updateUsersAccess , updateUsersPassword )where import Database.MongoDB import Crypto.Hash import Data.Text (Text) import qualified Data.Text as ...
denumerate/raven
src/Raven/DataBase.hs
bsd-3-clause
4,609
0
23
1,435
1,451
740
711
101
3
{-# LANGUAGE DeriveDataTypeable #-} -- | -- Module : Crypto.PubKey.ECC.types -- License : BSD-style -- Maintainer : Vincent Hanquez <vincent@snarc.org> -- Stability : Experimental -- Portability : Excellent -- -- references: -- <https://tools.ietf.org/html/rfc5915> -- module Crypto.PubKey.ECC.Types ( ...
nomeata/cryptonite
Crypto/PubKey/ECC/Types.hs
bsd-3-clause
23,857
0
10
4,732
2,549
1,494
1,055
380
1
module Database.DSH.Backend.Sql.Opt.Properties.Empty where import Database.Algebra.Table.Lang import Database.DSH.Backend.Sql.Opt.Properties.Types inferEmptyNullOp :: NullOp -> Empty inferEmptyNullOp op = case op of LitTable (vs, _) -> null vs TableRef (_, _, _) -> False in...
ulricha/dsh-sql
src/Database/DSH/Backend/Sql/Opt/Properties/Empty.hs
bsd-3-clause
1,155
0
9
394
328
171
157
30
9
-- Copyright (c) 2016-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. An additional grant -- of patent rights can be found in the PATENTS file in the same directory. module Duckling.O...
rfranek/duckling
tests/Duckling/Ordinal/EN/Tests.hs
bsd-3-clause
602
0
9
98
80
51
29
11
1
-- | This module contains operations to form function stack frame and access -- its elements. module Toy.X86.Frame ( Frame , mkFrame , resolveMemRefs , evalStackShift ) where import Control.Applicative ((<|>)) import qualified Data.Map as M import Data.Maybe ...
Martoon-00/toy-compiler
src/Toy/X86/Frame.hs
bsd-3-clause
2,273
0
18
664
646
352
294
-1
-1
{-# LANGUAGE AllowAmbiguousTypes #-} module Spec.Flavor where import Relude data SpecFlavor = SpecVk | SpecXr data SSpecFlavor t where SSpecVk ::SSpecFlavor SpecVk SSpecXr ::SSpecFlavor SpecXr class KnownSpecFlavor (t :: SpecFlavor) where sSpecFlavor :: SSpecFlavor t instance KnownSpecFlavor Spe...
expipiplus1/vulkan
generate-new/src/Spec/Flavor.hs
bsd-3-clause
692
0
7
129
176
95
81
-1
-1
module Rumpus.Systems.Script where import PreludeExtra import Rumpus.Systems.PlayPause import Rumpus.Systems.Shared import Rumpus.Systems.CodeEditor import Rumpus.Systems.Knobs import qualified Data.HashMap.Strict as Map checkIfReadyToStart :: ECSMonad () checkIfReadyToStart = do startExprIDs <- Map.keys <$> g...
lukexi/rumpus
src/Rumpus/Systems/Script.hs
bsd-3-clause
3,819
0
19
1,139
723
366
357
-1
-1
{-# LANGUAGE OverloadedStrings #-} module Helpers.Auth where import Snap.Snaplet import Snap.Core import Snap.Snaplet.Auth import qualified Data.ByteString as B import Application import State.Accounts import Helpers.Errors withAccount :: (Account -> AppHandler ()) -> AppHandler () withAccount hndlr = do au <- wi...
dbp/analyze
src/Helpers/Auth.hs
bsd-3-clause
846
0
21
199
246
124
122
26
4
{-# LANGUAGE NoImplicitPrelude #-} ------------------------------------------------------------------- -- | -- Module : Irreverent.Bitbucket.Http -- Copyright : (C) 2017 Irreverent Pixel Feats -- License : BSD-style (see the file /LICENSE.md) -- Maintainer : Dom De Re -- --------------------------------...
irreverent-pixel-feats/bitbucket
bitbucket-http-client/src/Irreverent/Bitbucket/Http.hs
bsd-3-clause
747
0
4
77
75
61
14
7
0
{-- snippet all --} safeTail :: [a] -> Maybe [a] safeTail [] = Nothing safeTail (_:xs) = Just xs {-- /snippet all --}
binesiyu/ifl
examples/ch19/safetail.hs
mit
118
0
7
23
49
26
23
3
1
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TupleSections #-} {-# LANGUAGE TypeOperators #-} -- API server logic module Pos.Explorer.Web.Server ( explorerServeImpl , explorerA...
input-output-hk/pos-haskell-prototype
explorer/src/Pos/Explorer/Web/Server.hs
mit
40,447
0
28
11,399
8,530
4,436
4,094
-1
-1
{- Copyright 2013 Gabriel Gonzalez This file is part of the Suns Search Engine The Suns Search Engine 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 o...
Gabriel439/suns-search
src/Meld.hs
gpl-3.0
2,987
0
16
670
170
96
74
15
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="hi-IN"> <title>Bug Tracker</title> <maps> <homeID>top</homeID> <mapref location="map.j...
veggiespam/zap-extensions
addOns/bugtracker/src/main/javahelp/org/zaproxy/zap/extension/bugtracker/resources/help_hi_IN/helpset_hi_IN.hs
apache-2.0
957
79
66
157
409
207
202
-1
-1