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 Matrix( modelMatrix , cameraMatrix , projMatrix , gridModelMatrix ) where import Linear import qualified LambdaCube.Linear as LC import Game.GoreAndAsh.Math import Camera -- | Convert from linear matrix format to LambdaCube format convLC :: M44 Float -> LC.M44F convLC (V4 !a !b !c !d) = LC.V4 (cv...
Teaspot-Studio/model-gridizer
src/Matrix.hs
bsd-3-clause
1,757
0
12
478
664
351
313
-1
-1
{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# Language TemplateHaskell #-} module Types ( Bucket , Value , Type (..) , Consolidation (..) , Stats (..) , Statskell , Settings (..) , runStatskellT , bucket , value , consolidate , type_ , module Data.Text.Lazy , module Control.Concurrent.ST...
MasseR/statskell
Types.hs
bsd-3-clause
1,209
0
12
234
360
218
142
43
1
{-# LANGUAGE OverloadedStrings, OverloadedLists #-} -- | For use in a REPL. -- -- Merely by doing an -- -- > :set -XOverloadedStrings -XOverloadedLists -- > import Penny.Repl -- -- the user should be able to do common tasks in the REPL. This -- module will do whatever re-exports are necessary to make this -- happen. -...
massysett/penny
penny/lib/Penny/Repl.hs
bsd-3-clause
5,281
0
12
1,149
1,231
738
493
163
1
{-# LANGUAGE OverloadedStrings, RecordWildCards #-} module Test.WebDriver.Capabilities where import Test.WebDriver.Firefox.Profile import Test.WebDriver.Chrome.Extension import Test.WebDriver.JSON import Data.Aeson import Data.Aeson.Types (Parser, typeMismatch, Pair) import qualified Data.HashMap.Strict as HM (dele...
begriffs/hs-webdriver
src/Test/WebDriver/Capabilities.hs
bsd-3-clause
32,067
0
26
11,866
4,413
2,449
1,964
455
1
module Obsidian.Coordination where
svenssonjoel/GCDObsidian
Obsidian/Coordination.hs
bsd-3-clause
40
0
3
8
6
4
2
1
0
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE DeriveDataTypeable #-} module Web.UAParser.Core ( UAConfig (..) , loadConfig , parseUA , UAResult (..) , uarVersion , parseOS , OSResult (..) , osrVersion ) wh...
ozataman/ua-parser-standalone
src/Web/UAParser/Core.hs
bsd-3-clause
8,215
0
12
2,022
1,719
939
780
137
7
-- 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. ------------------...
facebookincubator/duckling
Duckling/Ranking/Classifiers/JA_XX.hs
bsd-3-clause
828
0
6
105
66
47
19
8
1
{-| Module : Numeric.AERN.RealArithmetic.Basis.MPFR.ExactOps Description : one, zero, negation etc for MPFR numbers Copyright : (c) Michal Konecny License : BSD3 Maintainer : mikkonecny@gmail.com Stability : experimental Portability : portable One, zero, negati...
michalkonecny/aern
aern-mpfr-rounded/src/Numeric/AERN/RealArithmetic/Basis/MPFR/ExactOps.hs
bsd-3-clause
1,226
0
10
258
220
118
102
17
0
module Tct.Trs.Data.RuleSet where import Tct.Trs.Data.Rules (Rules, empty) -- * ruleset data RuleSet f v = RuleSet { sdps :: Rules f v -- ^ strict dependency pairs , wdps :: Rules f v -- ^ weak dependency pairs , strs :: Rules f v -- ^ strict rules , wtrs :: Rules f v -- ^ weak rules } emptyRuleSet :: Rule...
ComputationWithBoundedResources/tct-trs
src/Tct/Trs/Data/RuleSet.hs
bsd-3-clause
376
0
9
85
107
64
43
9
1
{-# LANGUAGE MultiParamTypeClasses #-} module SAWServer.NoParams (NoParams(..)) where import Data.Aeson ( withObject, object, FromJSON(parseJSON), ToJSON(toJSON) ) import qualified Argo.Doc as Doc data NoParams = NoParams instance ToJSON NoParams where toJSON NoParams = object [] instance FromJSON NoParams wh...
GaloisInc/saw-script
saw-remote-api/src/SAWServer/NoParams.hs
bsd-3-clause
470
0
10
69
130
75
55
12
0
{-# LANGUAGE ScopedTypeVariables #-} module Main where import Control.Monad import Control.Monad.IO.Class (liftIO) import Control.Monad.Trans.Cont import Control.Applicative import Control.Concurrent import Control.Exception as E hiding (handle) import Data.Unique import Text.Read (readMaybe) import System.IO import ...
ruicc/concurrent-world
app/Main.hs
bsd-3-clause
2,157
0
15
730
400
220
180
35
1
{-# LANGUAGE OverloadedStrings #-} -- | This module provides a bridge between the low-level text protocol that -- IRC uses and the high-level events in the "Irc.Model" module. module Irc.Core ( MsgFromServer(..) , IrcError(..) , ircMsgToServerMsg ) where import Control.Lens (over, _2) import Data.ByteString (...
bitemyapp/irc-core
src/Irc/Core.hs
bsd-3-clause
24,602
0
17
5,836
8,621
4,839
3,782
585
200
{-# LANGUAGE RankNTypes #-} module Network.Xmpp.IM.PresenceTracker where import Control.Applicative import Control.Concurrent import Control.Concurrent.STM import Control.Monad import qualified Data.Foldable as Foldable import Data.Map.Strict (Map) import qualified Dat...
Philonous/pontarius-xmpp
source/Network/Xmpp/IM/PresenceTracker.hs
bsd-3-clause
4,016
0
17
1,077
1,188
593
595
-1
-1
{-# LANGUAGE TemplateHaskell #-} module Haskell99Pointfree.P71 ( ) where import Control.Monad.Fix (fix) import Control.Lens.Prism import Control.Lens import Data.Maybe import Control.Applicative data Tree a = Node a [Tree a] deriving (Eq, Show) makePrisms ''Tree p71_1 :: Tree a -> Int p71_1 = fix fixFn 0...
SvenWille/Haskell99Pointfree
src/Haskell99Pointfree/P71.hs
bsd-3-clause
445
1
17
101
177
104
73
13
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. {-# LANGUAGE OverloadedStrings #-} module Duckling.Time.SV.Corpus ( corpus ) where import Data.String impor...
facebookincubator/duckling
Duckling/Time/SV/Corpus.hs
bsd-3-clause
21,621
0
11
9,169
6,772
4,121
2,651
461
1
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import Codec.Compression.Zlib ( compressWith, decompress, defaultCompressParams, compressionLevel , CompressParams(..)) import qualified Data.ByteString.Lazy as B import qualified Data.ByteString.Lazy.Char8 as BC import Data.Digest.Pure.SHA (showDigest, s...
noteed/buh
bin/hush.hs
bsd-3-clause
2,231
0
16
439
538
286
252
52
3
{-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE ScopedTypeVariables #-} {-...
jwiegley/hnix
src/Nix/Cited/Basic.hs
bsd-3-clause
3,218
12
18
1,033
920
484
436
79
0
module Rubik.Negate where import Prelude hiding (negate) import qualified Prelude as P class Negate a where negate :: a -> a instance Negate Integer where negate = P.negate prop_negate :: (Eq a, Negate a) => a -> Bool prop_negate a = negate (negate a) == a
andygill/rubik-solver
src/Rubik/Negate.hs
bsd-3-clause
269
0
8
58
99
55
44
9
1
module Data.Povray where import Data.Povray.Base import Data.Povray.Types import Data.Povray.Object import Data.Povray.Texture import Data.Povray.Transformation include :: Str -> IO () include = putStrLn . ("#include " `mappend`) . show put :: Povray a => a -> IO () put = putStrLn . toPov
lesguillemets/hspov_proto
src/Data/Povray.hs
bsd-3-clause
293
0
8
45
99
58
41
10
1
{-# LANGUAGE Arrows, TypeFamilies #-} module GLUi (newGLUi) where import Control.Monad import Control.Concurrent (threadDelay) import Data.IORef import qualified Data.Set as S import Graphics.UI.GLFW import qualified Graphics.Rendering.OpenGL as GL import qualified Graphics.Rendering.FTGL as Font import Ui import Pr...
Laquendi/neflEFortress
GLUi.hs
mit
4,004
0
14
998
1,389
739
650
99
3
{-# LANGUAGE TupleSections #-} {-# LANGUAGE ViewPatterns #-} {-# LANGUAGE FlexibleContexts #-} -- | -- Copyright : (c) 2010-2012 Benedikt Schmidt & Simon Meier -- License : GPL v3 (see LICENSE) -- -- Maintainer : Simon Meier <iridcode@gmail.com> -- Portability : GHC only -- -- The constraint reduction rul...
rsasse/tamarin-prover
lib/theory/src/Theory/Constraint/Solver/Goals.hs
gpl-3.0
18,815
0
31
6,296
3,767
1,939
1,828
248
14
-- | The widget ids of exposed hole components {-# LANGUAGE OverloadedStrings #-} module Lamdu.GUI.ExpressionEdit.HoleEdit.WidgetIds ( WidgetIds(..), make ) where import qualified Graphics.UI.Bottle.Widget as Widget import qualified Lamdu.GUI.WidgetIds as WidgetIds import Lamdu.Sugar.EntityId (Entity...
da-x/lamdu
Lamdu/GUI/ExpressionEdit/HoleEdit/WidgetIds.hs
gpl-3.0
1,079
0
9
232
245
151
94
22
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="pt-BR"> <title>Relatório em HTML personalizável</title> <maps> <homeID>top</homeID> <m...
veggiespam/zap-extensions
addOns/customreport/src/main/javahelp/org/zaproxy/zap/extension/customreport/resources/help_pt_BR/helpset_pt_BR.hs
apache-2.0
982
79
66
159
420
212
208
-1
-1
-- CIS 194 Homework 2 module Log where import Control.Applicative data MessageType = Info | Warning | Error Int deriving (Show, Eq) type TimeStamp = Int data LogMessage = LogMessage MessageType TimeStamp String | Unknown String deriving (Show, Eq) data Message...
hungaikev/learning-haskell
cis194/week2/Log.hs
apache-2.0
1,072
0
9
323
231
129
102
24
1
{-# LANGUAGE TemplateHaskell #-} import Data.FileEmbed main = print $(dummySpace 100)
phadej/file-embed
template.hs
bsd-2-clause
87
0
8
12
22
11
11
3
1
{-# LANGUAGE OverloadedStrings #-} import Reflex.Dom main = mainWidget $ text "Hello, world!"
reflex-frp/reflex-platform
examples/WorkOnTest/Main.hs
bsd-3-clause
95
0
6
14
19
10
9
3
1
{-# LANGUAGE TupleSections, RecordWildCards, FlexibleContexts #-} module Analysis where import qualified Data.Map as M import Data.Map ((!)) import Data.Function import Data.List (sortBy) -- import Debug.Trace import Control.Arrow import Types import Unification import Propositions import Scopes import Unbound.Local...
eccstartup/incredible
logic/Analysis.hs
mit
3,958
0
14
995
1,169
616
553
73
1
module Control.Gruppe.CGI where import Control.Types import Gateway.CGI import Control.Gruppe.Typ as T import Control.Gruppe.DB import Control.Monad edit :: VNr -> Maybe Gruppe -> Form IO () edit v mg = do open btable let dtf label select = defaulted_textfield label $ case mg of ...
florianpilz/autotool
src/Control/Gruppe/CGI.hs
gpl-2.0
683
4
15
212
252
124
128
23
2
module Reddit.Routes.Subreddit where import Reddit.Types.Subreddit hiding (title) import Reddit.Types.SubredditSettings import Network.API.Builder.Routes aboutSubreddit :: SubredditName -> Route aboutSubreddit (R sub) = Route ["r", sub, "about"] [] "GET" ...
FranklinChen/reddit
src/Reddit/Routes/Subreddit.hs
bsd-2-clause
1,662
0
8
475
360
191
169
37
1
{-# LANGUAGE EmptyDataDecls #-} module ReservedWords where main = do -- All reserved words let break = "break" in putStrLn break let catch = "catch" in putStrLn catch let const = "const" in putStrLn const let continue = "continue" in putStrLn continue let debugger = "debugger" in putStrLn debugger le...
fpco/fay
tests/reservedWords.hs
bsd-3-clause
1,690
0
10
358
625
261
364
40
1
-- -- Copyright (c) 2010 Citrix Systems, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- -- This progra...
jean-edouard/idl
rpcgen/Backend/Camel.hs
gpl-2.0
9,672
0
18
2,586
2,454
1,250
1,204
169
16
{-# LANGUAGE OverloadedStrings #-} module Parser ( parseExpr, parseModule ) where import Text.Parsec import Text.Parsec.Text.Lazy (Parser) import qualified Text.Parsec.Expr as Ex import qualified Text.Parsec.Token as Tok import qualified Data.Text.Lazy as L import Lexer import Syntax import Control.Applicativ...
yupferris/write-you-a-haskell
chapter9/provenance/Parser.hs
mit
1,477
0
13
301
552
283
269
58
1
module PatBindIn1 where main :: Int main = foo 3 foo :: Int -> Int foo x = (h_1 + t) + (snd tup_1) tup_1 :: (Int, Int) tup_1@(h_1, t) = head $ (zip [1 .. 10] [3 .. 15]) tup = 10 h = 17
kmate/HaRe
old/testing/liftOneLevel/PatBindIn1_AstOut.hs
bsd-3-clause
200
0
8
61
111
64
47
9
1
module Div where {-@ LIQUID "--real" @-} {-@ type Valid = {v:Bool | ( (Prop v) <=> true ) } @-} {-@ mulAssoc :: Double -> Double -> Double -> Valid @-} mulAssoc :: Double -> Double -> Double -> Bool mulAssoc x y z = (x * y) * z == x * (y * z) {-@ mulCommut :: Double -> Double -> Valid @-} mulCommut :: Double -> D...
mightymoose/liquidhaskell
tests/pos/RealProps.hs
bsd-3-clause
792
0
9
201
246
134
112
13
1
{-# LANGUAGE DuplicateRecordFields #-} {-# OPTIONS_GHC -Werror=duplicate-exports #-} -- This should warn about the duplicate export of foo, but not the -- exports of the two different bar fields. module Export (T(foo, bar), foo, S(bar)) where data T = MkT { foo :: Int, bar :: Int } data S = MkS { bar :: Int }
sdiehl/ghc
testsuite/tests/overloadedrecflds/should_fail/DuplicateExports.hs
bsd-3-clause
313
0
8
59
65
44
21
10
0
{-# LANGUAGE FlexibleContexts #-} module JSDOM.Custom.Database ( module Generated , changeVersion' , changeVersion , transaction' , transaction , readTransaction' , readTransaction ) where import Data.Maybe (fromJust, maybe) import Control.Monad.IO.Class (MonadIO(..)) import Control.Concurrent.MVar (t...
ghcjs/jsaddle-dom
src/JSDOM/Custom/Database.hs
mit
3,898
0
15
610
1,019
541
478
58
1
-- :l C:\Local\Dev\haskell\learn_chapter5.hs -- Recursion fsmaximum1 :: Ord a => [a] -> a fsmaximum1 (x:xs) | null xs = x | otherwise = max x (fsmaximum1 xs) fsmaximum2 :: Ord a => [a] -> a fsmaximum2 [] = error "maximum of empty list" fsmaximum2 [x] = x fsmaximum2 (x:xs) = max x (fsmaximum2 xs) fsreplicate...
feliposz/learning-stuff
haskell/learn_chapter5.hs
mit
2,568
0
10
800
1,177
621
556
57
2
{-# LANGUAGE OverloadedStrings #-} module Unison.Test.Typechecker where import Data.Functor import Test.Tasty import Test.Tasty.HUnit import Unison.Codebase.MemCodebase () import Unison.Symbol (Symbol) import Unison.Term as E import Unison.Paths (Path) import Unison.Type as T import Unison.Typechecker as Typechecker ...
nightscape/platform
shared/tests/Unison/Test/Typechecker.hs
mit
8,844
0
18
1,868
2,495
1,277
1,218
167
2
{- | Typed AST for Stan programs -} {-# LANGUAGE TypeSynonymInstances, FlexibleInstances, FunctionalDependencies, OverloadedStrings, UndecidableInstances #-} module Math.Stan.TAST where import Control.Monad.State.Strict import Math.Stan.AST import Data.String import Data.List --------------------------------------...
openbrainsrc/hstan
src/Math/Stan/TAST.hs
mit
2,350
0
10
542
1,114
581
533
-1
-1
module Server.Test.TestCompiler (compile) where compile :: String -> String -> String -> String compile testSrc extraSrc contentSrc = unlines [ "{-# OPTIONS_GHC -fdefer-type-errors #-}", "import Test.Hspec", "import Test.Hspec.Formatters.Structured", "import Test.Hspec.Runner (hspecWith, defaul...
mumuki/mumuki-hspec-server
src/Server/Test/TestCompiler.hs
mit
594
0
7
120
77
46
31
14
1
module Light.Cameras (module X) where import Light.Camera as X import Light.Camera.OrthographicCamera as X import Light.Camera.PerspectiveCamera as X
jtdubs/Light
src/Light/Cameras.hs
mit
151
0
4
18
35
25
10
4
0
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module Main where import Control.Concurrent (forkIO) import Control.Exception (SomeException(..), handle) import Control.Monad (forM_) import Control.Monad.Fix (fix) import Data.ByteString (ByteString, hGet, hPut, length) import Data.Int (Int32, Int64) i...
cjlarose/kafkaesque
app/Main.hs
mit
4,262
0
28
1,255
1,064
552
512
112
3
{-# LANGUAGE OverloadedStrings #-} module Network.Wai.ParseSpec (main, spec) where import Test.Hspec import Test.HUnit import System.IO import Data.Monoid import qualified Data.IORef as I import qualified Data.ByteString as S import qualified Data.ByteString.Char8 as S8 import ...
creichert/wai
wai-extra/test/Network/Wai/ParseSpec.hs
mit
12,301
0
20
2,687
2,691
1,384
1,307
243
3
module Network.API.Twitter ( getResponse ) where import Data.Maybe (fromJust) import Network.OAuth.Consumer import Network.OAuth.Http.Request import Network.OAuth.Http.Response import Network.OAuth.Http.CurlHttpClient import Data.Aeson import Network.API.Twitter.Shim import Data.API.Twitter.Query import...
whittle/twitter-api
Network/API/Twitter.hs
mit
1,968
0
9
370
268
159
109
22
1
module Data.Language ( Language(..) , LanguageBranch(..) ) where import ClassyPrelude import Data.Phoneme import Data.Word import Data.Grammar import Data.Inflection import Data.Soundchange import Data.Other -- Language trees data LanguageBranch = LanguageBranch { getLanguage :: Language ...
Brightgalrs/con-lang-gen
src/Data/Language.hs
mit
1,585
0
12
577
394
259
135
39
0
{-# LANGUAGE DataKinds #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures, ScopedTypeVariables #-} module Symbol where import Data.Singletons.TH data Symbol = A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W |...
vladfi1/hs-misc
Symbol.hs
mit
381
0
7
91
120
77
43
10
0
{-# LANGUAGE GADTs, DataKinds, PolyKinds, TypeFamilies, KindSignatures #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} {-# LANGUAGE InstanceSigs, DefaultSignatures #-} module Binary where import Da...
vladfi1/hs-misc
Binary.hs
mit
1,811
0
7
552
65
45
20
24
0
{-# LANGUAGE ScopedTypeVariables #-} module Fractional ( fractional ) where import Data.Ratio ((%)) import Test.QuickCheck (Arbitrary) import Test.QuickCheck.Checkers (EqProp, (=-=)) import Test.QuickCheck.Classes.Extra (field) import Test.QuickCheck.Modifiers (NonZero(..)) import Test.QuickCheck.Extra () import ...
expipiplus1/exact-real
test/Fractional.hs
mit
1,101
0
15
237
312
181
131
20
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} module XDCC ( Env(..) , Pack(..) , initialS...
JanGe/xdcc
src/XDCC.hs
mit
4,691
0
15
1,313
1,338
706
632
118
3
{-# LANGUAGE OverloadedStrings #-} module Jira.API.Types.Assignee where import Data.Aeson data Assignee = AssigneeUsername String | AssigneeAutomatic | AssigneeNobody instance ToJSON Assignee where toJSON (AssigneeUsername name) = object [ "name" .= name ] toJSON AssigneeA...
dsmatter/jira-api
src/Jira/API/Types/Assignee.hs
mit
438
0
9
118
103
57
46
10
0
--------------------------------------------------------------------- module NASDAQ where import Model nasdaq = Exchange { sellAt = error "NASDAQ doesn't sell." , getPendingOrders = Nothing, buyAt = undefined, cancelOrder = undefined } --------------------------------...
dimitri-xyz/interfaces-in-haskell
record-solution/NASDAQ.hs
cc0-1.0
358
0
7
80
43
28
15
7
1
-- 单纯的functor没有办法做到将一个函数也放在最小上下文中然后将包裹在上下文中的函数作用在其他functor上 所以出现了applicative functor class (Functor f) => Applicative f where pure :: a -> f a (<*>) :: f (a -> b) -> f a -> f b (<$>) :: (Functor f) => (a -> b) -> f a -> f b f <$> x = fmap f x -- pure用来将一个类型包在一个applicative functor的上下文中 -- <*>用来将包裹在上下文中...
zjhmale/monadme
monad/src/monad/haskell/applicativefunctor.hs
epl-1.0
2,404
20
10
439
925
513
412
-1
-1
module Moonbase.Panel.Gtk.Item ( date , spacer , quitButton , xmonadLog , dbusLabel , cpuGraph , defaultGraphConfig ) where import Moonbase.Util.Gtk.Widget.Graph (defaultGraphConfig) import Moonbase.Panel.Gtk.Item.Spacer import Moonbase.Panel.Gtk.Item.Date import Moonbase.Panel.Gtk.It...
felixsch/moonbase-gtk
src/Moonbase/Panel/Gtk/Item.hs
gpl-2.0
415
0
5
66
84
60
24
14
0
{-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_HADDOCK show-extensions #-} -- | -- Module : Yi.Keymap.Vim.Ex.Commands.BufferDelete -- License : GPL-2 -- -- :reg[isters] ex command to list yanked texts. module Yi.Keymap.Vim.Ex.Commands.Registers (printRegisters, parse) where import Control.Applica...
siddhanathan/yi
yi-keymap-vim/src/Yi/Keymap/Vim/Ex/Commands/Registers.hs
gpl-2.0
2,919
0
20
984
715
407
308
46
1
import Control.Monad main = do colors <- forM [1,2,3,4] (\a -> do putStrLn $ "Which color do you associate with the number " ++ show a ++ "?" color <- getLine return color) putStrLn "The colors that you associate with 1, 2, 3 and 4 are: " mapM putStrLn colors
softwaremechanic/Miscellaneous
Haskell/14.hs
gpl-2.0
278
0
15
68
88
42
46
8
1
-- grid is a game written in Haskell -- Copyright (C) 2018 karamellpelle@hotmail.com -- -- This file is part of grid. -- -- grid 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 Lice...
karamellpelle/grid
source/MEnv/System/IOS.hs
gpl-3.0
2,352
0
10
495
394
217
177
41
2
module LangDefs.DFA (DFA (..), accept) where import qualified Data.Map as Map import qualified Data.Set as Set import Data.Maybe import Control.Monad type Delta s a = Map.Map (s, a) s data DFA s a = DFA { states :: Set.Set s , sigma :: Set.Set a , delta :: Delta s a , startState :: s , acceptStat...
aplavin/formal-languages
src/LangDefs/DFA.hs
gpl-3.0
845
0
10
219
379
205
174
24
2
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} module Hledger.Cli.Commands.Tags ( tagsmode ,tags ) where import Data.List import Data.String.Here import qualified Data.Text as T import Safe import Hledger import Hledger.Cli.CliOptions tagsmode = hledgerCommandMode [here| tags List all the tag ...
ony/hledger
hledger/Hledger/Cli/Commands/Tags.hs
gpl-3.0
1,290
0
16
252
269
149
120
30
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE BangPatterns #-} {-# OPTIONS_GHC -fno-warn-unused-top-binds #-} ------------------------------------------------------------------------------- -- | -- Module : Ope...
oldmanmike/opensandbox
src/OpenSandbox/Data/Yggdrasil.hs
gpl-3.0
5,474
0
15
1,205
1,431
796
635
144
3
module Reactive.Banana.SDL.Util ( addHandler, fire, sdlEvent, tickEvent, tickDiffEvent , keyEvent, keyDownEvent, keyUpEvent, mouseEvent, mouseButtonEvent , filterEq, keyFilter, keyUpFilter , mouseEventWithin, keyPressed, but...
orclev/reactive-banana-sdl
src/Reactive/Banana/SDL/Util.hs
gpl-3.0
4,021
0
14
1,076
1,429
728
701
74
4
{-# LANGUAGE TemplateHaskell #-} module Data.Ephys.OldMWL.ParsePFile where import Data.Ephys.Position import Data.Ephys.OldMWL.FileInfo import Data.Ephys.OldMWL.Parse (decodeTime, encodeTime, dropResult, getMany) import Data.Ephys.OldMWL.Header import Control.Lens import qualified Data.ByteString.Lazy as BSL import ...
imalsogreg/arte-ephys
tetrode-ephys/src/Data/Ephys/OldMWL/ParsePFile.hs
gpl-3.0
3,791
0
13
1,112
1,213
643
570
123
2
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-people/gen/Network/Google/Resource/People/People/Connections/List.hs
mpl-2.0
8,204
0
23
2,122
1,284
740
544
177
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Get.hs
mpl-2.0
2,968
0
15
738
388
233
155
62
1
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-} module Model.Factories where import Data.Aeson import qualified Data.ByteString as BS import Data.Maybe import Data.Fixed import Data.Monoid ((<>)) import Data.Text (Text) import qualified Data.Text as T import qualified Data.Text.Encoding as TE import Data.Time ...
databrary/databrary
test/Model/Factories.hs
agpl-3.0
14,457
0
18
3,271
2,869
1,532
1,337
253
1
-- Huffman encoding -- huffman [('a', 24), ('b', 10), ('c', 3)] -> -- [('a', "0"), ('b', "10"), ('c', "100")] -- huff "go go gophers" -> [('g', "00"), ('o', "01"), (' ', "110"), -- ('p', "111"), ('h', "100") ..] huff :: Eq a => [a] -> [(a, [Char])] huff [] = [] huff [x] = [(x, "0")] huff xs = let ...
ekalosak/haskell-practice
Pr50.hs
lgpl-3.0
905
1
11
283
383
208
175
-1
-1
{-# OPTIONS_GHC -fno-warn-type-defaults #-} module ValidResponses where useIt :: (Eq a, Show a) => [a] -> [a] -> IO () useIt xs ys = case invalidResponses xs ys of [] -> putStrLn "success: pretend you are doing real blockchain work" xys -> complain xys invalidResponses :: Eq a => [a] -> [a] -> [(a,a)] inv...
haroldcarr/learn-haskell-coq-ml-etc
haskell/playpen/misc/src/ValidResponses.hs
unlicense
836
0
14
217
354
192
162
27
2
{- Copyright 2020 The CodeWorld Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
google/codeworld
codeworld-compiler/test/testcases/combiningAnimation/source.hs
apache-2.0
707
0
8
136
67
36
31
3
1
module Handler.ShowSpec (spec) where import TestImport spec :: Spec spec = withApp $ do describe "getShowR" $ do error "Spec not implemented: getShowR" describe "postShowR" $ do error "Spec not implemented: postShowR"
Drezil/FFF
test/Handler/ShowSpec.hs
apache-2.0
248
0
11
62
60
29
31
8
1
-- http://www.codewars.com/kata/53223653a191940f2b000877 module Graph where import qualified Data.IntMap.Strict as IM import qualified Data.IntSet as IS import Data.Char import Control.Arrow import Data.Foldable import Data.Monoid import Prelude hiding (any) type Node = Char type Arc = (Node, Node) solveGraph :: No...
Bodigrim/katas
src/haskell/4-Determining-if-a-graph-has-a-solution.hs
bsd-2-clause
698
0
13
125
267
150
117
-1
-1
module Main where import Graphics.Blank main = blankCanvas 3000 $ \ context -> loop context (0 :: Float) loop context n = do send context $ do -- clear the canvas ... -- draw the square ... loop context (n + 0.01)
ku-fpg/talks
blank-canvas/examples/AnimationTemplate.hs
bsd-2-clause
314
1
10
142
78
42
36
-1
-1
{-# LANGUAGE PackageImports #-} import "lemonstand" 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 (threadDe...
pbrisbin/lemonstand
devel.hs
bsd-2-clause
704
0
10
123
186
101
85
23
2
module Text.ICalendar.DataType.TextSpec ( main , spec ) where -- foreign libraries import Test.Hspec -- native libraries import SpecHelper import Text.ICalendar.DataType.Text main :: IO () main = hspec spec parse :: String -> TestParser String parse = parseLineWith asText spec :: Spec spec = do describe "asText"...
begriffs/iCalendar
test/Text/ICalendar/DataType/TextSpec.hs
bsd-3-clause
1,051
0
23
286
262
129
133
28
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} module Futhark.CodeGen.Backends.PyOpenCL.Boilerplate ( openClInit , openClPrelude ) where import Data.FileEmbed import qualified Data.Text as T import NeatInterpolation (text) import Futhark.Representation.AST.Attri...
mrakgr/futhark
src/Futhark/CodeGen/Backends/PyOpenCL/Boilerplate.hs
bsd-3-clause
1,831
0
13
231
311
174
137
31
2
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, PatternGuards, TypeSynonymInstances #-} ----------------------------------------------------------------------------- -- | -- Module : XMonad.Layout.Tabbed -- Copyright : (c) 2007 David Roundy, Andrea Rossato -- License : BSD-style (see xmonad/LICENS...
MasseR/xmonadcontrib
XMonad/Layout/Tabbed.hs
bsd-3-clause
7,299
0
17
1,727
1,582
864
718
87
1
{-# OPTIONS_GHC -fno-warn-unused-imports #-} module Pipes.Text.Tutorial ( -- * Effectful Text -- $intro -- ** @Pipes.Text@ -- $pipestext -- ** @Pipes.Text.IO@ -- $pipestextio -- ** @Pipes.Text.Encoding@ -- $pipestextencoding -- ** Implicit chunking -- $chunks...
bitemyapp/text-pipes
Pipes/Text/Tutorial.hs
bsd-3-clause
14,976
0
4
3,681
61
51
10
6
0
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE TypeOperators #-} {-# OPTIONS -fno-warn-orphans #-} module...
liamoc/dixi
Dixi/Markup.hs
bsd-3-clause
10,519
0
13
3,129
1,536
843
693
-1
-1
{-# LANGUAGE CPP #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE RankNTypes #-} {-# OPTIONS_GHC -fno-warn-warnings-deprecations #-} #if __GLASGOW_HASKELL__ < 708 {-# LANGUAG...
ddssff/lens
src/Control/Lens/Zoom.hs
bsd-3-clause
11,559
0
15
2,309
2,678
1,485
1,193
-1
-1
-------------------------------------------------------------------- -- | -- Module : Flickr.Photosets -- Description : flickr.photosets - navigating and managing sets. -- Copyright : (c) Sigbjorn Finne, 2008 -- License : BSD3 -- -- Maintainer : Sigbjorn Finne <sof@forkIO.com> -- Stability : provisional -...
BeautifulDestinations/hs-flickr
Flickr/Photosets.hs
bsd-3-clause
3,791
1
15
751
876
468
408
-1
-1
module Matterhorn.State.PostListOverlay ( enterFlaggedPostListMode , enterPinnedPostListMode , enterSearchResultPostListMode , postListJumpToCurrent , postListSelectUp , postListSelectDown , postListUnflagSelected , exitPostListMode ) where import GHC.Exts ( IsList(..) ) import Pr...
matterhorn-chat/matterhorn
src/Matterhorn/State/PostListOverlay.hs
bsd-3-clause
5,784
0
21
1,265
1,301
653
648
-1
-1
{-# LANGUAGE CPP #-} -- | Cross-platform operations for manipulating terminal console windows. module Language.Haskell.Ghcid.Terminal( terminalTopmost, withWindowIcon, WindowIcon(..), setWindowIcon ) where #if defined(mingw32_HOST_OS) import Data.Word import Data.Bits import Control.Exception import Grap...
ndmitchell/ghcid
src/Language/Haskell/Ghcid/Terminal.hs
bsd-3-clause
2,405
36
6
457
443
253
190
11
1
module SIGyM.IO ( module SIGyM.IO.Raster ) where import SIGyM.IO.Raster
meteogrid/sigym-core
src/SIGyM/IO.hs
bsd-3-clause
77
0
5
14
21
14
7
3
0
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} module Files.Structure ( unfoldFileTree, downloadTree, renameRoot, isSingleNode, SIO ) where import Control.Monad.Trans.Except (ExceptT, runExceptT) import Data....
Evan-Zhao/FastCanvas
src/Files/Structure.hs
bsd-3-clause
2,440
0
16
581
710
362
348
55
2
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE PatternGuards #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-orphans #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} {-...
kumasento/accelerate
Data/Array/Accelerate/Trafo/Sharing.hs
bsd-3-clause
103,177
0
25
34,159
25,126
12,813
12,313
1,413
36
{-# LANGUAGE EmptyDataDecls #-} {-# LANGUAGE ExplicitForAll #-} --{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE MultiParamTypeClasses #-} --{-# LANGUAGE PartialTypeSignatures #-} {-# LANGUAGE RankNTypes #-} --{-# LANGUAGE RebindableSyntax #-} -...
LATBauerdick/fv.hs
src/Test/FVT.hs
bsd-3-clause
3,635
0
14
957
1,112
563
549
72
1
module TeleHash.Packet ( NetworkPacket(..) , Packet(..) , Head (..) , Body(..) , unBody , newPacket , headLen , bodyLen , packetLen , networkPacketLen , LinePacket(..) , unLP , toNetworkPacket , fromNetworkPacket , toLinePacket , fromLinePacket -- debug , p1, p2 , myencode )...
alanz/htelehash
src/Network/TeleHash/Old/Packet.hs
bsd-3-clause
12,400
0
18
2,325
2,944
1,726
1,218
167
1
----------------------------------------------------------------------------- -- | -- Module : Network.AWS.AWSConnection -- Copyright : (c) Greg Heartsfield 2007 -- License : BSD3 -- -- Connection and authentication info for an Amazon AWS request. ----------------------------------------------------------...
pheaver/hSimpleDB
src/Network/AWS/AWSConnection.hs
bsd-3-clause
3,306
0
13
713
403
235
168
40
4
module Data.Viz ( ) where
adarqui/DataViz
src/Data/Viz.hs
bsd-3-clause
26
0
3
5
9
6
3
1
0
module Test.Arbitrary where import Control.Monad (liftM2) import Data.String (fromString) import Test.QuickCheck (Arbitrary (..), choose, elements, frequency, getSmall, suchThat) import Universum import Toy.Base (Value (....
Martoon-00/toy-compiler
test/Test/Arbitrary.hs
bsd-3-clause
2,203
0
15
769
751
443
308
49
0
{-# LANGUAGE RecursiveDo #-} -- | -- Module : Simulation.Aivika.Branch.Internal.BR -- Copyright : Copyright (c) 2016-2017, David Sorokin <david.sorokin@gmail.com> -- License : BSD3 -- Maintainer : David Sorokin <david.sorokin@gmail.com> -- Stability : experimental -- Tested with: GHC 7.10.3 -- -- This module...
dsorokin/aivika-branches
Simulation/Aivika/Branch/Internal/Br.hs
bsd-3-clause
3,786
0
16
1,194
1,042
559
483
89
1
-- -- Copyright © 2013-2015 Anchor Systems, Pty Ltd and Others -- -- The code in this file, and the program it is a part of, is -- made available to you by its authors as open source software: -- you can redistribute it and/or modify it under the terms of -- the 3-clause BSD licence. -- {-# LANGUAGE GeneralizedNewtype...
anchor/druid-query
lib/Network/Druid/Query/AST.hs
bsd-3-clause
22,288
0
13
6,056
3,548
2,035
1,513
378
0
{-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE FlexibleConte...
jwiegley/hnix
src/Nix/Value.hs
bsd-3-clause
15,814
0
14
4,224
5,828
2,912
2,916
-1
-1
-- | -- Module: Math.NumberTheory.GCD.LowLevel -- Copyright: (c) 2011 Daniel Fischer -- Licence: MIT -- Maintainer: Daniel Fischer <daniel.is.fischer@googlemail.com> -- Stability: Provisional -- Portability: Non-portable (GHC extensions) -- -- Low level gcd and coprimality functions using the binary gcd a...
shlevy/arithmoi
Math/NumberTheory/GCD/LowLevel.hs
mit
3,771
0
16
898
921
501
420
58
2
{-| Tracks terminal state so that new terminal connections can be brought up to speed. -} module Urbit.Vere.Term.Logic ( SpinnerCause(..), St, Ev(..), Ef(..) , init , step , drawState , fromTermEv , toTermEv ) where import Urbit.Prelude hiding (init) import Data.Sequence (Seq((:<|)...
jfranklin9000/urbit
pkg/hs/urbit-king/lib/Urbit/Vere/Term/Logic.hs
mit
3,848
0
13
1,038
1,191
631
560
-1
-1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
romanb/amazonka
amazonka-storagegateway/gen/Network/AWS/StorageGateway/CancelRetrieval.hs
mpl-2.0
4,006
0
9
880
524
318
206
63
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="fr-FR"> <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_fr_FR/helpset_fr_FR.hs
apache-2.0
969
80
66
160
415
210
205
-1
-1
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE FlexibleInstances #-} module Data.Map.Syntax.Util where ------------------------------------------------------------------------------ import qualified Data.Map as M import qualified Data.Set ...
mightybyte/map-syntax
test/Data/Map/Syntax/Util.hs
bsd-3-clause
2,290
0
13
447
581
319
262
37
1
{-# OPTIONS_GHC -Wall #-} -- | This module re-exports both 'MonadTardis' and 'TardisT' -- (Wherever there is overlap, the 'MonadTardis' version is preferred.) -- -- The recommended usage of a Tardis is to import this module. module Control.Monad.Tardis ( -- * Re-exports module Control.Monad.Trans.Tardis , mod...
DanBurton/tardis
src/Control/Monad/Tardis.hs
bsd-3-clause
4,477
0
5
1,013
80
59
21
16
0
module Formalize.Formalizer ( pdfFromParams , emptyFormData ) where import Data.Text (Text) import Formalize.Internal.Util import Formalize.Internal.Validate import Formalize.Internal.Mailer import Formalize.Types -- TODO: Si...
Lepovirta/Crystallize
src/Formalize/Formalizer.hs
bsd-3-clause
1,248
0
11
354
298
152
146
28
2
{-# LANGUAGE OverloadedStrings #-} -- | -- Module : Language.Ava.Base.Reader -- -- Copyright : (c) 2016 Owain Lewis -- -- License : BSD-style -- Maintainer : Owain Lewis <owain@owainlewis.com> -- Stability : experimental -- Portability : GHC -- -- Reads input strings and converts them into a concrete AST...
owainlewis/seven
src/Language/Ava/Base/Reader.hs
bsd-3-clause
852
0
7
148
160
103
57
17
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE PolyKinds #-} ------------------------------------------------------------------------ -- | -- Module : Hanoi -...
advancedtelematic/quickcheck-state-machine-model
test/Hanoi.hs
bsd-3-clause
4,781
0
14
1,026
1,097
598
499
70
2