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 LambdaCase, TupleSections, BangPatterns #-}
module Reducer.Base where
import Data.IntMap.Strict (IntMap)
import Data.Map (Map)
import Grin.Grin
import Grin.Pretty
import Text.PrettyPrint.ANSI.Leijen
import qualified Data.Map as Map
import qualified Data.IntMap.Strict as IntMap
-- models cpu registers
t... | andorp/grin | grin/src/Reducer/Base.hs | bsd-3-clause | 3,775 | 0 | 15 | 1,016 | 1,288 | 642 | 646 | 90 | 12 |
{-# LANGUAGE GeneralizedNewtypeDeriving
, FlexibleInstances
, ScopedTypeVariables
, MultiParamTypeClasses
, UndecidableInstances
, TypeFamilies
, GeneralizedNewtypeDeriving
, Rank2Types
, StandaloneDeriving
#-}
module DB.... | craffit/flexdb | src/DB/Flex/Monad.hs | bsd-3-clause | 2,990 | 0 | 12 | 695 | 1,064 | 543 | 521 | 73 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module TestTagCompleter where
import Control.Monad (when)
import Control.Applicative ((<$>))
import Data.Aeson
import qualified Data.Text as T
import Data.Char
import Data.Aeson.Types
import Data.Either
import ... | rethab/tagger | test/TestTagCompleter.hs | bsd-3-clause | 11,154 | 0 | 25 | 3,754 | 3,035 | 1,509 | 1,526 | -1 | -1 |
{-# LANGUAGE CPP #-}
-- ---------------------------------------------------------------------------
-- |
-- Module : Data.Vector.Algorithms.Optimal
-- Copyright : (c) 2008-2010 Dan Doel
-- Maintainer : Dan Doel
-- Stability : Experimental
-- Portability : Portable
--
-- Optimal sorts for very small array siz... | tolysz/vector-algorithms | src/Data/Vector/Algorithms/Optimal.hs | bsd-3-clause | 11,982 | 0 | 37 | 6,433 | 2,492 | 1,168 | 1,324 | 175 | 24 |
module Serv.Wai.Error where
import Data.Set (Set)
import Network.HTTP.Kinder.Verb
-- | Errors which arise during the "handling" portion of dealing with a response.
data RoutingError
= NotFound
| BadRequest (Maybe String)
| UnsupportedMediaType
| MethodNotAllowed (Set Verb)... | tel/serv | serv-wai/src/Serv/Wai/Error.hs | bsd-3-clause | 503 | 0 | 8 | 115 | 84 | 50 | 34 | 11 | 1 |
module Part2.Problem48 where
--
-- Problem 48: Self powers
--
-- The series, 1^1 + 2^2 + 3^3 + ... + 10^10 = 10405071317.
--
-- Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000.
problem48 :: Integer
problem48 = sum [x^x | x <- [1..1000]] `mod` 10^10
| c0deaddict/project-euler | src/Part2/Problem48.hs | bsd-3-clause | 277 | 0 | 11 | 58 | 55 | 34 | 21 | 3 | 1 |
-- | This module implements encoding and decoding
-- of [comma-separated values (CSV)](https://en.wikipedia.org/wiki/Comma-separated_values)
-- data. The implementation is [RFC 4180](https://tools.ietf.org/html/rfc4180)
-- compliant, with the following extensions:
--
-- * Empty lines are ignored.
--
-- * Non-escaped ... | hvr/cassava | src/Data/Csv.hs | bsd-3-clause | 12,598 | 0 | 5 | 2,557 | 568 | 488 | 80 | 62 | 0 |
{-# LANGUAGE BangPatterns #-}
module Main where
import Codec.Archive.Tar as Tar
import Control.Exception (Exception, throwIO)
import Control.Monad.IO.Class
import Control.Monad.State.Lazy (state)
import Data.Foldable
import Data.Map.Lazy as Map
import System.Exit (ExitCode(ExitSuccess))
import System.FilePath
import ... | HakeIO/hake-solver | tests/Main.hs | bsd-3-clause | 4,021 | 0 | 26 | 951 | 1,314 | 649 | 665 | 115 | 5 |
-- | Adapter for "System.Console.GetOpt".
module System.Console.CmdTheLine.GetOpt where
import Data.Maybe
import Data.Traversable
import System.Console.GetOpt
import System.Console.CmdTheLine
-- | Sequence a list of @'OptDescr's@ into a term. Absent flags
-- (specified with 'NoArg') are filtered out.
optDescrsTerm ::... | glutamate/cmdtheline | src/System/Console/CmdTheLine/GetOpt.hs | mit | 1,359 | 0 | 13 | 410 | 344 | 177 | 167 | 21 | 3 |
{- |
Module : ./CASL/Parse_AS_Basic.hs
Description : Parsing CASL's SIG-ITEMS, BASIC-ITEMS and BASIC-SPEC
Copyright : (c) Christian Maeder, Uni Bremen 2002-2004
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
Parser f... | spechub/Hets | CASL/Parse_AS_Basic.hs | gpl-2.0 | 4,310 | 0 | 23 | 1,056 | 1,440 | 720 | 720 | 91 | 2 |
module Paths_carettah where
import Data.Version
getDataFileName :: FilePath -> IO FilePath
getDataFileName = return
version :: Version
version = Version {versionBranch = [0,0,0], versionTags = ["dummy"]}
| uemurax/carettah | data/Paths_carettah.hs | gpl-2.0 | 206 | 0 | 7 | 28 | 62 | 38 | 24 | 6 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Spark.Core.IntegrationUtilities where
import GHC.Generics (Generic)
import Data.Text(Text)
import Data.Aeson(ToJSON)
import Spark.Core.Context
import Spark.Core.... | krapsh/kraps-haskell | test-integration/Spark/Core/IntegrationUtilities.hs | apache-2.0 | 1,811 | 0 | 9 | 274 | 508 | 282 | 226 | 60 | 1 |
{-# OPTIONS_GHC -cpp #-}
-----------------------------------------------------------------------------
-- |
-- Module : CabalSetup
-- Copyright : (c) The University of Glasgow 2006
--
-- Maintainer : http://hackage.haskell.org/trac/hackage
-- Stability : alpha
-- Portability : portable
--
-- The user in... | FranklinChen/hugs98-plus-Sep2006 | packages/Cabal/cabal-setup/CabalSetup.hs | bsd-3-clause | 4,026 | 23 | 22 | 880 | 855 | 457 | 398 | -1 | -1 |
--==========================================================--
--=== The parser. ===--
--=== Parser.hs ===--
--==========================================================--
module Parser where
{- FIX THESE UP -}
--utLookupDef env k def
--... | roberth/uu-helium | test/simple/benchmarks/big_big_test.hs | gpl-3.0 | 44,424 | 141 | 21 | 17,443 | 13,113 | 7,070 | 6,043 | -1 | -1 |
{-# LANGUAGE MagicHash #-}
-- |
-- Module : Data.Text.UnsafeShift
-- Copyright : (c) Bryan O'Sullivan 2009
--
-- License : BSD-style
-- Maintainer : bos@serpentine.com, rtomharper@googlemail.com,
-- duncan@haskell.org
-- Stability : experimental
-- Portability : GHC
--
-- Fast, unchecked bi... | abakst/liquidhaskell | benchmarks/text-0.11.2.3/Data/Text/UnsafeShift.hs | bsd-3-clause | 1,901 | 0 | 10 | 434 | 405 | 229 | 176 | 29 | 0 |
module Fail1 where
-- define an infix constructor and attempt to remove it...
data T1 a b = a :$: b | b :#: a
g :: T1 Int Int -> Int
g (x :$: y) = x + y
f x y = g (x :$: y)
| kmate/HaRe | old/testing/removeCon/Fail1_TokOut.hs | bsd-3-clause | 179 | 0 | 7 | 54 | 78 | 43 | 35 | 5 | 1 |
{-# LANGUAGE MagicHash #-}
module Main where
import GHC.Exts ( Float(F#),
eqFloat#, neFloat#, ltFloat#,
leFloat#, gtFloat#, geFloat#,
tagToEnum#
)
fcmp_eq, fcmp_ne, fcmp_lt, fcmp_le, fcmp_gt, fcmp_ge :: (String, Float -> Float -> Bool)
fcmp_eq = ("==", \ (F# a) (F# b) -> tagToEnum#... | seereason/ghcjs | test/ghc/numeric/arith016.hs | mit | 1,091 | 6 | 12 | 272 | 496 | 285 | 211 | 24 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module T7918A where
import Language.Haskell.TH
import Language.Haskell.TH.Quote
qq = QuasiQuoter {
quoteExp = \str -> case str of
"e1" -> [| True |]
"e2" -> [| id True |]
"e3" -> ... | siddhanathan/ghc | testsuite/tests/quasiquotation/T7918A.hs | bsd-3-clause | 1,070 | 0 | 15 | 605 | 244 | 146 | 98 | 23 | 10 |
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE ViewPatterns #-}
module Data.AER.SIFT where
import Data.AER.DVS128
import Data.AER.Types
import System.Environment
import qualified Data.Vector as V
import qualified Data.Vector.Unboxed as UV
import qualified Data.Vector.Unboxed.Mutable ... | fhaust/aer-utils | src/Data/AER/SIFT.hs | mit | 4,232 | 0 | 40 | 1,281 | 1,450 | 762 | 688 | 79 | 2 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TemplateHaskell #-}
module Db.Place
( Place'(Place)
, NewPlace
, Place
, placeQuery
, allPlaces
... | benkolera/talk-stacking-your-monads | code-classy/src/Db/Place.hs | mit | 2,351 | 2 | 11 | 528 | 719 | 378 | 341 | 69 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE RecordWildCards, NamedFieldPuns #-}
{-# LANGUAGE TupleSections #-}
module Main where
import Data.Maybe (mapMaybe)
import Control.Monad
import Control.Monad.State
import qualified Data.ByteString.Lazy as T... | kovach/web2 | server/Main.hs | mit | 6,359 | 0 | 22 | 1,639 | 2,286 | 1,154 | 1,132 | 165 | 4 |
module Main where
import System.Environment
main :: IO ()
main = do
putStrLn ("Type a name:")
args <- getLine
putStrLn ("Hello, " ++ args) | rodrigoalviani/haskell-exercises | e01.03.hs | mit | 145 | 0 | 9 | 30 | 53 | 27 | 26 | 7 | 1 |
module Network.CryptoNote.P2P.Command.GetObjects.Request where
import Network.CryptoNote.Crypto.Hash (Hash, Id)
-- cryptonote_protocol_handler.h
-- cryptonote_protocol_defs.h
-- #define BC_COMMANDS_POOL_BASE 2000
-- const static int ID = BC_COMMANDS_POOL_BASE + 3;
data RequestGetObjects = RequestGetObjects
{ tx... | nvmd/hs-cryptonote | src/Network/CryptoNote/P2P/Command/GetObjects/Request.hs | mit | 390 | 0 | 10 | 61 | 73 | 47 | 26 | 6 | 0 |
module Graphics.CG.Primitives.BoundBox(BoundBox (..), boundPoints, pointInBoundBox) where
import Graphics.Gloss.Data.Point
data BoundBox a = BoundBox !a !a !a !a deriving (Show, Eq)
boundPoints :: Ord a => [(a, a)] -> BoundBox a
boundPoints ps =
let
xs = map fst ps
ys = map snd ps
in BoundBox (... | jagajaga/CG-Haskell | Graphics/CG/Primitives/BoundBox.hs | mit | 493 | 0 | 9 | 102 | 216 | 115 | 101 | 19 | 1 |
-- Problem 7
-- (**) Flatten a nested list structure.
--
-- We have to define a new data type, because lists in Haskell are homogeneous.
-- data NestedList a = Elem a | List [NestedList a]
-- > flatten (Elem 5)
-- [5]
-- > flatten (List [Elem 1, List [Elem 2, List [Elem 3, Elem 4], Elem 5]])
-- [1,2,3,4,5]
-- > flatte... | usami-k/H-99-Ninety-Nine-Haskell-Problems | 01-10/07.hs | mit | 522 | 0 | 9 | 109 | 120 | 67 | 53 | 5 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Game.Halma.TelegramBot.View.Pretty
( prettyUser
, localeFlag
, teamEmoji
) where
import Game.Halma.Board
import Game.Halma.TelegramBot.Model.Types
import Data.Monoid ((<>))
import qualified Data.Text as T
import qualified Web.Telegram.API.Bot as TG
prettyUser :: TG.... | timjb/halma | halma-telegram-bot/src/Game/Halma/TelegramBot/View/Pretty.hs | mit | 1,091 | 0 | 12 | 220 | 244 | 141 | 103 | 31 | 6 |
module Signs.Term where
{-
- lambda term ADT
- parser
- pretty printer
- export to latex
-}
import Prelude hiding (drop)
import Signs.Tex
import Signs.Type
import Signs.Parse
import Data.Char
import Text.ParserCombinators.Parsec hiding (option)
import Text.ParserCombinators.Parsec.Expr
import Control.Monad
import Dat... | ChrisBlom/Signs | src/Signs/Term.hs | mit | 10,222 | 0 | 18 | 2,753 | 4,938 | 2,432 | 2,506 | 263 | 24 |
module P03 where
least_divisor :: Integer -> Integer -> Integer
least_divisor k n =
let factors = dropWhile (\x -> n `mod` x > 0) [k .. n]
in case factors of
[] -> n
f:fs -> f
pfactors k n =
if d == n
then [n]
else d : pfactors d (n `div` d)
where d = least_divisor k n
solution = maximum... | drcabana/euler-fp | source/hs/P03.hs | epl-1.0 | 373 | 0 | 13 | 107 | 169 | 90 | 79 | 14 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances, TypeSynonymInstances, OverlappingInstances #-}
module NLP.GenI.Test.Semantics ( suite ) where
import Control.Applicative ( (<$>), (<*>) )
import Control.Arrow ( first )
import Data.Maybe ( isJust, maybeToList )
import qualified Data.Map as Map
import ... | kowey/GenI | geni-test/NLP/GenI/Test/Semantics.hs | gpl-2.0 | 7,161 | 0 | 16 | 1,439 | 2,043 | 1,089 | 954 | 127 | 1 |
-- | Playing with Traversables.
--
-- Sources:
-- - https://en.wikibooks.org/wiki/Haskell/Traversable
module Lib where
import Control.Applicative
import Control.Monad.State.Lazy
import Data.Foldable
import Data.Monoid
someFunc :: IO ()
someFunc = putStrLn "someFunc"
-- * Fun... | capitanbatata/sandbox | pw-traversables/src/Lib.hs | gpl-3.0 | 5,240 | 0 | 11 | 1,318 | 836 | 489 | 347 | 34 | 1 |
import Control.Monad
import Data.Char
main = forever $ do
l <- getLine
putStrLn $ map toUpper l
| medik/lang-hack | Haskell/LearnYouAHaskell/c09/capslocker.hs | gpl-3.0 | 101 | 0 | 9 | 22 | 39 | 19 | 20 | 5 | 1 |
-- Functions related to the management and creation of modules
module HandlerManagement
( addHandler
, EventHandler
) where
import qualified Data.Map as Map
import Network.Socket
import Control.Monad.State
import Request
addHandler :: Command -> EventHandler -> BotState -> BotState
addHandler command handler botStat... | UndeadMastodon/ShrubBot | HandlerManagement.hs | gpl-3.0 | 579 | 0 | 13 | 91 | 158 | 89 | 69 | 13 | 2 |
module Problem024 (answer) where
import Data.List (unfoldr)
import NumUtil (recompose)
answer :: Int
answer = recompose $ unfoldr choseDigit (1000000-1, [0..9])
choseDigit :: (Int, [Int]) -> Maybe (Int, (Int, [Int]))
choseDigit (_, []) = Nothing
choseDigit (target, digits)
| target <= 0 = Just (head digits, (targe... | geekingfrog/project-euler | Problem024.hs | gpl-3.0 | 727 | 0 | 9 | 171 | 354 | 192 | 162 | 22 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{- |
Module : Mine
Description : Something that stays in place and explode when anything touches it
Copyright : (c) Frédéric BISSON, 2015
License : GPL-3
Maintainer : zigazou@free.fr
Stability : experimental
Portability : POSIX
A `Mine` is something that stays in place an... | Zigazou/Tank | src/Tank/Elements/Mine.hs | gpl-3.0 | 630 | 0 | 8 | 120 | 71 | 43 | 28 | 8 | 0 |
module L0308 where
import L0307 hiding (fresh,rlabel)
rlabel :: Tree a -> Int -> (Tree Int,Int)
rlabel (Leaf _) n = (Leaf n,n+1)
rlabel (Node l r) n = let (l1,n') = rlabel l n
(r1,n'') = rlabel r n' in (Node l1 r1,n'')
-- rlabel' :: Tree a -> Int -> Tree Int
fresh :: ST Int Int
fresh = ST ... | cwlmyjm/haskell | AFP/L0308.hs | mpl-2.0 | 1,273 | 0 | 12 | 394 | 615 | 321 | 294 | 31 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Web.All
( generateAllJS
, generateAllCSS
) where
import Control.Monad (when, forM_)
import Control.Monad.IO.Class (liftIO)
import Foreign.Ptr (Ptr)
import Foreign.Marshal.Alloc (allocaBytes)
import System.IO (withBinaryFile, IOMode(ReadMode, WriteMode), hPutChar, hGetBuf... | databrary/databrary | src/Web/All.hs | agpl-3.0 | 1,576 | 0 | 20 | 303 | 461 | 240 | 221 | 44 | 1 |
{-
Copyright (C) 2009 John Goerzen <jgoerzen@complete.org>
All rights reserved.
For license and copyright information, see the file COPYRIGHT
-}
module TestTime where
import TestInfrastructure
import Data.Convertible
import Test.QuickCheck
import Test.QuickCheck.Tools
import Test.QuickCheck.Instances
import qualifie... | snoyberg/convertible | testsrc/TestTime.hs | lgpl-2.1 | 7,302 | 0 | 13 | 1,950 | 1,959 | 975 | 984 | 160 | 2 |
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE QuasiQuotes #-}
module Main (main) where
import "hspec" Test.Hspec (hspec, describe)
-- local imports
import qualified QM.Spec
import qualified QN.Spec
import qualified QMB.Spec
import qualified QNB.Spec
import qualified QMS.Spec
import qualified QNS.Spec
-- Generated te... | unclechu/haskell-qm-interpolated-string | test/Spec.hs | unlicense | 1,416 | 0 | 9 | 195 | 274 | 161 | 113 | 31 | 1 |
module Main where
import Digits
import Factors
import Data.List
pandigitalProduct productNum = any isPandigital $ factorsWithout1andSelf productNum
where
isPandigital factor = isUniqueCombination (digits factor) (digits $ productNum `div` factor) (digits productNum)
isUniqueCombination multiplicantDigs mult... | kliuchnikau/project-euler | 032/Main.hs | apache-2.0 | 534 | 0 | 11 | 70 | 138 | 73 | 65 | 9 | 1 |
insertAt :: a -> [a] -> Int -> [a]
insertAt y xs 1 = y:xs
insertAt y (x:xs) n = x:insertAt y xs (n - 1)
| plilja/h99 | p21.hs | apache-2.0 | 104 | 0 | 8 | 26 | 77 | 40 | 37 | 3 | 1 |
{-# LANGUAGE ExtendedDefaultRules #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- Module : Rifactor.Types.AWS
-- Copyright : (c) 2015 Knewton, Inc <se@knewton.com>
-- (c) 2015 Tim Dysinger <tim@dysinger.net> (contributor)
-- License ... | Knewton/rifactor | src/Rifactor/Types/AWS.hs | apache-2.0 | 1,473 | 0 | 9 | 359 | 319 | 199 | 120 | 58 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Kubernetes.V1.ObjectReference where
import GHC.Generics
import Data.Text
import qualified Data.Aeson
-- | ObjectReference contains enough info... | minhdoboi/deprecated-openshift-haskell-api | kubernetes/lib/Kubernetes/V1/ObjectReference.hs | apache-2.0 | 1,952 | 0 | 9 | 290 | 143 | 86 | 57 | 20 | 0 |
{-# LANGUAGE DataKinds, EmptyDataDecls, TypeOperators, UndecidableInstances #-}
{-|
Module: HaskHOL.Lib.Bool.Context
Copyright: (c) Evan Austin 2015
LICENSE: BSD3
Maintainer: e.c.austin@gmail.com
Stability: unstable
Portability: unknown
This module extends the 'ctxtBase' context with the 'loadBo... | ecaustin/haskhol-deductive | src/HaskHOL/Lib/Bool/Context.hs | bsd-2-clause | 2,592 | 1 | 11 | 816 | 502 | 317 | 185 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Lang.Cortho.Types
Description : Core Cortho types
Copyright : (c) Benjamin F Jones, 2016
License : BSD-3
Maintainer : benjaminfjones@gmail.com
Stability : experimental
Portability : POSIX
This module contains all the core types for Cortho. In particular it... | benjaminfjones/cortho | src/Lang/Cortho/Types.hs | bsd-2-clause | 5,823 | 0 | 11 | 1,504 | 1,555 | 822 | 733 | 154 | 1 |
{-# Language OverloadedStrings #-}
{-# Language GADTs #-}
{-# Language TypeOperators #-}
{-# Language DataKinds #-}
{-# Language FlexibleContexts #-}
{-# Language FlexibleInstances #-}
{-# Language MultiParamTypeClasses #-}
module Hooks.Algebra where
import GHC.TypeLits
import Control.Monad.Reader
import Network.IRC
i... | MasseR/FreeIrc | src/Hooks/Algebra.hs | bsd-3-clause | 1,212 | 0 | 10 | 175 | 344 | 200 | 144 | 31 | 2 |
{-# Language DataKinds #-}
{-# Language TypeOperators #-}
{-# Language TypeFamilies #-}
{-# Language GADTs #-}
{-# Language AllowAmbiguousTypes #-}
{-# Language PolyKinds #-}
{-# Language UndecidableInstances #-}
{-# Language ScopedTypeVariables #-}
import GHC.TypeLits
data Proxy a = Proxy
data End
data (path :: k) ... | MasseR/Blog | queue/typelit.hs | bsd-3-clause | 768 | 0 | 9 | 155 | 218 | 120 | 98 | -1 | -1 |
{-# LANGUAGE CPP, DeriveDataTypeable, FlexibleContexts,
GeneralizedNewtypeDeriving, MultiParamTypeClasses,
TemplateHaskell, TypeFamilies, RecordWildCards #-}
module DataState where
import Control.Applicative ( (<$>) )
import Control.Exception ( bracket )
import Control.Monad ( msum )
import Control.Monad.Re... | archaephyrryx/CCG-Project | src/CCG/DataState.hs | bsd-3-clause | 2,671 | 75 | 13 | 484 | 858 | 484 | 374 | -1 | -1 |
module Simulator where
{- X86lite Simulator -}
{- See the documentation in the X86lite specification, available on the
course web pages, for a detailed explanation of the instruction
semantics.
-}
import X86
import Data.Int (Int64)
import Data.Word (Word8)
import Data.Bits (shiftR, shiftL, (.&.), (.|.))
impor... | halfaya/cis341 | haskell/src/Simulator.hs | bsd-3-clause | 7,179 | 0 | 13 | 1,801 | 813 | 476 | 337 | 56 | 17 |
module Language.CCS.Printer where
import Language.CCS.Data
import Text.PrettyPrint
import qualified Data.HashSet as HS
import qualified Data.HashMap.Strict as HM
includeToC :: CInclude -> Doc
includeToC (CInclude s) = text "#include" <+> (doubleQuotes $ text s)
headersToC = vcat . map includeToC
nativeTxtToM (St... | kapilash/dc | src/ccs2c/ccs2cs-lib/src/Language/CCS/Printer.hs | bsd-3-clause | 6,729 | 0 | 18 | 1,716 | 2,467 | 1,239 | 1,228 | 109 | 1 |
-- | Helper functions
module Matasano.Utils
(
usage
) where
import System.Environment (getProgName)
import System.Exit (exitWith, ExitCode(..))
usage :: String -> IO ()
usage args = do
progName <- getProgName
putStrLn $ "Usage: " ++ progName ++ " " ++ args
exitWith $ ExitFailure 1 | carletes/matasano | src/Matasano/Utils.hs | bsd-3-clause | 307 | 0 | 10 | 70 | 97 | 52 | 45 | 10 | 1 |
module CLaSH.Normalize.Types
( NormalizeState(..)
, NormalizeSession
, NormalizeStep
, nsNormalized
, nsBindings
, nsNetlistState
, emptyNormalizeState
)
where
-- External Modules
import Control.Monad.State.Strict (StateT)
import qualified Data.Label
import Data.Map (Map,empty)
import... | christiaanb/clash-tryout | src/CLaSH/Normalize/Types.hs | bsd-3-clause | 1,616 | 0 | 9 | 302 | 258 | 158 | 100 | -1 | -1 |
{-# LANGUAGE TemplateHaskell, GeneralizedNewtypeDeriving, FlexibleInstances, MultiParamTypeClasses #-}
module Match ( Bindings
, Value(..)
, Matcher
, runMatcher
, unA
, unB
, unS
, unN
, unL
, Pack
... | ratatosk/traceblade | Match.hs | bsd-3-clause | 3,710 | 0 | 12 | 1,183 | 1,340 | 705 | 635 | 114 | 4 |
module Tests.Integration where
import Test.Tasty ( TestTree, testGroup)
import Test.Tasty.HUnit
integrationTests :: TestTree
integrationTests = testGroup "Integration Tests"
[ testCase "Exit failure with no cabal files."
testNoCabalFiles
]
testNoCabalFiles... | creswick/cabal-query | tests/src/Tests/Integration.hs | bsd-3-clause | 386 | 0 | 7 | 101 | 61 | 35 | 26 | 9 | 1 |
---------------------------------------------------------------------------------
-- |
-- Module : Math.LinearEquationSolver
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : erkokl@gmail.com
-- Stability : stable
--
-- (The linear equation solver library is hosted at <http://github.c... | LeventErkok/linearEqSolver | Math/LinearEquationSolver.hs | bsd-3-clause | 7,353 | 0 | 14 | 1,845 | 845 | 499 | 346 | 49 | 1 |
module Data.Geo.GPX.Lens.DgpsidL where
import Data.Geo.GPX.Type.DgpsStation
import Data.Lens.Common
class DgpsidL a where
dgpsidL :: Lens a (Maybe DgpsStation)
| tonymorris/geo-gpx | src/Data/Geo/GPX/Lens/DgpsidL.hs | bsd-3-clause | 165 | 0 | 9 | 22 | 48 | 29 | 19 | 5 | 0 |
-- Programatica Front-End Commands, level 0
module Pfe0Cmds where
import Prelude hiding (print,putStr,putStrLn,catch,readFile)
import List((\\))
import Monad(unless,when)
import Maybe(fromJust)
import PFE0
import HsName(ModuleName(..),isMainModule,sameModuleName)
--import HsConstants(main_mod)
import HsLexerPass1(rmS... | forste/haReFork | tools/pfe/Pfe0Cmds.hs | bsd-3-clause | 6,354 | 48 | 19 | 1,284 | 1,966 | 1,067 | 899 | -1 | -1 |
module Kite.Test.TypeCheck (typeCheckTests) where
import Prelude hiding (lex)
import Test.Tasty
import Test.Tasty.HUnit
import Kite.Driver
import Kite.Environment
data TypeCheckError = TypeE | RefE | ArE | UnE deriving (Show, Eq)
run prog = case (analyze False . parse . lex) prog of
Right _ -> Nothing
Left ((T... | kite-lang/kite | tests/Kite/Test/TypeCheck.hs | mit | 3,506 | 0 | 11 | 1,043 | 620 | 317 | 303 | 74 | 5 |
module DeriveNounTests (tests) where
import Data.Acquire
import Data.Conduit
import Data.Conduit.List
import Test.QuickCheck hiding ((.&.))
import Test.Tasty
import Test.Tasty.QuickCheck
import Test.Tasty.TH
import Urbit.Prelude
import Urbit.Vere.Log
import Urbit.Vere.Pier.Types
import Control.Concurrent (runIn... | ngzax/urbit | pkg/hs/urbit-king/test/DeriveNounTests.hs | mit | 5,715 | 0 | 12 | 1,684 | 1,550 | 801 | 749 | -1 | -1 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE FlexibleContexts #-}
module SugarScape.Agent.Agent
( agentMsf
) where
import Control.Monad.Random
import Control.Monad.Trans.MSF.Reader
import Control.Monad.Trans.MSF.State
import Control.Monad.Trans.MSF.Writer
import Data.MonadicStreamFunction
import Su... | thalerjonathan/phd | thesis/code/sugarscape/src/SugarScape/Agent/Agent.hs | gpl-3.0 | 5,211 | 2 | 17 | 1,304 | 1,325 | 695 | 630 | 101 | 13 |
-- yammat - Yet Another MateMAT
-- Copyright (C) 2015 Amedeo Molnár
--
-- This program 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 your option) an... | nek0/yammat | Handler/Statistics.hs | agpl-3.0 | 4,842 | 0 | 18 | 1,083 | 1,268 | 673 | 595 | 102 | 7 |
-- this file is used by the cabal tool
-- to install this package use the command: cabal install
import Distribution.Simple
main = defaultMain
| wouwouwou/2017_module_8 | src/haskell/PP-project-2017/lib/sprockell-2017/Setup.hs | apache-2.0 | 143 | 0 | 4 | 24 | 13 | 8 | 5 | 2 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
module Test.Foundation.Parser
( testParsers
) where
import Foundation
import Foundation.Parser
import qualified Foundation.Parser as P
import Test.Tasty
import Test.Tasty.HUnit
data TestCaseRes a
= TestCaseOk String a
... | vincenthz/hs-foundation | foundation/tests/Test/Foundation/Parser.hs | bsd-3-clause | 5,356 | 0 | 17 | 1,387 | 1,788 | 890 | 898 | 87 | 4 |
-- |
-- Module : Console.Options.Monad
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : Good
--
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE Rank2Types #-}
module Console.Options.Monad
( ProgramDesc(..)
, ProgramMeta(... | NicolasDP/hs-cli | Console/Options/Monad.hs | bsd-3-clause | 2,906 | 0 | 12 | 777 | 606 | 345 | 261 | -1 | -1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Hans.Addr.Types where
import Hans.IP4.Packet (IP4,putIP4,showIP4)
import Data.Hashable (Hashable)
import Data.Serialize (Put)
import Data.Typeable (Typeable)
import GHC.Generics (Generic)
data Addr = Addr4 !IP4
deriving (Eq,Ord,Sho... | GaloisInc/HaNS | src/Hans/Addr/Types.hs | bsd-3-clause | 552 | 0 | 7 | 90 | 189 | 104 | 85 | 19 | 1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
module Language.Hakaru.Linter where
import Language.Hakaru.Syntax
newtype Linter a = Linter Bool
instance (Number a) => Order Linter a where
less = apply2
equal = apply2
instance Num (Linter a) where
fromInteger x = Linter True
(+) ... | bitemyapp/hakaru | Language/Hakaru/Linter.hs | bsd-3-clause | 3,524 | 0 | 9 | 1,435 | 1,160 | 611 | 549 | 106 | 1 |
{-# LANGUAGE DeriveDataTypeable, TypeFamilies, TemplateHaskell,
FlexibleInstances, FlexibleContexts, MultiParamTypeClasses,
TypeOperators, TypeSynonymInstances #-}
module Distribution.Server.Packages.State where
import Distribution.Server.Framework.Instances ()
import Distribution.Server.User... | isomorphism/hackage2 | Distribution/Server/Packages/State.hs | bsd-3-clause | 11,800 | 0 | 17 | 2,391 | 2,715 | 1,457 | 1,258 | 198 | 2 |
{-# LANGUAGE GADTs,RebindableSyntax,CPP,FlexibleContexts,FlexibleInstances,ConstraintKinds #-}
{-# OPTIONS_GHC -dcore-lint #-}
{-
- This test suite demonstrates that the special functions `log1p`, `expm1`, and `hypot` all work.
-}
module Main
where
import SubHask
-- import Prelude as P
--
-- fromRational = P.fr... | mikeizbicki/HerbiePlugin | test/SpecialFunctions.hs | bsd-3-clause | 765 | 0 | 9 | 126 | 121 | 69 | 52 | 11 | 1 |
{-# LANGUAGE BangPatterns,OverloadedStrings, FlexibleContexts #-}
module TclLib.StringCmds (stringCmds,
stringInits,
stringTests) where
import Common
import Control.Monad (liftM)
import Util
import Match (match, matchTests)
import qualified System.IO.Error as IOE
i... | muspellsson/hiccup | TclLib/StringCmds.hs | lgpl-2.1 | 9,345 | 0 | 18 | 2,974 | 3,469 | 1,802 | 1,667 | 206 | 5 |
module TestDoElim where
main = do putStrLn "Hello World"
let hello = "Hello"
world <- return "World"
do let again = "Again"
putStrLn (hello++" "++world++" "++again)
| forste/haReFork | StrategyLib-4.0-beta/examples/haskell/TestDoElim.hs | bsd-3-clause | 193 | 3 | 13 | 54 | 71 | 34 | 37 | 6 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE CPP #-}
module Test.Haddock.Config
( TestPackage(..), CheckConfig(..), DirConfig(..), Config(..)
, defaultDirConfig
, cfgSrcDir, cfgRefDir, cfgOutDir, cfgResDir
, parseArgs, checkOpt, loadConfig
) where
import Control.Applicative
import Control.Monad
... | Helkafen/haddock | haddock-test/src/Test/Haddock/Config.hs | bsd-2-clause | 8,758 | 0 | 16 | 2,019 | 2,326 | 1,229 | 1,097 | 196 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-| Logical Volumer information parser
This module holds the definition of the parser that extracts status
information about the logical volumes (LVs) of the system from the output of the
@lvs@ command.
-}
{-
Copyright (C) 2013 Google Inc.
All rights reserved.
Redistribution and u... | apyrgio/ganeti | src/Ganeti/Storage/Lvm/LVParser.hs | bsd-2-clause | 4,424 | 0 | 28 | 841 | 554 | 325 | 229 | 59 | 1 |
{-# LANGUAGE RankNTypes, NamedFieldPuns, RecordWildCards #-}
module Distribution.Server.Features.PackageContents (
PackageContentsFeature(..),
PackageContentsResource(..),
initPackageContentsFeature
) where
import Distribution.Server.Framework
import Distribution.Server.Framework.ResponseContentTypes as ... | ocharles/hackage-server | Distribution/Server/Features/PackageContents.hs | bsd-3-clause | 9,527 | 4 | 28 | 2,840 | 1,968 | 1,051 | 917 | 175 | 8 |
{-# LANGUAGE ParallelArrays #-}
{-# OPTIONS -fvectorise #-}
module SumNatsVect (sumNats) where
import Data.Array.Parallel.Prelude
import Data.Array.Parallel.Prelude.Int as I
import qualified Prelude as P
sumNats :: Int -> Int
sumNats maxN
= sumP [: x | x <- enumFromToP 0 (maxN I.- 1)
, (x `mod` 3 I.== 0)... | urbanslug/ghc | testsuite/tests/dph/sumnats/SumNatsVect.hs | bsd-3-clause | 347 | 3 | 11 | 71 | 121 | 73 | 48 | 10 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveGeneric #-}
module DB.Common where
import GHC.Generics
import Database.Persist.TH
data TransferState = Proposed | Prepared | Executed | Rejected
deriving (Show, Read, Eq, Generic)
derivePersistField "TransferState"
data TranferRejectionReason = Cancelled | Expire... | gip/cinq-cloches-ledger | src/DB/Common.hs | mit | 502 | 0 | 6 | 68 | 130 | 71 | 59 | 14 | 0 |
findLass [] = Nothing
findLass [x] = Just x
findLass (x:xs) = findLass(xs)
findLastButOne [] = error "nothing"
findLastButOne (x:[]) = error "nothing"
findLastButOne (x:y:[]) = x
findLastButOne (x:xs) = findLastButOne xs
elemenAt [] _ = error "no element"
elemenAt (x:xs) k = if (k <= 0)
then err... | hibou107/algocpp | euler.hs | mit | 6,105 | 0 | 15 | 2,618 | 2,991 | 1,595 | 1,396 | 141 | 3 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Network.Connection (
ConnOpts,
Conn,
initWS,
withOptions,
runConnection,
awaitData,
yieldData,
yieldResponse,
dispatchVoid,
dispatch,
closeConnection,
get,
log
) where
import P... | AKST/wikit | socket-server/src/Network/Connection.hs | mit | 3,525 | 0 | 14 | 653 | 1,025 | 532 | 493 | 84 | 2 |
{-# LANGUAGE FlexibleContexts #-}
module Network.VoiceText (
basicAuth,
ttsParams,
addFormat,
addEmotion,
addEmotionLevel,
addPitch,
addSpeed,
addVolume,
tts,
ttsToFile,
BasicAuth(..),
TtsParams(..),
Speaker(..),
Format(..),
Emotion(..),
Error(..)) where
import Control.Monad.Trans.Reso... | zaneli/network-voicetext | src/Network/VoiceText.hs | mit | 2,784 | 0 | 14 | 531 | 936 | 510 | 426 | 68 | 2 |
-----------------------------------------------------------------------------
--
-- Module : Transient.Indeterminism
-- Copyright :
-- License : GPL (Just (Version {versionBranch = [3], versionTags = []}))
--
-- Maintainer : agocorona@gmail.com
-- Stability :
-- Portability :
--
-- | see <https://www.f... | geraldus/transient | src/Transient/Indeterminism.hs | mit | 4,763 | 0 | 25 | 1,393 | 1,176 | 607 | 569 | 85 | 3 |
module Hydrogen.Syntax.Types where
import Hydrogen.Prelude
import Hydrogen.Parsing
type POPs a = [(SourcePos, POP a)]
data POP a where
Token :: TokenType -> [Char] -> [Char] -> POP a
Block :: BlockType -> [Char] -> POPs a -> POP a
Value :: a -> String -> POP a
deriving (Eq, Show, Typeable, Generic)
in... | hydrogen-tools/hydrogen-syntax | src/Hydrogen/Syntax/Types.hs | mit | 1,085 | 1 | 10 | 243 | 356 | 203 | 153 | -1 | -1 |
module Render.Render where
import Data.Monoid
import qualified Data.HashSet as S
import Graphics.Gloss
import Types.GameObjs
import FRP.Yampa
import Render.ImageIO
import Control.Lens (view)
-- | After parsing the game input and reacting to it we need to draw the
-- current game state which might have been updated... | santolucito/Euterpea_Projects | TransGame/src/Render/Render.hs | mit | 1,616 | 0 | 15 | 320 | 592 | 307 | 285 | 38 | 1 |
{-# LANGUAGE PackageImports #-}
{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-}
-- | Reexports "Foreign.Marshal.Alloc.Compat"
-- from a globally unique namespace.
module Foreign.Marshal.Alloc.Compat.Repl.Batteries (
module Foreign.Marshal.Alloc.Compat
) where
import "this" Foreign.Marshal.Alloc.C... | haskell-compat/base-compat | base-compat-batteries/src/Foreign/Marshal/Alloc/Compat/Repl/Batteries.hs | mit | 326 | 0 | 5 | 31 | 32 | 25 | 7 | 5 | 0 |
module Common where
import Data.List
import Control.Monad
import Control.Monad.Random
import Data.Array.ST
import GHC.Arr
import Data.List.Split
slidingWindow :: Int -> [a] -> [[a]]
slidingWindow n xs = take (length xs + 1 - n) . map (take n) . tails $ xs
eps :: Double
eps = 2 ** (-32)
shuffle :: MonadRandom m => [... | LukaHorvat/ArtGallery | src/Common.hs | mit | 1,488 | 0 | 19 | 444 | 759 | 389 | 370 | 39 | 2 |
{-|
Some sample things to try and make ...
-------------------------------
Single Well
Cell Modem Polled Well Set
Elynx Well Definition
GCS Well
Schlumberger Well
------------------------------
I think having a setting like default Maybe makes a lot of sense.
* If DefaultOptional is turned on, then every fi... | smurphy8/contraption | experiments/haskelly.hs | mit | 7,991 | 109 | 10 | 1,972 | 908 | 532 | 376 | -1 | -1 |
module Search (
alphabeta,
alphabetaWEndSolver,
Result(..)
) where
-- friends
import qualified BitBoard
import qualified Move
import qualified MoveGenerator
import qualified Eval
import qualified Tree
import qualified ProofNumberSearch
-- import qualified SlackMessenger
-- GHC
-- libraries
-- std
import ... | ysnrkdm/Hamlet | src/Search.hs | mit | 2,347 | 0 | 13 | 467 | 727 | 392 | 335 | 47 | 5 |
------------------------------------------------------------------------------
-- |
-- Module : Main
-- Copyright : (C) 2014 Samuli Thomasson
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Samuli Thomasson <samuli.thomasson@paivola.fi>
-- Stability : experimental
-- Portabili... | SimSaladin/hajong | hajong-server/tests/tests.hs | mit | 1,352 | 0 | 8 | 277 | 166 | 109 | 57 | 21 | 1 |
module GHCJS.DOM.BeforeUnloadEvent (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/BeforeUnloadEvent.hs | mit | 47 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
module Lambdit.Requests where
import Control.Monad (liftM)
import Data.Maybe (listToMaybe)
import Debug.Trace (traceShow)
import Lambdit.Types
import Network.HTTP
import Network.Stream (Result)
import Network.URI (parseURI)
data Session = Session String deriving (Show)
class Reddit x where
mine :: x -> IO (Js... | ejconlon/lambdit | src/Lambdit/Requests.hs | gpl-2.0 | 1,730 | 0 | 17 | 409 | 537 | 283 | 254 | 36 | 2 |
{-# LANGUAGE BangPatterns #-}
import Graphics.Rendering.OpenGL.GL.Tensor
import Data.Array.Accelerate as A
import qualified Data.Array.Accelerate.CUDA as I
import Data.List hiding (intersect)
import Foreign.C.Types
import Foreign.Ptr
import Data.Int
import Prelude as P
import Data.Word
import qualified Graphics.UI.GL... | apriori/accelerate-raytracer | raytracer.hs | gpl-2.0 | 26,680 | 0 | 20 | 14,456 | 7,236 | 3,856 | 3,380 | -1 | -1 |
{-#LANGUAGE OverloadedStrings #-}
module Language.Ammonite.Interpreter.RTS
( RTS(..)
, newRTS
, mkExnVal
, appendTrace
) where
import Language.Ammonite.Gensym
import Language.Ammonite.Syntax.Abstract
import Language.Ammonite.Syntax.Printer
import Data.Monoid
import Control.Applicative
import Contr... | Zankoku-Okuno/ammonite | Language/Ammonite/Interpreter/RTS.hs | gpl-3.0 | 2,775 | 0 | 14 | 703 | 884 | 470 | 414 | 66 | 3 |
module ContMap (
GeneralContinuation,
Cont,
ContId,
ContMap,
YesodCC(..),
run,
resume,
answerGet,
readContMap,
modifyContMap,
insertContMap,
lookupContMap,
inquire,
inquireFinish,
inquireGet,
inquireGetUntil,
inquirePost,
inquirePostUntil,
inquirePostButton,
inquirePostUntilButt... | nishiuramakoto/logiku | app/ContMap.hs | gpl-3.0 | 7,826 | 0 | 18 | 2,138 | 2,554 | 1,291 | 1,263 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
-- | Core functionality for the Anorak system.
module Anorak.Results (aggregate,
awayWins,
biggestWins,
convertResult,
form,
Goal(..),
highestAgg... | dwdyer/anorak | src/haskell/Anorak/Results.hs | gpl-3.0 | 11,477 | 0 | 17 | 3,781 | 2,172 | 1,167 | 1,005 | 165 | 1 |
module Shrdlite.Planner where
import Shrdlite.AStar
import Shrdlite.Common
import Shrdlite.Grammar
import Control.Monad
import Data.Maybe
import qualified Data.List as L
import qualified Data.Map as M
import qualified Data.Set as S
-- | Creates Just a list of moves which together creates a "Plan". The plan can
-- co... | chip2n/tin172-project | haskell/src/Shrdlite/Planner.hs | gpl-3.0 | 11,789 | 0 | 21 | 4,157 | 3,816 | 1,947 | 1,869 | 219 | 29 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
mo... | schell/pusher | src/Routes/Utils.hs | gpl-3.0 | 8,791 | 0 | 18 | 2,371 | 2,871 | 1,408 | 1,463 | 221 | 4 |
-- |Simple module for controlling DMX. This doesn't
-- check all errors, like writing over headers with
-- negative addresses.
module DMX where
import Data.Bits
import Data.Word
import System.IO
import Data.Array.IO
data Bus = Bus {
devH :: Handle
, states :: IOUArray Int Word8
}
busChans = 512 :: Int... | zouppen/valo | DMX.hs | gpl-3.0 | 1,671 | 0 | 10 | 382 | 371 | 190 | 181 | 32 | 1 |
{- |
Module : Tct.Encoding.Polynomial
Copyright : (c) Martin Avanzini <martin.avanzini@uibk.ac.at>,
Georg Moser <georg.moser@uibk.ac.at>,
Andreas Schnabl <andreas.schnabl@uibk.ac.at>
License : LGPL (see COPYING)
Maintainer : Andreas Schnabl <andreas.schnabl@uibk.ac.at>
... | mzini/TcT | source/Tct/Encoding/Polynomial.hs | gpl-3.0 | 5,000 | 0 | 11 | 1,632 | 2,186 | 1,075 | 1,111 | 78 | 1 |
{-# LANGUAGE CPP, PackageImports #-}
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Trustworthy #-}
#endif
module Data.Array (
-- * Immutable non-strict arrays
-- $intro
module Data.Ix -- export all of Ix
, Array -- Array type is abstract
-- * Array construction
,... | jwiegley/ghc-release | libraries/haskell2010/Data/Array.hs | gpl-3.0 | 7,705 | 0 | 9 | 2,614 | 258 | 189 | 69 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{- Parser.hs
Reads the components of a reaction system from string.
Copyright 2014 by Sergiu Ivanov <sergiu.ivanov@u-pec.fr>
This file is part of brsim.
brsim is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published ... | scolobb/brsim | Parser.hs | gpl-3.0 | 4,310 | 0 | 12 | 891 | 588 | 328 | 260 | 43 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Prompt where
import Control.Concurrent
import Control.Monad (forever, when, unless)
import Data.List (nub)
import Data.IORef
import qualified Data.Text.IO as T.IO
import System.IO
import Cards
import Simulate
handleSetting :: IO ()
handleSetting = do
putStr "Input cards a... | dtrifuno/holz | src/Prompt.hs | gpl-3.0 | 2,359 | 0 | 13 | 556 | 790 | 378 | 412 | 69 | 2 |
-- This file is part of KSQuant2.
-- Copyright (c) 2010 - 2011, Kilian Sprotte. All rights reserved.
-- 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
-- (... | kisp/ksquant2 | Lily.hs | gpl-3.0 | 4,450 | 0 | 14 | 1,305 | 1,231 | 677 | 554 | 101 | 8 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.Slides.Type... | brendanhay/gogol | gogol-slides/gen/Network/Google/Slides/Types/Product.hs | mpl-2.0 | 338,645 | 0 | 54 | 79,205 | 57,016 | 32,926 | 24,090 | 6,304 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.