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 MultiParamTypeClasses , FunctionalDependencies , NoMonomorphismRestriction , FlexibleInstances , UndecidableInstances #-} module Graphics.Colorful.Colorful where import Control.Applicative((<$>)) import Control.Monad.Random.Class import Data.Fixed (m...
deweyvm/colorful
src/Graphics/Colorful/Colorful.hs
mit
5,184
0
14
1,991
1,590
808
782
145
3
{-# LANGUAGE DataKinds #-} {-# LANGUAGE OverloadedStrings #-} module Main where import Control.Concurrent (threadDelay) import Control.Monad (forever, when, void) import Data.Int (Int64) import Data.Maybe (fromMaybe) import Control.Monad.Trans (liftIO) import qualified Data.Map as M import Data.Te...
dmalikov/loh
examples/scrobbler.hs
mit
2,943
0
23
732
1,001
517
484
68
2
module Probability.Distribution.OnTree where import Probability.Random import BAliPhy.ATModel import Tree import SModel import Bio.Sequence -- for sequence_to_indices import Bio.Alignment import Bio.Alphabet -- for type Alphabet import Data.Matrix -- FIXME: need polymorphism. -- This needs to be after weighte...
bredelings/BAli-Phy
haskell/Probability/Distribution/OnTree.hs
gpl-2.0
6,620
0
17
2,026
1,323
652
671
131
5
module Main where import System.Environment import qualified Server as S import qualified Network.Socket as S import HTTPWorker import Proxy import ProxyAuth import Data.Default.Class import Data.Maybe import System.Exit import Control.Monad data Settings = Settings { bindAddress :: String ...
amir-sabbaghi/proxy
app/Main.hs
gpl-3.0
3,350
0
18
1,096
1,076
571
505
71
8
-- Module : Network.Metric.Sink.Graphite -- Copyright : (c) 2012-2015 Brendan Hay <brendan.g.hay@gmail.com> -- License : This Source Code Form is subject to the terms of -- the Mozilla Public License, v. 2.0. -- A copy of the MPL can be found in the LICENSE file or -- ...
brendanhay/network-metrics
src/Network/Metric/Sink/Graphite.hs
mpl-2.0
2,035
0
13
571
536
290
246
37
2
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-libraryagent/gen/Network/Google/Resource/LibraryAgent/Shelves/Books/Borrow.hs
mpl-2.0
4,996
0
15
1,137
703
413
290
102
1
module Main where -- import Graphics.UI.WX import Graphics.UI.WXCore import System.Process main = start gui gui = do f <- frame [text := "Main Window"] icn <-iconCreateDefault tbi <- taskBarIconCreate taskBarIconSetIcon tbi icn "Application Icon" ...
thielema/wxhaskell
samples/wx/TestTaskBarIcon.hs
lgpl-2.1
1,148
0
13
497
296
140
156
25
1
module Main(main) where import Test.Tasty(defaultMain, testGroup) import qualified RPM.Version.Tests main :: IO () main = defaultMain $ testGroup "Tests" [ RPM.Version.Tests.vercmpTests ]
dashea/bdcs
haskell-rpm/tests/Main.hs
lgpl-2.1
204
0
8
38
60
36
24
6
1
module ViperVM.VirtualPlatform.MetaObjects.Matrix where import ViperVM.VirtualPlatform.MetaObject newtype MetaMatrix = MetaMatrix [[MetaObject]]
hsyl20/HViperVM
lib/ViperVM/VirtualPlatform/MetaObjects/Matrix.hs
lgpl-3.0
148
0
7
13
28
19
9
3
0
{-# LANGUAGE TypeOperators #-} import Data.Array.Repa (Z(..), (:.)(..), (!)) import qualified Data.Array.Repa as R -- import Data.List (foldl') main :: IO () main = do let t :: R.Array R.U R.DIM2 Int t = R.fromListUnboxed (Z :. 1024 :. 1024) [x+y | x <- [0..1023], y <- [0..1023]] -- s...
bflyblue/quadtree
trepa.hs
unlicense
711
0
14
224
166
97
69
10
1
{-# LANGUAGE OverloadedStrings #-} --compile with `cabal exec ghc -- examples/DynamicDatabaseContextFunctions.hs -package project-m36` --load with `loaddatabasecontextfunctions "DynamicDatabaseContextFunctions" "someDBCFunctions" "examples/DynamicDatabaseContextFunctions.o"` module DynamicDatabaseContextFunctions where...
agentm/project-m36
examples/DynamicDatabaseContextFunctions.hs
unlicense
1,205
0
22
250
201
113
88
18
1
{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE GADTs #-} module Lycopene.Core.Store ( Change , Volatile , Stored ) where import Lycopene.Core.Stage (Stage(..)) type Change a = a -> a type Modification b = b -> b -- | Operations for store. data Store...
utky/lycopene
src/Lycopene/Core/Store.hs
apache-2.0
629
0
9
140
187
106
81
18
0
{-# LANGUAGE OverloadedStrings #-} module Topical.Text.RegexSpec where import Data.Monoid import Test.Hspec import Topical.Text.Regex spec :: Spec spec = describe "Topical.Text.Regex" $ do let the = "the" them = "the(m)" xyzzy = "xyzzy" describe "replace...
erochest/topical
specs/Topical/Text/RegexSpec.hs
apache-2.0
2,819
0
17
924
461
225
236
53
1
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving #-} -- | -- Module: Network.Riak.JSON -- Copyright: (c) 2011 MailRank, Inc. -- License: Apache -- Maintainer: Bryan O'Sullivan <bos@mailrank.com> -- Stability: experimental -- Portability: portable -- -- This module allows storage and retrieval ...
bumptech/riak-haskell-client
src/Network/Riak/JSON.hs
apache-2.0
4,415
0
15
954
1,070
600
470
62
1
-------------------------------------------------------------------- -- | -- Copyright : (c) Edward Kmett and Dan Doel 2012-2013 -- License : BSD3 -- Maintainer: Edward Kmett <ekmett@gmail.com> -- Stability : experimental -- Portability: non-portable -- ------------------------------------------------------------...
ekmett/ermine
src/Ermine/Console/Completion.hs
bsd-2-clause
1,595
0
13
256
427
234
193
-1
-1
import System.Directory import System.IO (hPutStrLn, stderr) import Options.Applicative import qualified Data.List as L import qualified Data.Map.Strict as M -- import qualified System.IO.Strict as St import NLP.General import NLP.Freq import NLP.Tools percent :: Parser Int percent = option auto (long "percent" ...
RoboNickBot/nlp-tools
src/BuildDB.hs
bsd-2-clause
3,599
0
14
1,224
1,186
622
564
88
1
{-# LANGUAGE TemplateHaskell #-} -------------------------------------------------------------------- -- | -- Copyright : (c) Edward Kmett and Dan Doel 2012-2013 -- License : BSD3 -- Maintainer: Edward Kmett <ekmett@gmail.com> -- Stability : experimental -- Portability: non-portable -- ---------------------------...
ekmett/ermine
src/Ermine/Console/State.hs
bsd-2-clause
983
0
7
147
119
77
42
16
0
-- 51161058134250 nn = 100 -- increasing/decreasing after digit x is related to (n-1) figurate numbers -- where n is the number of digits in the number -- sum over every digit, minus 9 which are both -- sum over all numbers of digits countNonBouncy n = sum [n1 + n2 | x <- [1..9], let n1 = produ...
higgsd/euler
hs/113.hs
bsd-2-clause
532
0
16
145
169
89
80
7
1
{-# LANGUAGE BangPatterns #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TypeFamilies #-} -- necessary for using the Vector instances, -- which we want to get specialized mapM_ etc {-# LANGUAGE OverlappingInstances #-} module Data.Foldable.Mono ( MFoldable (..) ) w...
JohnLato/mono-foldable
src/Data/Foldable/Mono.hs
bsd-3-clause
4,975
0
15
1,468
1,584
854
730
114
1
{-# LANGUAGE ScopedTypeVariables #-} module Tests.P1Tests ( p1Tests ) where import Test.Hspec import Test.QuickCheck import Haskell99Pointfree.P1 import Data.Maybe import Control.Exception import Data.Either p1Tests :: SpecWith () p1Tests = describe "Problem 1: return the last element of a list" $ do descri...
SvenWille/Haskell99Pointfree
test/Tests/P1Tests.hs
bsd-3-clause
2,389
0
18
596
925
464
461
59
2
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} module Common where import Control.Monad import Control.Monad.Free import Control.Monad.Trans.Demarcate import Control.Monad.Trans.Class -- | Instructions for a toy language. data ProgramF next = Output String next -- output something | Inp...
fizruk/demarcate
examples/Common.hs
bsd-3-clause
1,511
0
10
342
477
249
228
33
2
{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TupleSections #-} -- | -- Copyright : (c) 2016 Harendra Kumar -- -- License : BSD-3-Clause -- Maintainer : harendra.kumar@gmail.com -- Stability : experimental -- Portability : GHC -- import Control.Monad (when) import Dat...
harendra-kumar/unicode-transforms
test/NormalizationTest.hs
bsd-3-clause
4,219
0
16
1,359
1,435
784
651
87
3
{-# language ForeignFunctionInterface, CPP #-} -- | This module can be used to get and set -- STICKYKEYS.SKF_HOTKEYACTIVE on windows. -- If set to True, pressing shift five -- times will result in a window popping up -- asking whether to activate the sticky keys -- feature. -- -- On other platforms, all funct...
nikki-and-the-robots/stickyKeysHotKey
src/System/Win32/StickyKeysHotKey.hs
bsd-3-clause
1,601
0
8
320
121
72
49
10
1
module Main ( main ) where import System.Environment (getArgs) import Parser import Render import Controller import Geometry import Environment import SampleInput run s = case parseInput s of Left err -> show err Right parsedInput -> render . runOverallInput $ parsedInput printHelpM...
garethrowlands/marsrover
console/Main.hs
bsd-3-clause
964
0
11
311
181
97
84
25
4
{-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE ScopedTypeVariables #-} {-| Module : Numeric.AERN.IVP.Solver.Events.Bisection Description : hybrid system simulation Copyright : (c) Michal Konecny License : BSD3 Mai...
michalkonecny/aern
aern-ivp/src/Numeric/AERN/IVP/Solver/Events/Bisection.hs
bsd-3-clause
5,098
0
31
1,357
899
484
415
101
2
{-# OPTIONS_GHC -Wall #-} {-# Language DoAndIfThenElse #-} module Classy.State ( System(..) , StateT , State , Identity -- * scalars , addParam, addAction, addCoord, addSpeed , derivIsSpeed ...
ghorn/classy-dvda
src/Classy/State.hs
bsd-3-clause
11,307
0
18
3,461
4,134
2,136
1,998
239
6
{-# LANGUAGE OverloadedStrings #-} module Mapnik.Util ( bracketed , sepByCommas , commaWs , stripWs , cppDouble ) where import Data.Attoparsec.Text import Data.Char (isDigit) import Data.Monoid bracketed :: Parser a -> Parser a bracketed p = skipSpace *> char '(' *> skipSpace *> p <* skipSpace <* char ')' sepByCom...
albertov/hs-mapnik
pure/src/Mapnik/Util.hs
bsd-3-clause
759
0
16
147
283
147
136
25
2
{-# LANGUAGE CPP #-} {-# LANGUAGE MagicHash #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE RankNTypes #-} -- | -- Module : Data.Binary.Serialise.CBOR.Decoding -- Copyright : (c) Duncan Coutts 2015 -- License : BSD3-style (see LICENSE.txt) -- -- Maintainer : duncan@community.haskell.org -- Sta...
arianvp/binary-serialise-cbor
Data/Binary/Serialise/CBOR/Decoding.hs
bsd-3-clause
11,695
0
17
2,973
2,998
1,644
1,354
274
2
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE DefaultSignatures #-} {-# LANGUAGE MagicHash #-} {-# LANGUAGE MultiParamTypeClasses #-} -- | -- Module : Basement.Cast -- License : BSD-style -- Maintainer : Haskel...
vincenthz/hs-foundation
basement/Basement/Cast.hs
bsd-3-clause
3,651
0
13
984
852
444
408
68
0
{-# language PackageImports #-} -- | This module re-exports <https://hackage.haskell.org/package/indentation-trifecta/docs/Text-Trifecta-Indentation.html Text.Trifecta.Indentation> from <https://hackage.haskell.org/package/indentation-trifecta indentation-trifecta>. module Text.Trifecta.Indentation (module Impl) where ...
lambdageek/indentation
indentation/src/Text/Trifecta/Indentation.hs
bsd-3-clause
400
0
5
27
30
22
8
3
0
module VariableFunctions where import Tokenizer import Evaluator functions = [("var_dump", phpVarDump)] phpVarDump :: PHPFunctionType phpVarDump args = (output $ unlines $ map dump args) >> return PHPNull where dump (PHPInt i) = "int(" ++ (show i) ++ ")" dump (PHPFloat f) = "float(" ++ (show f) ++ ...
jhartikainen/hs-language-php
VariableFunctions.hs
bsd-3-clause
506
0
13
139
194
101
93
11
5
{-# OPTIONS_GHC -fno-warn-type-defaults #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} module Handler.Issue ( getCurrentScheduleR , getScheduleR , getTaskR , postExportCsvR , getProjectListR , getAssignListR , getStatusListR , getCrossSearchR , postCr...
cutsea110/BISocie
Handler/Issue.hs
bsd-3-clause
28,326
0
24
9,077
8,697
4,389
4,308
-1
-1
module Set.Utils where import Data.List (tails) import System.Random (newStdGen, RandomGen, randomR) ------------------------------------------------------------------------------- -- List utilities-------------------------------------------------------------- -----------------------------------------------------...
glguy/set-game
src/Set/Utils.hs
bsd-3-clause
3,768
0
12
723
968
527
441
47
1
{-# LANGUAGE OverloadedStrings #-} module Parsers where import Control.Applicative ((*>), (<*), (<$>), (<*>)) import Data.Char import Data.Monoid ((<>)) import Text.Parsec import Text.Parsec.String (Parser) import Types import Parsers.Color import Parsers.Selector {--------------------------------------------------...
cimmanon/classi
src/Parsers.hs
bsd-3-clause
2,749
0
12
555
132
85
47
13
1
{- (c) The University of Glasgow 2006 (c) The AQUA Project, Glasgow University, 1998 This module contains definitions for the IdInfo for things that have a standard form, namely: - data constructors - record selectors - method and superclass selectors - primitive operations -} {-# LANGUAGE CPP #-} module MkId ( ...
gridaphobe/ghc
compiler/basicTypes/MkId.hs
bsd-3-clause
58,900
0
21
16,331
7,335
4,004
3,331
602
6
{- CIS 194 HW 10 due Monday, 1 April -} module AParser ( Parser (..), satisfy, char, posInt, abParser, abParser_, intPair, intOrUppercase ) where import Control.Applicative import Data.Char -- A parser for a value of type a is a function which takes a S...
wangwangwar/cis194
src/ch10/AParser.hs
bsd-3-clause
5,368
0
16
1,290
884
494
390
57
2
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} module Handlers ( handleMessages, handlePresences, handleExit ) where import Network.Xmpp hiding (session) import Network.Xmpp.IM import Control.Concurrent.STM import Control.Monad hiding (forM) import Data.Traversable import qualified Users impor...
DrewBarclay/XMPP-Chatbot
src/Handlers.hs
bsd-3-clause
7,615
31
25
1,671
2,295
1,142
1,153
129
15
{-# LANGUAGE TemplateHaskell #-} {-# OPTIONS_GHC -fno-warn-orphans #-} {-| Tests for the lock data structure -} {- Copyright (C) 2014 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; e...
kawamuray/ganeti
test/hs/Test/Ganeti/Locking/Locks.hs
gpl-2.0
3,991
0
15
955
750
419
331
72
1
class MultiParam a b
roberth/uu-helium
test/typeClassesStatic/MultiParam.hs
gpl-3.0
26
0
5
9
10
4
6
-1
-1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ViewPatterns #-} -- Module : Network.AWS.Internal.Signing -- Copyright : (c) 2013 Brendan Hay <brendan.g.hay@gmail.com> -- License : This Source Code Form is subject to the terms of -- ...
brendanhay/amazonka-limited
src/Network/AWS/Internal/Signing.hs
mpl-2.0
9,907
0
14
3,134
2,524
1,379
1,145
253
2
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-} -------------------------------------------------------------------- -- | -- Copyright : (c) Edward Kmett and Dan Doel 2012-2013 -- License : BSD2 -- Maintainer: Edward Kmett <ekmett@gmail.com> -- Stability : experimental -- Portability: non-portable -- -------...
PipocaQuemada/ermine
src/Ermine/Console/Options.hs
bsd-2-clause
1,342
0
16
215
280
156
124
27
1
{- (c) The University of Glasgow 2006-2012 (c) The GRASP Project, Glasgow University, 1992-2002 Various types used during typechecking, please see TcRnMonad as well for operations on these types. You probably want to import it, instead of this module. All the monads exported here are built on top of the same IOEnv m...
olsner/ghc
compiler/typecheck/TcRnTypes.hs
bsd-3-clause
135,780
0
16
38,309
16,776
9,496
7,280
1,356
6
------------------------------------------------------------------------------ -- File: Haikubot/Settings.hs -- Creation Date: Dec 30 2012 [03:40:24] -- Last Modified: Dec 31 2012 [09:03:43] -- Created By: Samuli Thomasson [SimSaladin] samuli.thomassonAtpaivola.fi ----------------------------------------------...
SimSaladin/haikubot
Haikubot/Settings.hs
bsd-3-clause
839
0
14
165
116
65
51
11
2
module Main where import Test.Framework.Providers.DocTest import Test.Framework main = docTest ["src/Test/Framework/Providers/DocTest.hs"] ["-optP-include", "-optPdist/build/autogen/cabal_macros.h"] >>= defaultMain . return
sakari/test-framework-doctest
tests/Main.hs
bsd-3-clause
226
0
8
19
43
26
17
4
1
{-# LANGUAGE ParallelArrays #-} {-# OPTIONS -fvectorise #-} module Vectorised (evensPA) where import Data.Array.Parallel import Data.Array.Parallel.Prelude.Int as I import Data.Array.Parallel.Prelude.Bool import qualified Prelude as P evens :: [:Int:] -> [:Int:] evens ints = filterP (\x -> x `mod` 2 I.== 0) ints ev...
mainland/dph
dph-examples/examples/smoke/prims/Evens/dph/Vectorised.hs
bsd-3-clause
430
6
9
65
136
81
55
12
1
{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE DeriveTraversable #-} {-# LANGUAGE DeriveFoldable #-} {-# LANGUAGE DeriveFunctor #-} {-# LANGUAGE TypeFamilies #-} {- | Module : Data.ML.Index Description : Key-value map model. Copyright : (c) Paweł Nowak License : MIT Maintainer : pawel834@gma...
bitemyapp/machine-learning
src/Data/ML/Index.hs
mit
1,086
0
8
207
282
153
129
22
1
{-# LANGUAGE OverloadedStrings #-} module Css.Draw (drawStyles) where import Clay hiding (map, repeat, id) import Prelude hiding ((**)) import Css.Constants import qualified Data.Text as T {- drawStyles - Generates all CSS for the draw page. -} drawStyles :: Css drawStyles = do colourTableCSS mainCSS ...
miameng/courseography
app/Css/Draw.hs
gpl-3.0
4,871
0
18
1,449
1,440
671
769
161
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
romanb/amazonka
amazonka-sns/gen/Network/AWS/SNS/RemovePermission.hs
mpl-2.0
3,193
0
9
734
393
240
153
52
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE AllowAmbiguousTypes #-} module Web.Offset.Splices where import Control.Monad.State import Control.App...
dbp/snaplet-wordpress
src/Web/Offset/Splices.hs
bsd-3-clause
23,114
0
28
7,328
7,436
3,739
3,697
493
19
module Ch1Lists where import Data.Char import Test.QuickCheck -- Lists are the primary data structure in LISP like languages. -- Where as Arrays are the primary data collection in C derived languages like Java. examp1 = [x*x | x <- [1,2,3] ] -- [1,4,9] examp2 = [toLower c | c <- "Hello From Haskell"] -- "hello fr...
HaskellForCats/HaskellForCats
MenaBeginning/002mena/00session/ch1Lists.hs
mit
3,089
9
10
555
474
277
197
24
1
{-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE DeriveDataTypeable #-} #ifndef MIN_VERSION_base #define MIN_VERSION_base(x,y,z) 1 #endif #ifndef MIN_VERSION_m...
da-x/free
src/Control/Monad/Trans/Iter.hs
bsd-3-clause
14,971
0
17
3,329
4,344
2,327
2,017
252
2
import Foreign import Foreign.C -- These newtypes... newtype MyFunPtr a = MyFunPtr { getFunPtr :: FunPtr a } newtype MyPtr a = MyPtr (Ptr a) newtype MyIO a = MyIO { runIO :: IO a } -- should be supported by... -- foreign import dynamics foreign import ccall "dynamic" mkFun1 :: MyFunPtr (CInt -> CInt) -> (CInt -> ...
sdiehl/ghc
testsuite/tests/ffi/should_run/T493.hs
bsd-3-clause
1,278
1
12
271
448
238
210
27
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="tr-TR"> <title>Tarayıcı Görünümü | ZAP Uzantısı</title> <maps> <homeID>top</homeID> <ma...
thc202/zap-extensions
addOns/browserView/src/main/javahelp/org/zaproxy/zap/extension/browserView/resources/help_tr_TR/helpset_tr_TR.hs
apache-2.0
987
87
29
159
415
221
194
-1
-1
{-# LANGUAGE CPP #-} module Tests.PlusPlusUnicode where import Data.Char (ord) {-# NOINLINE str1 #-} str1 = "Tomten klappar händerna" {-# NOINLINE str2 #-} str2 = " åt 5001 apor" {-# NOINLINE theString #-} theString = str1 ++ str2 -- Displaying unicode chars is kind of broken in the standalone SpiderMonkey -- inter...
joelburget/haste-compiler
Tests/PlusPlusUnicode.hs
bsd-3-clause
431
0
6
77
66
40
26
11
1
-- The behavior of type-inference and OverlappingInstances has changed -- between GHC 6.12 and GHC 7.0 such that the following code -- type-checks under 6.12, but not 7.0rc2. I assume this change has -- something to do with the new type checker in GHC 7, but it is not -- clear to me if this change in behavior is intend...
ezyang/ghc
testsuite/tests/indexed-types/should_fail/T4485.hs
bsd-3-clause
2,405
0
10
516
387
205
182
29
0
{-# LANGUAGE OverloadedStrings #-} -- | Parsers for primitive values and types. Mostly useful for -- "Futhark.IR.Parse", but can perhaps come in handy elsewhere too. module Futhark.IR.Primitive.Parse ( pPrimValue, pPrimType, pFloatType, pIntType, -- * Building blocks constituent, lexeme, ...
diku-dk/futhark
src/Futhark/IR/Primitive/Parse.hs
isc
3,250
0
14
703
900
478
422
72
1
{- pam-expiration – Expire inactive users Copyright © 2011 Johan Kiviniemi <devel@johan.kiviniemi.name> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all co...
ion1/pam-expiration
src/Main.hs
isc
2,612
0
13
557
530
267
263
46
3
module LwchTwo where -- http://learnyouahaskell.com/chapters -- : retab -- : set expandtab ts=4 ruler number spell linebreak -- :set +s -- let fn003 = fn001 / fn000 {- my #1 source of pain in learning Haskell was tabs. CONVERT ALL TABS TO SPACES! Tabs can make perfectly correct code not compile. ...
HaskellForCats/HaskellForCats
ladiesWhoCodeHaskell/LwchTwo.hs
mit
5,108
1
12
1,189
530
316
214
-1
-1
{-# htermination minimum :: [Float] -> Float #-}
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/Prelude_minimum_6.hs
mit
49
0
2
8
3
2
1
1
0
{-# LANGUAGE OverloadedStrings #-} module Translator where import Data.Either.Combinators (fromRight') import Data.List.Zipper import qualified Data.Text as T import Pdf.Toolbox.Document import System.IO data Sentence = Sentence {sentenceNum :: Int, sentenceText :: T.Text } data SentenceBlock = SentenceBlock {blockN...
ericvm/translator
src/Translator.hs
mit
2,028
0
12
366
661
340
321
44
1
{-# LANGUAGE NamedFieldPuns, FlexibleInstances #-} module Latro.Semant.Display where import Data.List (intercalate, intersperse) import qualified Data.Map as Map import Latro.Ast import Latro.Output import Latro.Semant import Latro.Sexpable import Text.Printf (printf) instance Sexpable v => Sexpable (Maybe v) where ...
Zoetermeer/latro
src/Latro/Semant/Display.hs
mit
22,780
0
17
7,345
8,473
4,136
4,337
574
1
module Golf where skips :: [a] -> [[a]] skips ls = map (\i -> everyN i ls) [1..length ls] everyN :: Int -> [a] -> [a] everyN n [] = [] everyN n ls = loop n (drop (n-1) ls) where loop n [] = [] loop n (x:xs) = x : loop n (drop (n-1) xs) localMaxima :: [Int] -> [Int] localMaxima (x:y:z:zs) | x < y && y > z...
t4sk/upenn-cis194
hw-03/Golf.hs
mit
1,056
0
12
231
669
360
309
31
2
-- Algorightms/Greedy/Max Min module Main where import qualified HackerRank.Algorithms.AngryChildren as M main :: IO () main = M.main
4e6/sandbox
haskell/hackerrank/AngryChildren.hs
mit
137
0
6
21
31
20
11
4
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/ASTLib.hs
mit
8,812
0
14
2,223
2,378
1,201
1,177
162
16
module Operators where import Syntax import Data.Generics.Uniplate.Data(rewriteBiM) import Data.HashMap.Strict(fromList) import Control.Monad((>=>)) {- In the beginning every operator is parsed right associative. This module changes the operators in the syntax tree to their specified precedence and associativity Thi...
kindl/Hypatia
src/Operators.hs
mit
2,874
0
12
507
803
411
392
43
7
{-# LANGUAGE ScopedTypeVariables #-} module Types(stampTarget, safeStampTarget, doesTargetExist, doesDoFileExist, findDoFile, Stamp(..), DoFile(..), Target(..)) where import Control.Exception (catch, SomeException(..)) import Control.Monad (liftM, filterM) import Data.Bool (bool) import Data.Maybe (isNothing, listToM...
dinkelk/redo
src/Types.hs
mit
4,810
0
14
740
869
484
385
45
4
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} module IHaskell.Display.Widgets.Common where import Data.Aeson import Data.Aeson.Types (emptyObject...
wyager/IHaskell
ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Common.hs
mit
7,917
0
8
2,089
1,706
905
801
223
1
module Data.Mole.Builder.Image where import Control.Concurrent.STM import qualified Data.Set as S import qualified Data.ByteString as BS import qualified Data.Text as T import Data.Maybe import Data.Time import Text.Printf import Data.Mole.Types import Dat...
wereHamster/mole
src/Data/Mole/Builder/Image.hs
mit
2,487
0
22
864
675
339
336
60
4
{-# LANGUAGE TypeFamilies #-} module Glucose.Parser.Tokens where import Data.List as List import qualified Data.List.NonEmpty as NonEmpty import Text.Megaparsec import qualified Glucose.Error as Glucose import Glucose.Lexer.Location import Glucose.Lexer.SyntacticToken instance Stream [SyntacticToken] where ...
sardonicpresence/glucose
src/Glucose/Parser/Tokens.hs
mit
1,217
0
9
212
364
195
169
25
1
{-# LANGUAGE RankNTypes #-} module Data.BoehmBerarducci.Either where import Prelude hiding (Either, Left, Right, either) newtype Either a b = Either {either :: forall r . (a -> r) -> (b -> r) -> r} left :: a -> Either a b left x = Either (\left' right' -> left' x) right :: b -> Either a b right x = Either (\left' ...
rcalsaverini/boehm-berarducci
haskell/src/Data/BoehmBerarducci/Either.hs
mit
956
0
11
237
468
245
223
21
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-listenerrule-authenticateoidcconfig.html module Stratosphere.ResourceProperties.Elasti...
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/ElasticLoadBalancingV2ListenerRuleAuthenticateOidcConfig.hs
mit
10,846
0
13
685
1,075
607
468
78
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-applicationreferencedatasource-recordformat.html module Stratosphere.ResourceProperties.Ki...
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/KinesisAnalyticsV2ApplicationReferenceDataSourceRecordFormat.hs
mit
3,407
0
13
214
262
152
110
29
1
{- | Module : TextAreaContentUtils.hs Description : . Maintainer : Kristin Knorr (c) License : MIT Stability : stable 'TextAreaContentUtils' serves methods to move Characters in TextAreaContent. -} module TextAreaContentUtils ( -- * Methods moveChars, findLastCharBefore, moveLinesUp, moveLi...
SWP-Ubau-SoSe2014-Haskell/SWPSoSe14
src/RailEditor/TextAreaContentUtils.hs
mit
5,145
0
17
1,285
1,629
835
794
132
4
{-# LANGUAGE GeneralizedNewtypeDeriving #-} module Compiler.Rum.Compiler.CodeGen where import Data.Char (ord) import Control.Monad.State (MonadState, State, execState, gets, modify, void) import Data.Map (Map) import qualified Data.Map as Map (empty, insert, look...
vrom911/Compiler
src/Compiler/Rum/Compiler/CodeGen.hs
mit
11,850
0
16
2,895
3,698
1,978
1,720
-1
-1
module Handler.GameHome where import Import import Handler.Game import Crypto.Random (SystemRandom) import Control.Monad.CryptoRandom import Data.ByteString.Base16 (encode) import DbFunctions -- generate a random id (8 bytes) and forward to the corresponding site -- see http://www.yesodweb.com/book/yesods-monads#yeso...
total-git/missingno
yesodMissingNo/Handler/GameHome.hs
mit
685
0
13
126
170
87
83
17
2
{-# LANGUAGE CPP, TypeFamilies, DeriveDataTypeable #-} module PGIP.GraphQL.Result.Axiom where import PGIP.GraphQL.Result.FileRange import PGIP.GraphQL.Result.Symbol import Data.Data data Axiom = Axiom { __typename :: String , fileRange :: Maybe FileRange , locId :: String ...
spechub/Hets
PGIP/GraphQL/Result/Axiom.hs
gpl-2.0
481
0
9
167
94
60
34
12
0
module BibDB where import Text.ParserCombinators.Parsec (parseFromFile) import TypedBibData import Config import Control.Monad ------------ -- DB loadBibliography cfg = loadBibliographyFrom (bibfile cfg) loadBibliographyFrom fileName = do putStrLn ("Loading " ++ fileName) mBib <- fmap bibToForest <$> parseFrom...
jyp/imbib
lib/BibDB.hs
gpl-2.0
847
0
16
169
291
143
148
20
2
module Yi.Mode.Interactive where import Control.Concurrent (threadDelay) import Data.List (elemIndex) import Prelude () import Yi.Modes import Yi.Core import Yi.History import Yi.Lexer.Alex (Tok) import Yi.Lexer.Compilation (Token) import Yi.Region import qualified Yi.Mode.Compilation as Compilation import qualified Y...
codemac/yi-editor
src/Yi/Mode/Interactive.hs
gpl-2.0
3,894
0
17
1,086
1,055
522
533
96
3
{- | Module : $Header$ Description : Logic independent retrieval functionality Copyright : (c) Immanuel Normann, Uni Bremen 2007 License : GPLv2 or higher, see LICENSE.txt Maintainer : inormann@jacobs-university.de Stability : provisional Portability : portable -} module Search.Common.Select wher...
nevrenato/Hets_Fork
Search/Common/Select.hs
gpl-2.0
9,538
50
21
2,471
2,378
1,302
1,076
134
3
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} module Utils.ToString where {- Haskell has already a built-in show; but we need more. We often want a data representation (often handily available through `deriving Show`), but we often want fancy representations, in multiple flavours. A fl...
pietervdvn/ALGT2
src/Utils/ToString.hs
gpl-3.0
2,117
52
9
430
505
262
243
33
1
module Main where import Mudblood import Mudblood.Screen.Gtk import System.Environment import MGStable main :: IO () main = do args <- getArgs userpath <- initUserPath [] profpath <- case args of [profile] -> initUserPath ["mg", profile] _ -> initUserPath ["mg"] execScreen "r...
talanis85/mudblood
main/Main-MG-Gtk.hs
gpl-3.0
424
0
13
96
139
71
68
13
2
-- | Simple graphviz output. module Data.Graph.Inductive.Graphviz( Orient(..), graphviz, graphviz' ) where import Data.Graph.Inductive.Graph data Orient = Portrait | Landscape deriving (Eq, Show) o2s :: Orient -> String o2s Portrait = "\trotate = \"0\"\n" o2s Landscape = "\trotate = \"90\"\n" ...
ckaestne/CIDE
CIDE_Language_Haskell/test/FGL-layout/Graph/Inductive/Graphviz.hs
gpl-3.0
2,082
105
13
620
817
438
379
50
3
----------------------------------------------------------------------------- -- -- Module : GenImplicit -- Copyright : (c) hokum -- License : GPL3 -- -- Maintainer : -- Stability : experimental -- Portability : -- -- | -- ----------------------------------------------------------------------------- ...
Collocalini/GenImplicit
genimplicit/src/GenImplicit.hs
gpl-3.0
2,008
1
17
457
502
278
224
37
2
module Handler.Info.Contact where import Import ------------------------------------------------------------------------ getContactR :: Handler Html getContactR = defaultLayout $ do setTitle "Betty : Contact" $(widgetFile "info.contact") ----------------------------------------------------------------------...
sajith/betty-web
Handler/Info/Contact.hs
agpl-3.0
323
0
10
34
45
24
21
6
1
-- Copied from: https://wiki.haskell.org/Existential_type {-# LANGUAGE ExistentialQuantification #-} module Main where main :: IO () main = do let circle1 = circle 1 print $ area circle1 class Shape_ a where perimeter :: a -> Double area :: a -> Double data Shape = forall a. Shape_ a => Shape a ty...
azadbolour/boardgame
haskell-server/trial/ExistentialTrial.hs
agpl-3.0
1,158
0
10
283
447
231
216
35
1
module Bob (responseFor) where import Data.Char (isSpace, isUpper, isAlpha) data Prompt = Silence | Yell | Question | Other classify :: String -> Prompt classify s | all isSpace s = Silence | any isAlpha s && (all isUpper $ filter isAlpha s) = Yell | '?' == last s = Question | otherwi...
mscoutermarsh/exercism_coveralls
assignments/haskell/bob/example.hs
agpl-3.0
560
0
11
129
186
96
90
15
1
{-# LANGUAGE DerivingVia, StandaloneDeriving #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module ProjectM36.Serialise.Error where import ProjectM36.Error import Codec.Winery import ProjectM36.Serialise.Base () import ProjectM36.Serialise.AtomFunctionError () import ProjectM36.Serialise.DatabaseContextFunctionError () der...
agentm/project-m36
src/lib/ProjectM36/Serialise/Error.hs
unlicense
777
0
6
68
136
73
63
-1
-1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TupleSections #-} {-# LANGUAGE ViewPatterns #-} {-# LANGUAGE TypeFamilies #-} module Language.K3.Metaprogram.Evaluation where import Control.Applicative import Control.Arrow import Control.Monad import Control....
DaMSL/K3
src/Language/K3/Metaprogram/Evaluation.hs
apache-2.0
38,267
0
23
8,871
13,120
6,534
6,586
585
29
module Problem013 where main = print $ 40 `choose` 20 n `choose` 0 = 1 0 `choose` k = 0 n `choose` k = (n - 1) `choose` (k - 1) * n `div` k
vasily-kartashov/playground
euler/problem-015.hs
apache-2.0
145
0
9
40
88
51
37
6
1
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QStyleOptionTitleBar.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:27 Warning : this file is machine generat...
keera-studios/hsQt
Qtc/Gui/QStyleOptionTitleBar.hs
bsd-2-clause
5,085
0
12
696
1,249
648
601
-1
-1
{-# LANGUAGE FlexibleInstances, RankNTypes #-} {- | Module : SystemFI Description : Abstract syntax and pretty printer for SystemFI. Copyright : (c) 2014—2015 The F2J Project Developers (given in AUTHORS.txt) License : BSD3 Maintainer : Zhiyuan Shi <zhiyuan.shi@gmail.com>, Haoyuan Zhang <zhanghaoyuan...
bixuanzju/fcore
lib/SystemFI.hs
bsd-2-clause
16,328
1
20
4,516
7,381
3,792
3,589
286
6
-- Standard code to make a table of units -- First true example of a (small!) recipe. module Drasil.Sections.TableOfUnits (tOfUnitDesc, tOfUnitSIName, unitTableRef) where import Control.Lens ((^.)) import Language.Drasil import Data.Drasil.Concepts.Documentation (symbol_, description) -- | Creates the table of units ...
JacquesCarette/literate-scientific-software
code/drasil-docLang/Drasil/Sections/TableOfUnits.hs
bsd-2-clause
1,068
0
11
195
280
157
123
15
1
-- Spec.hs import Pear.Operator import Test.Hspec main :: IO () main = hspec $ do describe "Integer parser" $ do it "should parse '2 + (3 * 4)' properly" do
Charlesetc/haskell-parsing
test/Spec.hs
bsd-3-clause
179
1
6
52
42
24
18
-1
-1
-- | This module converts between HTML/XML entities (i.e. @&amp;@) and -- the characters they represent. module Text.HTML.TagSoup.Entity( lookupEntity, lookupNamedEntity, lookupNumericEntity, escapeXML, xmlEntities, htmlEntities ) where import Data.Char (chr, ord) import qualified Data.IntMap as IntM...
ndmitchell/tagsoup
src/Text/HTML/TagSoup/Entity.hs
bsd-3-clause
62,809
0
18
16,321
16,338
9,330
7,008
2,273
4
module Problem13Tests ( problem13Tests ) where import Test.HUnit import Problem13 testColumnarAddition :: Test testColumnarAddition = TestCase $ do assertEqual "123 + 456" (123 + 456) (columnarAddition [123, 456]) assertEqual "3455 + 3555" (3455 + 3555) (columnarAddition [3455, 3555]) assertEqual "123 + ...
candidtim/euler
test/Problem13Tests.hs
bsd-3-clause
435
0
11
74
136
74
62
10
1
{-# LANGUAGE ScopedTypeVariables #-} module Graphviz.Render (render) where import qualified Data.ByteString.Lazy.Char8 as BL import System.IO import System.Directory (getTemporaryDirectory, removeFile) import System.Process import Control.Exception as CE render :: BL.ByteString -> IO BL.ByteString render dat = do ...
co-dan/graphviz-render
Graphviz/Render.hs
bsd-3-clause
969
0
15
211
328
169
159
25
1
-- | A Map mapping multiple values to a key (cross between Map and Set). -- This is not a complete module. module Data.Parser.Grempa.Auxiliary.MultiMap ( MultiMap , lookup , insert , inserts , delete , union , unions , fromList , M.empty , toList ) where import qualified Data.Map as M import Da...
ollef/Grempa
Data/Parser/Grempa/Auxiliary/MultiMap.hs
bsd-3-clause
1,483
0
12
423
659
345
314
37
2
{-# LANGUAGE PatternSynonyms #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.AMD.QueryBufferObject -- Copyright : (c) Sven Panne 2019 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portab...
haskell-opengl/OpenGLRaw
src/Graphics/GL/AMD/QueryBufferObject.hs
bsd-3-clause
745
0
5
99
57
42
15
9
0
{-#LANGUAGE RecordWildCards #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE QuasiQuotes, TemplateHaskell, TypeFamilies #-} {-# LANGUAGE OverloadedStrings, GADTs, FlexibleContexts #-} {-# LANGUAGE GeneralizedNewtypeDeriving, MultiParamTypeClasses #-} module DirectoryServer where import Network hiding (accept, sClose) imp...
Garygunn94/DFS
.stack-work/intero/intero36933CDm.hs
bsd-3-clause
12,487
303
15
3,060
3,290
1,699
1,591
227
6
{- | Module : XMonad.Prompt.Shell Copyright : (C) 2007 Andrea Rossato License : BSD3 Maintainer : andrea.rossato@unibz.it Stability : unstable Portability : unportable A shell prompt for XMonad -} -- My features: -- - remove completion module XMonad.Prompt.MyShell ( -- * Usage -- $usag...
eb-gh-cr/XMonadContrib1
XMonad/Prompt/MyShell.hs
bsd-3-clause
4,979
0
14
1,283
898
475
423
70
1