code
stringlengths
5
1.03M
repo_name
stringlengths
5
90
path
stringlengths
4
158
license
stringclasses
15 values
size
int64
5
1.03M
n_ast_errors
int64
0
53.9k
ast_max_depth
int64
2
4.17k
n_whitespaces
int64
0
365k
n_ast_nodes
int64
3
317k
n_ast_terminals
int64
1
171k
n_ast_nonterminals
int64
1
146k
loc
int64
-1
37.3k
cycloplexity
int64
-1
1.31k
module HMenu.Matching.Distance ( editDistance, subseqDistance, ) where editDistance :: String -> String -> Integer editDistance a "" = fromIntegral $ length a editDistance "" a = fromIntegral $ length a editDistance a@(x:xs) b@(y:ys) | x == y = editDistance xs ys | otherwise = 1 +...
thelastnode/hmenu
HMenu/Matching/Distance.hs
mit
996
0
10
437
349
178
171
21
1
{-| Module : Control.Monad.Bayes.Traced Description : Distributions on execution traces Copyright : (c) Adam Scibior, 2015-2020 License : MIT Maintainer : leonhard.markert@tweag.io Stability : experimental Portability : GHC -} module Control.Monad.Bayes.Traced ( module Control.Monad.Bayes.Traced.Stati...
adscib/monad-bayes
src/Control/Monad/Bayes/Traced.hs
mit
372
0
5
57
28
21
7
3
0
import System.FilePath.Glob (glob) import Test.DocTest (doctest) main :: IO () main = glob "src/**/*.hs" >>= doctest
yamadapc/butter-core
test/DocTest.hs
mit
118
0
6
17
44
24
20
4
1
{-# LANGUAGE OverloadedStrings #-} module Text.CorasickPark.Handler.Update (updateHandler) where import Snap (Handler, Method(..), method, gets) import Snap.Core (modifyResponse, setResponseStatus) import Control.Monad.Trans (liftIO) import Snap.Extras.JSON (getJSON, writeJSON) import Text.CorasickPark.Types import...
stackbuilders/corasick-park
src/Text/CorasickPark/Handler/Update.hs
mit
993
0
16
209
253
136
117
23
2
{-| Implementation of the LUXI loader. -} {- Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opt...
badp/ganeti
src/Ganeti/HTools/Backend/Luxi.hs
gpl-2.0
11,969
0
14
2,541
2,925
1,511
1,414
208
3
module Problem32Spec where import Test.Hspec import qualified Problem32 spec :: Spec spec = describe "Check abou GCD" $ do it "Verify that the GCD of 36 and 63 is 9" $ Problem32.myGCD 36 63 `shouldBe` 9 it "Verify that the GCD of 13 and 41 is 1" $ Problem32.myGCD 13 41 `shouldB...
wando-hs/H-99
test/Problem32Spec.hs
gpl-3.0
325
0
11
95
76
40
36
9
1
{-# LANGUAGE NamedFieldPuns #-} module Language.ArrayForth.Stack where data Stack a = Stack { dataS, retS :: [a] , a :: a } data Operation = Dup | Over | Drop | Pop | Push | ToA | FromA deriving (Show, Eq, Bounded, Enum) operate :: Stack a -> Operation -> Stack a operate stack@Stack {dataS = d:d...
TikhonJelvis/array-forth-hll
src/Language/ArrayForth/HLL/Stack.hs
gpl-3.0
601
0
11
170
278
160
118
13
6
-- Copyright 2016, 2017 Robin Raymond -- -- This file is part of Purple Muon -- -- Purple Muon is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) an...
r-raymond/purple-muon
src/Client/Video/Types.hs
gpl-3.0
1,141
0
8
222
59
45
14
5
0
{- Copyright (C) 2014 Ellis Whitehead 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 3 of the License, or (at your option) any later version. This program is distributed in the hope...
ellis/OnTopOfThings
old-20150308/src/OnTopOfThings/Actions/View.hs
gpl-3.0
15,689
0
27
3,558
4,794
2,492
2,302
300
23
{-# LANGUAGE CPP, ScopedTypeVariables #-} module Engine where import Control.Applicative import Control.Arrow import Control.Concurrent (forkIO) import Control.Concurrent.Chan import Control.Concurrent.MVar import Control.Concurrent.Process import C...
kaoskorobase/mescaline
tools/sts/Engine.hs
gpl-3.0
6,519
0
13
1,572
832
516
316
72
1
{-# OPTIONS_HADDOCK ignore-exports #-} module Cube_Display ( display, initfn ) where import Graphics.Rendering.OpenGL import Graphics.UI.GLUT import Control.Monad -- | List of normals n :: [Normal3 GLfloat] n = [(Normal3 (-1.0) 0.0 0.0), (Normal3 0.0 1.0 0.0), (Normal3 1.0 0.0 0.0), (Normal3 0.0...
rmcmaho/Haskell_OpenGL_Examples
Cube/Cube_Display.hs
gpl-3.0
2,177
0
16
667
1,007
519
488
59
1
-- | Examples extracted from http://www.cse.chalmers.se/~hallgren/Papers/hallgren.pdf -- module FunWithFunctionalDependencies where
capitanbatata/sandbox
typelevel-computations/src/FunWithFunctionalDependencies.hs
gpl-3.0
135
0
2
13
6
5
1
1
0
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-admin-datatransfer/gen/Network/Google/Resource/DataTransfer/Transfers/Insert.hs
mpl-2.0
4,516
0
18
1,117
711
414
297
104
1
-- This Source Code Form is subject to the terms of the Mozilla Public -- License, v. 2.0. If a copy of the MPL was not distributed with this -- file, You can obtain one at http://mozilla.org/MPL/2.0/. {-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE...
whitehead1415/cql
src/Database/CQL/Protocol/Codec.hs
mpl-2.0
21,351
0
18
4,629
6,156
3,054
3,102
474
23
{-# LANGUAGE OverloadedStrings #-} module Store.AVTest where import Test.Tasty import Test.Tasty.HUnit import qualified Data.ByteString.Char8 as Char8 import Paths_databrary (getDataFileName) import Store.AV test_all :: [TestTree] test_all = [ testCase "sanity" $ do filename <- Char8.pack <$> getDataFil...
databrary/databrary
test/Store/AVTest.hs
agpl-3.0
550
0
11
116
131
73
58
15
1
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveGeneric #-} module CountdownGame.State.Definitions ( SpielParameter (..) , Phasen (..) , istWartend , istInRunde , nochZuWartendeSekunden , ergebnisListe , zielZahl , verfuegbareZahlen , Versuche ...
CarstenKoenig/DOS2015
CountdownGame/src/web/CountdownGame/State/Definitions.hs
unlicense
3,266
0
11
873
976
540
436
92
3
{- | If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000. -} ans = sum [x | x <- [0..999], (mod x 3) == 0 || (mod x 5) == 0] main = putStrLn (show ans)
PiJoules/Project-Euler-Haskell
prob1.hs
unlicense
289
0
12
74
72
37
35
2
1
{-# START_FILE foo.hs #-} module Foo (foo) where foo x = 1
egaburov/funstuff
Haskell/BartoszBofH/3_PureFunctions/foo.hs
apache-2.0
60
0
5
13
18
11
7
2
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE UndecidableInstances #-} module Codec.Packstream.CodingTest ( unitTests ) where import Control.Monad import Data.Binary (get, put) import qualifi...
boggle/neo4j-haskell-driver
test/Codec/Packstream/CodingTest.hs
apache-2.0
3,200
0
14
693
857
436
421
53
2
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} module Openshift.V1.DeploymentConfigRollback where import GHC.Generics import Data.Text import Openshift.V1.DeploymentConfigRollbackSpec import qualif...
minhdoboi/deprecated-openshift-haskell-api
openshift/lib/Openshift/V1/DeploymentConfigRollback.hs
apache-2.0
1,432
0
9
190
106
65
41
17
0
-- inspired by http://dlaing.org/cofun/posts/free_and_cofree.html -- see credits in that post/ Ed Kmett and Dan Piponi module PolyGraph.Common.DslSupport.Pairing (Pairing(..)) where import Data.Functor.Identity import qualified Control.Monad.Free as Free import qualified Control.Comonad.Cofree as Cofree import PolyGr...
rpeszek/GraphPlay
src/PolyGraph/Common/DslSupport/Pairing.hs
bsd-3-clause
1,428
0
10
296
596
317
279
-1
-1
{-# LANGUAGE KindSignatures #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} module Data.Bugs where import Conduit import Data.Map import Data.Text import Data.Time import Text.XML.Cursor.Generic import Control.Comonad instance Functor Cursor where fmap f c = Cursor { parent' ...
jwiegley/bugs
Data/Bugs.hs
bsd-3-clause
2,287
0
10
740
562
337
225
67
0
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE UndecidableInstances #-} {-# LANGUAGE GADTs #-} {-# L...
ekmett/categories
src/Math/Category/Sum.hs
bsd-3-clause
1,767
0
18
434
819
428
391
-1
-1
module Sylvan where import Foreign.C.Types import Foreign.Ptr import Foreign.Marshal.Array import Data.Word import Control.Monad import Data.Bits import Control.Monad.Primitive --Lace foreign import ccall safe "lace_init" c_laceInit :: CInt -> CInt -> IO () laceInit :: PrimMonad m => Int -> Int -> m () laceInit ...
adamwalker/sylvan-haskell
Sylvan.hs
bsd-3-clause
7,054
0
11
1,452
2,457
1,232
1,225
145
1
-- | Main module module Main where import Lib (someFunc) --import Week01.Lyah02 main :: IO () main = do -- print (doubleUs 2.0 4.0) someFunc
emaphis/Haskell-Practice
cis194/app/Main.hs
bsd-3-clause
147
0
6
31
33
20
13
5
1
{-# LANGUAGE MultiParamTypeClasses, GeneralizedNewtypeDeriving, DeriveDataTypeable, ScopedTypeVariables #-} module B.Shake.File( need, want, defaultRuleFile, (*>), (**>), (?>), phony, newCache, newCacheIO ) where import Control.Exception import Control.Monad import Control.Monad.IO.Class import qu...
strager/b-shake
B/Shake/File.hs
bsd-3-clause
8,693
0
23
2,054
1,189
658
531
67
2
{-# language CPP #-} -- No documentation found for Chapter "Result" module Vulkan.Core10.Enums.Result (Result( SUCCESS , NOT_READY , TIMEOUT , EVENT_SET ...
expipiplus1/vulkan
src/Vulkan/Core10/Enums/Result.hs
bsd-3-clause
17,157
1
10
4,867
1,339
845
494
-1
-1
module Character ( Character, createCharacter, tryParseChrFile ) where import Prompt import System.IO data Gender = Male | Female deriving(Show) data Character = Character String Gender -- charName :: Character -> String -- charName (Character name _) = name tryParseGender :: String -> Maybe Gender ...
monkeybits/rpgame
src/Character.hs
bsd-3-clause
1,294
0
11
238
346
171
175
36
3
{-# LANGUAGE CPP #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE ScopedTypeVariables #-} module SysTools.Settings ( SettingsError (..) , initSettings ) where #include "HsVersions.h" import GhcPrelude import GHC.Settings import Config import CliOption import FileSettings import Fingerprint import GHC.Platform impor...
sdiehl/ghc
compiler/main/SysTools/Settings.hs
bsd-3-clause
9,584
0
16
2,120
1,636
864
772
188
7
module Types.Controlable where class Controlable s where x :: s -> Double y :: s -> Double
Smurf/dodgem
src/Types/Controlable.hs
bsd-3-clause
100
0
7
26
33
18
15
4
0
{-# LANGUAGE GeneralizedNewtypeDeriving #-} -- | Interface specification for crypto exchange markets module Market.Interface ( module Market.Interface , Price(..) , Vol(..) , Cost(..) , OrderSide(..) , Quote(..) , QuoteBook(..) , StrategyAdvice(..) , Coin , coinSymbol , sho...
dimitri-xyz/market-model
src/Market/Interface.hs
bsd-3-clause
1,764
0
9
519
433
272
161
60
0
module Tut.Pandoc ( module Tut.Pandoc , module Text.Pandoc ) where import Text.Pandoc import Text.Pandoc.Error import Tut.Misc import Tut.Imports import Tut.Transformation import Tut.Metadata class AsYamlParseError e => AsPandocError e where pandocError :: PandocError -> e instance AsPandocError Strin...
aaronvargo/htut
src/Tut/Pandoc.hs
bsd-3-clause
1,272
0
13
243
413
208
205
-1
-1
module Vish.Data.Stage where import Vish.MessageBox (MessageBox, mkMsgBox) import Vish.Graphics.Image (Image (..)) import qualified Vish.Graphics.Image as Img import Linear.V2 (V2 (..)) import qualified Linear.Vector as Vec import Vish.Graphics.Font (Font) import Control.Lens data Stage = Stage { _stageSize ...
andgate/vish
src/Vish/Data/Stage.hs
bsd-3-clause
847
0
10
228
224
135
89
-1
-1
module MergeList ( mergelist ) where choose :: Integer -> Integer -> Integer choose n 0 = 1 choose 0 k = 0 choose n k = ( choose (n-1) (k-1) * n `div` k ) mergelist :: IO () mergelist = do n_temp <- getLine let n = read n_temp :: Int getMultipleLines n getMultipleLines :: Int -> IO () getMultipl...
zuoqin/hackerrank
src/MergeList.hs
bsd-3-clause
633
2
11
216
265
136
129
21
1
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} -- | Run commands in a nix-shell module Stack.Nix (reexecWithOptionalShell ,nixCmdName ,nixHelpOptName ) where import Control.App...
sjakobi/stack
src/Stack/Nix.hs
bsd-3-clause
6,781
8
24
2,040
1,390
752
638
136
4
import qualified Data.ByteString.Char8 as C import Data.Array.Unboxed import System.Environment import System.IO getinputs = map getline . C.lines where getline s = (s1, s2) where (s1:s2:_) = C.split ';' s data P = P {-# UNPACK #-} !Int String instance Eq P where (P x _) == (P y _) = x == y instance O...
wangbj/excises
lcs.hs
bsd-3-clause
1,172
0
12
354
625
322
303
28
1
import Prelude import Network.HTTP.Enumerator import Text.Feed.Import import Text.Feed.Query import Text.Feed.Export import Text.XML.Light import Text.XML.Light.Proc import Text.XML.Light.Types import Text.XML.Light.Lexer import qualified Data.ByteString.Lazy as L import qualified System.IO.UTF8 as U import Data.ByteSt...
drchaos/ws_uploader
ws_uploader.hs
bsd-3-clause
1,295
0
17
199
367
201
166
28
1
{-# LANGUAGE GADTs #-} {-# LANGUAGE TypeFamilies, QuasiQuotes, MultiParamTypeClasses,TemplateHaskell, OverloadedStrings #-} module Handler.Vote ( postVotedR , postVoteiR , getVoteiR , getVotedR ) where import Foundation import Forms.Image i...
pankajmore/Imghost
Handler/Vote.hs
bsd-3-clause
3,206
0
28
1,658
703
347
356
56
5
{-# LANGUAGE OverloadedStrings #-} module Web.EmbedThis.DataParser ( DataParser(..), TwitterDataParser(..) ) where import Web.EmbedThis.DataParser.Class import Web.EmbedThis.DataParser.Twitter
rtrvrtg/embed-this
src/Web/EmbedThis/DataParser.hs
bsd-3-clause
203
0
5
25
38
27
11
6
0
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TupleSections #-} {-| Module : $Header$ Copyright : (c) 2016 Deakin Software & Technology Innovation Lab License : BSD3 Maintainer : Shannon Pace <shannon.pace@deakin.edu.au> Stability : unstable Portability : portable Te...
rimmington/eclogues
eclogues-impl/test/Eclogues/StateSpec.hs
bsd-3-clause
23,855
5
30
7,878
5,605
2,663
2,942
-1
-1
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} -- | The simplification engine is only willing to hoist allocations -- out of loops if the memory block resulting from the allocation is -- ...
mrakgr/futhark
src/Futhark/Optimise/DoubleBuffer.hs
bsd-3-clause
11,036
0
20
3,348
2,805
1,440
1,365
189
8
module Execs where import CBSD.Search import CBSD.Utils.GetPortArg import CBSD.Messages.Types import qualified CBSD.Ataxx as Ataxx import qualified CBSD.Potyogos as Potyogos import qualified CBSD.Components.Heuristic as Heu import qualified CBSD.Components.Tree as Tree import qualified CBSD.Components.Logic as Lo...
AndrasKovacs/elte-cbsd
TestExecs/Components/Execs.hs
bsd-3-clause
3,178
0
13
754
939
487
452
95
1
{-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE RankNTypes #-} -- | This module provides a large suite of utilities that resemble Unix -- utilities. -- -- Many ...
PierreR/Haskell-Turtle-Library
src/Turtle/Prelude.hs
bsd-3-clause
55,444
192
30
15,397
13,406
6,940
6,466
1,030
12
/*Owner & Copyrights: Vance King Saxbe. A.*//* Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe...
VanceKingSaxbeA/GoldSaxMachineStore
GoldSaxMachineModule9/src/Streams.hs
mit
4,177
23
19
1,320
926
473
453
-1
-1
-- https://www.hackerrank.com/challenges/angry-professor/problem import Text.Printf data Answer = YES | NO deriving (Show) data Case = Case { totalStudents :: Int , cancellationThreshold :: Int , arrivals :: [Int] } toPairs :: [a] -> [(a, a)] toPairs ...
julianespinel/training
hackerrank/AngryProfessor.hs
mit
2,009
0
12
562
486
261
225
38
1
{-# LANGUAGE OverloadedStrings #-} module System.Nagios.Plugin.Ekg.Types ( MetricTree ) where import Control.Applicative import Control.Monad import Data.Aeson import Data.Aeson.Types import Data.Int import Data.HashMap.Strict (HashMap) import qualified Data.HashMap.Strict as HM import Data.Map (Map) import quali...
olorin/nagios-plugin-ekg
lib/System/Nagios/Plugin/Ekg/Types.hs
mit
4,121
0
14
1,085
861
456
405
78
2
import Data.List getnum pies racks = helper 0 pies racks where helper acc p r | p == [] || r == [] = acc helper acc p r = if racks_aval /= [] then helper (acc+1) (tail p) (init r) else he...
paramsingh/codechef-solutions
src/practice/cooling.hs
mit
771
0
15
354
290
140
150
18
3
{-# LANGUAGE StrictData #-} {-# LANGUAGE Trustworthy #-} module Network.Tox.Crypto.NonceSpec where import Control.Monad.IO.Class (liftIO) import Test.Hspec import Test.QuickCheck import qualified Network.Tox.Crypto.Nonce as Nonce spec :: Spec spec = do describe "newNonce" $ it...
iphydf/hs-toxcore
test/Network/Tox/Crypto/NonceSpec.hs
gpl-3.0
2,024
7
13
443
372
194
178
43
1
-- (c) The FFI task force, [2000..2001] -- -- Provides parametrised data and function pointers module Ptr ( -- Data pointers -- Ptr, -- data Ptr a; instances: Eq, Ord, Show nullPtr, -- :: Ptr a castPtr, -- :: Ptr a -> Ptr b plusPtr, -- :: Ptr a -> Int -> Ptr b alignPtr, -- :: ...
k0001/gtk2hs
tools/c2hs/doc/c2hs/lib/Ptr.hs
gpl-3.0
3,550
0
7
879
519
307
212
38
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-datapipeline/gen/Network/AWS/DataPipeline/ReportTaskRunnerHeartbeat.hs
mpl-2.0
6,386
20
15
1,297
759
457
302
98
1
-- Copyright (C) 2017 Red Hat, Inc. -- -- This library 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 2.1 of the License, or (at your option) any later version. -- -- This library i...
atodorov/bdcs
src/tests/BDCS/RPM/BuildSpec.hs
lgpl-2.1
1,794
0
15
320
391
217
174
20
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>TLS Debug | ZAP Extension</title> <maps> <homeID>top</homeID> <mapref l...
veggiespam/zap-extensions
addOns/tlsdebug/src/main/javahelp/org/zaproxy/zap/extension/tlsdebug/resources/help_ur_PK/helpset_ur_PK.hs
apache-2.0
971
80
66
160
415
210
205
-1
-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>Dizge Tarayıcı | ZAP Uzantısı</title> <maps> <homeID>top</homeID> <mapr...
veggiespam/zap-extensions
addOns/sequence/src/main/javahelp/org/zaproxy/zap/extension/sequence/resources/help_tr_TR/helpset_tr_TR.hs
apache-2.0
981
80
66
160
426
215
211
-1
-1
module Acme.OmittedSpec where import Acme.Omitted import Test.Hspec spec :: Spec spec = do describe "omitted" $ do it "denotes an omitted definition" $ do omitted `shouldThrow` errorCall "Acme.Omitted.omitted"
beni55/acme-omitted
tests/Acme/OmittedSpec.hs
bsd-2-clause
224
0
14
42
58
30
28
8
1
{-# LANGUAGE OverloadedStrings #-} module UnstarGist where import qualified GitHub.Data.Name as N import qualified GitHub.Endpoints.Gists as GH import qualified Data.Text as T import qualified Data.Text.IO as T main :: IO () main = do let gid = "your-gist-id" result <- GH.unstarGist (GH.OAuth "your-...
jwiegley/github
samples/Gists/UnstarGist.hs
bsd-3-clause
481
0
14
109
146
81
65
13
2
-- |this module provides a simple mechanism for adding IO operations -- to a queue and running them in a single thread. This is useful if -- the IO operations have side-effects which could collide if run from -- multiple threads. For example, creating an image thumbnail and -- storing it on disk, running latex, etc. mo...
eigengrau/haskell-extra
Extra/IOThread.hs
bsd-3-clause
1,733
0
12
454
361
193
168
27
2
module Development.Abba.Types ( Rule (..) , Dependency , Recipe ) where import qualified Data.Set as Set import Text.Printf -- |Make-like rule definition, designed to be interpreted to produce one or -- more targets from zero or more dependencies, optionally using the supplied -- 'Recipe'. data Rule = Rule...
mgeorgehansen/Abba
Development/Abba/Types.hs
bsd-3-clause
1,897
0
11
456
321
186
135
-1
-1
-- Use GHC generics to automatically generate good instances. {-# LANGUAGE CPP #-} {-# LANGUAGE PackageImports #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Twitter.Generic ( Metadata(..) , Geo(..) , Story(..) , Result(..) ) where import Prelude () import Prelude.Compat import Twitter #...
tolysz/prepare-ghcjs
spec-lts8/aeson/examples/Twitter/Generic.hs
bsd-3-clause
948
0
6
148
200
107
93
21
0
{- (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 Taken quite directly from the Peyton Jones/Lester paper. -} {-# LANGUAGE CPP #-} -- | A module concerned with finding the free variables of an expression. module CoreFVs ( -- * Free variables of expressions and bi...
green-haskell/ghc
compiler/coreSyn/CoreFVs.hs
bsd-3-clause
20,289
0
12
5,365
3,515
1,906
1,609
-1
-1
-- | Produces HTML related to the "Votes:" section in the package page. -- | Should only be used via the Votes feature (see renderVotesHtml) module Distribution.Server.Features.Votes.Render ( renderVotesAnon , voteConfirmationPage , alreadyVotedPage ) where import Distribution.Package import Distribution.Serve...
ocharles/hackage-server
Distribution/Server/Features/Votes/Render.hs
bsd-3-clause
2,240
0
14
575
409
226
183
42
1
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE Safe #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Functor.Product -- Copyright : (c) Ross Paterson 2010 -- License : BSD-style (see the file...
rahulmutt/ghcvm
libraries/base/Product.hs
bsd-3-clause
4,150
0
10
904
1,556
830
726
68
0
-- Intermission: Exercises -- 1. foldr (*) 1 [1..5] will return the same result as which of the following: -- a) flip (*) 1 [1..5] -- b) foldl (flip (*)) 1 [1..5] -- c) foldl (*) 1 [1..5] -- c -- 2. Write out the evaluation steps for foldl (flip (*)) 1 [1..3] -- ??? -- 3. One difference between foldr and foldl is: ...
diminishedprime/.org
reading-list/haskell_programming_from_first_principles/10_05.hs
mit
1,601
0
2
326
42
41
1
1
0
{-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-name-shadowing #-} module Z80.Assembler ( Z80 , Z80ASM , ASMBlock (..) , org , code , Bytes (..) , db , equ , label , labelled , withLabel , end , beginExecution ) where import Data.Word imp...
dpwright/z80
src/Z80/Assembler.hs
mit
2,332
0
12
587
802
430
372
84
2
{-# LANGUAGE ExistentialQuantification, RankNTypes #-} module Control.Monad.Hoist where import Control.Monad.Trans class (MonadTrans t) => MonadHoist t where hoist :: (Monad m, Monad n) => (forall x. m x -> n x) -> t m a -> t n a
DanielWaterworth/siege
src/Control/Monad/Hoist.hs
mit
236
0
12
45
88
47
41
5
0
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.HTMLOListElement (js_setCompact, setCompact, js_getCompact, getCompact, js_setStart, setStart, js_getStart, getStart, js_setReversed, setReversed, js_getReversed, getReversed, js_setType, se...
plow-technologies/ghcjs-dom
src/GHCJS/DOM/JSFFI/Generated/HTMLOListElement.hs
mit
4,272
56
11
585
972
546
426
61
1
module Parse.Thread ( getThreadFromHtml ) where import Types (Thread (Thread), User (User)) import Text.HTML.TagSoup (Tag(TagOpen), fromAttrib, (~/=)) import Data.ByteString.Char8 (ByteString, unpack) import qualified Data.ByteString.Char8 as BS (words, drop, length, dropWhile, takeWhile) import Text.Regex.Pos...
JacobLeach/xen-parsing
app/Parse/Thread.hs
mit
2,624
6
23
445
893
458
435
54
4
module Fretted.LilyPond where version :: String version = "2.18.0" enclose :: String -> String -> String -> String enclose open close body = unlines [open, body, close] quote :: String -> String quote body = "\"" ++ body ++ "\"" curly :: String -> String curly body = enclose " { " " } " body arrow :: String -> Str...
sklam/fretted
Fretted/LilyPond.hs
mit
1,643
0
12
413
562
302
260
33
1
{-# LANGUAGE OverloadedStrings #-} module RouterTests where import Control.Lens import Control.Monad.Trans import Control.Monad.State (execStateT) import qualified Data.ByteString as B import Data.Monoid ((<>)) import Web.Growler import Web.Growler.Router import Web.Growler.Types (GrowlerT(..)) import Network.HTTP.Typ...
iand675/growler
test/RouterTests.hs
mit
856
0
14
138
301
162
139
23
1
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE PackageImports #-} {-# LANGUAGE TemplateHaskell #-} module PureScript.Ide.Internal.Sandbox where import Control.Concurrent.STM import Control.Lens (over, _1, _2) import Control.Monad.Except import "monad-logger" C...
kRITZCREEK/psc-ide
src/PureScript/Ide/Internal/Sandbox.hs
mit
2,877
0
15
554
514
284
230
57
1
{-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeSynonymInstances #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleInstances, FlexibleContexts #-} module Monad.Bracket ( BracketT, MonadBracket(..), runBracketT ) where import Monad.Cont import Monad.Try import Control.Monad.Trans.Cont (ContT(ContT), runCont...
duncanburke/bracket-monad
Monad/Bracket.hs
mit
895
0
12
169
346
186
160
22
1
{-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE Trustworthy #-} ----------------------------------------------------------------------------- -- | -- Module : Intro.Trustworthy -- Copyright : (c) Daniel Mendler 2016-2017 -- License : MIT --...
minad/intro
src/Intro/Trustworthy.hs
mit
4,233
0
8
798
449
293
156
54
1
module QuickSort where import Data.List quicksort :: Ord a => [a] -> [a] quicksort [] = [] quicksort (p:xs) = quicksort lesser ++ [p] ++ quicksort greater where (lesser, greater) = partition (<p) xs
antalsz/hs-to-coq
examples/quicksort/QuickSort.hs
mit
213
0
8
48
98
53
45
6
1
-- XMonad config by Erik Bjäreholt -- Inspired by: http://thinkingeek.com/2011/11/21/simple-guide-configure-xmonad-dzen2-conky/ -- Imports {{{ import XMonad import XMonad.Util.Run import XMonad.Util.Loggers import Data.Monoid -- Prompt import XMonad.Prompt import XMonad.Prompt.RunOrRaise (...
ErikBjare/dotfiles
home/.xmonad/xmonad.hs
mit
16,393
136
14
5,578
3,038
1,791
1,247
196
6
module Day22Spec (spec) where import Day22 import Data.Array (Array) import qualified Data.Array as Array import Test.Hspec main :: IO () main = hspec spec sampleInput :: String sampleInput = unlines [ "root@ebhq-gridcenter# df -h" , "Filesystem Size Used Avail Use%" , "/dev/grid/node-x0-y...
brianshourd/adventOfCode2016
test/Day22Spec.hs
mit
1,725
0
14
591
463
258
205
45
1
----------------------------------------------------------------------------- -- -- Module : IDE.Pane.ClassHierarchy -- Copyright : (c) Juergen Nicklisch-Franken, Hamish Mackenzie -- License : GNU-GPL -- -- Maintainer : <maintainer at leksah.org> -- Stability : provisional -- Portability : portable...
JPMoresmau/leksah
src/IDE/Pane/ClassHierarchy.hs
gpl-2.0
39,087
0
15
14,865
2,325
1,209
1,116
-1
-1
-- -- This module provides an implementation to interface with -- libXL, a flavor of toolstack for the Xen Hypervisor. -- Most calls here simply invoke the xl command line utility -- for simplicity, although one could bypass the xl command line -- utility by using the Haskell FFI (foreign function interface) -- to hook...
OpenXT/manager
xenmgr/XenMgr/Connect/Xl.hs
gpl-2.0
17,357
0
23
5,261
4,648
2,292
2,356
362
5
import Probability import Data.Frame -- Shift the value when mu or sigma changes. normal' mu sigma = do z <- normal 0.0 1.0 return $ mu + z*sigma model floor_values county_code_values log_radon_data = do let n_counties = length $ nub $ county_code_values mu_a <- normal 0.0 (100.0**2.0) sigma_a <- half_cau...
bredelings/BAli-Phy
tests/prob_prog/examples.3/glm_hierarchical_model/Main.hs
gpl-2.0
1,274
0
15
256
388
189
199
24
1
{-# LANGUAGE PatternGuards #-} module Optimize ( optimize, findToDo, findNamedSubexpression, findNamedScalar, findFFTtodo, findFFTinputtodo ) where import Expression import Statement import qualified Data.Set as Set numtotake :: Int numtotake = 20000 subsq :: [a] -> [[a]] sub...
droundy/deft
src/haskell/Optimize.hs
gpl-2.0
9,090
0
19
3,509
2,966
1,491
1,475
131
5
{-# LANGUAGE DeriveDataTypeable #-} {- | Module : ./TPTP/AS.der.hs Description : Abstract syntax for TPTP v6.4.0.11 Copyright : (c) Eugen Kuksa University of Magdeburg 2017 License : GPLv2 or higher, see LICENSE.txt Maintainer : Eugen Kuksa <kuksa@iks.cs.ovgu.de> Stability : provisional Portability...
spechub/Hets
TPTP/AS.der.hs
gpl-2.0
67,875
0
11
20,248
8,074
4,664
3,410
644
7
{-# LANGUAGE TypeFamilies #-} module LifeGame.Data.CellGrid ( CellGrid(..) , cellGrid , randCellGrid , indices , neighbours , distance , directionTo , searchCell , alives , deads , population ) where import LifeGame.Data.Cell (Cell(..), State(..), setState, isAlive, isDea...
qleguennec/lifegame
src/LifeGame/Data/CellGrid.hs
gpl-3.0
2,132
0
18
486
874
484
390
50
2
{-# OPTIONS_GHC -Wall #-} module Yorgey.Wk2.LogAnalysis where import Yorgey.Wk2.Log -- This one is not on me. Had to look it up on Google. -- But learned read, words and unwords functions, which is cool. -- Converting to a List of String, instead of parsing as list of characters, -- which is what I tried to do origi...
balajisivaraman/yorgey-course
src/Yorgey/Wk2/LogAnalysis.hs
gpl-3.0
2,194
0
12
454
568
298
270
34
4
-- Pretty.hs --- -- -- Filename: Pretty.hs -- Description: -- Author: Manuel Schneckenreither -- Maintainer: -- Created: Sat Feb 28 19:47:39 2015 (+0100) -- Version: -- Package-Requires: () -- Last-Updated: Sat Feb 28 20:05:38 2015 (+0100) -- By: Manuel Schneckenreither -- Update #: 11 -- URL: -- Doc URL:...
schnecki/HaskellMachineLearning
src/Data/ML/RandomForest/Pretty.hs
gpl-3.0
903
0
17
202
175
112
63
9
0
{-# LANGUAGE BangPatterns #-} module View ( View() , ViewOptions(..) , startView , stopView , waitForView , addResult , clearResults ) where import Prelude hiding (FilePath, (.)) import Control.Category import Control.Concurrent import Control.Monad import Control.Monad.Trans import Data.Lens hiding ...
ktvoelker/Picker
src/View.hs
gpl-3.0
2,793
0
23
678
1,039
508
531
-1
-1
-- Copyright John F. Miller 2017 -- | A Hole is a TMVar that can only ever be written to once. module Runtime.Hole ( Hole , mkHole , readHole , maybeReadHole , writeHole) where import Control.Concurrent.STM -- | a STM location that can be written once then read as many times as -- needed. newtype Hole a ...
antarestrader/sapphire
Runtime/Hole.hs
gpl-3.0
1,052
0
10
236
228
122
106
20
2
{-# LANGUAGE UndecidableInstances, RankNTypes, FlexibleInstances, MultiParamTypeClasses #-} {-| Module : TypeConstraints License : GPL Maintainer : helium@cs.uu.nl Stability : experimental Portability : portable The type constraints used by the Helium compiler (all derived fro...
roberth/uu-helium
src/Helium/StaticAnalysis/Miscellaneous/TypeConstraints.hs
gpl-3.0
5,995
0
21
1,560
2,370
1,242
1,128
107
5
module Handlers ( module Handlers.Chunks , module Handlers.People , module Handlers.Browse , module Handlers.Submit , module Handlers.Login , module Handlers.Session , module Handlers.App ) where import Handlers.Chunks import Handlers.People import Handlers.Browse import Handlers.Submit import Handlers...
athanclark/happ-store
src/Handlers.hs
gpl-3.0
371
0
5
56
83
53
30
15
0
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- | -- Module : Network.Google.Prediction.Types.Sum -- Copyright : (c) 2015-2016 Bren...
rueshyna/gogol
gogol-prediction/gen/Network/Google/Prediction/Types/Sum.hs
mpl-2.0
604
0
4
109
29
25
4
8
0
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Subscriptions/TestIAMPermissions.hs
mpl-2.0
7,307
0
18
1,621
940
548
392
144
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-file/gen/Network/Google/Resource/File/Projects/Locations/Backups/Create.hs
mpl-2.0
6,086
0
18
1,351
866
506
360
125
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-servicebroker/gen/Network/Google/Resource/ServiceBroker/TestIAMPermissions.hs
mpl-2.0
5,983
0
16
1,333
787
463
324
116
1
{-| Module : Eval -} module Eval where import Ast import Invert import Text.PrettyPrint import Data.List (intersect, nub) import Debug.Trace lookupEnv :: Ident -> Env -> Val lookupEnv x ev = case lookup x ev of Nothing -> error ("in lookupEnv: Variable " ++ x ++ " not found\n" ++ ...
tyoko-dev/rwhile-B-haskell
src/Eval.hs
agpl-3.0
9,918
0
25
3,851
3,706
1,850
1,856
176
15
{- - This file is part of Bilder. - - Bilder 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 your option) any later version. - - Bilder i...
ingemaradahl/bilder
src/Compiler/Desugar/SimpleDecs.hs
lgpl-3.0
1,748
0
10
344
388
205
183
20
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeOperators #-} -- needed (despite what hlint says): {-# LANGUAGE TemplateHaskell #-} module Lib where import Contro...
haroldcarr/learn-haskell-coq-ml-etc
haskell/topic/type-level/2020-04-gabriel-volpe-parallel-typeclass/src/Lib.hs
unlicense
3,714
0
11
769
678
368
310
58
1
-- Copyright 2020-2021 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 -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed t...
google/hs-dependent-literals
dependent-literals-plugin/tests/WordLiterals.hs
apache-2.0
776
0
5
146
86
58
28
12
1
{-# LANGUAGE Unsafe #-} {-| Copyright : (C) 2015, University of Twente License : BSD2 (see the file LICENSE) Maintainer : Christiaan Baaij <christiaan.baaij@gmail.com> -} module CLaSH.Promoted.Nat.Unsafe (unsafeSNat) where import Data.Reflection (reifyNat) import Unsafe.Coerce (unsafeCoerce) import ...
Ericson2314/clash-prelude
src/CLaSH/Promoted/Nat/Unsafe.hs
bsd-2-clause
499
0
7
87
84
51
33
9
1
module BrownPLT.Testing ( runTest ) where import Text.Printf import System.IO import Test.HUnit.Base import System.Console.ANSI reportStart :: ReportStart us reportStart _ us = return us reportError :: ReportProblem us reportError msg s us = do hSetSGR stderr [SetUnderlining SingleUnderline] hPutStr stder...
brownplt/strobe-old
src/BrownPLT/Testing.hs
bsd-2-clause
960
0
10
211
301
144
157
28
1
{- (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[SimplCore]{Driver for simplifying @Core@ programs} -} {-# LANGUAGE CPP #-} module SimplCore ( core2core, simplifyExpr ) where #include "HsVersions.h" import DynFlags import CoreSyn import HscTypes import CSE ( cseProgram ) import Ru...
siddhanathan/ghc
compiler/simplCore/SimplCore.hs
bsd-3-clause
40,090
2
22
13,570
5,305
2,854
2,451
436
3
{- Some positive integers n have the property that the sum [ n + reverse(n) ] consists entirely of odd (decimal) digits. For instance, 36 + 63 = 99 and 409 + 904 = 1313. We will call such numbers reversible; so 36, 63, 409, and 904 are reversible. Leading zeroes are not allowed in either n or reverse(n). There are 120...
bgwines/project-euler
src/in progress/problem145.hs
bsd-3-clause
935
5
12
180
211
109
102
15
1
module Main where import Data.Proxy (Proxy(..)) import Safe.Length (safeLength) main :: IO () main = print $ safeLength (Proxy :: Proxy [Char]) ('a', 'b')
stepcut/safe-length
example/Tuple.hs
bsd-3-clause
157
0
9
26
70
41
29
5
1
{-# LANGUAGE TypeSynonymInstances #-} ----------------------------------------------------------------------------- -- | -- Module : Berp.Compile.IdentString -- Copyright : (c) 2010 Bernie Pope -- License : BSD-style -- Maintainer : florbitous@gmail.com -- Stability : experimental -- Portability : ghc --...
bjpop/berp
libs/src/Berp/Compile/IdentString.hs
bsd-3-clause
1,253
0
10
194
215
121
94
18
1