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 : ./Maude/Parse.hs Description : extract Maude text in structured specs Copyright : (c) C. Maeder, DFKI GmbH 2009 License : GPLv2 or higher, see LICENSE.txt Maintainer : Christian.Maeder@dfki.de Stability : provisional Portability : portable extract Maude text from structured specs an...
spechub/Hets
Maude/Parse.hs
gpl-2.0
1,193
0
13
256
284
142
142
21
1
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd"> <helpset version="2.0" xml:lang="ko-KR"> <title>Code Dx | ZAP Extension</title> <maps> <homeID>top</homeID> <mapref loc...
veggiespam/zap-extensions
addOns/codedx/src/main/javahelp/org/zaproxy/zap/extension/codedx/resources/help_ko_KR/helpset_ko_KR.hs
apache-2.0
969
80
66
160
415
210
205
-1
-1
-------------------------------------------------------------------------- -- | -- Module : Data.Parition -- Copyright : (c) Luke Palmer, 2013 -- License : BSD3 -- -- Maintainer : Luke Palmer <lrpalmer@gmail.com> -- Stability : experimental -- Portability ...
cglazner/ibd_particle
src/MyPart.hs
bsd-3-clause
3,884
0
15
1,048
689
381
308
41
3
----------------------------------------------------------------------------- -- | -- Module : Eta.LanguageExtensions.Type -- Copyright : (c) TypeLead 2017 -- -- Maintainer : typeleadhq@gmail.com -- Portability : portable -- -- A data type defining the language extensions supported by Eta. -- {-# LANGUAGE D...
pparkkin/eta
libraries/eta-boot-th/Eta/LanguageExtensions/Type.hs
bsd-3-clause
3,701
0
6
859
398
272
126
113
0
{-# LANGUAGE OverloadedStrings #-} module SecondTransfer.Utils.DevNull( dropIncomingData , dropWouldGoData ) where import Data.Conduit import Control.Monad.IO.Class (liftIO, MonadIO) import qualified Control.Monad.Trans.Resource as ReT import SecondTr...
shimmercat/second-transfer
hs-src/SecondTransfer/Utils/DevNull.hs
bsd-3-clause
1,523
0
16
432
297
151
146
30
2
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE GADTs #-} {-# LANG...
markus-git/imperative-edsl-vhdl
src/Language/Embedded/Hardware/Interface/AXI.hs
bsd-3-clause
25,510
0
44
7,163
7,611
3,888
3,723
486
5
{-# Language OverloadedStrings #-} import Shelly main :: IO () main = shelly $ do echo "sleeping" run "sleep" ["5"] echo "all done"
adinapoli/Shelly.hs
test/src/sleep.hs
bsd-3-clause
147
0
9
38
47
22
25
8
1
----------------------------------------------------------------------------- -- | -- Module : Control.Concurrent.SampleVar -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stability : experimen...
kaoskorobase/mescaline
resources/hugs/packages/base/Control/Concurrent/SampleVar.hs
gpl-3.0
3,369
10
15
768
540
303
237
49
2
-- Example of concurrent Haskell and Gtk. -- -- As long as GHC does not support OS level threads by default, a trick has -- to be used to let Haskell programs continue while the GUI is running. -- We attach a call to the Haskell function "yield" to the timeout handler of -- Gtk's main loop. Thus GHC regularly gets a ch...
mimi1vx/gtk2hs
gtk/demo/concurrent/Progress.hs
gpl-3.0
1,070
0
10
206
190
90
100
22
1
-- #2931 module Foo where a = 1 -- NB: no newline after the 'a'! b = 'a
sdiehl/ghc
testsuite/tests/quotes/T2931.hs
bsd-3-clause
74
0
4
20
17
12
5
-1
-1
-- $Id: ScopeRec.hs,v 1.1 2001/07/24 17:39:10 moran Exp $ module ScopeRec where import Syntax import List(find, nub, nubBy, (\\), sortBy, groupBy, union) --import Observe import PrettyPrint import Maybe import IOExts import SyntaxUtil(isTyVar, getTyName) import Scope2 import HsConstants import ScopeStruct names :: ...
forste/haReFork
tools/base/SA/ScopeRec.hs
bsd-3-clause
48,944
523
40
14,338
17,219
9,283
7,936
824
12
module Main where class C a where op :: (Show a, Show b) => a -> b -> String -- This class op adds a constraint on 'a' -- In GHC 7.0 this is fine, and it's a royal -- pain to reject it when in H98 mode, so -- I'm just allowing it instance C Int where op x y = show x ++ " " ++ show y main = print (op (1::In...
green-haskell/ghc
testsuite/tests/typecheck/should_fail/tcfail149.hs
bsd-3-clause
326
0
9
89
99
53
46
6
1
{-# LANGUAGE TypeFamilies, StandaloneDeriving #-} -- Crashed 6.12 module T1769 where data family T a deriving instance Functor T
urbanslug/ghc
testsuite/tests/indexed-types/should_fail/DerivUnsatFam.hs
bsd-3-clause
140
0
5
30
19
13
6
4
0
{-# LANGUAGE TypeFamilies #-} module ShouldFail where class C3 a where data S3 a :: * data S3n a :: * foo3 :: a -> S3 a foo3n :: a -> S3n a bar3 :: S3 a -> a bar3n :: S3n a -> a instance C3 Int where data S3 Int = D3Int newtype S3n Int = D3Intn () foo3 _ = D3Int foo3n _ ...
urbanslug/ghc
testsuite/tests/indexed-types/should_fail/SimpleFail5a.hs
bsd-3-clause
605
0
8
205
228
117
111
24
1
-- !!! ds019 -- mixed var and uni-constructor pats module ShouldCompile where f (a,b,c) i o = [] f d (j,k) p = [] f (e,f,g) l q = [] f h (m,n) r = []
forked-upstream-packages-for-ghcjs/ghc
testsuite/tests/deSugar/should_compile/ds019.hs
bsd-3-clause
172
0
6
58
91
52
39
5
1
module Frontend.Monomorphise (monomorphise) where import Control.Applicative import Control.Monad.Reader import Control.Monad.State import Data.Maybe import Data.Map (Map) import qualified Data.Map as M import qualified Data.Set as S import Data.Bifunctor import Data.Bitraversable import Frontend.AST import Frontend....
alpicola/mel
src/Frontend/Monomorphise.hs
mit
4,137
0
21
915
1,899
928
971
-1
-1
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.Location (js_assign, assign, js_replace, replace, js_reload, reload, js_toString, toString, js_setHref, setHref, js_getHref, getHref, js_setProtocol, setProtocol, js_getProtocol, getProtocol...
manyoo/ghcjs-dom
ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/Location.hs
mit
9,398
152
10
1,461
2,255
1,225
1,030
131
1
import XMonad import XMonad.Util.Run import qualified XMonad.StackSet as W import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks import XMonad.Hooks.UrgencyHook import XMonad.Layout.ResizableTile import XMonad.Layout.NoBorders import XMonad.Layout.PerWorkspace import XMonad.Layout.Fullscreen import XMonad.La...
silverneko/dotfiles
xmonad.hs
mit
8,046
0
17
2,292
1,874
1,103
771
123
1
module Unison.Runtime.Debug ( traceComb , traceCombs , tracePretty , tracePrettyGroup ) where import Data.Word import qualified Unison.Term as Tm import Unison.Var (Var) import Unison.PrettyPrintEnv (PrettyPrintEnv) import Unison.TermPrinter (pretty) import Unison.Util.Pretty (toANSI) import Unison.Util.En...
unisonweb/platform
parser-typechecker/src/Unison/Runtime/Debug.hs
mit
1,078
0
9
219
387
204
183
42
1
-- | A program to sanitize an HTML tag to a Haskell function. -- module Util.Sanitize ( sanitize , keywords , prelude ) where import Data.Char (toLower, toUpper) import Data.Set (Set) import qualified Data.Set as S -- | Sanitize a tag. This function returns a name that can be used as -- combinator in ...
ajnsit/haste-markup
src/Util/Sanitize.hs
mit
3,367
0
10
681
839
531
308
50
3
module Day5 where import Data.List (.&&.) :: (a -> Bool) -> (a -> Bool) -> (a -> Bool) (.&&.) f g a = (f a) && (g a) hasVowels :: String -> Bool hasVowels = (>= 3) . length . (filter isVowel) where isVowel = (`elem` "aeiou") hasDoubles :: String -> Bool hasDoubles (x:y:xs) = x==y || (hasDoubles (y:xs)) hasDouble...
AndrewSinclair/aoc-haskell
src/Day5.hs
mit
1,204
0
11
197
542
298
244
29
1
module Platforms.GLFW.FRP where import Hickory.FRP (CoreEventGenerators, coreEventGenerators) import Hickory.Platform (makeTimePoller) import Platforms.GLFW (getGLFWWindowSizeRef, makeGLFWInputPoller) import qualified Graphics.UI.GLFW as GLFW glfwCoreEventGenerators :: GLFW.Window -> IO (IO (), CoreEventGenerators) g...
asivitz/Hickory
GLFW/Platforms/GLFW/FRP.hs
mit
528
0
9
59
124
67
57
11
1
module Parser ( parser ) where import Data.Set (empty) import DataStructures import Wires parser :: IO(Frame) parser = do content <- readFile "configMinimumViableProduct" let usefullContent = ((filter (\x -> take 2 x /= "--")) . lines) content let parsedEnnemies = parsingEnnemies usefullContent retur...
hardkey/Netwire5-shmup-prototype
src/Parser.hs
mit
1,076
0
20
340
349
179
170
30
3
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} ----------------------------------------------------------------------------- -- | -- Module : Data.TheBook.Monad -- Copyright : (c) 2014, Jakub Kozlowski -- License : MIT -- -- Maintainer : mail@jakub-kozlowski.com -- -- Unro...
ggreif/thebook-haskell
src/Data/TheBook/Monad.hs
mit
5,470
0
15
1,638
1,923
1,036
887
124
5
module Fusc where fusc :: Int -> Int fusc 0 = 0 fusc 1 = 1 fusc n | even n = fusc (n `div` 2) | odd n = fusc ((n-1) `div` 2) + fusc (((n-1) `div` 2) + 1)
pasaunders/code-katas
fusc.hs
mit
158
0
13
45
119
63
56
7
1
{-# LANGUAGE ExistentialQuantification, RecordWildCards #-} {-| Module : HSat.Parser Description : Main Parsing module Copyright : (c) Andrew Burnett 2014-2015 Maintainer : andyburnett88@gmail.com Stability : experimental Portability : Unknown Module exports some generic Parsing functions -} m...
aburnett88/HSat
src/HSat/Parser.hs
mit
2,557
0
11
589
517
280
237
46
2
f n = concat . map (take n . repeat) -- This part handles the Input and Output and can be used as it is. Do not modify this part. main = do n <- readLn :: IO Int inputdata <- getContents mapM_ putStrLn $ map show $ f n $ map (read :: String -> Int) $ lines inputdata
tsurai/hackerrank
functional-programming/introduction/list-replication.hs
mit
277
0
11
70
96
45
51
5
1
{-# LANGUAGE NoMonomorphismRestriction #-} {- So here's the thing: I think LanguageDefs aren't used for manipulating source files directly, they're only good for parsing out the actual expressions. A source file consists of *several* "programs" -- function definitions that I can parse using a LanguageDef, and same go...
5outh/fievel
Parser.hs
gpl-2.0
7,270
0
18
1,915
2,411
1,261
1,150
169
3
module InterfazSE where import FuncionesInterfaz import GraficosFunciones import GramaticaConcreta import SistemasEcuaciones import UU.Parsing import FuncionesAuxiliaresSE import Graphics.UI.Gtk import Foreign sistemasEcuaciones :: IO Table sistemasEcuaciones= do table <- tableNew 4 1 False ...
dmuneras/LambdaMethods
src/InterfazSE.hs
gpl-2.0
12,237
1
25
6,114
2,390
1,052
1,338
185
5
module Masque.AST where import Control.Applicative import Control.Monad import Control.Monad.Trans import Control.Monad.Trans.State import Data.Binary.Get import Data.Binary.IEEE754 import Data.Bits import qualified Data.ByteString.Char8 as BSC import Data.Foldable import Data.List (genericIndex) data Expr = NullExpr...
monte-language/masque
Masque/AST.hs
gpl-3.0
5,532
0
21
1,861
1,721
896
825
147
25
{---------------------------------------------------------------------} {- Copyright 2015 Nathan Bloomfield -} {- -} {- This file is part of Feivel. -} {- ...
nbloomf/feivel
src/Feivel/Eval/Eval.hs
gpl-3.0
3,211
0
17
1,109
1,001
499
502
66
1
{-# LANGUAGE LambdaCase #-} module Utils.Conduit (foldGroup) where import Data.Function (fix) import Data.Conduit as C import qualified Data.Conduit.Combinators as C foldGroup :: Monad m => (a -> a -> Bool) -> ConduitT a b m b -> ConduitT a b m () foldGroup p sink = fix $ \loop -> await >>= \case ...
merijn/GPU-benchmarks
benchmark-analysis/src/Utils/Conduit.hs
gpl-3.0
461
0
18
125
169
89
80
17
2
{-- The fraction 49/98 is a curious fraction, as an inexperienced mathematician in attempting to simplify it may incorrectly believe that 49/98 = 4/8, which is correct, is obtained by cancelling the 9s. We shall consider fractions like, 30/50 = 3/5, to be trivial examples. There are exactly four non-triv...
goalieca/haskelling
033.hs
gpl-3.0
793
0
13
168
125
68
57
3
1
module MLLabs.Distance ( Metric , minkowskiMetric , manhattanMetric , euclidianMetric , chebyshevMetric ) where import Linear.Vector (Additive (..)) type Metric obj = obj -> obj -> Double minkowskiMetric :: (Foldable f, Additive f) => Double -> Metric (f Double) mi...
zhenyavinogradov/ml-labs
src/MLLabs/Distance.hs
gpl-3.0
724
0
11
170
266
144
122
17
1
module Data.Fit.Example ( fitSpeeds, fitFields, readEntries, degrees, semicircles, cmToM, msToMPH ) where import Control.Lens import Data.List import Data.Time import Data.Time import Data.Time.Clock.POSIX import Fit data Entry = Entry { lat...
adarqui/ToyBox
haskell/mgiles/fit/src/Data/Fit/Example.hs
gpl-3.0
2,277
0
17
713
657
358
299
-1
-1
{-# LANGUAGE OverloadedStrings #-} module Test.FileTypeDetection (fileTypeDetectionTests) where import Network.Gopher (GopherFileType (..)) import Network.Spacecookie.FileType import System.FilePath.Posix.ByteString (takeExtension) import Test.Tasty import Test.Tasty.HUnit fileTypeDetectionTests :: TestTree fileType...
sternenseemann/spacecookie
test/Test/FileTypeDetection.hs
gpl-3.0
1,979
0
12
297
399
195
204
42
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/RegionOperations/Wait.hs
mpl-2.0
5,300
0
17
1,165
492
302
190
78
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-storage-transfer/gen/Network/Google/Resource/StorageTransfer/TransferJobs/Patch.hs
mpl-2.0
5,416
0
16
1,226
780
457
323
113
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateAuthenticationToken.hs
mpl-2.0
6,265
0
20
1,431
793
464
329
122
1
import Data.Word import Data.List (unfoldr) likedOverTime :: Word8 -> Integer likedOverTime = sum . unfoldr go . (,) 5 . toInteger where likedToday = flip div 2 shared = (* 3) go (_, 0) = Nothing go (x, n) = let x' = likedToday x in Just (x', (shared x', n -...
itsbruce/hackerrank
alg/implementation/viralAd.hs
unlicense
379
0
12
125
157
84
73
11
2
module Handler.Post where import Import import Yesod.Form.Bootstrap3 import Text.Blaze.Internal (Markup) data RawPost = RawPost { rPname :: Text , rPgender :: Text , rPlookingFor :: Text , rPlat :: Text , rPlng :: Text , rpdesc ...
Drezil/FFF
Handler/Post.hs
apache-2.0
3,077
0
19
1,084
771
403
368
-1
-1
module HelperSequences.A070939Spec (main, spec) where import Test.Hspec import HelperSequences.A070939 (a070939) main :: IO () main = hspec spec spec :: Spec spec = describe "A070939" $ it "correctly computes the first 20 elements" $ take 20 (map a070939 [0..]) `shouldBe` expectedValue where expectedValue...
peterokagey/haskellOEIS
test/HelperSequences/A070939Spec.hs
apache-2.0
365
0
10
59
160
95
65
10
1
{-# LANGUAGE PackageImports, Rank2Types, ExistentialQuantification, ScopedTypeVariables, FlexibleContexts, GADTs #-} module Event where import Type import Graphics.UI.Gtk import Coroutine import Control.Monad.Trans import Data.IORef data AllCont = forall o a. (Show o) => AllCont { r...
wavewave/hournal
xinput/Event.hs
bsd-2-clause
1,526
0
23
394
471
237
234
42
2
{-# LANGUAGE TypeFamilies, FlexibleInstances, FlexibleContexts, DeriveDataTypeable, StandaloneDeriving #-} ----------------------------------------------------------------------------- -- | -- Module : HEP.Automation.MadGraph.Model.ADMXQLD111degen -- Copyright : (c) 2012,2013 Ian-Woo Kim -- -- Lic...
wavewave/madgraph-auto-model
src/HEP/Automation/MadGraph/Model/ADMXQLD111degen.hs
bsd-2-clause
3,309
0
17
855
714
378
336
57
1
----------------------------------------------------------------------------- -- | -- Module : JSON -- Copyright : (c) Masahiro Sakai & Jun Mukai 2006 -- License : BSD-style -- -- Maintainer : sakai@tom.sfc.keio.ac.jp -- Stability : experimental -- Portability : portable -- ------------------------...
jcaldwell/monadserv
src/MonadServ/JSON.hs
bsd-2-clause
5,485
0
17
1,860
1,784
921
863
135
15
{-# LANGUAGE GADTs #-} {-# LANGUAGE OverloadedLists #-} {-# LANGUAGE ScopedTypeVariables #-} module Data.Swagger.Schema.Generator where import Prelude () import Prelude.Compat import Control.Lens.Operators import Control.Monad ...
GetShopTV/swagger2
src/Data/Swagger/Schema/Generator.hs
bsd-3-clause
5,649
1
24
2,005
1,469
727
742
-1
-1
{-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} module SAWServer.Data.LLVMType (JSONLLVMType, llvmType) where import Control.Applicative import qualified Data.Aeson as JSON import Data.Aeson (withObject, withText, (.:)) import qualified Data.Text as T import Text.L...
GaloisInc/saw-script
saw-remote-api/src/SAWServer/Data/LLVMType.hs
bsd-3-clause
3,354
0
20
924
880
463
417
96
1
module CouchGames.Manager ( Manager , ManagerS , emptyManager , newUser , getUserFromSession , newLobby , joinLobby , getLobbies , newPlayer , getSockets , removeSocket ) where import qualified Data.Map as Map import qualified Data.IntMap as IMap import qualified Data.Te...
alexlegg/couchgames
src/CouchGames/Manager.hs
bsd-3-clause
3,597
0
16
1,159
1,074
577
497
94
2
-- | Loads the icons into the component info icon view module View.InitIconsInfoArea where -- External libraries import Graphics.UI.Gtk -- Internal libraries import View.Objects import Paths type IconsInfoViewStore = ListStore (Pixbuf, String) -- | Loads the icons into the component info icon view initIconsInfoArea...
ivanperez-keera/SoOSiM-ui
src/View/InitIconsInfoArea.hs
bsd-3-clause
1,769
0
11
339
421
216
205
37
1
module Lib where import Examples someFunc :: IO () someFunc = putStrLn "someFunc"
lambdatoast/gadt-spec
src/Lib.hs
bsd-3-clause
84
0
6
15
25
14
11
4
1
{-# LANGUAGE MultiParamTypeClasses #-} module Servant.API.JSONUtf8 where import ClassyPrelude import Servant.API.ContentTypes import Data.Aeson ( FromJSON, ToJSON, encode ) import qualified Network.HTTP.Media as M data JSONUtf8 deriving Typeable -- | @application/json@ instance Accept JSONUtf8 where contentType...
CthulhuDen/api-ai
src/Servant/API/JSONUtf8.hs
bsd-3-clause
603
0
7
94
136
79
57
-1
-1
-------------------------------------------------------------------------------- -- | -- Module : Network.OpenID.Assocation.Map -- Copyright : (c) Trevor Elliott, 2008 -- License : BSD3 -- -- Maintainer : Trevor Elliott <trevor@geekgateway.com> -- Stability : -- Portability : -- module Network.OpenID.As...
elliottt/hsopenid
src/Network/OpenID/Association/Map.hs
bsd-3-clause
1,211
0
12
208
323
186
137
18
1
module Main where import Data.Numbers.Primes (isPrime, primes) import Control.Monad (guard) mersenneNumber :: Integer -> Integer mersenneNumber n = 2 ^ n - 1 mersennePrimes :: [Integer] mersennePrimes = do let selectedPrimes = [ x | x <- primes, x <= 57885161 ] x <- selectedPrimes let n = mersenneNumber ...
Michaelt293/mersenne
src/Main.hs
bsd-3-clause
454
0
12
102
158
80
78
16
1
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleContexts #-} module FPNLA.Matrix.Instances.VectorMatrix ( VVector, VMatrix(VMatrix), ) where import Control.DeepSeq (NFData, rnf) import Control.Parallel.Strategies (rdeepseq...
mauroblanco/fpnla-examples
src/FPNLA/Matrix/Instances/VectorMatrix.hs
bsd-3-clause
2,815
0
14
889
874
479
395
54
1
{-# LANGUAGE TemplateHaskell #-} module Main where import Control.DeepSeq (deepseq) import Criterion.Main import Symantics (fact15) import Simple import Staged import ErrorHandling import ErrorHandlingStaged import CPS import CPSStaged import Inlining import InliningNoDup import All main :: IO () main = defaultMain ...
maoe/MSP
bench.hs
bsd-3-clause
939
0
14
192
339
187
152
26
1
-- 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. module Duckling.Dimensions.AR ( allDimensions ) where import Duckling.Dimensions.Types allDimensions :: [Se...
facebookincubator/duckling
Duckling/Dimensions/AR.hs
bsd-3-clause
475
0
6
95
81
47
34
12
1
module Stars where import Rumpus -- Golden Section Spiral (via http://www.softimageblog.com/archives/115) pointsOnSphere :: Int -> [V3 GLfloat] pointsOnSphere (fromIntegral -> n) = let inc = pi * (3 - sqrt 5) off = 2 / n halfOff = off / 2 in for [0..n] $ \k -> let y = k * of...
lukexi/rumpus
pristine/Lobby/Stars.hs
bsd-3-clause
1,228
0
19
466
364
186
178
-1
-1
{-# language CPP #-} -- No documentation found for Chapter "DescriptorPoolCreateFlagBits" module Vulkan.Core10.Enums.DescriptorPoolCreateFlagBits ( DescriptorPoolCreateFlags , DescriptorPoolCreateFlagBits( DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT ...
expipiplus1/vulkan
src/Vulkan/Core10/Enums/DescriptorPoolCreateFlagBits.hs
bsd-3-clause
4,945
1
10
1,045
402
251
151
-1
-1
{-# LANGUAGE OverloadedStrings, TupleSections #-} module GLBackend where import Control.Applicative import Control.Monad import Data.Bitmap import Data.ByteString.Char8 (ByteString) import Data.List import Data.Maybe import Data.Trie (Trie) import Foreign import qualified Data.ByteString.Char8 as SB import qualified D...
csabahruska/GFXDemo
GLBackend.hs
bsd-3-clause
34,530
0
24
7,433
8,135
3,905
4,230
482
5
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE NamedFieldPuns #-} module PackageSets.Types where import Data.Data import Data.List import Data.Maybe import System.Process import Path data PackageSet = PackageSet { cabalConfig :: [(String, String)] } ...
soenkehahn/runstaskell
src/PackageSets/Types.hs
bsd-3-clause
1,384
0
13
286
403
211
192
35
1
module Utils (showEnum, lookupEnum, normalize, parseNum) where import Debug.Trace import Data.Default import qualified Data.List as L import qualified Data.Char as C import qualified Data.Text as T showEnum :: (Show a, Enum a) => a -> String showEnum = (map C.toLower) . show isParen :: Char -> Bool isParen c = c ==...
ostronom/pokerstars-audit
src/Utils.hs
bsd-3-clause
873
0
12
179
348
189
159
23
2
{-# LANGUAGE FlexibleContexts #-} module Network.Orchid.Core.Handler ( FileStoreType (..) , hRepository , hViewer , hWiki , hWikiCustomViewer ) where import Control.Applicative import Control.Monad.Trans import Data.FileStore hiding (NotFound) import Network.Orchid.Core.Format import Network.Orchid.Core.Liaison import...
sebastiaanvisser/orchid
src/Network/Orchid/Core/Handler.hs
bsd-3-clause
3,325
0
14
710
1,187
623
564
84
1
module Assets ( module Assets.Internal, addAnimation, getAnimation ) where import Environment import Assets.Internal import Animation import Data.Map as Map import Control.Lens import Control.Monad.IO.Class import Control.Monad.Trans import Control.Monad.Reader.Class addAnim...
alexisVallet/haskell-shmup
Assets.hs
bsd-3-clause
661
0
10
122
174
96
78
-1
-1
module ZMQHS (module X) where import ZMQHS.Connection as X import ZMQHS.Message as X import ZMQHS.ConnSpec as X import ZMQHS.Async as X import ZMQHS.Application as X import ZMQHS.Frame as X
xrl/zmqhs
ZMQHS.hs
bsd-3-clause
189
0
4
28
52
37
15
7
0
module Render.Element.Write where import Data.Char ( isLower ) import Data.List ( lookup ) import Data.List.Extra ( groupOn , nubOrd , n...
expipiplus1/vulkan
generate-new/src/Render/Element/Write.hs
bsd-3-clause
17,216
0
26
6,096
4,810
2,479
2,331
-1
-1
module Wham.AnalyzeRunner( run, ControlPointMap, ConfigurationSet) where import Wham.SignExc import Wham.SignBoolExc import Wham.InterpreterTypes import Wham.Interpreter import Wham.AMDefinitions hiding ((==), (+)) import qualified Data.Set as Set import qualified Data.Map as Map type AbstractConfigurat...
helino/wham
src/Wham/AnalyzeRunner.hs
bsd-3-clause
4,233
0
14
1,232
1,816
938
878
102
5
{-# OPTIONS_GHC -fno-warn-missing-signatures #-} ----------------------------------------------------------------------------- -- | -- Module : XMonad.Config.Kde -- Description : Config for integrating xmonad with KDE. -- Copyright : (c) Spencer Janssen <spencerjanssen@gmail.com> -- License : BSD -- -- ...
xmonad/xmonad-contrib
XMonad/Config/Kde.hs
bsd-3-clause
1,731
0
9
348
238
151
87
20
1
{-# LANGUAGE OverloadedStrings #-} module Main where import qualified Data.ByteString.Lazy as B hiding (putStrLn) import qualified Data.ByteString.Lazy.Char8 as B (putStrLn) import qualified Data.Text.Lazy as T import qualified Data.Text.Lazy.Encoding as E import Data.Monoid ((<>)) import Control.Monad (when, forM_) i...
TiloWiklund/pinot
src/Adder.hs
bsd-3-clause
3,077
0
16
746
975
514
461
65
4
{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} module API.Btce ( -- * Feed feed -- * Trading Proxies , session , BtceSession , send , cancelOrders ) where --------------------------------------------------------------------------------------------------- import Pipes ----...
RobinKrom/BtcExchanges
src/API/Btce.hs
bsd-3-clause
6,665
0
17
1,931
1,665
867
798
-1
-1
module Linear.Constraints.WeightSpec ( weightSpec ) where import Linear.Constraints.Weights import Data.Maybe (isNothing) import qualified Data.Map as Map import Data.Foldable (toList) import Test.Tasty import Test.Tasty.QuickCheck as QC import Test.Tasty.HUnit import Test.QuickCheck weightSpec :: TestTree wei...
athanclark/cassowary-haskell
test/Linear/Constraints/WeightSpec.hs
bsd-3-clause
1,518
0
10
274
452
243
209
-1
-1
module Main where import Control.Monad (when) import System.Environment (getArgs) import System.Exit (exitFailure) import qualified SDL import qualified SDL.Mixer as Mix main :: IO () main = do SDL.initialize [SDL.InitAudio] Mix.withAudio Mix.defaultAudio 256 $ do putStr "Available music decoder...
sbidin/sdl2-mixer
examples/Music.hs
bsd-3-clause
956
0
14
215
300
144
156
30
2
{-# LANGUAGE GADTs #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE OverlappingInstances #-} module Main where import Data.Maybe newtype MonadIO m a = MonadIO {returnIO :: m a} update :: Monad m => MonadIO m a -> MonadIO m () update mio = mio {returnIO = return ()} newtype Thingy m = Thingy {thing :: m ()} upda...
dterei/Scraps
haskell/GADTCast.hs
bsd-3-clause
1,313
0
10
348
436
225
211
34
2
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedLists #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module ClientSpec (spec) where import Data.Aeson import Data.Default (def) import Test.Hspec import qualified Network.HTTP.Client as HTTP import qualified Control...
kadena-io/pact
tests/ClientSpec.hs
bsd-3-clause
3,969
0
21
801
1,112
563
549
90
5
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE TemplateHaskell #-} module Network.UDP.Pal.Reliable.Types where import Control.Lens import Data.Binary import Data.Map.Strict (Map) import GHC.Generics import ...
lukexi/udp-pal
src/Network/UDP/Pal/Reliable/Types.hs
bsd-3-clause
1,987
0
12
514
402
227
175
60
1
{- Copyright 2010-2012 Cognimeta Inc. 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 agreed to in writing, sof...
bitemyapp/perdure
src/Database/Perdure.hs
apache-2.0
3,921
0
14
623
745
416
329
54
2
{-# LANGUAGE GeneralizedNewtypeDeriving, OverloadedStrings #-} module Protocol.Util where import General.Persistence ( PersistentBlockHeader(..) , PersistentUTXO(..) ) import General.Hash (Hash(..)) import BitcoinCore.BlockHeaders ( BlockHeader(..) , BlockVersion(..) , Difficulty(..) , Nonce(..) , Tim...
clample/lamdabtc
backend/src/Protocol/Util.hs
bsd-3-clause
4,965
0
11
924
1,293
736
557
141
2
{-# LANGUAGE CPP #-} ------------------------------------------------------------------------------- -- -- | Dynamic flags -- -- Most flags are dynamic flags, which means they can change from compilation -- to compilation using @OPTIONS_GHC@ pragmas, and in a multi-session GHC each -- session can be using different dy...
lukexi/ghc
compiler/main/DynFlags.hs
bsd-3-clause
161,443
0
34
44,575
31,347
17,654
13,693
-1
-1
{-# LANGUAGE CPP, GeneralizedNewtypeDeriving, OverloadedStrings #-} module Haste.Binary.Types ( Blob (..), BlobData (..), blobSize, blobDataSize, toByteString, fromByteString, toBlob, strToBlob ) where import Haste.Prim import Haste.Foreign import qualified Data.ByteString.Lazy as BS #ifndef __HASTE__ import ...
kranich/haste-compiler
libraries/haste-lib/src/Haste/Binary/Types.hs
bsd-3-clause
3,677
0
12
640
435
243
192
28
1
-- | Define a package-local alternative Prelude module Prelude (return, print, elem) where import GHC.List import System.IO import Control.Monad
hvr/base-noprelude
examples/ex1/src/Prelude.hs
bsd-3-clause
146
0
4
20
31
20
11
4
0
{-# Language RecordWildCards, OverloadedStrings, DeriveDataTypeable #-} module Language.Bing( BingLanguage(..), BingContext, BingError(..), ClientId, ClientSecret, checkToken, evalBing, execBing, getAccessToken, getAccessTokenEither, getBingCtx, runBing, runExceptT, translate, translateM) ...
netogallo/Microsoft-Translator-Haskell
src/Language/Bing.hs
bsd-3-clause
10,430
0
21
2,884
2,906
1,554
1,352
284
3
{- (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[HsBinds]{Abstract syntax: top-level bindings and signatures} Datatype for: @BindGroup@, @Bind@, @Sig@, @Bind@. -} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE FlexibleConte...
nushio3/ghc
compiler/hsSyn/HsBinds.hs
bsd-3-clause
40,952
0
18
11,693
6,407
3,449
2,958
428
4
-------------------------------------------------------------------------------- {-# LANGUAGE OverloadedStrings #-} module Hakyll.Web.Paginate ( PageNumber , Paginate (..) , buildPaginateWith , paginateEvery , paginateRules , paginateContext ) where ----------------------------------------...
Minoru/hakyll
src/Hakyll/Web/Paginate.hs
bsd-3-clause
4,988
0
13
1,292
1,143
606
537
83
3
{-# OPTIONS -fglasgow-exts #-} -- This one made GHC 6.4 loop becuause Unify.unify -- didn't deal correctly with unifying -- a :=: Foo a -- where -- type Foo a = a module ShouldSucceed where newtype PRef a = PRef a type Drop1 a = a class Ref a r | a -> r where readRef :: a -> r instance Ref (PRef a) (Drop1 a) where ...
hvr/jhc
regress/tests/1_typecheck/2_pass/ghc/uncat/tc195.hs
mit
344
0
8
79
88
52
36
-1
-1
-- GSoC 2015 - Haskell bindings for OpenCog. {-# LANGUAGE DataKinds #-} module PlnRules ( plnRuleEquivalenceHack , plnRuleEliminateNeutralElementHack , plnRuleEliminateDanglingJunctorHack , plnRuleAndHack , plnRuleForAllHack , plnRuleAverageHack ) where import OpenCog.AtomSpace (Atom(..),AtomType(Bi...
ruiting/opencog
examples/pln/moses-pln-synergy/haskell/PlnRules.hs
agpl-3.0
7,130
0
19
3,122
1,480
735
745
170
1
{-# LANGUAGE MagicHash #-} module LiteralsTest2 where x,y :: Int x = 0003 y = 0x04 s :: String s = "\x20" c :: Char c = '\x20' d :: Double d = 0.00 blah = x where charH = '\x41'# intH = 0004# wordH = 005## floatH = 3.20# doubleH = 04.16## x = 1
sgillespie/ghc
testsuite/tests/ghc-api/annotations-literals/LiteralsTest2.hs
bsd-3-clause
276
0
6
87
89
55
34
18
1
-- file: ch03/ShapeUnion.hs -- From chapter 3, http://book.realworldhaskell.org/read/defining-types-streamlining-functions.html type Vector = (Double, Double) data Shape = Circle Vector Double | Poly [Vector]
Sgoettschkes/learning
haskell/RealWorldHaskell/ch03/ShapeUnion.hs
mit
215
0
7
28
34
21
13
3
0
{-# LANGUAGE ScopedTypeVariables #-} module Main (main) where import Control.Applicative import qualified Data.ByteString.Char8 as S import qualified Data.ByteString.Lazy.Char8 as L import Data.Maybe import Data.MessagePack import Test.QuickCheck import Test.Tast...
voidlizard/ntced-tcp-proxy
contrib/msgpack/test/test.hs
mit
1,978
0
13
558
742
404
338
55
1
{-# LANGUAGE OverloadedStrings #-} {-| @shell@s out. -} module Workflow.OSX.Screenshot where import Workflow.OSX.Extra import Turtle --import Control.Monad.Managed import Codec.Picture {-| Temporary file template. @= "workflow-osx.XXXXXX"@ -} __temporary__ :: Text __temporary__ = "workflow-osx.XXXXXX.png" {-| Ta...
sboosali/workflow-osx
workflow-osx/sources/Workflow/OSX/Screenshot.hs
mit
782
0
13
112
128
70
58
12
1
{-# LANGUAGE OverloadedStrings, CPP #-} {-# LANGUAGE NamedFieldPuns #-} module Network.Wai.Handler.Warp.HTTP2.Types where import Data.ByteString.Builder (Builder) #if __GLASGOW_HASKELL__ < 709 import Control.Applicative ((<$>),(<*>)) #endif import Control.Concurrent (forkIO) import Control.Concurrent.STM import Contr...
iquiw/wai
warp/Network/Wai/Handler/Warp/HTTP2/Types.hs
mit
7,860
0
15
2,059
1,909
1,016
893
181
3
{-# LANGUAGE ScopedTypeVariables #-} -- | Add a bunch of checkers for testing properties of different algebraic -- structures and relations module Test.QuickCheck.Classes.Extra ( module Test.QuickCheck.Classes -- | Algebraic structures , group , abelian , ring , commutativeRing , field -- | Relations ...
expipiplus1/exact-real
test/Test/QuickCheck/Classes/Extra.hs
mit
3,846
0
17
959
1,498
832
666
71
1
module Graphics.Vty.ReactiveBanana where import Control.Concurrent import Control.Concurrent.STM import Control.Monad import Data.Maybe import Graphics.Vty hiding (Event) import Reactive.Banana import Reactive.Banana.Frameworks import qualified Graphics.Vty as V type VEvent = V.Event eventChan :: Vty -> IO (TChan VE...
edwardwas/vty-banana
src/Graphics/Vty/ReactiveBanana.hs
mit
2,079
0
16
556
797
382
415
64
2
{-| Module : Network.TokenBucket.Client Description : Client for Token Bucket Server Copyright : (c) Stack Builders Inc. 2014 License : MIT Maintainer : justin@stackbuilders.com Stability : experimental Portability : unknown Connects to a Token Bucket Server and requests tokens from the specified bucket...
stackbuilders/token-bucket
src/Network/TokenBucket/Client.hs
mit
1,928
0
11
510
367
190
177
34
3
-- | -- Module : PostgresWebsockets.Config -- Description : Manages PostgresWebsockets configuration options. -- -- This module provides a helper function to read the command line -- arguments using the AppConfig type to store -- them. It also can be used to define other middleware configuration that -- may be d...
diogob/postgrest-ws
src/PostgresWebsockets/Config.hs
mit
5,852
0
21
1,158
1,256
645
611
-1
-1
module QuickCheckHelper where import Control.Applicative import Language.DSKanren import Test.QuickCheck hiding ((===)) data RPred = Conj RPred RPred | Disconj RPred RPred | Eq Term Term | Neq Term Term | Tigger | Eeyore deriving Show toPredicate :: RP...
jozefg/ds-kanren
test/QuickCheckHelper.hs
mit
2,304
0
12
616
989
517
472
58
6
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.HTMLImageElement (js_setName, setName, js_getName, getName, js_setAlign, setAlign, js_getAlign, getAlign, js_setAlt, setAlt, js_getAlt, getAlt, js_setBorder, setBorder, js_getBorder, getBord...
manyoo/ghcjs-dom
ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLImageElement.hs
mit
16,234
260
10
2,424
3,486
1,873
1,613
213
1
module Tach.Wavelet.Types where import Tach.Wavelet.Types.Internal
smurphy8/tach
core-types/tach-wavelet-types/src/Tach/Wavelet/Types.hs
mit
68
0
4
6
14
10
4
2
0
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpointconfig.html module Stratosphere.Resources.SageMakerEndpointConfig where import Stratosphere....
frontrowed/stratosphere
library-gen/Stratosphere/Resources/SageMakerEndpointConfig.hs
mit
3,448
0
15
351
464
269
195
42
1
import XMonad import XMonad.Actions.SpawnOn import XMonad.Config.Desktop import XMonad.Layout.Spacing import XMonad.Layout.ThreeColumns import XMonad.Layout.NoBorders import XMonad.Layout.Gaps import XMonad.Layout.PerWorkspace import XMonad.Hooks.FadeInactive import XMonad.Hooks.DynamicLog import XMonad.Hooks.Manag...
quentunahelper/Black-Rainbow-XMonad-Theme
xmonad.hs
mit
4,159
68
15
660
1,096
596
500
124
1
{-# LANGUAGE OverloadedStrings,FlexibleInstances #-} -- |The NSString class declares the programmatic interface for an object that manages -- immutable strings. An immutable string is a text string that is defined when it -- is created and subsequently cannot be changed. NSString is implemented to represent -- an a...
aktowns/pdfkiths
Cocoa/nsstring.hs
mit
2,481
0
12
405
466
245
221
34
1
-- Functiile care pot fi folosite sunt descrise la sfarsitul fisierului -- categoria A - functii de baza -- categoria B - functii din biblioteci (fara map, filter, fold) -- categoria C - map, filter, fold import Data.Char import Test.QuickCheck type Cifra = Int type Numar = [Cifra] -- In acest test vom im...
PavelClaudiuStefan/FMI
An_3_Semestru_1/ProgramareDeclarativa/Laboratoare/Laborator6/pregatire-testare.hs
cc0-1.0
8,920
0
10
2,301
732
426
306
41
1