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 CPP #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE PatternGuards #-} {-# OPTIONS_GHC -fno-warn-deprecations #-} --------------------------------------------------------- -- -- Module : Network.Wai.Handler.Warp -- Copyright : Michael Snoyman -- License : BSD3 -- -- Maintainer : Michael Sn...
sordina/wai
warp/Network/Wai/Handler/Warp.hs
bsd-2-clause
17,950
0
13
3,154
2,039
1,288
751
181
1
-- Copyright (C) 2012 John Chee -- See LICENSE for more details -- TODO verify mode, cleanup mode -- TODO in verify mode, report _all_ failures (line + byte in line + total byte offset) import qualified Data.ByteString.Lazy.Char8 as L8 import Data.Text.Lazy (Text) import qualified Data.Text.Lazy.IO as TIO import qual...
cheecheeo/utf8clean
utf8clean.hs
bsd-2-clause
955
0
8
117
178
107
71
12
1
module Data.CRF.Chain1.Util ( partition ) where import Data.List (transpose) partition :: Int -> [a] -> [[a]] partition n = transpose . group n where group _ [] = [] group k xs = take k xs : (group k $ drop k xs)
kawu/crf-chain1
src/Data/CRF/Chain1/Util.hs
bsd-2-clause
229
0
10
59
110
59
51
8
2
-- -- Copyright (c) 2013, Carl Joachim Svenn -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice...
karamellpelle/MEnv
source/MEnv/System.hs
bsd-2-clause
1,727
0
5
350
67
56
11
2
0
module Scurry.Data.Packet ( module Scurry.Data.Packet.Ethernet, module Scurry.Data.Packet.IPv4, parsePkt, encodePkt, ) where import Scurry.Data.Packet.Ethernet import Scurry.Data.Packet.IPv4 import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as L import Data.Binary import Dat...
sw17ch/Scurry
src/Scurry/Data/Packet.hs
bsd-3-clause
1,177
0
14
323
363
204
159
37
1
module Main where import System.Environment (getArgs) import Brainfuck.Parser import Brainfuck.Interpreter main :: IO () main = fmap head getArgs >>= fmap parse . readFile >>= run
sivawashere/bf
src/Main.hs
bsd-3-clause
182
0
8
28
59
32
27
6
1
module Render.Basic.BasicRenderAPI where import Render.RenderAPI import Types basicRenderAPI :: RenderAPI basicRenderAPI = undefined -- TODO
ksaveljev/hake-2
src/Render/Basic/BasicRenderAPI.hs
bsd-3-clause
143
0
4
17
26
17
9
5
1
{-# LANGUAGE TypeFamilies, DataKinds, TypeOperators, MultiParamTypeClasses , FlexibleInstances, PolyKinds, UndecidableInstances, AllowAmbiguousTypes , RankNTypes, ScopedTypeVariables, FlexibleContexts, ConstraintKinds #-} module Control.Instances.Morph (GenMorph(..), DB, db, Morph, morph) whe...
nboldi/instance-control
Control/Instances/Morph.hs
bsd-3-clause
5,621
0
13
1,341
1,593
832
761
-1
-1
module RevealHs ( module X ) where import RevealHs.Internal as X import RevealHs.Options as X import RevealHs.QQ as X import RevealHs.TH as X
KenetJervet/reveal-hs
src/RevealHs.hs
bsd-3-clause
159
0
4
40
38
27
11
5
0
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -funbox-strict-fields #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.IO.BufferedIO -- Copyright : (c) The University of Glasgow 2008 -- License : see libraries/base/LICE...
spacekitteh/smcghc
libraries/base/GHC/IO/BufferedIO.hs
bsd-3-clause
4,982
0
15
1,070
847
460
387
50
2
-- Issue overload-div-int-real #579 module Div where {-@ type Valid = {v:Bool | ( (Prop v) <=> true ) } @-} {-@ mulAssoc :: (Eq a, Fractional a) => a -> a -> a -> Valid @-} mulAssoc :: (Eq a, Fractional a) => a -> a -> a -> Bool mulAssoc x y z = (x * y) * z == x * (y * z) {-@ mulCommut :: (Eq a, Fractional a) => ...
ssaavedra/liquidhaskell
tests/pos/RealProps1.hs
bsd-3-clause
888
0
9
230
291
158
133
13
1
{-# LANGUAGE EmptyDataDecls, TypeSynonymInstances #-} {-# OPTIONS_GHC -fcontext-stack47 #-} module Games.Chaos2010.Database.Piece_sprite where import Games.Chaos2010.Database.Fields import Database.HaskellDB.DBLayout type Piece_sprite = Record (HCons (LVPair X (Expr (Maybe Int))) (HCons (LVPair...
JakeWheat/Chaos-2010
Games/Chaos2010/Database/Piece_sprite.hs
bsd-3-clause
748
0
25
192
244
128
116
16
1
-- | Augmented grammars. {-# LANGUAGE ScopedTypeVariables #-} module Data.Cfg.Augment ( -- * Augmenting grammars augmentCfg, -- * Augmenting symbols AugNT(..), AugT(..), -- * Type synonyms AugV, AugVs, AugProduction, AugFreeCfg ) where import Data.Cfg.Cfg(Cfg(..), Production...
nedervold/context-free-grammar
src/Data/Cfg/Augment.hs
bsd-3-clause
2,033
0
12
499
632
348
284
37
3
-------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.DrawElementsBaseVertex -- Copyright : (c) Sven Panne 2019 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portability : portable -- -------...
haskell-opengl/OpenGLRaw
src/Graphics/GL/ARB/DrawElementsBaseVertex.hs
bsd-3-clause
762
0
4
95
53
40
13
9
0
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses, FunctionalDependencies, TypeSynonymInstances, UndecidableInstances #-} --{-# OPTIONS_GHC -ddump-splices #-} module Scratch where import Prelude hiding ((.)) import Data.Time.Calendar import Data.RecordAccess import Data.RecordAccess.TH $(record [d| data Person ...
petermarks/record-access
src/Scratch.hs
bsd-3-clause
797
0
8
184
155
87
68
26
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} import Text.LaTeX import Text.LaTeX.Base.Parser import Text.LaTeX.Base.Pretty import Text.LaTeX.Base.Syntax import Data.Text (unlines, pack, unpack) import qualified Data.Text as DT import qualified Data.Text.IO as T import System.Environment (getArgs) im...
vzaccaria/huntex
app/Main.hs
bsd-3-clause
3,874
0
17
870
1,509
770
739
102
4
-- Rect.hs {-# OPTIONS_GHC -Wall #-} module Lab2.Rect( Rect(..) , HRect(..) , CanIntersect(..) , fromRect , getMbr , getMbrs , intersect ) where import Lab2.Config(hilbertDim) import Lab2.HilbertCurve(xy2d...
ghorn/cs240h-class
Lab2/Rect.hs
bsd-3-clause
2,185
0
16
686
692
377
315
46
1
{-| Module : Data.Array.BitArray Copyright : (c) Claude Heiland-Allen 2012 License : BSD3 Maintainer : claude@mathr.co.uk Stability : unstable Portability : portable Immutable unboxed packed bit arrays using bitwise operations to manipulate large chunks at a time much more quickly than individual...
ekmett/bitwise
src/Data/Array/BitArray.hs
bsd-3-clause
6,068
0
15
1,363
1,739
930
809
-1
-1
{-# LANGUAGE FlexibleContexts, MultiParamTypeClasses, FlexibleInstances #-} ----------------------------------------------------------------------------- -- | -- Module : XMonad.Hooks.UrgencyHook -- Description : Configure an action to occur when a window demands your attention. -- Copyright : Devin Mullins ...
xmonad/xmonad-contrib
XMonad/Hooks/UrgencyHook.hs
bsd-3-clause
24,331
0
19
6,434
3,768
2,074
1,694
248
6
module REPL.Util ( wrappedPick , string2int ) where import Data.List (intercalate) import qualified AlbanKnights as AK import Rating wrappedPick :: String -> String -> Int -> Lock -> String wrappedPick name s i l = toString name $ AK.unsafePick s (i-1) where toString name' keys = ...
sandmark/AlbanKnights
src/REPL/Util.hs
bsd-3-clause
611
0
14
180
223
121
102
17
3
-- | The data types for the UI→Haskell interface. Roughly corresponds to the -- specification in SPEC.md. module Types ( module Types , Var ) where import qualified Data.Map as M import qualified Data.Set as S import Data.Tagged import Propositions -- We might want to look into other implementation o...
psibi/incredible
logic/Types.hs
mit
3,456
0
12
800
910
526
384
92
1
-- | This tests the new MINIMAL pragma present in GHC 7.8 module Minimal ( Foo(..) , Weird(..) , NoMins(..) , FullMin(..) , PartialMin(ccc) , EmptyMin(..) ) where class Foo a where -- | Any two of these are required... foo, bar, bat :: a -- | .. or just this fooBarBat :: (a,a,a) {-# MINIMAL (...
jwiegley/ghc-release
utils/haddock/html-test/src/Minimal.hs
gpl-3.0
695
0
7
184
193
126
67
27
0
{- Copyright 2015-2017 Markus Ongyerth, Stephan Guenther This file is part of Monky. Monky is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at y...
Ongy/monky
Monky/Utility.hs
lgpl-3.0
5,832
0
14
1,273
1,473
768
705
120
3
module Handler.Book ( getBookHomeR , getChapterR , getBookImageR ) where import Import import qualified Data.Text as T import qualified Filesystem.Path.CurrentOS as F import Filesystem (isFile) import Book import qualified Data.Map as Map import Text.XML import Network.HTTP.Types (status301) import Dat...
wolftune/yesodweb.com
Handler/Book.hs
bsd-2-clause
3,171
0
17
928
982
490
492
-1
-1
{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-} module Graphics.Vty.Input.Terminfo where import Graphics.Vty.Input.Events import qualified Graphics.Vty.Input.Terminfo.ANSIVT as ANSIVT import Control.Arrow import System.Console.Terminfo -- | Queries the terminal for all capability-based input sequences and -- the...
jtdaugherty/vty
src/Graphics/Vty/Input/Terminfo.hs
bsd-3-clause
5,427
0
12
1,202
1,165
705
460
67
1
{-# LANGUAGE OverloadedStrings #-} -- | -- Copyright : Anders Claesson 2015 -- Maintainer : Anders Claesson <anders.claesson@gmail.com> -- License : BSD-3 -- -- Rational numbers extended with two elements representing a finite but -- indeterminate value and divison by zero, respectively. module HOPS.GF.Rat ...
akc/gfscript
HOPS/GF/Rat.hs
bsd-3-clause
6,232
0
15
1,950
1,980
1,039
941
148
2
{-# LANGUAGE Haskell98, CPP, DeriveDataTypeable, ForeignFunctionInterface, TypeSynonymInstances #-} {-# LINE 1 "dist/dist-sandbox-261cd265/build/Network/Socket/ByteString/MsgHdr.hs" #-} {-# LINE 1 "Network/Socket/ByteString/MsgHdr.hsc" #-} {-# LANGUAGE CPP #-} {-# LIN...
phischu/fragnix
tests/packages/scotty/Network.Socket.ByteString.MsgHdr.hs
bsd-3-clause
2,612
4
13
538
469
262
207
40
0
module Dotnet.System.Collections.DictionaryEntry where import Dotnet import qualified Dotnet.System.Object import qualified Dotnet.System.ValueType data DictionaryEntry_ a type DictionaryEntry a = Dotnet.System.ValueType.ValueType (DictionaryEntry_ a) foreign import dotnet "method System.Collections.DictionaryEntr...
alekar/hugs
dotnet/lib/Dotnet/System/Collections/DictionaryEntry.hs
bsd-3-clause
872
0
10
101
189
107
82
-1
-1
{- (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[PatSyntax]{Abstract Haskell syntax---patterns} -} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE Undecida...
fmthoma/ghc
compiler/hsSyn/HsPat.hs
bsd-3-clause
21,886
0
18
6,828
3,875
2,111
1,764
249
20
module System.Uname ( getRelease ) where getRelease :: IO String getRelease = error "getRelease not supported on Windows"
juhp/stack
src/windows/System/Uname.hs
bsd-3-clause
127
0
5
23
27
15
12
4
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="sr-CS"> <title>SAML Support</title> <maps> <homeID>saml</homeID> <mapref location="map....
thc202/zap-extensions
addOns/saml/src/main/javahelp/help_sr_CS/helpset_sr_CS.hs
apache-2.0
958
77
66
156
407
206
201
-1
-1
{-# LANGUAGE OverloadedStrings, CPP #-} #if __GLASGOW_HASKELL__ >= 702 {-# LANGUAGE Trustworthy #-} #endif -- | -- Module : Data.Text.Lazy.Read -- Copyright : (c) 2010, 2011 Bryan O'Sullivan -- -- License : BSD-style -- Maintainer : bos@serpentine.com -- Stability : experimental -- Portability : GHC -- -...
beni55/text
Data/Text/Lazy/Read.hs
bsd-2-clause
7,222
0
19
1,633
1,246
682
564
106
5
module Test5 where f = \x y z -> x + y + l +j where l = 56 j = 92
kmate/HaRe
old/testing/refacSlicing/Test5.hs
bsd-3-clause
97
0
8
53
42
24
18
4
1
-- |Binary iteratee-style serialization helpers for working with ROS -- message types. This module is used by the automatically-generated -- code for ROS .msg types. module Ros.Node.BinaryIter (streamIn, getServiceResult) where import Control.Applicative import Control.Concurrent (myThreadId, killThread) import Control...
bitemyapp/roshask
src/Ros/Node/BinaryIter.hs
bsd-3-clause
2,921
0
16
705
730
374
356
49
3
{-# LANGUAGE Safe #-} {-# LANGUAGE CPP #-} #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 700 {-# LANGUAGE GADTs #-} #endif ----------------------------------------------------------------------------- -- | -- Module : Text.Printf -- Copyright : (c) Lennart Augustsson and Bart Massey 2013 -- Lice...
frantisekfarka/ghc-dsi
libraries/base/Text/Printf.hs
bsd-3-clause
31,174
0
23
8,107
6,146
3,419
2,727
420
13
{-# LANGUAGE OverloadedStrings, TemplateHaskell, QuasiQuotes, TypeFamilies, MultiParamTypeClasses, ViewPatterns #-} module YesodCoreTest.Reps (specs, Widget) where import Yesod.Core import Test.Hspec import Network.Wai import Network.Wai.Test import Data.ByteString.Lazy (ByteString) import qualified Data.ByteString.Ch...
ygale/yesod
yesod-core/test/YesodCoreTest/Reps.hs
mit
2,863
0
15
579
818
409
409
71
1
{-# LANGUAGE MagicHash, UnboxedTuples #-} import GHC.Prim import GHC.Types main = do let local = () let null = 0## :: Word# let triple = (# local, null, null #) IO (\s -> case mkWeakNoFinalizer# triple () s of (# s, r #) -> (# s, () #))
ezyang/ghc
testsuite/tests/typecheck/should_fail/T13611.hs
bsd-3-clause
254
0
14
65
102
53
49
8
1
-- !!! ds002 -- overlapping equations and guards -- -- this tests "overlapping" variables and guards module ShouldCompile where f x = x f y = y f z = z g x y z | True = f z | True = f z | True = f z g x y z | True = f z | True = f z | True = f z
urbanslug/ghc
testsuite/tests/deSugar/should_compile/ds002.hs
bsd-3-clause
269
0
7
92
121
56
65
10
1
module Main where import qualified Events import qualified Example import Data.BitVector main = do Example.main Events.main
sboosali/Haskell-DragonNaturallySpeaking
Main.hs
mit
129
0
7
21
32
19
13
7
1
{-# LANGUAGE BlockArguments #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE Rank2Types #...
unisonweb/platform
codebase2/codebase/U/Codebase/Term.hs
mit
11,256
0
22
3,488
3,867
1,963
1,904
-1
-1
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings, DoAndIfThenElse #-} {- | Description: Generates tab completion options. This has a limited amount of context sensitivity. It distinguishes between four contexts at the moment: - import statements (completed using modules) - identifiers (completed using in scope val...
aostiles/LiveHaskell
src/IHaskell/Eval/Completion.hs
mit
11,655
0
18
3,193
2,808
1,441
1,367
219
12
import Utmp import Control.Monad import Data.List (group, sort) import Data.Time import System.Environment import Text.Printf -- Reads input from utmp files main :: IO () main = do logins <- concat <$> (mapM decodeFile =<< getArgs) days <- mapM (utcToLocalDay . utTime) logins forM_ (group . sort $ days)...
neilmayhew/Utmp
CountsByDay.hs
mit
624
0
15
152
223
110
113
18
1
import Control.Monad import Data.List.Extra import Data.Maybe import qualified Data.Char import qualified Data.Map as Map splitOn1 a b = fromJust $ stripInfix a b type Data = Map.Map String Int input = "Sue 0: children: 3, cats: 7, samoyeds: 2, pomeranians: 3, akitas: 0, vizslas: 0, goldfish: 5, trees: 3, cars: 2, p...
msullivan/advent-of-code
2015/A16a.hs
mit
947
0
13
216
350
184
166
25
1
module Lint (lintTipToi, warnTipToi) where import Text.Printf import Data.Maybe import Control.Monad import qualified Data.Map as M import Types import PrettyPrint lintTipToi :: TipToiFile -> Segments -> IO () lintTipToi tt segments = do let hyps = [ (hyp1, "play indicies are correct") , (hyp2 (fr...
colinba/tip-toi-reveng
src/Lint.hs
mit
2,244
0
21
732
789
400
389
52
4
{-# LANGUAGE OverloadedStrings #-} module Popeye.Users ( User(..) , UserName(..) , UserPublicKey(..) , Group(..) , getUsers , getUser ) where import Control.Lens (set, view) import Control.Monad (mfilter) import Data.Maybe (catMaybes) import Data.Text (Text) import Network.AWS import Networ...
codeclimate/popeye
src/Popeye/Users.hs
mit
1,804
0
13
356
568
313
255
45
1
module GHCJS.DOM.SVGZoomEvent ( ) where
manyoo/ghcjs-dom
ghcjs-dom-webkit/src/GHCJS/DOM/SVGZoomEvent.hs
mit
42
0
3
7
10
7
3
1
0
module ANUQRNG ( randomWords, -- :: Integer -> MaybeT IO [Word8] randomWord -- :: MaybeT IO Word8 ) where import Network (withSocketsDo) import Network.Connection import Network.HTTP.Conduit import Data.Aeson import Data.Word import Control.Applicative import Control.Monad import Control.Monad.Trans import C...
MatthewJA/haskell-anu-qrng
requesttime.hs
mit
2,055
0
14
445
462
249
213
46
1
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} -- + Complete the 10 exercises below by filling out the function bodies. -- Replace the function bodies (error "todo: ...") with an appropriate -- solution. -- + These...
harrisi/on-being-better
list-expansion/Haskell/course/src/Course/List.hs
cc0-1.0
13,121
0
20
3,637
4,049
2,158
1,891
447
3
{- This module was generated from data in the Kate syntax highlighting file verilog.xml, version 1.09, by Yevgen Voronenko (ysv22@drexel.edu), Ryan Dalzell (ryan@tullyroan.com) -} module Text.Highlighting.Kate.Syntax.Verilog (highlight, parseExpression, syntaxName, syntaxExtensions) where import Text.High...
ambiata/highlighting-kate
Text/Highlighting/Kate/Syntax/Verilog.hs
gpl-2.0
10,049
0
34
1,519
2,632
1,413
1,219
170
13
{- | Module : $Header$ Description : Utils for the abstract syntax of EnCL Copyright : (c) Dominik Dietrich, Ewaryst Schulz, DFKI Bremen 2011 License : GPLv2 or higher, see LICENSE.txt Maintainer : Ewaryst.Schulz@dfki.de Stability : experimental Portability : portable Utils to create and access ...
nevrenato/Hets_Fork
CSL/ASUtils.hs
gpl-2.0
8,369
0
18
2,391
2,270
1,177
1,093
154
7
module Type where import Test.QuickCheck import Control.Applicative import Data.List (union) import Exp data Type = BasicType Id | FunType Type Type | TypeVariable Id deriving (Show, Eq) showType :: Type -> String showType (BasicType t) = t showType (FunType a b) = showType a ++ " -> (" ++ showType b ++ ")" showType...
pbevin/milner-type-poly
src/Type.hs
gpl-2.0
843
0
11
166
343
180
163
22
1
-- -*-haskell-*- -- Vision (for the Voice): an XMMS2 client. -- -- Author: Oleg Belozeorov -- Created: 20 Jun. 2010 -- -- Copyright (C) 2010, 2011, 2012 Oleg Belozeorov -- -- This program is free software; you can redistribute it and/or -- modify it under the terms of the GNU General Public License as -- publis...
upwawet/vision
src/Playback.hs
gpl-3.0
4,529
0
17
935
1,163
572
591
-1
-1
module Math where import Control.DeepSeq --import Data.Vector.Unboxed -- scalar type type Scalar = Double epsilon :: Scalar epsilon = 0.000001 ----------------------------------------------------------------------------------------------------- -- A 3D vector data Vec3 = Vec3 { vecX :: Scalar, vecY :: Scalar, vecZ...
shaunren/htracer
src/Math.hs
gpl-3.0
10,505
0
24
4,181
5,252
2,747
2,505
255
1
#!/usr/bin/env runhaskell -- {-# LANGUAGE CPP #-} {-| hledger-rewrite [PATTERNS] --add-posting "ACCT AMTEXPR" ... A start at a generic rewriter of journal entries. Reads the default journal and prints the entries, like print, but adds the specified postings to any entries matching PATTERNS. Examples: hledger-rewrit...
kmels/hledger
extra/hledger-rewrite.hs
gpl-3.0
4,140
0
20
1,004
832
452
380
52
2
module System.DevUtils.Redis ( ) where
adarqui/DevUtils-Redis
src/System/DevUtils/Redis.hs
gpl-3.0
39
0
3
5
10
7
3
1
0
{-# LANGUAGE DerivingStrategies #-} -- | -- Module : Aura.Settings.External -- Copyright : (c) Colin Woodbury, 2012 - 2020 -- License : GPL3 -- Maintainer: Colin Woodbury <colin@fosskers.ca> -- -- A simple parser for .conf files, along with types for aura-specific config -- files. module Aura.Settings.External ...
bb010g/aura
aura/lib/Aura/Settings/External.hs
gpl-3.0
3,109
0
16
655
790
431
359
68
2
----------------------------------------------------------------------------------------- {-| Module : CompileClassTypes Copyright : (c) Daan Leijen 2003, 2004 License : BSD-style Maintainer : wxhaskell-devel@lists.sourceforge.net Stability : provisional Portability : portable ...
thielema/wxhaskell
wxdirect/src/CompileClassTypes.hs
lgpl-2.1
3,110
0
15
965
482
258
224
46
1
---------------------------------------------------------------------- -- | -- Module : Graphics.UI.Awesomium.UploadElement -- Copyright : (c) 2012 Maksymilian Owsianny -- License : LGPL-3 (see the file LICENSE) -- -- Maintainer : Maksymilian.Owsianny+Awesomium@gmail.com -- Stability : Experimental ...
MaxOw/awesomium
src/Graphics/UI/Awesomium/UploadElement.hs
lgpl-3.0
1,178
0
6
182
115
73
42
15
1
{-| Module : HackerRank Description : Wrapper for submodules in HackerRank License : CC BY-NC-SA 3.0 Stability : experimental Portability : POSIX Just imports & exposes all submodules. -} module HackerRank ( -- * Modules module HackerRank.Utilities ) where import HackerRank.Utilities
oopsno/hrank
src/HackerRank.hs
unlicense
303
0
5
59
19
13
6
3
0
{-# LANGUAGE ForeignFunctionInterface #-} {-# LANGUAGE JavaScriptFFI #-} {- Copyright 2019 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 ...
pranjaltale16/codeworld
funblocks-client/src/Blockly/DesignBlock.hs
apache-2.0
8,059
46
20
2,129
1,948
1,020
928
153
3
{-# LANGUAGE DeriveGeneric, OverloadedStrings #-} module Mdb.Database.Album ( Album(..) ) where import Database.SQLite.Simple ( FromRow(..), field ) import Data.Aeson import Data.JSON.Schema ( JSONSchema(..), gSchema ) import qualified Data.Text as T import Generics.Ge...
waldheinz/mdb
src/lib/Mdb/Database/Album.hs
apache-2.0
819
6
9
225
205
123
82
30
0
-- | Simple abstraction for message digests {-# LANGUAGE TypeSynonymInstances, CPP #-} module Digest ( Digest , digest , digestBS ) where import Control.DeepSeq () import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as L import qualified Crypto.Hash.SHA1 as SHA1 -- Consider newtyping...
rethab/combinatorrent
src/Digest.hs
bsd-2-clause
628
0
7
101
131
81
50
15
1
-- | This module deals with git operations on an application's repository. module Handler.TApplication.Git( pullChanges , clone ) where import Control.Monad (when) import qualified Data.Conduit as C import qualified Data.Conduit.Binary as CB import Data.Conduit.Process import ...
kmels/tersus
Handler/TApplication/Git.hs
bsd-2-clause
2,293
0
15
533
532
274
258
52
1
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Controller ( withMySite , withDevelApp ) where import MySite import Settings import Yesod.Helpers.Static import Yesod.Helpers.Auth import Database.Persist....
Tarrasch/Recipe-Site
Controller.hs
bsd-2-clause
1,577
0
12
256
267
148
119
28
1
module Language.Brainfuck.Syntax where data Stmt = IncPtr | DecPtr | IncData | DecData | Output | Input | While Program deriving Show type Program = [Stmt]
gergoerdi/brainfuck
language-brainfuck/src/Language/Brainfuck/Syntax.hs
bsd-3-clause
252
0
6
122
46
30
16
10
0
-- | Source file location annotations for reporting module SrcLoc ( SrcLoc, srcFile, srcLine, srcCol , beforeLoc , rangeLoc , startLoc , incrLoc , sameLine , noLoc , hasLoc , Loc(..) , srcLoc, unLoc , HasLoc(..) ) where import Data.Maybe import Data.Monoid import Pretty -- Pull in definition...
girving/duck
duck/SrcLoc.hs
bsd-3-clause
3,766
0
15
890
1,576
799
777
90
1
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE OverloadedStrings #-} import Data.Maybe (fromJust) import Test.Tasty import Test.Tasty.HUnit import qualified Test.Tasty.QuickCheck as QC import Network.Multiaddr instance QC.Arbitrary IPv4Addr where arbitrary = fromBytes <$...
micxjo/hs-multiaddr
test/test.hs
bsd-3-clause
4,727
0
18
1,047
1,240
678
562
120
1
module Text.MPretty ( module Text.MPretty.IsPretty , module Text.MPretty.MonadPretty , module Text.MPretty.Pretty , module Text.MPretty.StateSpace ) where import Text.MPretty.IsPretty import Text.MPretty.MonadPretty import Text.MPretty.Pretty import Text.MPretty.StateSpace
davdar/mpretty
Text/MPretty.hs
bsd-3-clause
285
0
5
35
60
41
19
9
0
module Sexy.Instances.Eq.Maybe () where import Sexy.Classes (Eq(..), BoolC(..)) import Sexy.Data (Maybe(..)) import Sexy.Instances.BoolC.Bool () instance (Eq a) => Eq (Maybe a) where Nothing == Nothing = true Just x == Just y = x == y _ == _ = false
DanBurton/sexy
src/Sexy/Instances/Eq/Maybe.hs
bsd-3-clause
273
0
7
64
122
69
53
8
0
{-# LANGUAGE TemplateHaskell #-} module EFA.Test.Utility where import EFA.Utility (pairs, yazf) import Test.QuickCheck (Property, (==>)) import Test.QuickCheck.All (quickCheckAll) prop_dmap :: Eq a => [a] -> Property prop_dmap xs = length xs > 0 ==> yazf (,) xs xs == pairs xs runTests :: IO Bool runTests = $quick...
energyflowanalysis/efa-2.1
test/EFA/Test/Utility.hs
bsd-3-clause
329
0
8
54
116
65
51
-1
-1
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleInstances #-} ----------------------------------------------...
haskell-distributed/distributed-process-platform
src/Control/Distributed/Process/Platform/Internal/Primitives.hs
bsd-3-clause
10,705
0
28
3,246
2,596
1,341
1,255
199
4
module Data.HashPSQ.Tests ( tests ) where import Prelude hiding (lookup) import Test.Framework (Test) import Test.Framework.Providers.HUnit (testCase) import Test.Framework.Providers.QuickCheck2 (testProperty) import ...
ariep/psqueues
tests/Data/HashPSQ/Tests.hs
bsd-3-clause
4,669
0
19
1,356
1,142
609
533
82
3
{-| Module : Numeric.CatchingExceptions Description : Wrapper type tracking numerical exceptions Copyright : (c) Michal Konecny License : BSD3 Maintainer : mikkonecny@gmail.com Stability : experimental Portability : portable A wrapper type CatchingNumExceptions tha...
michalkonecny/num-exceptions
src/Numeric/CatchingExceptions.hs
bsd-3-clause
2,432
0
5
514
148
104
44
20
0
module Main where import Model import Tabular import Varying import Parser import System.Environment import System.IO parseArgs :: IO (FilePath, FilePath) parseArgs = do margs <- getArgs case margs of [] -> return ("input.txt", "output.txt") [input] -> return (input, "output.txt") (input:output:_) -...
NCrashed/bmstu-aivika-tutorial-01
src/Main.hs
bsd-3-clause
775
0
16
185
260
129
131
28
3
{-# LANGUAGE TupleSections #-} module LaTeXGrapher.Plot ( plot , Plot(..) , EndMark(..) , Segments(..) , LineStyle(..) , light , dark , clip , isEmpty ) where import Data.Maybe(maybeToList) import Data.List(find,span) import Control.Applicative import Control.Arrow impor...
fryguybob/LaTeXGrapher
src/LaTeXGrapher/Plot.hs
bsd-3-clause
6,489
0
15
2,011
3,246
1,726
1,520
165
5
{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- A Parser monad with access to the 'DynFlags'. -- -- The 'P' monad only has access to the subset of of 'DynFlags' -- required for parsing Haskell. -- The parser for C-- requires access to a lot more of the 'DynFlags'...
sdiehl/ghc
compiler/GHC/Cmm/Monad.hs
bsd-3-clause
1,380
0
12
314
366
203
163
33
2
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ViewPatterns #-} {-# OPTIONS_HADDOCK hide #-} module Dalvik.SSA.Types ( DexFile(..), dexFileClass, dexFields, dexMethodRefs, dexConstants, dexTypes, dexClasses, dexClassAnnotation, dexMet...
travitch/dalvik
src/Dalvik/SSA/Types.hs
bsd-3-clause
33,554
0
19
11,723
6,974
3,967
3,007
691
26
{-# LANGUAGE StandaloneDeriving, DeriveDataTypeable, PatternGuards #-} module LogicDB.JavascriptFreeVars (Vars(..), vars) where import Prelude () import PreludePlus import qualified Data.Set as Set import Data.Generics import Data.Typeable import Language.JavaScript.Parser import Language.JavaScript.Parser.AST data...
luqui/logic-db
LogicDB/JavascriptFreeVars.hs
bsd-3-clause
2,350
0
12
582
809
426
383
53
2
-- 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 GADTs #-} {-# LANGUAGE OverloadedStrings #-} module Duckling.TimeGrain.IT.Rules ( rules ) where ...
facebookincubator/duckling
Duckling/TimeGrain/IT/Rules.hs
bsd-3-clause
1,161
0
11
259
271
172
99
25
1
module Types.Internal where import Data.Array.IArray (Array) type Vector = (Double, Double, Double) type Normal = (Double, Double, Double) type Colour = (Double, Double, Double) type Matrix = Array Int Vector
leohaskell/parseVRS
src/Types/Internal.hs
bsd-3-clause
212
0
5
33
73
47
26
6
0
----------------------------------------------------------------------------- -- | -- Copyright : (C) 2015 Dimitri Sabadie -- License : BSD3 -- -- Maintainer : Dimitri Sabadie <dimitri.sabadie@gmail.com> -- Stability : experimental -- Portability : portable -- --------------------------------------------------...
phaazon/quaazar
src/Quaazar/Control.hs
bsd-3-clause
504
0
4
67
46
36
10
5
0
{-# LANGUAGE FlexibleInstances #-} module Jira2Sheet.Types.HTTP where import Control.Exception (SomeException (..)) import Control.Monad (join, unless, (<=<)) import Control.Monad.Except (ExceptT (..)) import Control.Monad.Log (LoggingT (..)) im...
berdario/jira2sheet
src/Jira2Sheet/Types/HTTP.hs
bsd-3-clause
4,438
0
14
1,197
1,209
652
557
70
1
{-# OPTIONS_GHC -Wall #-} module Main where import ElmVersion import qualified ElmFormat main :: IO () main = ElmFormat.main Elm_0_18
nukisman/elm-format-short
src-cli/Main0_18.hs
bsd-3-clause
141
0
6
27
32
19
13
7
1
{-# OPTIONS -fno-warn-name-shadowing #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} module Language.Haskell.Names.Recursive ( computeInterfaces , getInterfaces , annotateModule ) where import Fay.Compiler.ModuleT import Language.Haskell.Names.Annotated import ...
beni55/fay
src/haskell-names/Language/Haskell/Names/Recursive.hs
bsd-3-clause
5,390
0
17
1,312
1,286
684
602
94
2
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE QuasiQuotes #-} {- | Various HTML utils, Mustache utils, etc. -} module Guide.Views.Utils ( -- * Script utils onPageLoad, onEnter, onCtrlEnter, onEscape, onFormSubmit, inputValue, clearInput, -- * HTML utils emptySpa...
aelve/hslibs
src/Guide/Views/Utils.hs
bsd-3-clause
12,726
0
22
2,883
3,601
1,859
1,742
-1
-1
{-# LANGUAGE Rank2Types #-} module Learn.ConjugateGradient where import Control.Monad import Data.Maybe import Data.Array.Repa as R hiding ((++)) import Learn.MonadLogger import Learn.Types import Learn.Optimization -- Underscores like in x_ means roughly "x value from previous iteration" whenever new x is calcula...
ratatosk/learn
Learn/ConjugateGradient.hs
bsd-3-clause
6,015
274
20
1,674
2,005
1,034
971
92
4
----------------------------------------------------------------------------- -- | -- Module : ForSyDe.Shallow.Model -- Copyright : (c) ForSyDe Group, KTH 2007-2008 -- License : BSD-style (see the file LICENSE) -- -- Maintainer : forsyde-dev@ict.kth.se -- Stability : experimental -- Portability : porta...
forsyde/forsyde-shallow
src/ForSyDe/Shallow/Utility/Memory.hs
bsd-3-clause
2,199
0
10
512
490
270
220
28
1
import Arbre.Load import Arbre.Expressions import Arbre.Print import Arbre.View main = do views <- loadViews "views.json" case views of Just v -> do printViews v putStrLn $ show $ getView v "==" printProgramWithViews v Nothing -> do putStrLn "No v...
blanu/arbre-go
bin/print.hs
gpl-2.0
569
0
15
179
176
79
97
20
2
{-# LANGUAGE OverloadedStrings #-} {- Module: TestMaker Copyright: (c) Chris Godbout License: GPLv3 Maintainer: Chris Godbout <chris@mathologist.net> Stability: experimental Portability: portable -} module TestMaker ( fileToDB , shuffleQList , getQuestions , getDatab...
mathologist/hTestMaker
testmaker/src/TestMaker.hs
gpl-3.0
5,974
0
22
1,941
1,693
887
806
131
5
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE ExistentialQuantification #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE FunctionalD...
trehansiddharth/mlsciencebowl
hs/server.hs
gpl-3.0
4,866
314
8
1,095
1,915
1,043
872
101
1
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- ...
fmapfmapfmap/amazonka
amazonka-sns/gen/Network/AWS/SNS/ListSubscriptions.hs
mpl-2.0
5,138
0
15
1,104
747
439
308
86
1
----------------------------------------------------------------------------- -- | -- Module : Control.Comonad.Indexed -- Copyright : (C) 2008 Edward Kmett -- License : BSD-style (see the file LICENSE) -- -- Maintainer : Edward Kmett <ekmett@gmail.com> -- Stability : experimental -- Portability : po...
urska19/MFP---Samodejno-racunanje-dvosmernih-preslikav
Control/Comonad/Indexed.hs
apache-2.0
721
4
10
131
159
90
69
10
1
{-# LANGUAGE CPP #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANG...
AndrewRademacher/stack
src/Stack/Types/StackT.hs
bsd-3-clause
15,566
0
24
4,618
3,520
1,795
1,725
339
7
module Geometry.Point ( Rect, Polar , Point , magPoint , argPoint , normaliseAngle , polarOfRectPoint , genPointsUniform , genPointsUniformWithSeed) where import qualified Points2D.Generate as P import qualified Data.Vector.Unboxed as V import Data.Vector.Unboxed (Vector) -- | Coordinate system. data Rect da...
mainland/dph
dph-examples/broken/Visibility/Geometry/Point.hs
bsd-3-clause
1,494
33
11
310
494
270
224
-1
-1
{- (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1993-1998 This module defines interface types and binders -} {-# LANGUAGE CPP, FlexibleInstances, BangPatterns #-} {-# LANGUAGE MultiWayIf #-} -- FlexibleInstances for Binary (DefMethSpec IfaceType) module IfaceType ( ...
shlevy/ghc
compiler/iface/IfaceType.hs
bsd-3-clause
54,737
2
17
15,899
13,432
6,684
6,748
1,007
32
{-# LANGUAGE Haskell98 #-} {-# LINE 1 "src/Data/Version/Compat.hs" #-} {-# LANGUAGE CPP, NoImplicitPrelude #-} module Data.Version.Compat ( module Base , makeVersion ) where import Data.Version as Base
phischu/fragnix
tests/packages/scotty/Data.Version.Compat.hs
bsd-3-clause
254
0
4
79
26
19
7
7
0
module SDL.Raw.Event ( -- * Event Handling addEventWatch, delEventWatch, eventState, filterEvents, flushEvent, flushEvents, getEventFilter, getNumTouchDevices, getNumTouchFingers, getTouchDevice, getTouchFinger, hasEvent, hasEvents, loadDollarTemplates, peepEvents, pollEvent, pumpEve...
dalaing/sdl2
src/SDL/Raw/Event.hs
bsd-3-clause
27,653
0
12
3,834
6,460
3,260
3,200
524
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="ur-PK"> <title>Sequence Scanner | ZAP Extension</title> <maps> <homeID>top</homeID> <ma...
kingthorin/zap-extensions
addOns/sequence/src/main/javahelp/org/zaproxy/zap/extension/sequence/resources/help_ur_PK/helpset_ur_PK.hs
apache-2.0
977
78
66
159
413
209
204
-1
-1
module DerivingEq where import DerivingUtils deriveEq stdnames src t@(_,TypeInfo{constructors=cs}) = do let pv = stdvalue stdnames mod_Prelude HsVar eq <- pv "==" true <- pv "True" false <- pv "False" andand <- pv "&&" let def = if length cs>1 then [alt2 src eq wild wild (ident false...
forste/haReFork
tools/base/transforms/Deriving/DerivingEq.hs
bsd-3-clause
678
7
16
208
318
157
161
21
2
module ShouldCompile where {- | blabla -} main = undefined
siddhanathan/ghc
testsuite/tests/haddock/should_compile_noflag_haddock/haddockC002.hs
bsd-3-clause
61
0
4
12
10
7
3
2
1