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
<?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="sk-SK"> <title>Call Graph</title> <maps> <homeID>callgraph</homeID> <mapref location="m...
thc202/zap-extensions
addOns/callgraph/src/main/javahelp/help_sk_SK/helpset_sk_SK.hs
apache-2.0
961
82
52
156
390
206
184
-1
-1
module A(A(..),akeybc,akeycb) where import B(B) import B(bkeyac) import C(C) import C(ckeyab) data A = A { name :: String } akeybc :: Either B (Maybe C) akeybc = Right Nothing akeycb :: Either C (Maybe B) akeycb = Right Nothing instance Show A where show a = [name a,show bkeyac,show ckeyab]
timjb/protocol-buffers
tests/recursive/test-case/a.hs
apache-2.0
299
0
8
58
148
83
65
12
1
{-# OPTIONS_JHC -fno-prelude #-} module Foreign.Marshal.Array ( -- * Marshalling arrays -- ** Allocation -- mallocArray, -- :: Storable a => Int -> IO (Ptr a) mallocArray0, -- :: Storable a => Int -> IO (Ptr a) allocaArray, -- :: Storable a => Int -> (Ptr a -> IO b) -> IO b allocaArray0, -- :...
m-alvarez/jhc
lib/jhc/Foreign/Marshal/Array.hs
mit
8,565
0
13
2,154
2,098
1,078
1,020
114
2
module Invariant where data F a = F {fx :: a, fy :: a, fzz :: a} | G {fx :: a} {-@ data F a = F {fxx :: a, fy :: a, fz :: a} | G {fxx :: a} @-} {-@ fooG :: x:a -> {v : F a | (fxx v) > x} @-} fooG :: a -> F a fooG x = G x {-@ foo :: x:a -> {v : F a | (fxx v) > x} @-} foo :: a -> F a foo x = F x x x
mightymoose/liquidhaskell
tests/neg/RecSelector.hs
bsd-3-clause
320
0
8
118
96
55
41
6
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="pl-PL"> <title>Quick Start | ZAP Extension</title> <maps> <homeID>top</homeID> <mapref...
ccgreen13/zap-extensions
src/org/zaproxy/zap/extension/quickstart/resources/help_pl_PL/helpset_pl_PL.hs
apache-2.0
974
85
52
160
398
210
188
-1
-1
{-# LANGUAGE GADTs, TypeFamilies, EmptyDataDecls #-} module T2627b where data R a b data W a b data Z type family Dual a type instance Dual Z = Z type instance Dual (R a b) = W a (Dual b) type instance Dual (W a b) = R a (Dual b) data Comm a where Rd :: (a -> Comm b) -> Comm (R a b) Wr :: a -> Comm b -> C...
frantisekfarka/ghc-dsi
testsuite/tests/indexed-types/should_fail/T2627b.hs
bsd-3-clause
473
0
10
131
245
131
114
-1
-1
{-# LANGUAGE OverloadedStrings #-} {-| Module : Npm.Latest Description : Fetch the latest version of an npm module. Copyright : (c) Pascal Hartig, 2014 License : MIT Maintainer : phartig@rdrei.net Stability : experimental Portability : POSIX This is just an experiment of me porting a node module to Haske...
passy/latest-npm-version
Npm/Latest.hs
mit
1,039
0
9
172
149
86
63
16
1
{-# LANGUAGE OverloadedStrings #-} {-| Module: Web.OIDC.Client.Settings Maintainer: krdlab@gmail.com Stability: experimental -} module Web.OIDC.Client.Settings ( OIDC(..) , def , newOIDC , setCredentials ) where import Data.ByteString (ByteString) impo...
krdlab/haskell-oidc-client
src/Web/OIDC/Client/Settings.hs
mit
2,053
0
9
642
304
186
118
43
1
-- | provides methods to see what types of attacks are effective -- against what and what defenses are good against what module TypeComparison (weakDefenseAgainst, strongDefenseAgainst, against, getTypesAccordingTo, typeMap, DamageMult) where import Pokemon import Data.List (union) import qualified Data.Map as M (Map, ...
apella/pokedex
TypeComparison.hs
mit
6,417
0
11
2,728
2,165
1,394
771
131
2
{-| Http Client Driver TODO When making a request, handle the case where the request id is already in use. -} module Urbit.Vere.Http.Client where import Urbit.Prelude hiding (Builder, finally) import Urbit.Vere.Http import Urbit.Vere.Pier.Types import Urbit.King.App import Urbit.Arvo (BlipEv(..), Ev(.....
urbit/urbit
pkg/hs/urbit-king/lib/Urbit/Vere/Http/Client.hs
mit
7,706
0
24
2,168
2,133
1,085
1,048
-1
-1
module Foundation where import Import.NoFoundation hiding (ByteString) import Database.Persist.Sql (ConnectionPool, runSqlPool) import Text.Hamlet (hamletFile) import Text.Jasmine (minifym) import Yesod.Auth.Simple import Yesod.Default.Util (addStaticContentExternal) import Yesod.Core.Types (Log...
vinnymac/glot-www
Foundation.hs
mit
12,452
0
18
3,068
2,512
1,265
1,247
-1
-1
{- Copyright 2012-2015 Vidar Holen This file is part of ShellCheck. http://www.vidarholen.net/contents/shellcheck ShellCheck 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...
coolhacks/scripts-hacks
examples/shellcheck-master/shellcheck.hs
mit
9,650
0
17
2,812
2,506
1,257
1,249
232
7
module Foundation where import Import.NoFoundation import Database.Persist.Sql (ConnectionPool, runSqlPool) import Text.Hamlet (hamletFile) import Text.Jasmine (minifym) import Yesod.Default.Util (addStaticContentExternal) import Yesod.Core.Types (Logger) import qualified Yesod.Core.Unsafe as Un...
thoughtbot/carnival
Foundation.hs
mit
7,735
0
16
1,759
1,198
631
567
-1
-1
module Rebase.System.Console.GetOpt ( module System.Console.GetOpt ) where import System.Console.GetOpt
nikita-volkov/rebase
library/Rebase/System/Console/GetOpt.hs
mit
107
0
5
12
23
16
7
4
0
import Text.Printf import Control.Monad import Algorithms.MDP import Algorithms.MDP.CTMDP import Algorithms.MDP.ValueIteration import Algorithms.MDP.Examples.MM1 printErrors :: MDP State Action Double -> Double -> IO () printErrors mdp tol = case verifyStochastic mdp tol of Left er -> do mapM_ (putStrLn . show)...
prsteele/mdp
src/run-mm1.hs
mit
1,494
0
12
350
535
273
262
47
2
import qualified Data.ByteString.Lazy as L import qualified Data.ByteString as S import Data.Digest.Pure.MD4 import System.Environment import Numeric import Control.Monad import Control.Arrow main = getArgs >>= \ args -> forM_ args $ \ path -> do bs <- L.readFile path putStr path putChar '\t' ...
mfeyg/md4
md4.hs
mit
445
0
17
131
150
79
71
15
1
-- |Netrium is Copyright Anthony Waite, Dave Hewett, Shaun Laurens & Contributors 2009-2018, and files herein are licensed -- |under the MIT license, the text of which can be found in license.txt -- -- Module for common types and functions module Common where import Prelude hiding (and, or, min, max, abs, negate, not...
netrium/Netrium
share/Common.hs
mit
17,551
0
16
4,354
3,473
1,883
1,590
252
2
module Accumulate where accumulate :: (a -> a1) -> [a] -> [a1] accumulate _ [] = [] accumulate f (x:xs) = f x : accumulate f xs
tonyfischetti/exercism
haskell/accumulate/Accumulate.hs
mit
129
0
7
28
73
39
34
4
1
{-# LANGUAGE JavaScriptFFI #-} -- | FIXME: doc module GHCJS.Electron.WebFrame where
taktoa/ghcjs-electron
src/GHCJS/Electron/WebFrame.hs
mit
85
0
3
12
9
7
2
2
0
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE UnicodeSyntax #-} import Data.ByteString (readFile) import Data.List (intercalate) import Data.Map.Strict hiding (map) import qualified Data.Set as S import Debug.Trace import qualified ...
loskutov/logic-hw
TT6/Main.hs
mit
2,516
5
17
672
1,050
551
499
56
2
import System.Environment(getArgs) placeQueens :: [Integer] -> [Integer] -> [[Integer]] placeQueens placed [] = [placed] placeQueens placed remaining = let f placed choice remaining | illegalChoice placed choice = [] | otherwise = (placeQueens (choice:placed) remaining) in foldl1 (++) $ zipWith (f place...
teodorlu/ballmer
queens.hs
gpl-2.0
877
6
13
162
375
196
179
19
1
{-# LANGUAGE OverloadedStrings #-} module Process (readProcess, readProcess', readProcess'') where ------------------------------------------------------------------------------------ import qualified Control.Exception.Lifted as E import Control.Monad.IO.Class (MonadIO, liftIO) import Data.Text ...
da-x/autofix-ghc
lib/Process.hs
gpl-2.0
1,399
0
13
271
366
200
166
23
2
{-# OPTIONS_GHC -Wall -fwarn-tabs -Werror #-} ------------------------------------------------------------------------------- -- | -- Module : Window.GLUT -- Copyright : Copyright (c) 2014 Michael R. Shannon -- License : GPLv2 or Later -- Maintainer : mrshannon.aerospace@gmail.com -- Stability : uns...
mrshannon/trees
src/Window/GLUT.hs
gpl-2.0
1,017
0
12
203
168
101
67
14
1
module Command.Monad ( MonadCommand(..) , CSTM , runCSTM , throwSTM , CM , runCM , log , setPaused , setSpeed , atomically , newStdGen , module Control.Concurrent.STM , module Control.Monad.STM.Class , module System.Random ) where import Control.Concurrent.STM hiding (atomically, throwST...
ktvoelker/airline
src/Command/Monad.hs
gpl-3.0
2,959
0
14
609
991
520
471
-1
-1
-- Hshuf, a haskell implementation of GNU shuf. module Main where import System.Environment import System.Console.Terminfo.Base --import Data.List import GnUtils main :: IO () main = do term <- setupTermFromEnv args <- getArgs let shuf = ProgramData { appName = "Hshuf" , appHelp = (shufAppHelpPre,shufAppH...
PuZZleDucK/Hls
Hshuf.hs
gpl-3.0
5,486
1
14
1,002
1,139
611
528
120
3
{-# LANGUAGE DeriveAnyClass , UndecidableInstances , FlexibleInstances , MultiParamTypeClasses #-} module Text.Shaun.Sweeper ( SweeperT , Sweeper , to , getTo , at , getAt , back , get , set , withSweeperT , withSweeper , path , getPath , top , peek , modify ) where import ...
Shumush/SNIHs
src/Text/Shaun/Sweeper.hs
gpl-3.0
5,731
0
14
1,297
2,224
1,195
1,029
123
3
module Carbon.Backend.User where import Control.Monad import Control.Monad.IO.Class (liftIO) import qualified Data.Maybe as Maybe import Carbon.Backend.DSL import Carbon.Data import qualified Carbon.Data.Hash as Hash import qualified Carbon.Data.Salt as Salt {-| This function ensures that an admin user and Nobody ...
runjak/carbon-adf
Carbon/Backend/User.hs
gpl-3.0
806
0
15
158
200
110
90
19
1
start = "sibling" : -- comment ["commented"]
evolutics/haskell-formatter
testsuite/resources/source/comments/indentation/inherits_indentation_of_merged_line/actual_code_between_start_and_commented/Input.hs
gpl-3.0
59
1
6
21
17
8
9
3
1
module Database.Design.Ampersand.Prototype.Installer (installerDBstruct,installerDefPop, createTablesPHP,populateTablesPHP) where import Database.Design.Ampersand import Database.Design.Ampersand.Prototype.ProtoUtil import Database.Design.Ampersand.Prototype.PHP installerDBstruct :: FSpec -> String installerDBst...
4ZP6Capstone2015/ampersand
src/Database/Design/Ampersand/Prototype/Installer.hs
gpl-3.0
3,391
0
18
940
312
204
108
58
1
module Main where import System.Environment main :: IO () main = do putStrLn "please a name: " line <- getLine putStrLn ("the name is: " ++ line)
lifengsun/haskell-exercise
scheme/01/ex-3.hs
gpl-3.0
153
0
9
34
50
25
25
7
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
dysinger/amazonka
amazonka-codedeploy/gen/Network/AWS/CodeDeploy/BatchGetApplications.hs
mpl-2.0
4,381
6
11
830
557
326
231
66
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/Schemas/Insert.hs
mpl-2.0
3,044
0
15
721
390
234
156
62
1
{- Copyright (C) 2009 Andrejs Sisojevs <andrejs.sisojevs@nextmail.ru> All rights reserved. For license and copyright information, see the file COPYRIGHT -} -------------------------------------------------------------------------- -------------------------------------------------------------------------- {-# LANGUA...
Andrey-Sisoyev/haskell-PCLT
examples/HelloWorld/HelloWorld.hs
lgpl-2.1
32,257
0
27
13,076
3,601
2,009
1,592
307
8
{-# LANGUAGE OverloadedStrings #-} module Graphics.Model.MikuMikuDance.Loader where import Control.Applicative import Control.Monad import Data.Int import Data.Bits import Data.Pack import Data.Packer import qualified Data.ByteString as B import Graphics.Model.MikuMikuDance.Types import Linear import Unsafe.Coerce impo...
capsjac/3dmodels
Graphics/Model/MikuMikuDance/Loader.hs
lgpl-3.0
18,276
260
28
3,717
5,589
2,775
2,814
446
25
{-# LANGUAGE InstanceSigs #-} module Twinplicative where import Prelude hiding (Either, Left, Right) newtype Compose f g a = Compose { getCompose :: f (g a) } deriving (Eq, Show) instance (Functor f, Functor g) => Functor (Compose f g) where fmap f (Compose fga) = Compose $ (fma...
dmvianna/haskellbook
src/Ch25-Twinplicative.hs
unlicense
2,877
0
11
943
1,454
738
716
77
0
module Problem001 where main = print $ sum' 1000 sum' :: (Integral a) => a -> a sum' m = f 3 + f 5 - f 15 where f x = x * n * (n + 1) `quot` 2 where n = (m - 1) `quot` x
vasily-kartashov/playground
euler/problem-001.hs
apache-2.0
207
0
11
86
110
59
51
7
1
-- Copyright 2018 Google LLC -- -- 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 -- -- https://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in w...
google/cabal2bazel
src/Google/Utils/Monad.hs
apache-2.0
742
0
12
137
95
54
41
4
1
module Handler.Image where import Import import Data.Text (unpack) getImageR :: FilePath' -> Handler RepHtml getImageR (FilePath' fp) = sendFile "image/jpeg" $ unpack fp
snoyberg/photosorter
Handler/Image.hs
bsd-2-clause
172
0
7
25
55
29
26
5
1
{-# LANGUAGE CPP #-} module Text.PrettyPrint.Leijen {-# DEPRECATED "Compatibility module for users of wl-pprint - use \"Prettyprinter\" instead" #-} ( Doc, putDoc, hPutDoc, empty, char, text, (<>), nest, line, linebreak, group, softline, softbreak, align, hang, indent, encloseSep, list, tupled, semiBraces...
quchen/prettyprinter
prettyprinter-compat-wl-pprint/src/Text/PrettyPrint/Leijen.hs
bsd-2-clause
4,391
0
10
837
1,534
932
602
137
1
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QColormap.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:36 Warning : this file is machine generated - do not...
keera-studios/hsQt
Qtc/Enums/Gui/QColormap.hs
bsd-2-clause
2,461
0
18
532
612
313
299
55
1
{-# LANGUAGE GADTs #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE StandaloneDeriving #-} module Math.CF.Internal where import Data.Maybe (fromMaybe, listToMaybe) import Data.List (intersperse) import Data.Ratio import Data.Semigroup data CF a = Integral a => CF [a] deriving instan...
relrod/cfplayground
src/Math/CF/Internal.hs
bsd-2-clause
1,717
0
14
432
673
355
318
-1
-1
{-# OPTIONS_GHC -fno-warn-orphans #-} module Application ( makeApplication , getApplicationDev , makeFoundation ) where import Import import Settings import Yesod.Auth import Yesod.Default.Config import Yesod.Default.Main import Yesod.Default.Handlers import Network.Wai.Middleware.RequestLogger (logStd...
tlaitinen/yesod-datatables
example/Application.hs
bsd-2-clause
2,094
0
11
393
367
202
165
-1
-1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} -- | -- -- Utility for formatting @'Idea'@ data in accordance with the Code Climate -- spec: <https://github.com/codeclimate/spec> -- module CC ( printIssue , fromIdea ) where import Data.Aeson (ToJSON(..), (.=), encode, object) import Dat...
ndmitchell/hlint
src/CC.hs
bsd-3-clause
3,931
0
12
1,074
908
515
393
99
6
module Distribution.MacOSX.Common where import Data.List import System.FilePath import System.Directory -- | Mac OSX application information. data MacApp = MacApp { -- | Application name. This should be the name of the executable -- produced by Cabal's build stage. The app bundle produced will be -- @dist\/bu...
soenkehahn/cabal-macosx
Distribution/MacOSX/Common.hs
bsd-3-clause
7,077
0
14
1,438
633
379
254
59
5
module Main where import Data.Monoid import Options.Applicative.Simple import Statistics import Convert -- | Helper for lifting pure parsing functions into ReadM monad readMPure :: String -- ^ Name of argument for pretty error message -> (String -> Maybe a) -- ^ Function that parses the argument -> ReadM a -- ^ ...
NCrashed/JuicyPixels-blp
blp2any/Main.hs
bsd-3-clause
2,757
0
23
534
589
283
306
37
2
module Data.Interface.Module ( -- * ModuleInterface ModuleInterface(..) , ModuleName , ExportName , ClassInstance(..) , makeModuleInterface , isLocal , findExport , unsafeFindExport -- , lookupOrigin , filterInterfaceNames -- ** Exports , Export , ExportElem , compileModuleExports , split...
cdxr/haskell-interface
src/Data/Interface/Module.hs
bsd-3-clause
658
0
5
107
128
89
39
23
0
-- Run tests using the TCP transport. module Main where import TEST_SUITE_MODULE (tests) import Network.Transport.Test (TestTransport(..)) import Network.Transport.InMemory import Test.Framework (defaultMainWithArgs) import System.Environment (getArgs) main :: IO () main = do (transport, internals) <- createTr...
haskell-distributed/distributed-process
distributed-process-tests/tests/runInMemory.hs
bsd-3-clause
1,089
0
12
214
157
92
65
14
1
{-# LANGUAGE FlexibleContexts, QuasiQuotes #-} module Main where import Control.Applicative ((<$>)) import Control.Monad (forM_, when) import Data.Word import Data.Sequence (iterateN) import Data.Array.Repa (computeP, traverse, Z(..), (:.)(..), Array, U, DIM0, DIM1, DIM2, DIM3, (!), sumAllP, Source(..)) import Da...
carlohamalainen/hminc
examples/example1.hs
bsd-3-clause
8,808
0
17
3,222
2,194
1,141
1,053
134
3
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE LiberalTypeSynonyms #-} module LuaObjects(module LuaObjects) where import qualified Data.Map.Strict as Map import qualified Data.IntMap.Strict as IntMap import qualified Data.Vector.Mutable as MV import qualified Data.Vector as V import qualified Data.Vector.Unboxed as...
AndreasPK/yalvm
src/LuaObjects.hs
bsd-3-clause
14,075
0
17
2,672
4,059
2,086
1,973
308
1
{-# LANGUAGE OverloadedStrings #-} module Data.Aeson.Forms.Combinators ( -- * Working with forms Form , Result (..) , runForm , withForm , runAction -- * Form fields , (.:) , (.:!) , (.:?) , (>->) -- * Validators , text , string , int , integer ...
lukerandall/aeson-forms
src/Data/Aeson/Forms/Combinators.hs
bsd-3-clause
10,634
0
13
2,459
1,929
1,039
890
177
3
module Main where import Ivory.Tower.Config import Ivory.OS.FreeRTOS.Tower.STM32 import LDrive.Platforms import LDrive.Tests.PWM (app) main :: IO () main = compileTowerSTM32FreeRTOS testplatform_stm32 p $ app (stm32config_clock . testplatform_stm32) testplatform_pwm testplatform_leds...
sorki/odrive
test/PWMTest.hs
bsd-3-clause
376
0
8
75
87
49
38
11
1
{-# Language PolyKinds, DataKinds, TemplateHaskell, TypeFamilies, GADTs, TypeOperators, RankNTypes, FlexibleContexts, UndecidableInstances, FlexibleInstances, ScopedTypeVariables, MultiParamTypeClasses, OverlappingInstances, KindSignatures, DeriveDataTypeable #-} module Oxymoron.Description.Symbol where imp...
jfischoff/oxymoron
src/Oxymoron/Description/Symbol.hs
bsd-3-clause
20,139
0
10
6,780
138
74
64
723
1
{-# LANGUAGE OverloadedStrings #-} import Control.Applicative ((<$>)) import Control.Monad (mzero) import Data.Aeson import qualified Data.ByteString.Lazy.Char8 as L import Data.Text (Text) import Network.Riak import Snap....
hdgarrood/snugio
examples/RiakResource.hs
bsd-3-clause
1,345
0
9
404
308
169
139
30
1
{-# OPTIONS_GHC -Wall #-} module Homework.C.Golf where -- Exercise 1 Hopscotch skips :: [a] -> [[a]] skips xs = let indexed = zip [1..length xs] xs build (i, _) = filter (\(j, _) -> j `mod` i == 0) indexed extract built = map snd built in map (extract . build) indexed -- Exercise 2 Local maxima loca...
nicolashery/cis194
src/Homework/C/Golf.hs
bsd-3-clause
1,701
0
16
433
500
275
225
25
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 OverloadedStrings #-} module Duckling.AmountOfMoney.CA.Corpus ( corpus ) where import Data.Str...
facebookincubator/duckling
Duckling/AmountOfMoney/CA/Corpus.hs
bsd-3-clause
2,234
0
10
976
412
240
172
64
1
{-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-missing-signatures -fno-warn-orphans #-} module ChainedModelTests where import TestHarness () import Test.Tasty.TH --import Test.Tasty.QuickCheck as QC import Test.Tasty.HUnit import Model import Evidence import Observations chained_model_test_group = $(t...
jcberentsen/causality
tests/ChainedModelTests.hs
bsd-3-clause
1,208
0
11
156
246
139
107
25
1
module Cloud.AWS.EC2.Types.AvailabilityZone ( AvailabilityZone(..) , AvailabilityZoneMessage ) where import Data.Text (Text) data AvailabilityZone = AvailabilityZone { zoneName :: Text , zoneState :: Text , zoneRegionName :: Text , zoneMessageSet :: [AvailabilityZoneMessage] } derivi...
worksap-ate/aws-sdk
Cloud/AWS/EC2/Types/AvailabilityZone.hs
bsd-3-clause
377
0
9
77
88
56
32
11
0
{-# LANGUAGE RecursiveDo #-} module Main where import Reflex import Reflex.Gloss.Scene import Reflex.Monad.Time import Reflex.Animation import Reflex.Monad import Graphics.Gloss import Widgets renderCanvas :: Vector -> [Picture] -> Picture renderCanvas (sx, sy) drawings = mconcat [ color black $ rectangleWir...
Saulzar/scribble
src/Scribble1.hs
bsd-3-clause
774
0
10
169
256
135
121
24
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE LambdaCase #-} module Data.ECS.Entity where import Control.Lens.Extra import Control.Monad.State import Control.Monad.Reader import Control.Monad.Trans.Control import System.Random import Data.ECS.Types impo...
lukexi/extensible-ecs
src/Data/ECS/Entity.hs
bsd-3-clause
2,681
0
11
488
742
376
366
51
1
{-# LANGUAGE NoMonomorphismRestriction #-} module Distribution.OSX.InstallerScript ( installerScript , writeInstallerScript , installerScriptToString , InstallerScript ) where import Data.Maybe import Distribution.PackageDescription.Configuration import Text.XML.HXT.Arrow -------------------------------------------...
gregorycollins/cabal2macpkg
Distribution/OSX/InstallerScript.hs
bsd-3-clause
7,179
0
13
1,965
1,416
765
651
105
1
{-# LANGUAGE CPP #-} #ifdef MainCall #else {-# LANGUAGE KindSignatures #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE DeriveTraversable #-}...
nikivazou/verified_string_matching
src/AutoProofs/MonoidEmptyLeft.hs
bsd-3-clause
2,102
0
13
477
164
92
72
25
1
module Data.Generics.Bifixplate ( module Data.Generics.Bifixplate.Base ) where import Data.Generics.Bifixplate.Base
hyPiRion/bifixplate
src/Data/Generics/Bifixplate.hs
bsd-3-clause
138
0
5
31
24
17
7
3
0
----------------------------------------------------------------------------- -- -- Argument representations used in GHC.StgToCmm.Layout. -- -- (c) The University of Glasgow 2013 -- ----------------------------------------------------------------------------- module GHC.StgToCmm.ArgRep ( ArgRep(..), toArgRep, ...
sdiehl/ghc
compiler/GHC/StgToCmm/ArgRep.hs
bsd-3-clause
6,086
0
12
1,613
1,216
686
530
90
4
{-# LANGUAGE RecordWildCards #-} module Utils( fromRight , substr , toStrict , toLazy , diff , debug , formatTable , maxDuplicate , xattrRaw , xattr ) where import Blaze.ByteString.Builder.Char.Utf8 import Control.Monad import qualified Data.ByteString as B i...
guilt/webify
src/Utils.hs
mit
1,917
0
16
524
686
367
319
51
1
-- | Web-related part of cardano-sl. module Pos.Web ( module Pos.Web.Api , module Pos.Web.Mode , module Pos.Web.Server , module Pos.Web.Types ) where import Pos.Web.Api import Pos.Web.Mode import Pos.Web.Server import Pos.Web.Types
input-output-hk/pos-haskell-prototype
lib/src/Pos/Web.hs
mit
309
0
5
107
61
42
19
9
0
module Fun.Check where -- $Id$ import Condition import qualified Autolib.Reporter.Checker as C import Fun.Type import qualified RAM.Builtin import qualified Machine.Numerical.Config as NC import Autolib.Reporter import Autolib.ToDoc import Autolib.Set instance NC.Check Property Fun where check ( Builtins al...
florianpilz/autotool
src/Fun/Check.hs
gpl-2.0
3,675
32
19
1,126
1,216
602
614
-1
-1
{-# LANGUAGE Safe #-} -- | A vector clock implementation. -- -- This module re-exports "Data.VectorClock.Simple", which is the -- fully-featured vector clock library. If you wish to use -- approximate vector clocks, which are significantly smaller and have -- bounded size, but are not exact, use "Data.VectorClock.App...
tkonolige/vector-clock
src/Data/VectorClock.hs
gpl-3.0
612
0
5
103
33
26
7
4
0
{-#LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-} module Carnap.Languages.PureFirstOrder.Logic.Carnap (FOLogic(..), parseFOLogic, folCalc) where import Data.Map as M (lookup, Map,empty) import Text.Parsec import Carnap.Core.Unification.Unification (applySub) import Carnap.Core.Da...
opentower/carnap
Carnap/src/Carnap/Languages/PureFirstOrder/Logic/Carnap.hs
gpl-3.0
5,724
0
20
1,840
1,619
849
770
106
2
module Llvm.Asm (module Llvm.Asm.Data ,module Llvm.Asm.Parser ,module Llvm.Asm.Simplification )where import Llvm.Asm.Data import Llvm.Asm.Parser import Llvm.Asm.Printer.LlvmPrint import Llvm.Asm.Simplification
mlite/hLLVM
src/Llvm/Asm.hs
bsd-3-clause
258
0
5
65
54
37
17
7
0
----------------------------------------------------------------------------- -- | -- Module : Distribution.Simple.Program -- Copyright : Isaac Jones 2006, Duncan Coutts 2007-2009 -- -- Maintainer : cabal-devel@haskell.org -- Portability : portable -- -- This provides an abstraction which deals with configu...
randen/cabal
Cabal/Distribution/Simple/Program.hs
bsd-3-clause
7,502
0
10
1,753
897
543
354
146
2
module Type.Constrain.Expression where import Control.Applicative ((<$>)) import qualified Control.Monad as Monad import Control.Monad.Error import qualified Data.List as List import qualified Data.Map as Map import qualified Text.PrettyPrint as PP import AST.Literal as Lit import AST.Annotation as Ann import AST.Exp...
JoeyEremondi/utrecht-apa-p1
src/Type/Constrain/Expression.hs
bsd-3-clause
9,071
0
27
3,451
3,149
1,576
1,573
191
20
import Graphics.UI.Gtk import Graphics.Rendering.Cairo main :: IO () main= do initGUI window <- windowNew set window [windowTitle := "Hello Cairo", windowDefaultWidth := 300, windowDefaultHeight := 200, containerBorderWidth := 30 ] frame <- frameNew container...
k0001/gtk2hs
docs/tutorial/Tutorial_Port/Example_Code/GtkApp1a.hs
gpl-3.0
851
1
14
259
251
111
140
29
1
{-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} -- From http://www.reddit.com/r/haskell/comments/8ereh/a_here_document_syntax/ -- copyright unknown? module HereDoc (heredoc) where import Language.Haskell.TH.Quote import Language.Haskell.TH.Syntax import Language.Haskell.TH.Lib heredoc :: QuasiQuoter her...
jtdaugherty/vty
test/HereDoc.hs
bsd-3-clause
393
0
7
40
67
43
24
8
1
--------------------------------------------------------- -- The main program for the hpc-report tool, part of HPC. -- Colin Runciman and Andy Gill, June 2006 --------------------------------------------------------- module HpcReport (report_plugin) where import Prelude hiding (exp) import Data.List(sort,intersperse,...
nomeata/ghc
utils/hpc/HpcReport.hs
bsd-3-clause
9,744
16
16
2,623
3,458
1,796
1,662
237
9
{-# LANGUAGE OverloadedStrings, RecordWildCards #-} import qualified Data.Map as M import Data.Map ((!)) import Control.Monad import Data.Yaml import Data.Aeson.Types (withObject) import System.FilePath import ConvertAeson import Examples import Entry main = do Examples {..} <- readExamples "../examples" ana...
psibi/incredible
logic/tests/update-tests.hs
mit
1,009
1
17
225
331
166
165
24
2
<?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="ro-RO"> <title>Active Scan Rules | ZAP Extension</title> <maps> <homeID>top</homeID> <m...
thc202/zap-extensions
addOns/ascanrules/src/main/javahelp/org/zaproxy/zap/extension/ascanrules/resources/help_ro_RO/helpset_ro_RO.hs
apache-2.0
978
83
52
160
398
210
188
-1
-1
----------------------------------------------------------------------------- -- | -- Module : XMonad.Actions.WorkspaceNames -- Copyright : (c) Tomas Janousek <tomi@nomi.cz> -- License : BSD3-style (see LICENSE) -- -- Maintainer : Tomas Janousek <tomi@nomi.cz> -- Stability : experimental -- Portabili...
pjones/xmonad-test
vendor/xmonad-contrib/XMonad/Actions/WorkspaceNames.hs
bsd-2-clause
6,064
0
13
1,304
1,141
616
525
85
2
{-# LANGUAGE PatternGuards #-} {-# OPTIONS_GHC -fwarn-incomplete-patterns #-} -- | Reduction to Weak Head Normal Form module Idris.Core.WHNF(whnf, WEnv) where import Idris.Core.TT import Idris.Core.CaseTree import Idris.Core.Evaluate hiding (quote) import qualified Idris.Core.Evaluate as Evaluate import Debug.Trace...
adnelson/Idris-dev
src/Idris/Core/WHNF.hs
bsd-3-clause
8,413
0
17
3,011
3,364
1,708
1,656
161
41
import System.Process (readProcessWithExitCode) import System.Exit (ExitCode(ExitSuccess)) import System.IO.Unsafe (unsafeInterleaveIO) import Utils (stringsFromStatus, Hash(MkHash)) import Data.Maybe (fromMaybe) {- Git commands -} successOrNothing :: (ExitCode, a, b) -> Maybe a successOrNothing (exitCode, output, _...
Bryan792/dotfiles
zsh/zsh-git-prompt/src/app/Main.hs
mit
1,058
5
16
180
349
180
169
28
2
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE NoImplicitPrelude , RecordWildCards , BangPatterns , PatternGuards , NondecreasingIndentation , Rank2Types #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} {-# OPTIONS_HADDOCK ...
mightymoose/liquidhaskell
benchmarks/ghc-7.4.1/IO/Handle/Internals.hs
bsd-3-clause
34,050
0
23
8,279
6,704
3,384
3,320
537
6
{-# LANGUAGE OverloadedStrings #-} -- | <http://strava.github.io/api/v3/efforts/> module Strive.Types.Efforts ( EffortDetailed (..) ) where import Control.Applicative (empty) import Data.Aeson (FromJSON, Value (Object), parseJSON, (.:), (.:?)) import Data.Text (Text) import Data.Time.Clock (UTCTime) import Strive...
liskin/strive
library/Strive/Types/Efforts.hs
mit
2,149
0
47
499
472
274
198
54
0
{-# LANGUAGE ScopedTypeVariables #-} import Control.Monad (mapM_) import Data.Text (Text) import qualified Data.Text as Text import qualified Data.Text.IO as IO import Text.Parsec import Text.Parsec.Text data CompressedText = Uncompressed Int | Compressed Text Int deriving (Eq) main = do input <- Compressed ...
SamirTalwar/advent-of-code
2016/AOC_09_2.hs
mit
1,124
1
13
217
353
176
177
29
1
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE FlexibleContexts #-} module Cenary.Codegen.CodegenM where import Cenary.Codegen.CodegenError import Cenary.Codegen.CodegenState import Cenary.Codegen.ContextM import Cenary.Codegen.Memory import ...
yigitozkavci/ivy
src/Cenary/Codegen/CodegenM.hs
mit
687
0
6
158
113
70
43
13
0
module TruthTable.Printing (PrintConfig(..), printM, printTruthTable, printWithDefaultConfig, printResultOrErrorWithDefaultConfig ) where import TruthTable.Types -- there's no reason to be Lazy when printing (we discard results right -- after anyway) and String generates a lot of thunks import Control.Monad.State.Stri...
tjakway/truth-table-generator
src/TruthTable/Printing.hs
mit
4,957
0
16
1,528
1,076
570
506
88
3
{- | Module : Xcode.CompilerSpec License : MIT Maintainer : shea@shealevy.com Stability : unstable Portability : portable A compiler specification -} module Xcode.CompilerSpec ( CompilerSpec( .. ) ) where -- | A compiler specification -- Compilers will be added as they are found data Compil...
shlevy/xcode-types
src/Xcode/CompilerSpec.hs
mit
340
1
5
78
23
17
6
-1
-1
{-# LANGUAGE PackageImports #-} {-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-} -- | Reexports "Control.Monad.ST.Unsafe.Compat" -- from a globally unique namespace. module Control.Monad.ST.Unsafe.Compat.Repl ( module Control.Monad.ST.Unsafe.Compat ) where import "this" Control.Monad.ST.Unsafe.Com...
haskell-compat/base-compat
base-compat/src/Control/Monad/ST/Unsafe/Compat/Repl.hs
mit
324
0
5
31
34
27
7
5
0
{- 1000-digit Fibonacci number Problem 25 The Fibonacci sequence is defined by the recurrence relation: Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1. Hence the first 12 terms will be: F1 = 1 F2 = 1 F3 = 2 F4 = 3 F5 = 5 F6 = 8 F7 = 13 F8 = 21 F9 = 34 F10 = 55 F11 = 89 F12 = 144 The 12th term, F12, is the first term to co...
feliposz/project-euler-solutions
haskell/euler25.hs
mit
970
0
13
225
199
107
92
7
1
{-| Module : FRP.AST.Construct Description : Helper functions to construct ASTs by hand -} module FRP.AST.Construct where import FRP.AST tmfst :: EvalTerm -> EvalTerm tmfst = TmFst () tmsnd :: EvalTerm -> EvalTerm tmsnd = TmSnd () tmtup :: EvalTerm -> EvalTerm -> EvalTerm tmtup = TmTup () tminl :: E...
adamschoenemann/simple-frp
src/FRP/AST/Construct.hs
mit
2,677
0
8
566
1,136
606
530
91
1
module Network.JSONApi.ResourceSpec where import qualified Data.Aeson as AE import qualified Data.ByteString.Lazy.Char8 as BS import Data.Maybe (isJust, fromJust) import Data.Text (Text, pack) import GHC.Generics (Generic) import Network.JSONApi import Network.URL (URL, importURL) import TestHelpers (prettyEncode) imp...
toddmohney/json-api
test/Network/JSONApi/ResourceSpec.hs
mit
2,296
0
14
398
587
317
270
64
1
module Main where import qualified Data.Aeson as Aeson import qualified Data.ByteString.Lazy as B (readFile) import Data.List (maximumBy) import qualified Data.Map.Strict as Map import Prelude hiding (read) import System.Environment (getArgs) impor...
range12/there-is-no-B-side
tools/encoder/Encoder.hs
mit
3,228
0
18
896
1,091
547
544
67
2
{-# htermination (^^) :: Fractional a => a -> Int -> a #-}
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/Prelude_CARETCARET_1.hs
mit
59
0
2
13
3
2
1
1
0
module PrettyJSON ( renderJValue ) where import Numeric (showHex) import Data.Char (ord) import Data.Bits (shiftR, (.&.)) import Prettify(Doc, (<>), char, double, fsep, hcat, punctuate, text, compact, pretty) import SimpleJSON(JValue(..)) renderJValue :: JValue -> Doc renderJValue (JBool...
Bolt64/my_code
haskell/myprecious/PrettyJSON.hs
mit
1,869
0
12
540
744
383
361
49
2
module Test.Framework.Providers.QuickCheck2 where import Test.QuickCheck import Test.Hspec.Core.Spec import Test.Framework.Providers.API testProperty :: Testable a => TestName -> a -> Test testProperty name = specItem name . property
sol/hspec-test-framework
src/Test/Framework/Providers/QuickCheck2.hs
mit
267
0
7
59
62
36
26
6
1
-- Make a spiral -- http://www.codewars.com/kata/534e01fbbb17187c7e0000c6/ module Spiral where spiralize :: Int -> [[Int]] spiralize n | n == 5 = [[1,1,1,1,1],[0,0,0,0,1],[1,1,1,0,1],[1,0,0,0,1],[1,1,1,1,1]] | n == 6 = [[1,1,1,1,1,1],[0,0,0,0,0,1],[1,1,1,1,0,1],[1,0,0,1,0,1],[1,0,0,0,0,1],[1,1,1,1,1,1]] ...
gafiatulin/codewars
src/3 kyu/Spiral.hs
mit
559
1
12
137
395
240
155
8
1
{- applyinhg Key and copy texture without scaling -} {-# LANGUAGE OverloadedStrings #-} module Lesson10 where -- import qualified SDL -- import Data.Word (Word8(..)) import Linear.Affine (Point(..)) import Linear.V2 (V2(..)) import Linear.V4 (V4(..)) import Foreign.C.Types (CInt) -- import Control.Monad (unless) -- imp...
rueshyna/sdl2-examples
src/Lesson10.hs
mit
2,648
0
18
601
747
374
373
58
1
{-# LANGUAGE OverloadedStrings #-} -- | Start up screen. Very brief. module View.Starting where import React import React.Lucid import View.Template -- | Start up screen. starting :: Monad m => ReactT state m () starting = div_ (do class_ "starting" centered_ (do img_ (src_ "/static/img/starti...
fpco/stackage-view
client/View/Starting.hs
mit
432
0
17
134
99
49
50
12
1
module CornerPoints.Transpose ( transposeZ, transposeX, transposeY ) where import CornerPoints.CornerPoints import CornerPoints.Points(Point(..), transposeZ) import CornerPoints.Transposable(TransposePoint, transposeX, transposeY, transposeZ) ------------------------------------- transposing cubes/points --------------...
heathweiss/Tricad
src/CornerPoints/Transpose.hs
gpl-2.0
8,988
0
9
2,619
1,602
881
721
103
0
-- GenI surface realiser -- Copyright (C) 2005 Carlos Areces and Eric Kow -- -- 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 ...
kowey/GenI
geni-gui/src/NLP/GenI/GraphvizShowPolarity.hs
gpl-2.0
4,111
0
18
1,164
966
526
440
65
3
module Data.Set.Infix( (∪) , (∩) , (\\) , (∊) , (⊆), (∅), disjointFrom, intersects ) where import Data.Set as Set (∪) :: Ord a => Set a -> Set a -> Set a (∪) = Set.union (∩) :: Ord a => Set a -> Set a -> Set a (∩) = Set.intersection (∊) :: Ord a => a -> Set a -> Bool (∊) = Set.member (⊆) :: Ord a => Set a -> Set a...
bordaigorl/jamesbound
src/Data/Set/Infix.hs
gpl-2.0
571
0
8
134
304
171
133
15
1
module CyclicListFlat where import Prelude hiding (cycle, reverse, take, splitAt, zipWith, and, or, null, repeat) import Control.Applicative import qualified Data.List as List import qualified Control.Monad as Monad data CList a = CList { prfx :: [ a ] , cycl :: [ a ] } data View a = CNil | Cons a (CList a...
gallais/potpourri
haskell/cyclic/CyclicListFlat.hs
gpl-3.0
6,365
0
15
1,972
3,389
1,711
1,678
171
6