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 FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
-- | Inspecing and modifying 'Pattern's, function parameters and
-- pattern elements.
module Futhark.Representation.AST.Attributes.Patterns
(
-- * Function parameters
paramIdent
, paramType
, paramDeclType
--... | ihc/futhark | src/Futhark/Representation/AST/Attributes/Patterns.hs | isc | 5,028 | 0 | 9 | 964 | 1,011 | 542 | 469 | 82 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad (liftM, replicateM)
import Control.Monad.Reader (ReaderT, ask, asks, runReaderT)
import Control.Monad.IO.Class (liftIO)
import qualified Data.ByteString.Char8 as BC
import Data.Text.Encoding (decodeUtf8, encodeUtf8)
import qualified Data.Text.L... | mudphone/HaskellBook | shawty-prime/app/Main.hs | mit | 2,767 | 0 | 21 | 705 | 937 | 477 | 460 | 82 | 4 |
--------------------------------------------------------------------------------
--
-- Copyright (c) 2013 Tad Doxsee
-- All rights reserved.
--
-- Author: Tad Doxsee
--
--------------------------------------------------------------------------------
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE MultiParamType... | tdox/app-arch-sandbox | system.hs | mit | 14,816 | 0 | 13 | 4,294 | 1,082 | 627 | 455 | 90 | 1 |
{-# htermination delete :: (Ratio Int) -> [(Ratio Int)] -> [(Ratio Int)] #-}
import List
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/List_delete_9.hs | mit | 89 | 0 | 3 | 15 | 5 | 3 | 2 | 1 | 0 |
-- |
-- Clone server Model One
module Main
where
import Kvsimple
import Kvsimple(KVMsg(..))
import System.NanoMsg (Socket(..))
import qualified System.NanoMsg as N
import Control.Exception.Base(AsyncException(UserInterrupt))
import qualified Data.HashMap.Lazy as H
import Control.Concurrent (threadDelay)
import S... | cheme/nanomsg-hs | example/clonesrv1.hs | mit | 1,229 | 0 | 15 | 294 | 393 | 210 | 183 | 30 | 1 |
module ProjectEuler.Problem007Spec (main, spec) where
import Test.Hspec
import ProjectEuler.Problem007
main :: IO ()
main = hspec spec
spec :: Spec
spec = parallel $
describe "solve" $
it "finds the 10001st prime number" $
solve 10001 `shouldBe` 104743
| hachibu/project-euler | test/ProjectEuler/Problem007Spec.hs | mit | 268 | 0 | 9 | 53 | 79 | 43 | 36 | 10 | 1 |
module Demi.VM where
import System.Exit
import Control.Monad
import qualified Data.Map.Strict as Map
import System.Console.ANSI
import Demi.Parser
type Param = String
errorOut err =
do setSGR [SetColor Foreground Vivid Red]
fail err
getVar :: VarMap -> String -> VariableValue
getVar state id = case Map.... | oakfang/DemiLang | src/Demi/VM.hs | mit | 8,978 | 0 | 11 | 2,376 | 3,634 | 1,786 | 1,848 | 150 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Database.Persist.Migrationplus
( SqlUnitName
, SqlUnit
, ExtraValidate
, doesNotSupport
, ExtraCapabilities(..)
, validateExtras'
) where
import Database.Persist.Quasi
import qualified Data.Map as Map
import qualified Data.Text as T
import qualified Data.Text.Lazy as L... | jcristovao/migrationplus | src/Database/Persist/Migrationplus.hs | mit | 1,843 | 0 | 16 | 450 | 376 | 218 | 158 | 34 | 2 |
{-# LANGUAGE GADTs, OverloadedStrings, InstanceSigs, TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
-- | Provides actions for Guild API interactions.
module Network.Discord.Rest.Guild
(
GuildRequest(..)
) where
import Data.Aeson
import Data.Hashable
import Data.M... | jano017/Discord.hs | src/Network/Discord/Rest/Guild.hs | mit | 14,611 | 0 | 14 | 4,142 | 3,164 | 1,661 | 1,503 | -1 | -1 |
{-# LANGUAGE DataKinds, FlexibleContexts, GADTs,
NoMonomorphismRestriction, OverloadedLabels,
ScopedTypeVariables, TypeApplications, TypeOperators #-}
{-# OPTIONS_GHC -Wall -Wno-type-defaults #-}
import Data.Vinyl
import Data.Vinyl.Functor (Lift(..), Const(..), Compose(..), (:.))
import Lens.M... | VinylRecords/Vinyl | tests/Spec.hs | mit | 3,197 | 0 | 24 | 810 | 1,056 | 550 | 506 | 61 | 1 |
module Cric.MonadCric
( MonadCric(..)
, run
, asUser
, inDir
, withEnv
) where
import Control.Monad
import Data.List
import qualified Data.ByteString.Char8 as BS
import Cric.TypeDefs
-- | Typeclass to make a stack of monad transformers easy to use without having to lift.
cl... | thoferon/cric | src/Cric/MonadCric.hs | mit | 2,912 | 0 | 14 | 862 | 601 | 321 | 280 | 52 | 2 |
-- STILL WORKING
--findNb :: Integer -> Integer
--findNb m =
-- case squareRoot m of
-- Nothing -> -1
-- Just k ->
-- case rectangleRoot $ 2 * k of
-- Nothing -> -1
-- Just n -> n
--squareRoot :: Integer -> Maybe Integer
--squareRoot 0 = Just 0
--squareRoot n =
-- if y == n
-- then Just ... | friedbrice/codewars | haskell/PileOfCubes.hs | gpl-3.0 | 1,066 | 0 | 17 | 360 | 183 | 113 | 70 | 12 | 3 |
module Main where
import Control.Monad
import Test.HUnit
import System.Exit
import qualified Network.DNS.Public as P
import Public
import Simple
import Domain
import Expires
import MaxAge
import Path
import Replace
import Persistent
import Secure
import HttpOnly
import Multiple
sessionTests rules = map ($ rules)
... | ktvoelker/cookie-jar | test/Main.hs | gpl-3.0 | 744 | 0 | 16 | 133 | 204 | 111 | 93 | 32 | 1 |
{-
This file is part of HNH.
HNH 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.
HNH is distributed in the hope that ... | fferreira/hnh | Closure.hs | gpl-3.0 | 7,260 | 0 | 17 | 2,577 | 2,809 | 1,400 | 1,409 | 140 | 17 |
{-|
The Hledger.Data library allows parsing and querying of C++ ledger-style
journal files. It generally provides a compatible subset of C++ ledger's
functionality. This package re-exports all the Hledger.Data.* modules
(except UTF8, which requires an explicit import.)
-}
module Hledger.Data (
modul... | mstksg/hledger | hledger-lib/Hledger/Data.hs | gpl-3.0 | 2,004 | 0 | 6 | 452 | 258 | 176 | 82 | 46 | 1 |
import System.Environment
import System.IO
--
import HEP.Parser.LHE.Sanitizer.Action
main :: IO ()
main = do
args <- getArgs
let inputlhe = args !! 0
-- outputlhe = "/dev/stdout"
outputlhe = "ttt.lhe"
blobize inputlhe outputlhe
| wavewave/LHE-sanitizer | test/blobizetest.hs | gpl-3.0 | 254 | 0 | 10 | 59 | 69 | 37 | 32 | 9 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.Discovery
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla Pu... | rueshyna/gogol | gogol-discovery/gen/Network/Google/Discovery.hs | mpl-2.0 | 6,257 | 0 | 5 | 1,561 | 649 | 455 | 194 | 190 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-books/gen/Network/Google/Resource/Books/Bookshelves/Get.hs | mpl-2.0 | 5,067 | 0 | 20 | 1,275 | 861 | 499 | 362 | 119 | 1 |
-- This file is part of purebred
-- Copyright (C) 2017-2019 Róman Joost and Fraser Tweedale
--
-- purebred is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at yo... | purebred-mua/purebred | src/Purebred/UI/Index/Keybindings.hs | agpl-3.0 | 3,137 | 0 | 12 | 496 | 1,018 | 556 | 462 | 34 | 1 |
import Helpers.Table (triangleByRows)
import Data.Ratio ((%), denominator)
farey n = [k % n | k <- [1..n], gcd n k == 1]
a338797T n k = minimum [denominator $ a + b | a <- farey n, b <- farey k]
| peterokagey/haskellOEIS | src/Sandbox/Farey.hs | apache-2.0 | 196 | 0 | 9 | 42 | 113 | 59 | 54 | 4 | 1 |
module Cgm.Debug.Trace(
traceF
) where
import Debug.Trace
traceF :: (a -> String) -> a -> a
traceF f a = trace (f a) a | Cognimeta/cognimeta-utils | src/Cgm/Debug/Trace.hs | apache-2.0 | 122 | 0 | 7 | 27 | 58 | 32 | 26 | 5 | 1 |
module Chess.A334001Spec (main, spec) where
import Test.Hspec
import Chess.A334001 (a334001)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A334001" $
it "correctly computes the first 20 elements" $
map a334001 [1..20] `shouldBe` expectedValue where
expectedValue = [2, 2, 4, 4, 6, 8, 8,... | peterokagey/haskellOEIS | test/Chess/A334001Spec.hs | apache-2.0 | 373 | 0 | 8 | 80 | 154 | 92 | 62 | 10 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : Arthur.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:13
Warning : this file is machine generated - do not mo... | uduki/hsQt | Qt/Arthur.hs | bsd-2-clause | 540 | 0 | 5 | 98 | 38 | 27 | 11 | 6 | 0 |
{-# LANGUAGE Haskell2010 #-}
-- |
-- What is tested here:
--
-- * Deprecation messages are shown for re-exported items.
--
module DeprecatedReExport (
-- * Re-exported from an other module
foo
-- * Re-exported from an other package
-- | Not yet working, see <http://trac.haskell.org/haddock/ticket/223>
-- , isEmptyCha... | haskell/haddock | html-test/src/DeprecatedReExport.hs | bsd-2-clause | 390 | 0 | 4 | 60 | 29 | 23 | 6 | 5 | 0 |
module Paths_WebInterface (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName
) where
import Data.Version (Version(..))
import System.Environment (getEnv)
version :: Version
version = Version {versionBranch = [0,0,0], versionTags = []}
bindir, libdir, datadir, libexecdir :: File... | MichaelBaker/haskell-tictactoe | dist/build/autogen/Paths_WebInterface.hs | bsd-2-clause | 1,227 | 0 | 10 | 144 | 280 | 161 | 119 | 22 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Network.Docker (
Docker
, DockerT
, runDocker
, Id(..)
, Image(..)
, build
, HostName
, DomainName
, HostAddress
, Protocol(..)
, SrcPort(..)
, DstPort(..)
... | jystic/sandwich-press | src/Network/Docker.hs | bsd-3-clause | 13,990 | 0 | 25 | 3,991 | 3,601 | 1,975 | 1,626 | 310 | 1 |
module Main where
import Prelude hiding (all, any, and, not, or, (&&), (||))
import Control.Arrow ((***))
import Control.Monad (forM_)
import Control.Monad.State (MonadState)
import Data.Array
import Data.Char (isDigit, ord)
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Traversable (sequence)
imp... | cutsea110/slitherlink-solver | app/Main.hs | bsd-3-clause | 13,940 | 0 | 22 | 6,126 | 4,777 | 2,650 | 2,127 | 351 | 3 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
------------------------------------------------------------------------------
module Main ( main ) where
------------------------------------------------------------------------------
imp... | bitemyapp/envy | tests/Main.hs | bsd-3-clause | 4,800 | 0 | 18 | 1,432 | 1,171 | 606 | 565 | 92 | 1 |
{- |
Module : SAWScript.Crucible.LLVM.ResolveSetupValue
Description : Turn SetupValues back into LLVMVals
License : BSD3
Maintainer : atomb
Stability : provisional
-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE OverloadedStrings... | GaloisInc/saw-script | src/SAWScript/Crucible/LLVM/ResolveSetupValue.hs | bsd-3-clause | 45,825 | 0 | 31 | 13,848 | 11,252 | 5,583 | 5,669 | -1 | -1 |
import Test.Framework (defaultMain)
import Test.Framework (testGroup, Test)
import Test.Framework.Providers.HUnit
import Test.HUnit hiding (Test)
import Test.QuickCheck
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Data.List
import Grid2048
main :: IO ()
main = defaultMain [winConditionsSuite, cel... | joanna-/2048Haskell | test/Spec.hs | bsd-3-clause | 4,451 | 0 | 16 | 671 | 1,783 | 1,040 | 743 | 67 | 2 |
-- Copyright : (C) 2009 Corey O'Connor
-- License : BSD-style (see the file LICENSE)
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE MagicHash #-}
{- | A memory action that operates on a statically sized buffer.
-
-}
module Bind.Marshal.Action.Static
where
import Bind.Marshal.Prelude
import qualified Prelu... | coreyoconnor/bind-marshal | src/Bind/Marshal/Action/Static.hs | bsd-3-clause | 3,161 | 0 | 12 | 658 | 284 | 169 | 115 | -1 | -1 |
module Scheme.Evaluator.Prelude2 where
import Scheme.Evaluator.Micro
import Scheme.DataType.Error.Eval
import Scheme.LISP as L
import qualified Data.Map as M
--------------------------------------------------
-- GEnv
--------------------------------------------------
prelude2GEnv :: GEnv
prelude2GEnv = M.fromList [... | ocean0yohsuke/Scheme | src/Scheme/Evaluator/Prelude2.hs | bsd-3-clause | 2,545 | 0 | 14 | 528 | 794 | 414 | 380 | 45 | 3 |
{-
This file is part of the package csv-refactor. It is subject to the
license terms in the LICENSE file found in the top-level directory of
this distribution and at:
https://github.com/boulder-haskell-programmers/csv-refactor
No part of the csv-refactor package, including this file, may be
copied, modified, propa... | boulder-haskell-programmers/csv-refactor | src/PersonB.hs | bsd-3-clause | 1,604 | 0 | 12 | 329 | 223 | 127 | 96 | 22 | 1 |
{-# LANGUAGE RankNTypes, FlexibleContexts #-}
module FoldMapProperties where
import Prelude hiding (sum,product,all,any)
import Control.Arrow ((&&&))
import Data.Monoid
import Data.Foldable (Foldable,foldMap)
type Nat = Integer
(==>) :: Bool -> Bool -> Bool
p ==> q = not p || q
newtype MonoidHom m n =
MonoidHom {... | crypto-agda/explore | haskell/FoldMapProperties.hs | bsd-3-clause | 3,269 | 0 | 11 | 777 | 1,619 | 837 | 782 | -1 | -1 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
module GameScene (
gameScene
) where
import GameEngine.Scene
import GameEngine.Sprite
import GameEngine.Sprite.Square
import GameEngine.Sprite.Label
import GameEngine.Sprite.Colored
import Control.Lens
import Control.Monad (when)
import Control.Monad.I... | lotz84/SnakeGameHaskell | src/GameScene.hs | bsd-3-clause | 7,210 | 0 | 24 | 2,803 | 2,024 | 1,025 | 999 | -1 | -1 |
{-# LANGUAGE TupleSections, OverloadedStrings #-}
module Handler.Home where
import Import
getHomeR :: Handler Html
getHomeR = do
defaultLayout $ do
setTitle "Welcome To MetShop!"
$(widgetFile "home")
postHomeR :: Handler Html
postHomeR = notFound
| jabaraster/MetShop | Handler/Home.hs | bsd-3-clause | 270 | 0 | 12 | 56 | 59 | 30 | 29 | 10 | 1 |
module Chapter7.GuardsSpec where
import Test.Hspec
myAbs :: Integer -> Integer
myAbs x =
if x < 0
then (-x)
else x
newtype Age =
Age Integer
data User
= UnregisteredUser
| RegisteredUser Age
userOlder10 :: User -> String
userOlder10 (RegisteredUser (Age age)) =
if age >= 9
then "Yes... | yannick-cw/haskell_katas | test/Chapter7/GuardsSpec.hs | bsd-3-clause | 957 | 0 | 14 | 237 | 342 | 175 | 167 | 32 | 2 |
testEntry :: LogEntry
testEntry = LogEntry
{ name = "name"
, hostname = "hostname"
, pid = 123
, from = "from"
, level = 10
, time = "time"
, msg = "msg"
, v = 0
, error = Nothing
, contentLength = ... | cwmunn/logman | test/Spec.hs | bsd-3-clause | 676 | 0 | 7 | 304 | 151 | 94 | 57 | 23 | 1 |
module PackageTests.TestSuiteExeV10.Check (checks) where
import qualified Control.Exception as E (IOException, catch)
import Control.Monad (when)
import Data.Maybe (catMaybes)
import System.Directory ( doesFileExist )
import System.FilePath
import qualified Test.Framework as TF
import Test.Framework (testGroup)
import... | plumlife/cabal | Cabal/tests/PackageTests/TestSuiteExeV10/Check.hs | bsd-3-clause | 5,385 | 0 | 18 | 1,199 | 1,337 | 703 | 634 | 108 | 5 |
module Buzz
( check
) where
import qualified Data.ByteString as BS
import Data.Vector.Unboxed ( fromList )
import Data.ByteString.Arbitrary ( ArbByteString(ABS) )
import Test.QuickCheck ( quickCheck )
import Test.QuickCheck.Gen ( choose )
import Algorithm.OptimalBlocks.BuzzHash ( Hash(currentVal), hashes, init )
im... | tsuraan/optimal-blocks | tests/Buzz.hs | bsd-3-clause | 662 | 0 | 19 | 150 | 235 | 129 | 106 | 17 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Physics.Falling2d.Shape2d
(
DynamicShape2d(..)
, StaticShape2d(..)
, TransformedDynamicShape2d(..)
, TransformedStaticShape2d(..)
, module Physics.Falling.Shape.Ball
, module Physics.Falling.Shape.Plane
, module Physics.Falling2d.Rect... | sebcrozet/falling2d | Physics/Falling2d/Shape2d.hs | bsd-3-clause | 3,945 | 0 | 10 | 1,090 | 795 | 432 | 363 | 62 | 0 |
module Types.Internal.ChannelTest (tests) where
import Data.Aeson (encode, decode)
import Test.Tasty (TestTree , testGroup)
import Test.Tasty.QuickCheck (testProperty)
import Types.Internal.Channel (Channel, getChannel, channel)
tests :: TestTree
tests = testGroup "Types.Internal.ChannelTest"
[ testProperty "json... | bus000/Dikunt | test/Types/Internal/ChannelTest.hs | bsd-3-clause | 968 | 0 | 8 | 154 | 291 | 159 | 132 | 22 | 1 |
{-# LANGUAGE
CPP
, DeriveDataTypeable
, FlexibleInstances
, FlexibleContexts
, MultiParamTypeClasses
, TypeFamilies
, UndecidableInstances #-}
{- |
Copyright : (c) Andy Sonnenburg 2013
License : BSD3
Maintainer : andy22286@gmail.com
-}
module Data.Tuple.ST
( module Data.Tuple.MTuple
... | sonyandy/var | src/Data/Tuple/ST.hs | bsd-3-clause | 11,407 | 0 | 10 | 3,411 | 4,041 | 2,103 | 1,938 | 317 | 0 |
module Language.Haskell.GhcMod.Ghc (
-- * Converting the 'Ghc' monad to the 'IO' monad
withGHC
, withGHC'
-- * 'Ghc' utilities
, boot
, browse
, check
, info
, types
, modules
-- * 'SymMdlDb'
, Symbol
, SymMdlDb
, getSymMdlDb
, lookupSym
) where
import Language.Haskell.GhcMod.Boot
imp... | carlohamalainen/ghc-mod | Language/Haskell/GhcMod/Ghc.hs | bsd-3-clause | 538 | 0 | 4 | 94 | 98 | 69 | 29 | 20 | 0 |
module Multisnippet where
{- @snippet-start Multisnippet1.snip -}
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
{- @snippet-end -}
-- @snippet-start Multisnippet2.snip -}
ones = 1 : ones
-- @snippet-end
main = return ()
| dagit/snippet-extractor | examples/Multisnippet.hs | bsd-3-clause | 222 | 0 | 8 | 40 | 55 | 32 | 23 | 4 | 1 |
{-# LANGUAGE ScopedTypeVariables, FlexibleContexts, OverlappingInstances, GADTs, TypeFamilies #-}
module YaLedger.Reports.Postings
(Postings (..)) where
import YaLedger.Reports.API
data Postings = Postings
type POptions = CommonFlags
instance ReportClass Postings where
type Options Postings = POptions
type P... | portnov/yaledger | YaLedger/Reports/Postings.hs | bsd-3-clause | 2,630 | 0 | 18 | 618 | 908 | 450 | 458 | 51 | 3 |
module GPipeEffects where
import Graphics.GPipe
import Data.List
import qualified Data.Vec as Vec
import Data.Vec.Nat
import Data.Vec.LinAlg.Transform3D
simple cWorldProjection objs = foldl' (\fb obj -> paintColorDepth Less True NoBlending (RGB $ Vec.vec True) (rast obj) fb) clear objs
where
clear = newFrameBuf... | csabahruska/GFXDemo | GPipeEffects.hs | bsd-3-clause | 3,327 | 0 | 16 | 694 | 1,025 | 547 | 478 | 37 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Stack.Options.BuildParser where
import qualified Data.Map as Map
import Options.Applicative
import Options.Applicative.Args
import Options.Applicative.Builder.Extra
import Stack.Options.Completion
impo... | juhp/stack | src/Stack/Options/BuildParser.hs | bsd-3-clause | 3,788 | 0 | 23 | 1,294 | 641 | 319 | 322 | 105 | 1 |
data Nat = S Nat | Z
deriving (Eq, Show)
peanoGt :: Nat -> Nat -> Bool
peanoGt Z _ = False
peanoGt (S _) Z = True
peanoGt (S m) (S n) = peanoGt m n
peanoPlus :: Nat -> Nat -> Nat
peanoPlus Z n = n
peanoPlus (S m) n = S (peanoPlus m n)
fromInt :: Int -> Nat
fromInt 0 = Z
fromInt n = S (fromIn... | batterseapower/chsc | examples/toys/AccumulatingParam-Peano.hs | bsd-3-clause | 331 | 0 | 9 | 103 | 181 | 92 | 89 | 12 | 1 |
-- | This module provides an interface for typechecker plugins to
-- access select functions of the 'TcM', principally those to do with
-- reading parts of the state.
{-# LANGUAGE CPP #-}
module Eta.TypeCheck.TcPluginM (
#ifdef ETA_REPL
-- * Basic TcPluginM functionality
TcPluginM,
tcPluginIO,
... | rahulmutt/ghcvm | compiler/Eta/TypeCheck/TcPluginM.hs | bsd-3-clause | 4,086 | 0 | 10 | 741 | 831 | 483 | 348 | 2 | 0 |
{-# LANGUAGE CPP, FlexibleContexts, KindSignatures, StandaloneDeriving #-}
{-# OPTIONS -Wall #-}
-- | informations for generating native codes.
module Language.Paraiso.Generator.Native (
Setup(..), defaultSetup,
Language(..)
) where
import Data.Tensor.TypeLevel
import qualified Language.Paraiso.Optim... | nushio3/Paraiso | Language/Paraiso/Generator/Native.hs | bsd-3-clause | 1,433 | 0 | 10 | 358 | 300 | 185 | 115 | 31 | 1 |
module FP.GHCI where
| davdar/maam | src/FP/GHCI.hs | bsd-3-clause | 22 | 0 | 3 | 4 | 6 | 4 | 2 | 1 | 0 |
module Binpack.Quiz where
import qualified Binpack.Instance as I
import qualified Binpack.Param as P
import Binpack.Approximation
import System.Random
pick :: P.Param -> IO [ Integer ]
pick c = do
let bins = replicate ( P.bins c ) ( P.capacity c )
fun bins = do
let s = sum bins
if... | florianpilz/autotool | src/Binpack/Quiz.hs | gpl-2.0 | 757 | 0 | 23 | 290 | 340 | 177 | 163 | 22 | 3 |
--
-- Copyright (c) 2013 Citrix Systems, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This progra... | jean-edouard/manager | xec/xec.hs | gpl-2.0 | 13,451 | 0 | 24 | 3,406 | 4,008 | 1,976 | 2,032 | 276 | 9 |
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
-- | An interpreter operating on type-checked source Futhark terms.
-- Relatively slow.
module Language.Futhark.Interpreter
( Ctx (..),
Env,
InterpreterError,
initialCtx,
interpretExp,
... | diku-dk/futhark | src/Language/Futhark/Interpreter.hs | isc | 71,746 | 0 | 30 | 21,943 | 27,692 | 13,682 | 14,010 | 1,744 | 115 |
splitWhen :: (a -> Bool) -> [a] -> ([a], [a])
splitWhen _ [] = ([], [])
splitWhen p (x:xs)
| p x = ([], x:xs)
| otherwise = let (ys, zs) = splitWhen p xs
in (x:ys, zs)
-- >>> splitWhen even [1,2,3]
-- ([1],[2,3])
group :: Eq a => [a] -> [[a]]
group [] = []
group (x:xs) = let (group1,... | MartinThoma/LaTeX-examples | documents/Programmierparadigmen/scripts/haskell/lauflaengencodierung.hs | mit | 599 | 0 | 10 | 162 | 380 | 203 | 177 | 15 | 1 |
module Async where
type Callback a = (a -> IO ())
data Async a = Async { run :: (Callback a -> IO ()) }
--- utility for wrapping an IO operation as Async operation
liftIO :: IO a -> Async a
liftIO = undefined
--- this is how you might actually run an Async task
runAsync :: Async a -> IO ()
runAsync = undefined
ins... | raimohanska/Monads | challenges/Async/Async.hs | mit | 393 | 0 | 12 | 88 | 125 | 67 | 58 | 10 | 1 |
{- Author: Jeff Newbern
Maintainer: Jeff Newbern <jnewbern@nomaware.com>
Time-stamp: <Tue Aug 19 09:31:32 2003>
License: GPL
-}
{- DESCRIPTION
Example 25 - Using the StateT monad transformer
with the List monad to achieve non-deterministic
stateful computations, and the Write... | maurotrb/hs-exercises | AllAboutMonads/examples/example25.hs | mit | 6,038 | 118 | 12 | 1,909 | 1,821 | 1,000 | 821 | 109 | 2 |
module Graphics.Perfract.Pt where
import Graphics.Perfract.Tupelo
type Pt a = XY a
type Pt3 = XYZ Rational
type Ln a = AB (Pt a)
| dancor/perfract | src/Graphics/Perfract/Pt.hs | mit | 133 | 0 | 7 | 27 | 48 | 29 | 19 | 5 | 0 |
module FizzBuzz
( fizzBuzz
)
where
import Control.Arrow ( (>>>) )
import Control.Lens.Operators ( (&)
, (<&>)
)
import Data.Maybe ( fromMaybe
... | 72636c/correct-fizz-buzz | src/FizzBuzz.hs | mit | 1,432 | 0 | 10 | 668 | 327 | 183 | 144 | 28 | 1 |
{-# LANGUAGE ForeignFunctionInterface #-}
module Paths_test_curvelib (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import Foreign
import Foreign.C
import qualified Control.Exception as Exception
import Data.Version (Version(..))
import System.Environme... | sagi-schein/curvelib | test/dist/build/autogen/Paths_test_curvelib.hs | mit | 3,112 | 0 | 21 | 741 | 898 | 474 | 424 | 72 | 5 |
module Handler.QuickModFile where
import Import
import Control.Error
import Control.Monad.Trans.Maybe
import Data.Aeson
import Data.Default
import qualified Data.ByteString.Lazy as B
import qualified Data.Text.Encoding as TE
import qualified Data.QuickMod as Q
import Util.Error
getQuickModFileR :: Text -> Handler Te... | MultiMC/Old-QuickMod.io | Handler/QuickModFile.hs | mit | 2,971 | 0 | 15 | 862 | 770 | 401 | 369 | 63 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.WebGLDrawBuffers
(js_drawBuffersWEBGL, drawBuffersWEBGL,
pattern COLOR_ATTACHMENT0_WEBGL, pattern COLOR_ATTACHMENT1_WEBGL,
pattern COLOR_ATTACHMENT2_WEBGL, pattern COLOR_ATTACHMENT3_WEBGL,
... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/WebGLDrawBuffers.hs | mit | 3,997 | 8 | 10 | 541 | 825 | 480 | 345 | 78 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE StrictData #-}
module Matek.Types
( CMatrix(..)
, CEigenException(..)
, matekCatch
, Scalar(..)
, Decompos... | chpatrick/matek | src/Matek/Types.hs | mit | 2,961 | 0 | 13 | 706 | 938 | 492 | 446 | 79 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE CPP #-}
module Network.Wai.Handler.Warp.Response (
sendResponse
, sanitizeHeaderValue -- for testing
, fileRange -- for testing
, warpVersion
, addDate
, addServ... | rgrinberg/wai | warp/Network/Wai/Handler/Warp/Response.hs | mit | 15,832 | 0 | 21 | 3,672 | 3,200 | 1,706 | 1,494 | 249 | 8 |
module Accumulate (accumulate) where
accumulate :: (a -> b) -> [a] -> [b]
accumulate f (x:xs) = (f x) : (accumulate f xs)
accumulate _ _ = []
| vaibhav276/exercism_haskell | accumulate/src/Accumulate.hs | mit | 148 | 0 | 7 | 34 | 82 | 45 | 37 | 4 | 1 |
{-# OPTIONS_GHC -XBangPatterns #-}
-----------------------------------------------------------------------------
-- Module : Math.Statistics
-- Copyright : (c) 2008 Marshall Beddoe
-- License : BSD3
--
-- Maintainer : mbeddoe@<nospam>gmail.com
-- Stability : experimental
-- Portability : portable
--
-- D... | dmgolubovsky/chordemux | src/Statistics.hs | mit | 5,889 | 0 | 16 | 1,718 | 2,355 | 1,250 | 1,105 | -1 | -1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE PolyKinds, DataKinds, ConstraintKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts, FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
--{-# LANGUAGE RankNTypes #-}
--{-# LANGUAGE ScopedTypeVariables #-}
module TypeRep3 wher... | vladfi1/hs-misc | TypeRep3.hs | mit | 1,721 | 0 | 10 | 344 | 581 | 302 | 279 | -1 | -1 |
module Import
( module Import
) where
import Prelude as Import hiding (head, init, last,
readFile, tail, writeFile)
import Yesod as Import hiding (Route (..))
import Control.Applicative as Import (pure,... | tagami-keisuke/yesod-blog | Import.hs | mit | 1,105 | 0 | 6 | 533 | 147 | 108 | 39 | 18 | 1 |
{-#LANGUAGE FlexibleContexts, TypeOperators, DeriveDataTypeable, PatternGuards #-}
{-#LANGUAGE TypeSynonymInstances, FlexibleInstances, OverloadedStrings, MultiParamTypeClasses#-}
module Crystal.Check where
import Control.Applicative
import Control.Lens hiding (transform, transformM, universe, (.=), plate)
import Cont... | Botje/crystal | Crystal/Check.hs | gpl-2.0 | 22,724 | 0 | 25 | 9,126 | 8,161 | 4,050 | 4,111 | 390 | 26 |
{-# LANGUAGE FlexibleContexts, CPP #-}
import Test.Hspec
import Text.Pandoc hiding (readMarkdown)
import Text.Pandoc.Builder
import Control.Monad.State
import Data.List
import Control.Arrow
import Data.Monoid -- needed for ghc<7.10
import qualified Data.Map as M
import qualified Data.Default as Df
import Text.Pandoc.C... | infotroph/pandoc-crossref | test/test-pandoc-crossref.hs | gpl-2.0 | 20,239 | 0 | 29 | 5,503 | 5,661 | 2,923 | 2,738 | 345 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeF... | merijn/GPU-benchmarks | benchmark-analysis/src/Schema/Model/V2.hs | gpl-3.0 | 922 | 0 | 8 | 141 | 109 | 71 | 38 | 19 | 0 |
module DepProcessors.Composer (
findDefinitions,
installFromDefinition,
extractFilePath,
ComposerDefinition
) where
import qualified DepProcessors.Data.Result as R
import DepProcessors.ProcessorHelpers (getFileName, executeGenericProcessor, GenericProcessorConfig(..))
findDefinitions :: [FilePath] -> IO [... | splondike/depcache | src/DepProcessors/Composer.hs | gpl-3.0 | 1,044 | 0 | 10 | 166 | 208 | 120 | 88 | 19 | 1 |
-- Logic Monad Transformer: MonadPlusT with interleave, bindi, ifte and once
-- Definition and implementation of generic operations, in terms of msplit
{- Copyright (c) 2005, Amr Sabry, Chung-chieh Shan, Oleg Kiselyov,
and Daniel P. Friedman
-}
module LogicT.LogicT (
LogicT(..),
... | nishiuramakoto/logiku | mylogict/LogicT/LogicT.hs | gpl-3.0 | 3,408 | 0 | 13 | 1,013 | 969 | 510 | 459 | 46 | 2 |
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
module Data.SeqZipper where
import Control.Applicative hiding (empty)
import Data.Foldable
import Data.Monoid
import Data.Sequence
import Data.Traversable
--
import Prelude hiding... | wavewave/qft | old/lib/Data/SeqZipper.hs | gpl-3.0 | 3,607 | 0 | 19 | 976 | 1,695 | 916 | 779 | 90 | 3 |
module View.TemplateUtil where
-- |Given x, return the string "template/hamlet/x.hamlet
hamFile name = "template/hamlet/" ++ name ++ ".hamlet"
-- |Given x, return the string "template/lucius/x.lucius
cssFile name = "template/lucius/" ++ name ++ ".lucius"
-- |Given x, return the string "template/lucius/x.lucius
jsFile... | MortimerMcMire315/sparkive | src/View/TemplateUtil.hs | gpl-3.0 | 368 | 0 | 6 | 50 | 57 | 31 | 26 | 4 | 1 |
import Control.Monad (void)
import Distribution.PackageDescription
import Distribution.Simple
import Distribution.Simple.Setup (BuildFlags)
import System.Process
main = do
void $ createProcess (proc "bnfc" ["-m","--haskell","CAL.cf"])
defaultMain
-- defaultMainWithHooks simpleUserHooks { preBuild = calGenHook }... | robstewart57/cal-src | Setup.hs | gpl-3.0 | 878 | 0 | 11 | 133 | 84 | 52 | 32 | 8 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Placements/Update.hs | mpl-2.0 | 3,239 | 0 | 14 | 739 | 406 | 242 | 164 | 63 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.TagManager
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla P... | brendanhay/gogol | gogol-tagmanager/gen/Network/Google/TagManager.hs | mpl-2.0 | 36,153 | 0 | 83 | 5,653 | 3,771 | 2,836 | 935 | 710 | 0 |
{- 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/.
-}
module GpsDataMining (getGpsEventsAndPlaces , placeFrequency) where
import Data.List
import Data.Maybe
import Dat... | Zimmi48/gps-bank-data-analysis | GpsDataMining.hs | mpl-2.0 | 3,407 | 0 | 27 | 872 | 869 | 450 | 419 | 49 | 3 |
{-# LANGUAGE FlexibleContexts #-}
-- | Unification and matching
module CoALP.Unify (
match
, unify
, applySubst
, composeSubst
, stripVars
) where
import Control.Arrow((***))
import Control.Monad (join)
import Control.Applicative((<*>))
import Data.Functor ((<$>))
import Data.List (sortBy, nub)
import CoALP.Pr... | frantisekfarka/CoALP | src/CoALP/Unify.hs | lgpl-3.0 | 4,290 | 95 | 16 | 1,105 | 2,103 | 1,097 | 1,006 | 88 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module WriterBench (benchmarks) where
import Criterion
import Data.String (IsString (..))
import Data.Text (Text)
import Network.HTTP.Link.Types
import Network.HTTP.Link.Writer
import Network.URI... | myfreeweb/http-link-header | benchmark/WriterBench.hs | unlicense | 1,055 | 0 | 11 | 337 | 234 | 134 | 100 | 24 | 1 |
import Control.Parallel (par)
-- This is effectively a reimplementation of the "map" function, but
-- we get to utilize Haskell's neat "sparks", thus allowing for fast and efficient
-- multithreading, mostly handled by the runtime.
-- Copied from https://github.com/cyga/real-world-haskell/blob/master/ch24/ParMap.hs ... | Tombert/HaskellParallelFizzbuzz | main.hs | unlicense | 2,399 | 0 | 12 | 637 | 476 | 265 | 211 | 25 | 1 |
lend amount balance = let reserve = 100
newBalance = balance - amount
in if balance < reserve
then Nothing
else Just newBalance
lend2 amount balance = if amount < reserve * 0.5
then Just newBalance
... | chinaran/haskell-study | ch03/Lending.hs | apache-2.0 | 467 | 1 | 9 | 214 | 110 | 57 | 53 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE JavaScriptFFI #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-
Copyright 2020 The CodeWorld Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the... | google/codeworld | funblocks-client/src/Blockly/Workspace.hs | apache-2.0 | 5,887 | 31 | 14 | 911 | 1,015 | 531 | 484 | 100 | 2 |
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE OverloadedStrings #-}
module BarthPar.Scrape.Network where
import qualified C18.Balance as C18
import C18.Types
import Control.Error
import Control.Lens
import qualified Data.ByteString.Lazy as B
import qualified Data.Text ... | erochest/barth-scrape | src/BarthPar/Scrape/Network.hs | apache-2.0 | 2,276 | 0 | 12 | 696 | 590 | 325 | 265 | 53 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Midi.Message
Description : Producer interface for generating midi messages from control packets
Copyright : (c) Benedict R. Gaster, 2016
License : BSD3
Maintainer : benedict.gaster@email.com
Stability : experimental
Portability : Not sure!
We use two looku... | bgaster/plugables | host_module/src/Midi/Message.hs | bsd-2-clause | 7,103 | 0 | 19 | 1,497 | 1,012 | 522 | 490 | 93 | 2 |
{-# LANGUAGE ScopedTypeVariables, QuasiQuotes, TemplateHaskell, MultiParamTypeClasses, FlexibleInstances #-}
module TestXHaskell where
import Language.XHaskell
{- mongoDB style query
db.<tablename>.find( Q )
<query> Q :: = Q,Q (And)
| $or : [Q] (Or)
| simple_field : P
... | luzhuomi/xhaskell | test/TestXHaskell.hs | bsd-3-clause | 4,188 | 0 | 4 | 1,600 | 18 | 13 | 5 | 4 | 0 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
import Data.FAlgebra
import Data.Proxy
-- Implementation of the following article with F-Algebras instead of pattern synonyms
-- http://mpicke... | bhamrick/fixalgs | Examples/Hutton/Main.hs | bsd-3-clause | 1,839 | 0 | 12 | 412 | 663 | 337 | 326 | 55 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
module Sync.Remote.Hashing where
import Control.Monad
import Control.Monad.Trans
import qualified Data.ByteString.Lazy as BL
import Data.Conduit
import qualified Data.Conduit.List as CL
import ... | mcmaniac/sync | src/Sync/Remote/Hashing.hs | bsd-3-clause | 1,755 | 0 | 14 | 425 | 412 | 212 | 200 | 47 | 1 |
-- |
-- Copyright : (c) Sam Truzjan 2013
-- License : BSD3
-- Maintainer : pxqr.sta@gmail.com
-- Stability : stable
-- Portability : portable
--
-- Efficient encoding and decoding of base32hex encoded bytestring
-- according to RFC 4648. <http://tools.ietf.org/html/rfc4648>
--
-- This modu... | pxqr/base32-bytestring | src/Data/ByteString/Base32/Hex.hs | bsd-3-clause | 1,881 | 0 | 8 | 432 | 358 | 202 | 156 | 33 | 1 |
{-# LANGUAGE NamedFieldPuns #-}
module Network.Loli.Engine where
import Control.Monad.Reader hiding (join)
import Control.Monad.State hiding (join)
import Data.Default
import Hack
import Hack.Contrib.Middleware.NotFound
import Hack.Contrib.Middleware.UserMime
import Hack.Contrib.Utils hiding (get, put)
import MPS
imp... | skade/loli | src/Network/Loli/Engine.hs | bsd-3-clause | 1,803 | 2 | 13 | 379 | 590 | 333 | 257 | 42 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Test where
import Prelude hiding (putStrLn, readFile)
import Data.ByteString.Lazy.Char8 (readFile, pack, putStrLn, ByteString)
import Data.ByteString.Base64.Lazy (decode)
import System.IO (hPutStrLn, stderr)
import GCode
main :: IO ()
main = readFile "test.gcode" >>= either... | mwm/xyzify | Test.hs | bsd-3-clause | 383 | 0 | 10 | 50 | 115 | 68 | 47 | 9 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -Wall #-}
module Silvi.Random
( randLogEx... | chessai/silvi | src/Silvi/Random.hs | bsd-3-clause | 5,871 | 0 | 13 | 1,321 | 1,526 | 855 | 671 | 133 | 18 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
module Phil.Typecheck where
import Control.Applicative
import Control.Lens
import Control.Monad.Except
import Control.Monad.Fresh
import Control.... | LightAndLight/hindley-milner | src/Phil/Typecheck.hs | bsd-3-clause | 27,108 | 295 | 24 | 7,275 | 9,250 | 4,820 | 4,430 | 664 | 18 |
{-# LANGUAGE FlexibleContexts #-}
module Experiment (experiment, generators) where
import Data.Monoid
import Control.Arrow
import Simulation.Aivika
import Simulation.Aivika.Experiment
import Simulation.Aivika.Experiment.Chart
import qualified Simulation.Aivika.Results.Transform as T
import qualified Simulation.Ai... | dsorokin/aivika-experiment-chart | examples/GPSSExample7-31/Experiment.hs | bsd-3-clause | 1,970 | 0 | 9 | 382 | 367 | 212 | 155 | 51 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
-- |
-- Module : Args
-- Copyright : [2011] The Accelerate Team
-- License : BSD3
--
-- Maintainer : Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>
-- Stability : experimental
-- Portability : non-partable (GHC extensions)
--
module Args where
import Data.Version
impo... | AccelerateHS/accelerate-buildbot | src/Args.hs | bsd-3-clause | 2,854 | 0 | 14 | 929 | 538 | 288 | 250 | 89 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Types.Data.Decimal.Digits
-- Copyright : (c) 2008 Peter Gavin
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : pgavin@gmail.com
-- Stability : experimental
-- Portability : non-portable (t... | pgavin/tfp | Types/Data/Ord.hs | bsd-3-clause | 3,213 | 19 | 9 | 819 | 1,219 | 689 | 530 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Function (on)
import Data.List (sortBy)
import Test.Tasty
import Test.Tasty.HUnit
import Control.Monad.Trans.Free (hoistFreeT, iterT)
import qualified Control.Monad.Trans.Writer.Strict as Writer
import qualified Codec.Archive.Tar as Tar
import qualif... | ocharles/pipes-tar | test/Tests.hs | bsd-3-clause | 2,407 | 0 | 31 | 770 | 604 | 336 | 268 | 55 | 1 |
module Penny.Dump where
import Data.Sequence (Seq)
import qualified Data.Sequence as Seq
import Data.Text (Text)
import qualified Data.Text as X
import qualified Text.Show.Pretty as Pretty
import Rainbow (Chunk)
import qualified Rainbow
import Penny.Clatch.Types
import Penny.Cursor
import Penny.Pretty
import Penny.Re... | massysett/penny | penny/lib/Penny/Dump.hs | bsd-3-clause | 616 | 0 | 10 | 102 | 193 | 110 | 83 | 24 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.