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 RecordWildCards, DeriveDataTypeable, TupleSections, ScopedTypeVariables #-} {-# OPTIONS_GHC -fno-cse #-} {-# LANGUAGE OverloadedStrings #-} -- | The application entry point module Nauvad (main) where import Control.Exception import System.IO.Error import Control.Monad.Extra import Data.List.Extra import...
wereHamster/nauva
pkg/hs/nauvad/src/Nauvad.hs
mit
19,299
0
30
5,428
4,332
2,225
2,107
309
6
module SetOrd (Set(..),emptySet,isEmpty,inSet,subSet,insertSet, deleteSet,powerSet,takeSet,(!!!),list2set,unionSet) where import Data.List (sort) {-- Sets implemented as ordered lists without duplicates --} newtype Set a = Set [a] deriving (Eq,Ord) instance (Show a) => Show (Set a) where show...
stgm/prac-testing
week4/SetOrd.hs
mit
2,266
0
13
760
1,111
569
542
53
3
import qualified Test.Tasty import Test.Tasty.Hspec main :: IO () main = do test <- testSpec "cosmos" spec Test.Tasty.defaultMain test spec :: Spec spec = parallel $ do it "is trivially true" $ do True `shouldBe` True
mlitchard/cosmos
test-suite/TestSuite.hs
mit
239
0
11
57
82
42
40
10
1
{-# htermination maxFM :: Ord a => FiniteMap [a] b -> Maybe [a] #-} import FiniteMap
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/FiniteMap_maxFM_4.hs
mit
85
0
3
16
5
3
2
1
0
{-# LANGUAGE OverloadedStrings #-} module Rest where import Network.HTTP.Conduit import Control.Applicative import Network.HTTP.Types import qualified Data.ByteString.Char8 as C8 import qualified Data.ByteString.Lazy.Char8 as LC8 import Data.String (fromString) import Data.Digest.Pure.SHA import Data.Time.Format impo...
GildedHonour/BitstampApi
src/Rest.hs
mit
2,182
0
15
440
671
363
308
51
1
module Shuffle where import System.Random import qualified Data.List as L randomGens :: StdGen -> Int -> [StdGen] randomGens gen n = take n $ iterate (\gen -> fst $ split gen) gen shuffleList :: StdGen -> [a] -> [a] shuffleList gen list = map fst orderedPairs where orderedPairs = L.sortBy num pairs ...
tjunier/mlgsc
src/Shuffle.hs
mit
1,123
0
12
334
400
216
184
23
1
-- | Bindings for the Slack incoming webhook API. module Slack ( SlackMessage(..) , SlackAttachment(..) , SlackField(..) ) where import Data.Aeson (toJSON) import Data.Aeson.TH (deriveJSON) import Data.Default (Default(..)) import Data.Text (Text) import Network.Wreq.Types (Postable(..)) import Rules (slackOp...
fusionapp/catcher-in-the-rye
src/Slack.hs
mit
2,143
0
9
478
494
296
198
-1
-1
{-| Empty image: Dark side of the moon From: Heikki Salo / heikki.ao.salo@iki.fi CC0 1.0 -} import CV.Image import CVWeb image get = empty (500,500)
deggis/CV-web
web/demos/empty.hs
mit
153
0
6
29
27
15
12
3
1
{-| DCC command parsing and encoding module. Use the 'CtcpCommand' type class to convert between 'CTCPByteString's and typed values. Try converting a 'CTCPByteString' to a 'DccSend' value: > fromCtcp ctcpMessage :: Either String DccSend Encoding a 'DccSend' value to a 'CTCPByteString': > to...
JanGe/irc-dcc
src/Network/IRC/DCC.hs
mit
1,569
0
7
334
293
172
121
28
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} module QMatrix ( MeasureKind(..), QMatrix, QCMatrix, kronecker, identity, matrix, zero, hadamard, pauliX, pauliZ, pauliY,swap, swapSqrt, phaseShift, measure, (<->), (<|>) ) wher...
miniBill/entangle
src/lib/QMatrix.hs
mit
3,664
0
15
1,339
1,306
699
607
91
0
{- This file is part of the Haskell package thetvdb. It is subject to the license terms in the LICENSE file found in the top-level directory of this distribution and at git://pmade.com/thetvdb/LICENSE. No part of themoviedb package, including this file, may be copied, modified, propagated, or distributed except accord...
pjones/thetvdb
Network/API/TheTVDB/Types/Series.hs
mit
783
0
9
145
120
78
42
12
0
import Test.Hspec -- Problem 20 -- Remove the K'th element from a list. removeAt :: Int -> [a] -> (a,[a]) removeAt i (x:xs) | i > 1 = (xz,x:yz) | otherwise = (x,xs) where (xz,yz) = removeAt (i-1) xs main :: IO() main = hspec $ describe "99-exercises.20 = Remove the K'th element from a list" ...
baldore/haskell-99-exercises
20.hs
mit
438
0
9
114
161
87
74
10
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersecuritygroup.html module Stratosphere.Resources.RedshiftClusterSecurityGroup where import Str...
frontrowed/stratosphere
library-gen/Stratosphere/Resources/RedshiftClusterSecurityGroup.hs
mit
2,255
0
15
248
279
162
117
31
1
{-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -Wall #-} import Data.Monoid (mappend) import Hakyll import System.FilePath import qualified System.Exit import qualified System.Process as Process import Text.Pandoc() main :: IO () main = hakyll $ do match "images/*" $ d...
vkorepanov/vkorepanov.github.io
hakyll_generator/site.hs
mit
2,960
0
21
975
643
301
342
73
2
-- ------------------------------------------------------------------------------------- -- Author: Sourabh S Joshi (cbrghostrider); Copyright - All rights reserved. -- For email, run on linux (perl v5.8.5): -- perl -e 'print pack "H*","736f75726162682e732e6a6f73686940676d61696c2e636f6d0...
cbrghostrider/Hacking
HackerRank/Algorithms/Strings/pangrams.hs
mit
760
1
10
127
134
75
59
10
2
module STG.PrettyPrint (ppStg) where import Data.List import Text.Printf import STG.AST ppStg :: Program -> String ppStg = pp class PrettyPrint a where pp :: a -> String instance PrettyPrint Program where pp (Program bs) = unlines $ map pp bs instance PrettyPrint Binding where pp (Binding var lambda) ...
tcsavage/lazy-compiler
src/STG/PrettyPrint.hs
mit
1,919
0
13
451
791
386
405
41
1
{-# LANGUAGE DeriveDataTypeable, TemplateHaskell #-} {-# LANGUAGE MultiParamTypeClasses, DeriveDataTypeable #-} {-# LANGUAGE FlexibleInstances, DeriveDataTypeable #-} module Petri.Remote where import Petri.Type import Petri.Step import Petri.Roll import Petri.Dot import Petri.Property import Autolib.Reader import ...
Erdwolf/autotool-bonn
src/Petri/Remote.hs
gpl-2.0
2,987
0
18
966
754
392
362
72
1
-- | Save video from an attached webcam to compressed video on disk -- while also showing it on-screen. import HOpenCV.OpenCV import HOpenCV.HighImage import HOpenCV.HCxCore import HOpenCV.HVideo import System.Exit (exitSuccess) main :: IO () main = do cam <- createCameraCaptureCV 0 writeImg <- createVideo...
juanmab37/HOpenCV-0.5.0.1
src/examples/VideoWriter.hs
gpl-2.0
929
0
16
381
211
99
112
21
3
{- This file is part of artgen. Foobar is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Foobar is distributed in the hope that it will be us...
cdettmering/artgen
Chainer/HistogramMap.hs
gpl-3.0
2,498
0
11
532
437
225
212
20
2
-- Exercise 2.5 module Ex2_5 (Tree(E, T), complete, create) where data Tree a = E | T (Tree a) a (Tree a) deriving Show -- Exercise 2.5 (a) -- -- complete -- A function that returns a binary tree of depth d, with the given element x -- stored at every node. Since the left and right sub-trees at every node are -- ide...
fishbee/pfds-haskell
chapter2/Ex2_5.hs
gpl-3.0
1,674
0
13
379
372
204
168
19
2
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
romanb/amazonka
amazonka-ec2/gen/Network/AWS/EC2/DeregisterImage.hs
mpl-2.0
3,411
0
9
744
400
245
155
51
1
module PrimeNumbers where primes :: [Int] primes = sieve [2 ..] where sieve (p : xs) = p : sieve [ x | x <- xs, x `mod` p > 0 ] -- getPrimes :: Int -> [Int] getPrimes n = take n primes
ice1000/OI-codes
codewars/101-200/get-n-first-prime-numbers.hs
agpl-3.0
193
0
12
52
99
55
44
6
1
module SignAnalysis where import GLuanalysis.AG.ControlFlow import GLua.AG.Token import GLua.Lexer import GLua.TokenTypes import GLua.Parser import GLua.AG.PrettyPrint import Data.Graph.Inductive.Graph hiding (empty) import Data.Graph.Inductive.PatriciaTree import Graphviz import GLua.AG.AST import qualified Data.Map...
FPtje/LuaAnalysis
analysis/src/SignAnalysis.hs
lgpl-2.1
18,643
9
24
10,267
5,108
2,673
2,435
280
83
module Madness where import Data.Monoid type Verb = String type Adjective = String type Adverb = String type Noun = String type Exclamation = String madlibbin' :: Exclamation -> Adverb -> Noun -> Adjective -> String madlibbin' e adv noun adj = e <> "! he said " <> adv ...
dmp1ce/Haskell-Programming-Exercises
Chapter 15/Madness.hs
unlicense
705
0
11
244
164
93
71
24
1
module EKG.A256417 (a256417) where import EKG.A064413 (a064413) import Helpers.Primes (isPrime) a256417 :: Int -> Integer a256417 n | isPrime $ a064413 n = a064413 n * 2 | thricePrime $ a064413 n = a064413 n * 2 `div` 3 | otherwise = a064413 n where thricePrime k = k `mod` 3 == 0 && isPrime...
peterokagey/haskellOEIS
src/EKG/A256417.hs
apache-2.0
333
0
10
87
145
75
70
9
1
{- Copyright 2016, Dominic Orchard, Andrew Rice, Mistral Contrastin, Matthew Danish 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 ...
mrd/camfort
src/Camfort/Specification/Stencils/Synthesis.hs
apache-2.0
3,411
0
15
853
936
499
437
52
2
-- Copyright (c) 2013-2015 PivotCloud, Inc. -- -- Aws.Kinesis.Commands.PutRecord -- -- Please feel free to contact us at licensing@pivotmail.com with any -- contributions, additions, or other feedback; we would love to hear from -- you. -- -- Licensed under the Apache License, Version 2.0 (the "License"); you may -- no...
alephcloud/hs-aws-kinesis
src/Aws/Kinesis/Commands/PutRecord.hs
apache-2.0
7,767
0
12
1,384
655
413
242
81
1
{-| Implementation of the Ganeti Query2 common objects. -} {- Copyright (C) 2012, 2013 Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the a...
ganeti-github-testing/ganeti-test-1
src/Ganeti/Query/Common.hs
bsd-2-clause
10,090
0
13
1,907
1,661
907
754
146
2
module Infinity.Plugins.System where import Infinity.Plugins data System = System deriving (Eq,Show) instance Plugin System () where pinit _ = () cmds _ = ["help","version","list"] help _ "help" = "@help <cmd>, provides help for a command" help _ "version" = "Gives version infor...
thoughtpolice/infinity
src/Infinity/Plugins/System.hs
bsd-3-clause
624
0
10
172
229
121
108
-1
-1
{-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} module Test.ZM.ADT.III.K4cf5dd973ae4 (III(..)) where import qualified Prelude(Eq,Ord,Show) import qualified GHC.Generics import qualified Flat import qualified Data.Model import qualified Test.ZM.ADT.Int8.Kb3a2642b4a84 import qualified Test.ZM.ADT.Int16.K3...
tittoassini/typed
test/Test/ZM/ADT/III/K4cf5dd973ae4.hs
bsd-3-clause
1,206
0
9
211
254
178
76
23
0
{-# LANGUAGE DoAndIfThenElse #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} module Test.IO.Mafia.Chaos where i...
ambiata/mafia
test/Test/IO/Mafia/Chaos.hs
bsd-3-clause
17,781
0
21
4,182
5,725
2,862
2,863
416
12
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE QuasiQuotes, TemplateHaskell, TypeFamilies, OverloadedStrings, GADTs, FlexibleContexts, MultiParamTypeClasses, GeneralizedNewtypeDeriving, RankNTypes, NamedFieldPuns #-} -- | Global sqlite database shared by all projects. -- Warning: this is cur...
MichielDerhaeg/stack
src/Stack/Docker/GlobalDB.hs
bsd-3-clause
5,115
1
17
1,283
1,051
557
494
81
2
{-# OPTIONS_GHC -Wall #-} module Type.Constrain.Expression where import Control.Applicative ((<$>)) import Control.Arrow (second) import qualified Control.Monad as Monad import qualified Data.List as List import qualified Data.Map as Map import qualified AST.Expression.General as E import qualified AST.Expression.Can...
johnpmayer/elm-compiler
src/Type/Constrain/Expression.hs
bsd-3-clause
18,345
110
34
6,137
4,475
2,468
2,007
432
23
{-# LANGUAGE FlexibleContexts #-} ----------------------------------------------------------------------------- -- Module : lexString -- Copyright : (c) 2010 David M. Rosenberg -- License : BSD3 -- -- Maintainer : David Rosenberg <rosenbergdm@uchicago.edu> -- Stability : experimental -- Portability : por...
rosenbergdm/language-r
src/Language/R/backup/lexString.hs
bsd-3-clause
1,235
0
15
196
301
167
134
17
1
{------------------------------------------------------------------------------- Computes BOW similarity scores over a list of word pairs. Generates additional files with data about vector dimensions and weights for the two word vectors and their intersection. (c) 2014 Jan Snajder <jan.snajder@fer.hr> TODO: ad...
jsnajder/dsem
src/bow-sim.hs
bsd-3-clause
6,367
7
24
1,688
1,921
988
933
-1
-1
module Main where import PropertyTest import UnitTest import Test.Framework.Runners.Console (defaultMain) main = defaultMain $ [UnitTest.tests, PropertyTest.tests]
grievejia/njuscript
test/Main.hs
bsd-3-clause
165
0
7
17
41
26
15
5
1
{-# LANGUAGE ViewPatterns #-} -- | FIXME: Currently there is an exception allowing us to identify -- finalizers that are called through function pointers if the -- function pointer is global and has an initializer. -- -- This needs to be generalized to cover things that are initialized -- once in the library code with ...
travitch/foreign-inference
src/Foreign/Inference/Analysis/IndirectCallResolver.hs
bsd-3-clause
7,426
0
31
1,691
1,353
726
627
97
9
module Bayesian.Variable( Domain, Variable, VariableSet, VariableInstantiation, VariableInstantiationSet, createVariable, instantiateVariable, instantiatedVariable, instantiation, variableLabel, variableSize, variableSetSize, variableInstantiations, variableSetAllInstantiations ) where impo...
sebassimoes/haskell-bayesian
src/Bayesian/Variable.hs
bsd-3-clause
2,125
1
10
338
400
228
172
48
2
-- ^Uses NetCore to implement a Network Address Translator -- -- Does not work on networks with loops. module NAT where import Control.Concurrent import Control.Monad (forever) import Frenetic.NetCore import Frenetic.NetCore.Types -- import Frenetic.EthernetAddress import qualified Data.Map as Map import Data.Word imp...
frenetic-lang/netcore-1.0
examples/NAT.hs
bsd-3-clause
6,746
0
32
1,967
1,628
827
801
-1
-1
module ProveEverywhere.Parser (parsePrompt) where import Control.Applicative import Data.Text (Text) import qualified Data.Text as T import Text.Parser.Char import Text.Parser.Combinators import Text.Parser.Token import Text.Parsec (parse, ParseError) import Text.Parsec.Text (Parser) import ProveEverywhere.Types par...
prove-everywhere/server
src/ProveEverywhere/Parser.hs
bsd-3-clause
1,405
0
12
281
395
208
187
35
1
{-# LANGUAGE OverloadedStrings #-} module Parser.GeomStaticMesh where import Data.Attoparsec.Text import Control.Applicative (liftA3) import Data.Char (isSpace) import Data.Array.IArray (listArray) import Types.GeomStaticMesh import Parser.Util -- The following parsers parse the corresponding -- fields in the GeomS...
leohaskell/parseVRS
src/Parser/GeomStaticMesh.hs
bsd-3-clause
1,741
0
19
352
481
244
237
48
1
module Main ( main ) where import qualified Cgs (main) main :: IO () main = Cgs.main
thomaseding/cgs
src/Main.hs
bsd-3-clause
95
0
6
27
35
21
14
5
1
{-# LANGUAGE OverloadedStrings #-} module PeerReview.SubmissionRepo.Testing ( repo ) where import PeerReview.Types repo :: SubmissionRepo repo = SubmissionRepo byId forTask forUser getAll testSubs :: [Submission] testSubs = [ Submission "1" "user1" "task1" , Submission "2" "user2" "task1" ...
keveri/peer-review-service
test/PeerReview/SubmissionRepo/Testing.hs
bsd-3-clause
695
0
10
142
222
117
105
19
1
{-| Module : Riff.Prelude Description : Custom Prelude Copyright : (c) 2019 Steven Meunier License : BSD-style (see the file LICENSE) Welcome to your custom Prelude Export here everything that should always be in your library scope For more info on what is exported by Protolude check: https://github.com/sdi...
solaryeti/riff
src/Riff/Prelude.hs
bsd-3-clause
562
0
5
151
43
29
14
7
0
module Main where import Lib main :: IO () main = writeFile "/tmp/ipotenuse.txt" . show . triplesLessThan $ 10^7
meditans/ipotenusa
app/Main.hs
bsd-3-clause
115
0
9
21
41
22
19
4
1
module Main where import WYAScheme.Parser main :: IO () main = putStrLn "Stub"
timcowlishaw/write_yourself_a_scheme
src/Main.hs
bsd-3-clause
85
0
6
19
27
15
12
4
1
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE ViewPatterns #-} module Mapnik.Bindings.VectorTile.Datasource where import Mapnik.Bindings.VectorTile.Types import Mapnik.Bindings.Types (Datasource(..), mapnikCtx) import qualified Mapnik.Bindings.Datasource as Datasource i...
albertov/hs-mapnik
vectortile/src/Mapnik/Bindings/VectorTile/Datasource.hs
bsd-3-clause
2,122
0
16
478
395
217
178
36
1
<ESC>:set shiftwidth=8<CR>amain = do print "hello"
itchyny/vim-haskell-indent
test/do/main_do_sw8.in.hs
mit
51
5
9
6
36
15
21
-1
-1
{-- snippet all --} -- posixtime.hs import System.Posix.Files import System.Time import System.Posix.Types -- | Given a path, returns (atime, mtime, ctime) getTimes :: FilePath -> IO (ClockTime, ClockTime, ClockTime) getTimes fp = do stat <- getFileStatus fp return (toct (accessTime stat), t...
binesiyu/ifl
examples/ch20/posixtime.hs
mit
536
0
11
121
138
73
65
12
1
----------------------------------------------------------------------------- -- | -- Module : Main -- Copyright : Artem Chirkin -- License : MIT -- -- Maintainer : Artem Chirkin -- Stability : experimental -- -- An executable for sending and receiving simple Luci messages. -- -----------------------...
achirkin/qua-kit
libs/hs/luci-connect/examples/LuciConsole.hs
mit
4,261
0
21
1,349
1,073
550
523
81
13
{-# OPTIONS_GHC -fno-warn-missing-signatures -fno-warn-unused-do-bind #-} module HaObj where import Control.Monad import Data.List (partition,unzip7) import Data.Map (Map) import Data.Maybe (fromMaybe) import qualified Data.Map as M import System.IO (hGetContents, IOMode (..),withFile) import Text.Parsec --TODO switc...
jrraymond/haobj
src/HaObj.hs
mit
6,053
0
23
1,742
2,415
1,234
1,181
189
4
{-- snippet odd --} isOdd n = mod n 2 == 1 {-- /snippet odd --}
binesiyu/ifl
examples/ch02/RoundToEven.hs
mit
64
0
6
16
20
10
10
1
1
module Interpreter ( Interpreter , eval , withInterpreter ) where import System.IO import System.Process import System.Exit import Control.Monad(when) import Control.Exception (bracket) import Data.Char import Data.List import GHC.Paths (ghc) -- | Truly random marker, used to separate expressions. -- -- IMPORTANT:...
sakari/doctest-haskell
src/Interpreter.hs
mit
3,808
0
12
844
820
432
388
75
3
{-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} module Qi.Util.DDB where import Control.Lens hiding (view, (.=)) import Data.Aeson import Data.HashMap.Strict (HashMap) import qualified Data.HashMap.Strict as SHM import Data.Text (Text)...
qmuli/qmuli
library/Qi/Util/DDB.hs
mit
1,320
0
11
339
364
197
167
45
1
module System.Process.Utils ( withProcess ) where import qualified Control.Exception as E import System.IO (Handle, hClose) import System.Process import Lamdu.Prelude withProcess :: CreateProcess -> ((Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle) -> IO a) -> ...
lamdu/lamdu
src/System/Process/Utils.hs
gpl-3.0
648
0
13
195
179
97
82
-1
-1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
romanb/amazonka
amazonka-s3/gen/Network/AWS/S3/UploadPart.hs
mpl-2.0
10,455
0
19
2,471
1,549
917
632
155
1
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : DiagramTextItem.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:47 Warning : this file is machine generated - ...
uduki/hsQt
examples/DiagramScene/DiagramTextItem.hs
bsd-2-clause
3,719
0
11
613
874
443
431
96
2
{-# OPTIONS_HADDOCK hide #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Choose.IOBase -- Copyright : Copyright (c) , Patrick Perry <patperry@stanford.edu> -- License : BSD3 -- Maintainer : Patrick Perry <patperry@stanford.edu> -- Stability : experimental...
patperry/permutation
lib/Data/Choose/IOBase.hs
bsd-3-clause
2,251
0
9
338
521
273
248
42
1
verticalSlice :: Chord (Voice a) -> Voice (Chord a) -- Natural transformation? reactiveSwithPoints :: Reactive a -> [Time] splitReactive :: Time -> Reactive a -> Reactive a splitReactives :: [Reactive a] -> [Reactive a] Before export to notation formats, generate a full hierarchical representation of the (visual) sc...
FranklinChen/music-score
sketch/old/HierachicalTS.hs
bsd-3-clause
601
6
8
138
221
113
108
-1
-1
{-# LANGUAGE BangPatterns #-} module Git.CommonTests ( main , test ) where import qualified Test.HUnit as H import Git.Common import Test.QuickCheck hiding ((.&.)) import Test.Framework (Test, defaultMain, testGroup) import Test.Framework.Providers.QuickCheck2 (testProperty) import Test.Framework.Providers.H...
fcharlie/hgit
tests/src/Git/CommonTests.hs
bsd-3-clause
1,770
0
9
336
367
200
167
54
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} module Test.Foundation.Collection ( testCollection , fromListP , toListP ) where import qualified Prelude import Impo...
vincenthz/hs-foundation
foundation/tests/Test/Foundation/Collection.hs
bsd-3-clause
14,234
0
17
3,826
5,121
2,598
2,523
205
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE NoImplicitPrelude #-} -- | News page view. module HL.View.News where import HL.View import HL.View.Template -- | News view. newsV :: Html () -> FromLucid App newsV inner = template [] "News" (\_ -> container_ (do r...
gbaz/hl
src/HL/View/News.hs
bsd-3-clause
399
0
18
127
102
54
48
13
1
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAG...
music-suite/music-score
src/Music/Score/Meta/Attribution.hs
bsd-3-clause
5,522
0
16
1,336
1,057
602
455
78
1
{-# OPTIONS_GHC -cpp #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.Setup -- Copyright : Isaac Jones 2003-2004 -- -- Maintainer : Isaac Jones <ijones@syntaxpolice.org> -- Stability : alpha -- Portability : portable -- -- Explanation: Data ...
alekar/hugs
packages/Cabal/Distribution/Setup.hs
bsd-3-clause
35,936
122
15
10,928
7,058
3,931
3,127
542
36
module Oracles.Flag ( Flag (..), flag, crossCompiling, platformSupportsSharedLibs, ghcWithSMP, ghcWithNativeCodeGen, supportsSplitObjects ) where import Hadrian.Oracles.TextFile import Base import Oracles.Setting data Flag = ArSupportsAtFile | CrossCompiling | GccIsClang | G...
bgamari/shaking-up-ghc
src/Oracles/Flag.hs
bsd-3-clause
2,865
0
14
779
606
316
290
62
10
module Network.HaskellNet.IMAP ( connectIMAP, connectIMAPPort, connectStream -- * IMAP commands -- ** any state commands , noop, capability, logout -- ** not authenticated state commands , login, authenticate -- ** autenticated state commands , select, examine, create, delete, re...
lemol/HaskellNet
src/Network/HaskellNet/IMAP.hs
bsd-3-clause
19,783
0
18
6,361
6,369
3,205
3,164
403
12
-- | Provides a simple main function which runs all the tests -- module Main ( main ) where import Test.Framework (defaultMain) import qualified Tests.Buffer as Buffer import qualified Tests.Properties as Properties import qualified Tests.Regressions as Regressions import qualified Tests.Marshal as Marshal m...
ghcjs/ghcjs-base
test/Tests.hs
mit
419
0
7
64
91
59
32
9
1
{- | Module : $Header$ - Description : Implementation of generic data structures and functions - Copyright : (c) Daniel Hausmann & Georgel Calin & Lutz Schroeder, DFKI Lab Bremen, - Rob Myers & Dirk Pattinson, Department of Computing, ICL - License : GPLv2 or higher, see LICENSE.txt - ...
keithodulaigh/Hets
GMP/GMP-CoLoSS/GMP/Logics/Generic.hs
gpl-2.0
22,633
0
17
5,287
5,776
2,953
2,823
270
5
-- (c) 2007 Andy Gill module HpcFlags where import System.Console.GetOpt import qualified Data.Set as Set import Data.Char import Trace.Hpc.Tix import Trace.Hpc.Mix import System.Exit data Flags = Flags { outputFile :: String , includeMods :: Set.Set String , excludeMods :: Set.Set String ,...
nomeata/ghc
utils/hpc/HpcFlags.hs
bsd-3-clause
8,099
83
15
2,385
2,261
1,269
992
164
4
{-# LANGUAGE QuasiQuotes #-} module Main where import Graphics.Vty import qualified BenchImageFuzz import qualified BenchNoDiffOpt import qualified BenchRenderChar import qualified BenchVerticalScroll import Control.Monad import Data.Maybe import Data.List import System.Environment import System.Posix.Process imp...
jtdaugherty/vty
test/benchmark.hs
bsd-3-clause
1,688
0
21
551
449
232
217
46
5
{-# LANGUAGE OverloadedStrings, CPP #-} module Tests.FFIFuns where import Haste import Haste.Foreign #ifdef __HASTE__ test3 :: (Maybe Int -> Maybe String -> Bool -> IO String) -> IO String test3 = ffi "(function(f) {return (f(null, 'str', true));})" test1 :: (Int -> IO Int) -> IO () test1 = ffi "(function(f) {consol...
joelburget/haste-compiler
Tests/FFIFuns.hs
bsd-3-clause
1,088
0
15
239
290
142
148
12
1
-- Checks that using the "by" clause in a transform requires a function parameter {-# OPTIONS_GHC -XTransformListComp #-} module ShouldFail where import Data.List(take) z = [x | x <- [1..10], then take 5 by x]
frantisekfarka/ghc-dsi
testsuite/tests/typecheck/should_fail/tcfail194.hs
bsd-3-clause
215
0
8
40
50
29
21
4
1
-- !! function types in deriving Eq things -- From a bug report by Dave Harrison <D.A.Harrison@newcastle.ac.uk> module ShouldFail where type Process a = Pid -> Time -> Message a -> ( MessList a, Continuation a) data Continuation a = Do (Process a) deriving Eq ...
sgillespie/ghc
testsuite/tests/typecheck/should_fail/tcfail046.hs
bsd-3-clause
828
0
9
322
197
118
79
15
0
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeFamilies #-} module Futhark.Optimise.InPlaceLowering.LowerIntoStm ( lowerUpdateGPU, lowerUpdate, LowerUpdate, DesiredUpdate (..), ) where import Control.Monad import Control.Monad.Writer import Data.Either import Data.List (find, unzip4) import Data.M...
HIPERFIT/futhark
src/Futhark/Optimise/InPlaceLowering/LowerIntoStm.hs
isc
12,524
0
22
3,741
3,591
1,846
1,745
272
5
module Wobsurv.Util.HTTP.Model where import BasePrelude import qualified Data.ByteString as ByteString type BS = ByteString.ByteString type Version = (Word, Word) -- * Headers ------------------------- data Header = ConnectionHeader ConnectionHeader | ContentLengthHeader ContentLengthHeader | ContentT...
nikita-volkov/wobsurv
library/Wobsurv/Util/HTTP/Model.hs
mit
2,532
0
9
569
656
376
280
-1
-1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TemplateHaskell #-} -- | Module-level code generation. module Orchid.Codegen.Module ( Modul...
gromakovsky/Orchid
src/Orchid/Codegen/Module.hs
mit
16,445
0
19
5,707
3,559
1,865
1,694
-1
-1
{-# LANGUAGE RankNTypes #-} module Main where import Graphics.UI.SDL as SDL ( Surface , SurfaceFlag(Fullscreen) , Rect(Rect) , SDLKey(SDLK_BACKSPACE, SDLK_ESCAPE, SDLK_RETURN, SDLK_SPACE, SDLK_m) , Keysym(Keysym) , InitFlag(InitEverything) , Event(KeyUp) , Pixel(Pixel) , setCaption ...
FlashKorten/recogs
src/Recogs.hs
mit
8,542
0
14
2,767
2,547
1,297
1,250
207
2
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} -- {-# OPTIONS_GHC -ddump-splices #-} module Solar.Asteroid.Core.Valuable.Basics where -- base import P...
Cordite-Studios/asteroid-core
src/Solar/Asteroid/Core/Valuable/Basics.hs
mit
1,454
0
7
146
333
171
162
41
0
module Split ( stupidSlicer, split, toDocument ) where import SplitUtil
axelGschaider/ttofu
src/Split.hs
mit
78
0
4
16
18
12
6
5
0
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE UndecidableInstances #-} module Model where import ClassyPrelude.Yesod import Database.Persist.Quasi import qualified Glot.Language as Language -- You can define all of y...
prasmussen/glot-www
Model.hs
mit
601
0
8
77
61
38
23
-1
-1
-- Copyright © 2013 Julian Blake Kongslie <jblake@omgwallhack.org> -- Licensed under the MIT license. {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans #-} module Maze where import Control.Applicative import Control.DeepSeq import Control.Monad.Random import Control.Monad.State.Strict im...
jblake/pokemap
src/Maze.hs
mit
3,071
0
28
990
1,361
701
660
69
12
module GHCJS.DOM.VTTRegion ( ) where
manyoo/ghcjs-dom
ghcjs-dom-webkit/src/GHCJS/DOM/VTTRegion.hs
mit
39
0
3
7
10
7
3
1
0
import Data.List (foldl') import Data.Char (digitToInt) the_sequence = [ "37107287533902102798797998220837590246510135740250" , "46376937677490009712648124896970078050417018260538" , "74324986199524741059474233309513058123726617309629" , "91942213363574161572522430563301811072406154908250" , "23067...
dpieroux/euler
0/0013.hs
mit
6,057
0
10
633
370
237
133
104
1
module TestGlob where import Control.Monad import Debug.Trace import Data.Bits import Data.Char import Data.List import Text.Printf import System.FilePath import System.Directory import System.Random import Glob -- TODO: -- * Test non-standard abstract syntax (GlobSeq's nested, unit GlobSeq's, what happens with em...
trbauer/globexpr
Test/TestGlob.hs
mit
11,622
0
27
2,690
4,131
2,261
1,870
205
5
-- | -- Module : Backtrace.Typechecker -- Copyright : © 2019 Elias Castegren and Kiko Fernandez-Reyes -- License : MIT -- -- Stability : experimental -- Portability : portable -- -- This module includes everything you need to get started type checking -- a program. To build the Abstract Syntax Tree (A...
kikofernandez/kikofernandez.github.io
files/monadic-typechecker/typechecker/src/Backtrace/Typechecker.hs
mit
18,040
0
16
4,326
3,973
2,090
1,883
287
2
-- |Haskollider.Server defines all the types and functionals relavent to communicating with a running scsynth instances module Haskollider.Server where import Haskollider.NetAddr import Haskollider.Engine import Haskollider.Node import Haskollider.Util import Haskollider.Buffer import qualified Haskollider.Bus as Bus ...
ChadMcKinney/Haskollider
src/Haskollider/Server.hs
gpl-2.0
18,617
250
21
3,406
4,921
2,607
2,314
366
3
module Handler.Einsendung where import Import import Handler.EinsendungAnlegen (getAufgabeInstanz, getCrc, getDefaultParam) import Handler.AufgabeKonfiguration (checkKonfiguration) import Handler.Statistik (tdRadioField) import Data.Text.Lazy (toStrict) import Network.HTTP.Types (temporaryRedirect307) import System.I...
marcellussiegburg/autotool
yesod/Handler/Einsendung.hs
gpl-2.0
6,148
0
23
1,298
1,817
917
900
-1
-1
{- | Module : $Header$ Description : auxiliary functions on terms and formulas Copyright : (c) Mingyi Liu and Till Mossakowski and Uni Bremen 2004-2005 License : GPLv2 or higher, see LICENSE.txt Maintainer : xinga@informatik.uni-bremen.de Stability : provisional Portability : portable Auxiliary f...
nevrenato/Hets_Fork
CASL/CCC/TermFormula.hs
gpl-2.0
19,224
0
18
7,148
6,133
3,065
3,068
362
16
{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} ----------------------------------------------------------------------------- -- -- Module : IDE.Utils.GHCUtils -- Copyright : 2007-2011 Juergen Nicklisch-Franken, Hamish Mackenzie -- License : GPL -- -- Maintain...
JPMoresmau/leksah-server
src/IDE/Utils/GHCUtils.hs
gpl-2.0
10,014
0
25
2,280
1,990
1,072
918
-1
-1
{-| Metadata daemon. -} {- Copyright (C) 2014 Google 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 program is d...
badp/ganeti
src/ganeti-metad.hs
gpl-2.0
1,309
0
9
233
176
105
71
19
1
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} module AntSkull where import Control.Monad.State hiding (when) import Control.Monad.Writer hiding (when) import Data.List (sortBy) import Data.Function (on) import Prelude hiding (drop, Left, Right, (&&), (||)) -- -- A nice way to print our functions -- class ...
Chiel92/ants
AntSkull.hs
gpl-2.0
7,753
0
12
1,942
2,537
1,243
1,294
176
1
#!/usr/bin/env runhaskell {-| hledger-print-unique [-f JOURNALFILE | -f-] Print only journal entries which are unique by description (or something else). Reads the default or specified journal, or stdin. |-} import Data.List import Data.Ord import Hledger.Cli main = do putStrLn "(-f option not supported)" opts ...
kmels/hledger
extra/hledger-print-unique.hs
gpl-3.0
653
0
12
117
142
73
69
10
1
module Type where class Type a where showType :: a -> String
Kotolegokot/Underlisp
src/Type.hs
gpl-3.0
64
0
7
15
22
12
10
3
0
{- This source file is a part of the noisefunge programming environment. Copyright (C) 2015 Rev. Johnny Healey <rev.null@gmail.com> 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...
revnull/noisefunge
src/Language/NoiseFunge/Server/Comm.hs
gpl-3.0
7,027
0
17
2,176
2,290
1,124
1,166
-1
-1
module Main where import Graphics.Rendering.Chart.Easy import Data.Time.LocalTime import BenchmarkHistory main :: IO () main = return ()
choener/BenchmarkHistory
src/BenchmarkHistogram.hs
gpl-3.0
144
0
6
24
40
24
16
6
1
{-# LANGUAGE OverloadedStrings #-} module Rasa.Ext.Slate.Internal.Attributes where import Rasa.Ext import qualified Yi.Rope as Y import qualified Graphics.Vty as V import Data.Bifunctor import Data.Text (Text, pack) -- | Convert style from "Rasa.Ext.Style" into 'V.Attr's convertStyle :: Style -> V.Attr convertStyle (...
ChrisPenner/rasa
rasa-ext-slate/src/Rasa/Ext/Slate/Internal/Attributes.hs
gpl-3.0
4,517
0
11
909
1,334
708
626
70
2
module System.Environment.XDG.MimeType where
felixsch/xdg
src/System/Environment/XDG/MimeType.hs
gpl-3.0
45
0
3
3
8
6
2
1
0
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings, TemplateHaskell #-} -- | Run a process that evaluates given compiled module Lamdu.Eval.JS ( Evaluator , Actions(..), aLoadGlobal, aReadAssocName, aReportUpdatesAvailable, aCompleted , start, stop , Dependencies(..), whilePaused , getResults ) wh...
da-x/lamdu
Lamdu/Eval/JS.hs
gpl-3.0
11,624
0
30
3,558
3,341
1,768
1,573
-1
-1
module FA2Exp ( etnfa2exp , tnfa2exp , foldnonrec ) where import Set import FiniteMap import Stuff import Options import TA import FAtypes import FAconv import FA import Ids import Syntax tnfa2exp :: (Show a, Ord a) => Opts -> TNFA a -> Exp tnfa2exp opts = etnfa2exp opts . tnfa2etnfa opts ------------------...
jwaldmann/rx
src/FA2Exp.hs
gpl-3.0
2,490
49
18
624
1,018
552
466
62
4
---------------------------------------------------------------------------- -- | -- Module : $Header$ -- Copyright : (c) Proyecto Theona, 2012-2013 -- (c) Alejandro Gadea, Emmanuel Gunther, Miguel Pagano -- License : <license> -- -- Maintainer : miguel.pagano+theona@gmail.com -- Stabili...
alexgadea/fun
Fun/FunTheories/FOL.hs
gpl-3.0
2,039
0
9
577
400
241
159
40
1