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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
-- |
-- * Unit tests for guardedness
module CoALP.Tests.Unit.Guards
(
tests
)
where
import CoALP
import CoALP.UI
import qualified Data.Array as Array
import Data.List
import Control.Applicative
--import Control.Concurrent
import Test.Tasty
import Test.Tasty.HUnit
import System.Directory... | vkomenda/CoALP | tests/CoALP/Tests/Unit/Guards.hs | lgpl-3.0 | 2,422 | 0 | 15 | 514 | 485 | 261 | 224 | 53 | 1 |
-- This program displays information about the platform
import ViperVM.Platform.Configuration
import ViperVM.Platform.Platform
import ViperVM.Runtime.Logger
main :: IO ()
main = do
let
logger = stdOutLogger . filterLevel LogDebug
config = Configuration {
libraryOpenCL = "/usr/lib/libOpenCL.so... | hsyl20/HViperVM | apps/PlatformInfo.hs | lgpl-3.0 | 542 | 0 | 17 | 114 | 124 | 63 | 61 | 14 | 1 |
{-|
This package provides functions for building and signing both simple
transactions and multisignature transactions.
-}
module Network.Haskoin.Transaction
( module X
) where
import Network.Haskoin.Transaction.Builder as X
import Network.Haskoin.Transaction.Genesis as X
import Networ... | xenog/haskoin | src/Network/Haskoin/Transaction.hs | unlicense | 356 | 0 | 4 | 73 | 41 | 31 | 10 | 5 | 0 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Haskoin.Script.Standard
Copyright : No rights reserved
License : MIT
Maintainer : jprupp@protonmail.ch
Stability : experimental
Portability : POSIX
Standard scripts like pay-to-public-key... | haskoin/haskoin | src/Haskoin/Script/Standard.hs | unlicense | 15,179 | 0 | 17 | 3,838 | 3,284 | 1,723 | 1,561 | 313 | 9 |
module Network.NSFW.Firewall.Config
( Config(..)
, loadConfig
, showConfigParseError
) where
import Control.Monad.Except (join, liftIO, runExceptT)
import Data.ConfigFile (CPError, emptyCP, get, readfile)
import Data.Default (Default, def)
-- | Configuration data.
data Config = Config {
... | m-renaud/NSFW | src/Network/NSFW/Firewall/Config.hs | bsd-2-clause | 779 | 0 | 10 | 152 | 230 | 124 | 106 | 21 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module Jira2Sheet.Types.Input where
import Control.Monad.Except (ExceptT (..))
import Control.Monad.Log (LoggingT)
import Control.Monad.Trans.Class (lift)
import Control.Monad.Trans.Maybe (MaybeT (..))
import System.Cons... | berdario/jira2sheet | src/Jira2Sheet/Types/Input.hs | bsd-3-clause | 1,315 | 0 | 9 | 284 | 365 | 201 | 164 | 25 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module XML where
import Types ( Book(..) )
import Text.XML.Lens
import Text.XML
import Data.Maybe ( catMaybes )
import Data.Text ( Text )
import Data.Monoid ... | jmn/goodreads | src/XML.hs | bsd-3-clause | 2,551 | 0 | 13 | 894 | 694 | 353 | 341 | -1 | -1 |
-- |
-- Module : Data.Boolean.DPLL
-- Copyright : Holger Siegel
-- License : BSD3
--
module Data.Boolean.DPLL (
Solvable, fromProposition, fromDimacs, conjunction, nextLiteral, freeze,
isSatisfied,
) where
import Data.Boolean.Proposition(Proposition)
import Data.Boolean.Dimacs(Dimacs)
class Solva... | hsiegel/incremental-sat-solver | Data/Boolean/DPLL.hs | bsd-3-clause | 1,514 | 0 | 9 | 385 | 164 | 105 | 59 | 12 | 0 |
module CallByReference.ParserSuite
( tests
) where
import CallByReference.Data
import CallByReference.Parser
import Test.HUnit.Base
import Text.Megaparsec
import Text.Megaparsec.String
tests :: Test
tests = TestList
[ TestLabel "Test const expression" testConstExpr
... | li-zhirui/EoplLangs | test/CallByReference/ParserSuite.hs | bsd-3-clause | 5,237 | 0 | 17 | 1,509 | 1,371 | 712 | 659 | 124 | 2 |
import System.CPUTime
import Data.Time.Calendar
import Data.List
data DataTypes = Boolean Bool | Double Double | Date Int | String String | Int Int deriving (Eq, Show)
type Record = [DataTypes]
type Table = [Record]
gs :: DataTypes -> String
gs (String s) = s
-- sort by 2nd column:
stupidSort = sortBy (\x y -> com... | superstringsoftware/HasGraph | experiments/Data.hs | bsd-3-clause | 2,379 | 12 | 11 | 588 | 798 | 426 | 372 | 54 | 1 |
module Identifiers (
Imsi (..),
genImsi,
genRandId
)
where
import System.Random
import Control.Monad.IO.Class ()
import Data.Binary
-- IMSI
data Imsi = Imsi {
mcc :: !String,
mnc :: !String,
msin :: !String
}
deriving (Eq)
instance ... | Ilydocus/frp-prototype | src/Identifiers.hs | bsd-3-clause | 1,005 | 0 | 13 | 390 | 330 | 174 | 156 | 36 | 1 |
module Lang.TypeChecker.Waldmeister where
import Lang.TypeChecker.TypeChecker
waldmeister :: Text -> Term -> StateT TCMState m Bool
waldmeister = undefined | Alasdair/Mella | Lang/TypeChecker/Waldmeister.hs | bsd-3-clause | 157 | 0 | 7 | 19 | 38 | 22 | 16 | 4 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
module Serv.Server.Core.HealthTypes
( HealthResponse(..)
, healthUp
, healthDown
) where
import Control.Lens
import Data.Aeson
import ... | orangefiredragon/bear | src/Serv/Server/Core/HealthTypes.hs | bsd-3-clause | 860 | 0 | 8 | 208 | 160 | 93 | 67 | 27 | 1 |
{-# LANGUAGE ScopedTypeVariables, Rank2Types #-}
module Lseed.Geometry where
import Lseed.Data
import Lseed.Data.Functions
import Lseed.Constants
import Lseed.Geometry.Generator
import Data.List
import Data.Maybe
import Data.Ord
import qualified Data.Map as M
import qualified Data.Foldable as F
import Control.Monad hi... | nomeata/L-seed | src/Lseed/Geometry.hs | bsd-3-clause | 8,745 | 154 | 26 | 2,585 | 3,145 | 1,774 | 1,371 | 169 | 7 |
{-# LANGUAGE OverloadedStrings #-}
module Radio.Util(
getElementPosition
, styleBlock
, getMousePosition
, getDocumentSize
, cbutton
, cbuttonM
, timeout
, clearTimers
, wloop
, panel
, labelRow
) where
import Prelude hiding (div, id)
import Haste
import Haste.Foreign
import Haste.App (MonadI... | Teaspot-Studio/bmstu-radio-problem-haste | Radio/Util.hs | bsd-3-clause | 5,437 | 0 | 15 | 1,099 | 1,769 | 876 | 893 | 144 | 2 |
module Reflex.Dom (module X) where
import Reflex as X
import Reflex.Dom.Builder.Class as X
import Reflex.Dom.Builder.Immediate as X
import Reflex.Dom.Builder.InputDisabled as X
import Reflex.Dom.Builder.Static as X
import Reflex.Dom.Class as X
import Reflex.Dom.Internal as X
import Reflex.Dom.Location as X
import Refl... | manyoo/reflex-dom | src/Reflex/Dom.hs | bsd-3-clause | 454 | 0 | 4 | 58 | 117 | 88 | 29 | 14 | 0 |
-- |Models representing the apidoc specification.
--
-- http://apidoc.me/bryzek/apidoc-spec/latest
--
module Apidoc.DSL (module Exports) where
import Apidoc.DSL.Lenses as Exports
import Apidoc.DSL.Types as Exports
| chrisbarrett/apidoc-checker | src/Apidoc/DSL.hs | bsd-3-clause | 239 | 0 | 4 | 48 | 32 | 24 | 8 | 3 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.Matrix.Banded.Class
-- Copyright : Copyright (c) , Patrick Perry <patperry@stanford.edu>
-- License : BSD3
-- Maintainer : Patrick Perry <patperry@stanford.edu>
-- Stability : experimental
--
-- An overloaded in... | patperry/hs-linear-algebra | lib/Data/Matrix/Banded/Class.hs | bsd-3-clause | 2,116 | 0 | 5 | 432 | 194 | 146 | 48 | 40 | 0 |
module Network.Wai.Util (
withLBS
) where
import Control.Concurrent
import Control.Concurrent.MVar
import Control.Exception (SomeException, catch, finally)
import Control.Monad (when)
import Control.Monad.IO.Class
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as B8
import qualified... | softmechanics/wai-utils | Network/Wai/Util.hs | bsd-3-clause | 1,824 | 0 | 21 | 552 | 651 | 331 | 320 | 53 | 4 |
import File.Binary.PNG
import System.Environment
main :: IO ()
main = do
fin : _ <- getArgs
cnt <- readBinaryFile fin
let p = readPNG' cnt
putStrLn $ take 1000 $ show p
| YoshikuniJujo/png-file | test/readPNG2.hs | bsd-3-clause | 174 | 1 | 10 | 37 | 80 | 36 | 44 | 8 | 1 |
module Chapter14 where
import Data.List (sort)
import Test.QuickCheck
half :: Fractional a => a -> a
half x = x / 2
prop_halfIdentity :: (Fractional a, Eq a) => a -> Bool
prop_halfIdentity x = x == ((*2) . half $ x)
listOrdered :: (Ord a) => [a] -> Bool
listOrdered xs = snd $ foldr go (Nothing, True) xs
where go ... | taojang/haskell-programming-book-exercise | src/ch14/Chapter14.hs | bsd-3-clause | 1,560 | 0 | 9 | 370 | 829 | 435 | 394 | 40 | 3 |
{-# LANGUAGE UndecidableInstances, FlexibleInstances,
MultiParamTypeClasses, TemplateHaskell, PolymorphicComponents,
DeriveDataTypeable,ExistentialQuantification, KindSignatures,
StandaloneDeriving, GADTs #-}
{- |
This module defines 'Typeable' indexes and convenience functions.... | well-typed/ixset-typed | src/Data/IxSet/Typed/Ix.hs | bsd-3-clause | 3,854 | 0 | 12 | 940 | 933 | 508 | 425 | 50 | 2 |
{-# LANGUAGE TypeSynonymInstances ,NoMonomorphismRestriction,FlexibleInstances#-}
module Display.Cube
( draw
) where
import qualified Graphics.Rendering.OpenGL as GL
import Graphics.Rendering.OpenGL
import qualified Graphics.UI.GLUT as GLUT
import Data.StateVar
import Linear.Matrix
import Linear.V3
import Linear... | massudaw/mtk | filters/attitude/Display/Cube.hs | bsd-3-clause | 3,905 | 2 | 20 | 1,067 | 1,629 | 806 | 823 | 111 | 1 |
{-# LANGUAGE OverloadedStrings, NoMonomorphismRestriction #-}
------------------------------------------------------------------------------
-- | This module is where all the routes and handlers are defined for your
-- site. The 'app' function is the initializer that combines everything
-- together and is expo... | madebyjeffrey/snaplet-fetch | example/Site.hs | bsd-3-clause | 1,963 | 0 | 10 | 498 | 259 | 149 | 110 | 31 | 1 |
import GHC.Generics
import Control.Monad
import Control.Monad.Reader
import System.IO
import Database.Seakale.PostgreSQL hiding (withConn)
import Database.Seakale.PostgreSQL.FromRow
import Database.Seakale.Store
import Shared
newtype TableStats = TableStats { numRows :: Integer } deriving Generic
instance Storabl... | thoferon/seakale | demo/src/Storable.hs | bsd-3-clause | 1,169 | 0 | 20 | 234 | 346 | 183 | 163 | -1 | -1 |
module Physics.Falling.Constraint.Solver.FirstOrderWorldAccumulatedImpulse
(
addFirstOrderEquations
, firstOrderIntegrate
)
where
import qualified Data.Vector as V
import qualified Data.Vector.Unboxed as UV
import Physics.Falling.Math.Transform
import Physics.Falling.Math.Error
import Physics.Falling.Collision.Collisi... | sebcrozet/falling | Physics/Falling/Constraint/Solver/FirstOrderWorldAccumulatedImpulse.hs | bsd-3-clause | 4,279 | 0 | 16 | 1,621 | 936 | 499 | 437 | 67 | 2 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE RecordWildCards #-}
module Acquire.Game.Core where
import Data.Aeson (FromJSON, ToJSON)
import Data.Array
import qualified Data.Map as M
import GHC.Generics
import System.Random
import System.Random.Shuffle
import Acquire.Game.Cells
import Acquire.Game.Hotels
import Acquire... | abailly/hsgames | acquire/src/Acquire/Game/Core.hs | apache-2.0 | 3,913 | 0 | 16 | 1,131 | 1,207 | 666 | 541 | 83 | 2 |
{-# LANGUAGE BangPatterns, ScopedTypeVariables, TupleSections #-}
module Language.Haskell.GhcMod.GhcPkg (
ghcPkgDbOpt
, ghcPkgDbStackOpts
, ghcDbStackOpts
, ghcDbOpt
, fromInstalledPackageId
, fromInstalledPackageId'
, getPackageDbStack
, getPackageCachePaths
) where
import Config (cProjectVersion,... | cabrera/ghc-mod | Language/Haskell/GhcMod/GhcPkg.hs | bsd-3-clause | 3,978 | 0 | 16 | 768 | 904 | 487 | 417 | 77 | 2 |
{-# LANGUAGE TemplateHaskell #-}
import Data.Digest.Pure.MD5
import Test.QuickCheck.All (quickCheckAll)
import qualified Data.ByteString.Lazy.Char8 as L
import qualified Data.ByteString.Char8 as B
twoPartMD5 :: String -> String -> MD5Digest
twoPartMD5 x y = let initial = md5Update md5InitialContext (B.pack x)
... | beni55/PureMD5Improvements | Test/main.hs | bsd-3-clause | 618 | 0 | 12 | 160 | 204 | 109 | 95 | 13 | 1 |
{- |
Module : $Header$
Copyright : (c) Felix Gabriel Mance
License : GPLv2 or higher, see LICENSE.txt
Maintainer : f.mance@jacobs-university.de
Stability : provisional
Portability : portable
script for running the parsing of XML
-}
import System.Environment
import OWL2.XML
import Text.XML.Light
... | keithodulaigh/Hets | OWL2/scripts/runXML.hs | gpl-2.0 | 715 | 0 | 17 | 179 | 150 | 75 | 75 | 17 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-cloudsearch/gen/Network/AWS/CloudSearch/DescribeSuggesters.hs | mpl-2.0 | 5,112 | 0 | 10 | 1,039 | 627 | 378 | 249 | 71 | 1 |
---- This is comment
-- This too
(-->) x y = x + y -- but this is an operator
main = 3
| roberth/uu-helium | test/simple/parser/MaximalMunch2.hs | gpl-3.0 | 91 | 0 | 5 | 27 | 25 | 15 | 10 | 2 | 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="si-LK">
<title>WebSockets | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref l... | thc202/zap-extensions | addOns/websocket/src/main/javahelp/org/zaproxy/zap/extension/websocket/resources/help_si_LK/helpset_si_LK.hs | apache-2.0 | 971 | 78 | 66 | 158 | 411 | 208 | 203 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Pattern-matching bindings (HsBinds and MonoBinds)
Handles @HsBinds@; those at the top level require different handling,
in that the @Rec@/@NonRec@/etc structure is thrown away (whereas at
lower levels it is preserved with... | acowley/ghc | compiler/deSugar/DsBinds.hs | bsd-3-clause | 48,323 | 0 | 24 | 15,238 | 8,288 | 4,232 | 4,056 | 543 | 21 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Num
-- Copyright : (c) The University of Glasgow 1994-2002
-- License : see libraries/b... | ezyang/ghc | libraries/base/GHC/Num.hs | bsd-3-clause | 3,135 | 0 | 12 | 962 | 669 | 373 | 296 | 51 | 1 |
module RnHsDoc ( rnHsDoc, rnLHsDoc, rnMbLHsDoc ) where
import TcRnTypes
import HsSyn
import SrcLoc
rnMbLHsDoc :: Maybe LHsDocString -> RnM (Maybe LHsDocString)
rnMbLHsDoc mb_doc = case mb_doc of
Just doc -> do
doc' <- rnLHsDoc doc
return (Just doc')
Nothing -> return Nothing
rnLHsDoc :: LHsDocString ->... | ghc-android/ghc | compiler/rename/RnHsDoc.hs | bsd-3-clause | 501 | 0 | 12 | 99 | 184 | 90 | 94 | 16 | 2 |
{-# LANGUAGE OverloadedStrings #-}
-- | Module : Text.Pandoc.PlantUML.Filter.Formats
-- Determines the image type to be used for one particular
-- pandoc output format.
--
-- Currently uses EPS for latex-based outputs (including PDF),
-- and PNG for anything else.
--
module Text.Pandoc.PlantUML.Filter.Formats(imageFor... | thriqon/pandoc-plantuml-diagrams | src/Text/Pandoc/PlantUML/Filter/Formats.hs | isc | 757 | 0 | 7 | 122 | 78 | 53 | 25 | 8 | 1 |
module Main where
import Control.Monad
import System.Environment
import Text.ParserCombinators.Parsec hiding (spaces)
main :: IO()
main = do
args <- getArgs
putStrLn (readExpr (args !! 0))
data LispVal = Atom String
| List [LispVal]
| DottedList [LispVal] LispVal
| Numbe... | liyanchang/scheme-in-haskell | src/chp2.hs | mit | 1,206 | 0 | 11 | 333 | 397 | 199 | 198 | 43 | 3 |
module Ori.Random (
module Ori.Random
) where
import Ori.Types
import System.Random
doubles :: Int -> [Double]
doubles seed = randomRs (0, 1) (mkStdGen seed)
rats :: Int -> [Rat]
rats seed = map (\x -> approxRational x 1e-30) (doubles seed)
| pbl64k/icfpc2016 | Ori/Random.hs | mit | 253 | 0 | 8 | 52 | 105 | 58 | 47 | 8 | 1 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Types where
import qualified Data.IntMap as I
defsToGame :: [Definition] -> Either String Game
defsToGame = validateGame . foldl addDef emptyGame
addDef :: Game -> Definition -> Game
addDef g (DefRule r) = g{ gameRules = (gameRules g) +... | schell/germs | src/Types.hs | mit | 8,967 | 0 | 11 | 3,957 | 3,207 | 1,764 | 1,443 | 169 | 3 |
{-# LANGUAGE NoImplicitPrelude #-}
module Test.Data.Raft.Term where
import Control.Applicative
import Control.Monad
import Test.Tasty.QuickCheck
import Data.Raft.Term
import Data.RaftPrelude
instance Arbitrary Term where
arbitrary = Term <$> arbitrary
orderedTerm... | AndrewRademacher/zotac | test/Test/Data/Raft/Term.hs | mit | 623 | 0 | 8 | 144 | 187 | 101 | 86 | 18 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
module Keter
( keter
) where
import Data.Yaml
#if MIN_VERSION_aeson(2, 0, 0)
import qualified Data.Aeson.KeyMap as Map
#else
import qualified Data.HashMap.Strict as Map
#endif
import qualified Data.Text as T
import System.Environment (getEnvironment)
imp... | yesodweb/yesod | yesod-bin/Keter.hs | mit | 5,102 | 0 | 21 | 1,762 | 1,431 | 727 | 704 | 114 | 20 |
module NoUnionStrictTuple.FV where
import Types
import qualified Data.IntSet as IntSet
import Data.IntSet (IntSet)
type InterestingVarFun = Var -> Bool
data StrictTuple = StrictTuple ![Var] !IntSet
stFst :: StrictTuple -> [Var]
stFst (StrictTuple vs _) = vs
type FV =
InterestingVarFun ->
IntSet ->
StrictTupl... | niteria/deterministic-fvs | NoUnionStrictTuple/FV.hs | mit | 1,391 | 0 | 9 | 289 | 626 | 322 | 304 | 43 | 1 |
module Examples.Tests.Branching where
import Improb.AST
-- TODO: Read in from the actual file and roll in the IO monad
branchingString = unlines
[ "tempo: 120"
, ":piano:"
, "=> (C4,4)"
, "(C4,4) => (F4,2)"
, "(C4,4) => (Eb4,2)"
, "(F4,2) => (G4,4)"
]
c44 = (Single (NoteLiteral (Note (Ton... | michaelbjames/improb | Examples/Tests/Branching.hs | mit | 790 | 0 | 14 | 243 | 270 | 152 | 118 | 20 | 1 |
module Battleship.Coconut (coconut,coconutfunc,CoconutDataStruct(..)) where
data CoconutDataStruct = CoconutConstr [Integer] deriving (Show)
coconut :: Integer
coconut = 10
coconutfunc :: CoconutDataStruct -> Int
coconutfunc (CoconutConstr l) = length l
| sgrove/battlehaskell | src/Battleship/Coconut.hs | mit | 256 | 0 | 7 | 30 | 76 | 44 | 32 | 6 | 1 |
import PrimeList
primeList = fmap toPrime [P2 ..]
primeFactorizeCount :: Integer -> Integer -> Integer
primeFactorizeCount n p
| n `mod` p == 0 = 1 + primeFactorizeCount (n `div` p) p
| otherwise = 0
primeFactorizeWoker :: Integer -> [Integer] -> [Integer]
primeFactorizeWoker n [] = []
primeFactorizeWoker n (p... | mino2357/Hello_Haskell | primeList/Main.hs | mit | 1,622 | 0 | 12 | 334 | 771 | 395 | 376 | 41 | 1 |
module ProjectEuler.Problem013Spec (main, spec) where
import Test.Hspec
import ProjectEuler.Problem013
main :: IO ()
main = hspec spec
spec :: Spec
spec = parallel $
describe "solve" $
it "finds the first 10-digits of the sum of 100 50-digit numbers" $
solve `shouldBe` 5537376230
| hachibu/project-euler | test/ProjectEuler/Problem013Spec.hs | mit | 296 | 0 | 9 | 58 | 76 | 42 | 34 | 10 | 1 |
{-|
Module : Test.Problem.ProblemExpr.Class
Description : The ProblemExpr Class tests
Copyright : (c) Andrew Burnett, 2014-2015
Maintainer : andyburnett88@gmail.com
Stability : experimental
Portability : -
Exports the testing functionality of the ProblemExpr Class
-}
module Test.Problem.ProblemExpr.Class (
... | aburnett88/HSat | tests-src/Test/Problem/ProblemExpr/Class.hs | mit | 1,206 | 0 | 14 | 247 | 236 | 130 | 106 | 27 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleContexts, MultiWayIf #-}
module Main where
import BattleStatus
import Haskmon
import System.Random.Shuffle (shuffleM)
import Control.Lens (ASetter, view, over)
import Control.Monad.State
import Control.Monad.Random
import Data.Monoid ((<>))
import qualified Data.Text ... | pjrt/PokemonBattle | src/Main.hs | mit | 4,732 | 0 | 16 | 1,136 | 1,158 | 594 | 564 | 78 | 4 |
{-# LANGUAGE TemplateHaskell, OverloadedStrings, FlexibleInstances #-}
module ServerState
( ServerState
, makeServerStateInit
, ServerStateHandler
) where
import Snap ( addRoutes, writeBS )
import Snap.Snaplet
( Snaplet, subSnaplet, SnapletInit, makeSnaplet, nestSnaplet, Handler, with )
import Snap.... | GetContented/substance | src/ServerState.hs | mit | 1,571 | 0 | 12 | 300 | 359 | 201 | 158 | 40 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Test.Hspec.Wai.MatcherSpec (main, spec) where
import Test.Hspec.Meta
import Network.HTTP.Types
import Network.Wai.Test
import Test.Hspec.Wai.Matcher
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "match" $ do
c... | begriffs/hspec-wai | test/Test/Hspec/Wai/MatcherSpec.hs | mit | 2,808 | 0 | 32 | 1,004 | 597 | 316 | 281 | 65 | 1 |
module Main ( main ) where
import Control.Monad ( when, unless )
import System.Console.GetOpt
import System.Environment ( getArgs, getProgName )
import System.Exit ( exitFailure, exitSuccess )
import System.IO
import Text... | rjw57/cloudsync | cs/cs.hs | mit | 2,706 | 0 | 14 | 761 | 587 | 307 | 280 | 53 | 2 |
{-# LINE 1 "HOpenCV/CV/HighGui.hsc" #-}
{-# LANGUAGE ForeignFunctionInterface, EmptyDataDecls #-}
{-# LINE 2 "HOpenCV/CV/HighGui.hsc" #-}
{- |
While OpenCV was designed for use in full-scale applications and can be used
within functionally rich UI frameworks (such as Qt*, WinForms*, or Cocoa*) or
without any UI at all... | juanmab37/HOpenCV-0.5.0.1 | src/HOpenCV/CV/HighGui.hs | gpl-2.0 | 8,469 | 0 | 19 | 1,881 | 1,978 | 1,001 | 977 | -1 | -1 |
module Machine.Numerical.Inter where
import qualified Machine.Numerical.Type as N
import Machine.Fun
import Machine.Class
import qualified Challenger as C
import Inter.Types
import Autolib.Reporter hiding ( output )
import Autolib.ToDoc
import Autolib.Reader
import Autolib.Informed
computer :: ( N.TypeC c m, Machin... | florianpilz/autotool | src/Machine/Numerical/Inter.hs | gpl-2.0 | 1,430 | 8 | 12 | 392 | 506 | 265 | 241 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
module Cow.ParseTree.Viz where
import Control.Monad... | TikhonJelvis/Cow | src/Cow/ParseTree/Viz.hs | gpl-3.0 | 5,458 | 0 | 16 | 1,644 | 1,400 | 753 | 647 | -1 | -1 |
{-# LANGUAGE RankNTypes #-}
module Lib
( countLinesPp
, printLineCount
, countFileLines
, printLinesIn
, countFilesIn
, listFilesIn
, concatFilesIn
, catFile
, concatFilesInStr
) where
import Control.Applicative
import Control.Monad
import Control.M... | capitanbatata/sandbox | pw-pipes/src/Lib.hs | gpl-3.0 | 6,622 | 0 | 21 | 1,630 | 1,744 | 890 | 854 | 151 | 2 |
-- |
-- Copyright : © 2009 CNRS - École Polytechnique - INRIA
-- License : GPL
--
-- Check that all occurrences of variables are in scope of their definitions.
-- Other well-formedness checks can also be found here, such as rejecting
-- duplicate top-level definitions.
module Dedukti.Analysis.Scope where
import Ded... | mboes/dedukti | Dedukti/Analysis/Scope.hs | gpl-3.0 | 3,806 | 0 | 19 | 1,026 | 1,166 | 586 | 580 | 73 | 6 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE PatternGuards #-}
-- Copyright : (c) 2019 Robert Künnemann
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Robert Künnemann <robert@kunnemann.de>
-- Portability : GHC only
--
-- Translation rules common for different translation types in SAPIC
module Sapic.Basetrans... | tamarin-prover/tamarin-prover | lib/sapic/src/Sapic/Basetranslation.hs | gpl-3.0 | 15,334 | 0 | 16 | 4,442 | 4,082 | 2,234 | 1,848 | 236 | 4 |
module HLinear.Hook.LeftTransformation
( module Basic
, module Column
, module Definition
)
where
import HLinear.Hook.LeftTransformation.Algebra ()
import HLinear.Hook.LeftTransformation.Basic as Basic
import HLinear.Hook.LeftTransformation.Column as Column hiding ( one, isOne, zipWith )
import HLinear.Hook.Le... | martinra/hlinear | src/HLinear/Hook/LeftTransformation.hs | gpl-3.0 | 468 | 0 | 5 | 49 | 90 | 65 | 25 | 10 | 0 |
{-# LANGUAGE Rank2Types, NoMonomorphismRestriction, ScopedTypeVariables #-}
module Database.Design.Ampersand.Test.Parser.QuickChecks (parserQuickChecks) where
import Database.Design.Ampersand.Test.Parser.ParserTest (parseReparse)
import Database.Design.Ampersand.Test.Parser.ArbitraryTree()
import Database.Design.Amper... | DanielSchiavini/ampersand | src/Database/Design/Ampersand/Test/Parser/QuickChecks.hs | gpl-3.0 | 1,837 | 0 | 12 | 394 | 410 | 232 | 178 | 31 | 2 |
--www.haskell.org/haskellwiki/99_questions
--3
elementAt :: [a]-> Int -> a
elementAt (x:xs) i
| i == 1 = x
| otherwise = elementAt xs (i-1)
elementAt [] i = error "Can't get element from empty list/Index out of bounds"
--4
myLength :: [a] -> Int
myLength [] = 0
myLength ... | dasfaha/miscelaneous | nn.hs | gpl-3.0 | 690 | 1 | 13 | 210 | 291 | 155 | 136 | 14 | 1 |
module TextParser.Header (parseHeader) where
import TextData.Data
import TextData.Keywords
import Text.Parsec
import Text.Parsec.String
import Text.Parsec.Combinator
{-PARSE a header-}
parseHeader :: Parser Header
parseHeader = do t <- parseHeaderTag title_tag
l <- parseHeaderTag lastname_tag
... | DarkTilRisen/FlashText | TextParser/Header.hs | gpl-3.0 | 862 | 0 | 11 | 277 | 220 | 104 | 116 | 21 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-books/gen/Network/Google/Resource/Books/MyLibrary/Annotations/Update.hs | mpl-2.0 | 3,811 | 0 | 15 | 843 | 467 | 278 | 189 | 73 | 1 |
import Test.HUnit
import qualified Data.Map as Map
import qualified Data.Set as Set
import Constraints
import Types
import Obj
import Parsing
import Infer
import Eval
main :: IO ()
main = do _ <- runTestTT (groupTests "Constraints" testConstraints)
return ()
groupTests :: String -> [Test] -> Test
groupTests... | eriksvedang/Carp | test/Spec.hs | mpl-2.0 | 6,485 | 4 | 16 | 1,193 | 2,490 | 1,350 | 1,140 | 134 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-blogger/gen/Network/Google/Resource/Blogger/Blogs/GetByURL.hs | mpl-2.0 | 3,049 | 0 | 14 | 721 | 396 | 237 | 159 | 59 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-
Copyright 2017 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 License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICEN... | parvmor/codeworld | codeworld-server/src/CommentFolder.hs | apache-2.0 | 10,516 | 0 | 28 | 2,861 | 2,860 | 1,352 | 1,508 | 192 | 3 |
module Walk.A293689Spec (main, spec) where
import Test.Hspec
import Walk.A293689 (a293689)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A293689" $
it "correctly computes the first 20 elements" $
take 20 (map a293689 [0..]) `shouldBe` expectedValue where
expectedValue = [0,1,2,1,2,3,4,3,4,... | peterokagey/haskellOEIS | test/Walk/A293689Spec.hs | apache-2.0 | 343 | 0 | 10 | 59 | 160 | 95 | 65 | 10 | 1 |
{-# LANGUAGE CPP #-}
module FFT where
import Foreign.CUDA.FFT
import CUDAEx
import ArgMapper
data Mode =
Forward
| Reverse
| Inverse
fft2dComplexDSqInplace :: Maybe Stream -> Mode -> Int -> CxDoubleDevPtr -> IO ()
fft2dComplexDSqInplace mbstream mode size inoutp = do
handle <- plan2D size size Z2Z
c... | SKA-ScienceDataProcessor/RC | MS3/Sketches/FFT/FFT.hs | apache-2.0 | 1,450 | 0 | 11 | 294 | 416 | 210 | 206 | -1 | -1 |
{-
Copyright 2015 Tristan Aubrey-Jones
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 to in writing, sof... | flocc-net/flocc | v0.1/Compiler/Back/GraphBuilder.hs | apache-2.0 | 17,938 | 0 | 21 | 4,106 | 4,422 | 2,251 | 2,171 | 245 | 8 |
{-# LANGUAGE Trustworthy #-}
{-|
Copyright : (C) 2013-2015, University of Twente
License : BSD2 (see the file LICENSE)
Maintainer : Christiaan Baaij <christiaan.baaij@gmail.com>
-}
module CLaSH.Sized.Signed
( Signed
)
where
import CLaSH.Sized.Internal.Signed
| Ericson2314/clash-prelude | src/CLaSH/Sized/Signed.hs | bsd-2-clause | 271 | 0 | 4 | 45 | 21 | 15 | 6 | 4 | 0 |
-- |
-- Module : Text.Megaparsec.Expr
-- Copyright : © 2015–2017 Megaparsec contributors
-- © 2007 Paolo Martini
-- © 1999–2001 Daan Leijen
-- License : FreeBSD
--
-- Maintainer : Mark Karpov <markkarpov92@gmail.com>
-- Stability : experimental
-- Portability : non-port... | recursion-ninja/megaparsec | Text/Megaparsec/Expr.hs | bsd-2-clause | 5,756 | 0 | 11 | 1,388 | 1,285 | 715 | 570 | 57 | 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,... | JanAhrens/yesod-oauth-demo | Import.hs | bsd-2-clause | 1,114 | 0 | 6 | 535 | 154 | 112 | 42 | 18 | 1 |
module Language.Drasil.Code.Imperative.GOOL.LanguageRenderer (
-- * Common Syntax
doxConfigName, makefileName, sampleInputName
) where
----------------------------------------
-- Syntax common to several renderers --
----------------------------------------
doxConfigName, makefileName, sampleInputName :: String
d... | JacquesCarette/literate-scientific-software | code/drasil-code/Language/Drasil/Code/Imperative/GOOL/LanguageRenderer.hs | bsd-2-clause | 403 | 0 | 4 | 41 | 49 | 35 | 14 | 6 | 1 |
{-# LANGUAGE QuasiQuotes #-}
import LiquidHaskell
-- some tests for the 'expandDefaultCase' trick to case-split
-- on the "missing" constructors.
mylen :: [a] -> Int
mylen [] = 0
mylen (_:xs) = 1 + mylen xs
[lq| foo :: [a] -> {v: Int | v = 0} |]
foo :: [a] -> Int
foo zs = case zs of
... | spinda/liquidhaskell | tests/gsoc15/unknown/pos/meas7.hs | bsd-3-clause | 490 | 0 | 9 | 177 | 158 | 85 | 73 | 15 | 2 |
----------------------------------------------------------------------------
-- |
-- Module : ModuleWithQualifiedImport
-- Copyright : (c) Sergey Vinokurov 2015
-- License : BSD3-style (see LICENSE)
-- Maintainer : serg.foo@gmail.com
----------------------------------------------------------------------... | sergv/tags-server | test-data/0001module_with_imports/ModuleWithQualifiedImport.hs | bsd-3-clause | 427 | 0 | 5 | 61 | 34 | 24 | 10 | 4 | 1 |
-- | This variant of Tutorial #3 keeps geometry and colors in two
-- separate lists.
{-# LANGUAGE OverloadedStrings #-}
module Main where
-- General Haskell modules
import Control.Applicative
import System.FilePath ((</>))
-- Import all OpenGL libraries qualified, for pedagogical reasons
import q... | bergey/haskell-OpenGL-examples | wikibook/tutorial-03-attributes/Separate.hs | bsd-3-clause | 3,351 | 0 | 17 | 818 | 847 | 443 | 404 | 59 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
------------------... | facebookincubator/duckling | Duckling/Ranking/Classifiers/NE_XX.hs | bsd-3-clause | 828 | 0 | 6 | 105 | 66 | 47 | 19 | 8 | 1 |
{-# LANGUAGE CPP, ExistentialQuantification, GADTs, ScopedTypeVariables, TypeFamilies, FlexibleInstances, MultiParamTypeClasses, GeneralizedNewtypeDeriving, RankNTypes, BangPatterns, UndecidableInstances, EmptyDataDecls, RecursiveDo, RoleAnnotations, LambdaCase #-}
module Reflex.Spider.Internal where
import Prelude hi... | mightybyte/reflex | src/Reflex/Spider/Internal.hs | bsd-3-clause | 65,149 | 0 | 37 | 13,876 | 15,722 | 7,642 | 8,080 | -1 | -1 |
{- | A simple priority channel, essentially a priority queue where the
producers and consumers are in different threads.
A priority channel is unbounded. Instead of reading elements in FIFO
order, the consumer reads the lowest-priority element that is
currently available, blocking if there are no elements.
The interf... | kcharter/spdy-base | src/Network/SPDY/Internal/PriorityChan.hs | bsd-3-clause | 2,190 | 0 | 16 | 550 | 444 | 240 | 204 | 27 | 1 |
module HCSV.Version ( version ) where
import Data.List
import Data.Version (Version(..))
import qualified Paths_hcsv as P
-- | Turn the Cabal-generated Version into a String of the normal form.
version :: String
version = number++(if null tag then "" else "-" ++ tag)
where
number = concat $... | thsutton/hcsv | src/HCSV/Version.hs | bsd-3-clause | 433 | 0 | 10 | 98 | 120 | 67 | 53 | 8 | 2 |
module Main where
import XMPP
import MUC
import Translate
import Network
import Control.Monad
import Data.HashTable
import List
import System.Random
import System ( getArgs )
import System.IO
usage = "Usage: werewolf user@server [password]"
main = withSocketsDo $
do
args <- getArgs
(usernam... | legoscia/hsxmpp | Werewolf.hs | bsd-3-clause | 17,069 | 0 | 32 | 7,296 | 3,974 | 1,925 | 2,049 | 341 | 11 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module ... | hy-zhang/parser | Haskell/src/FullSimple.hs | bsd-3-clause | 4,194 | 0 | 19 | 1,252 | 1,496 | 771 | 725 | 123 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Ordinal.JA.Rules
( rules ) where
im... | facebookincubator/duckling | Duckling/Ordinal/JA/Rules.hs | bsd-3-clause | 890 | 0 | 17 | 174 | 186 | 114 | 72 | 24 | 2 |
{-# Language PatternGuards #-}
module Blub
( blub
, foo
, bar
) where
import Control.Applicative
(r, t, z)
import Ugah.Blub
( a
, b
, c
)
import Data.Text as T
import Data.Text hiding (Text(A, B, C))
f :: Int -> Int
f = (+ 3)
r :: Int -> Int
r =
| dan-t/hsimport | tests/goldenFiles/SymbolTest40.hs | bsd-3-clause | 274 | 1 | 7 | 82 | 104 | 68 | 36 | -1 | -1 |
module Control.Monad.Trans.Stitch
( StitchT(..)
, runStitchT ) where
import Stitch.Types
import Control.Applicative
import Control.Monad.IO.Class
import Control.Monad.Trans.Class
import Control.Monad.Trans.Writer.Strict
import Data.Monoid
newtype StitchT m a = StitchT (WriterT Block m a)
deriving (Functor, App... | bitemyapp/stitch | src/Control/Monad/Trans/Stitch.hs | bsd-3-clause | 590 | 0 | 8 | 94 | 211 | 119 | 92 | 16 | 1 |
module Main where
import Criterion.Main
import ArbitraryLambda
import Test.QuickCheck.Gen
import Test.QuickCheck.Random
import NFDataInstances()
import PrettyPrint
import Parser
import BruijnTerm
import TypeCheck
import MakeTerm
import ExampleBruijn (pair)
fixandsized :: Int -> Gen a -> IO a
fixandsized size (MkGen... | kwibus/myLang | tests/bench/benchmark.hs | bsd-3-clause | 1,152 | 0 | 20 | 224 | 449 | 231 | 218 | 28 | 1 |
{-# LANGUAGE ScopedTypeVariables, DeriveDataTypeable, OverloadedStrings,
FlexibleInstances, FlexibleContexts, IncoherentInstances,
TypeFamilies, ExistentialQuantification, RankNTypes,
ImpredicativeTypes #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | A module for shell-like progra... | adinapoli/Shelly.hs | src/Shelly/Lifted.hs | bsd-3-clause | 20,951 | 0 | 15 | 4,891 | 7,322 | 3,847 | 3,475 | 422 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANG... | sjfloat/accelerate | Data/Array/Accelerate/Array/Data.hs | bsd-3-clause | 29,251 | 525 | 12 | 7,572 | 7,105 | 3,731 | 3,374 | 494 | 1 |
-- arith2.hs
module Arith2 where
add :: Int -> Int -> Int
add x y = x + y
addPF :: Int -> Int -> Int
addPF = (+)
addOne :: Int -> Int
addOne = \x -> x + 1
addOnePF :: Int -> Int
addOnePF = (+1)
main :: IO ()
main = do
print (0 :: Int)
print (add 1 0)
print (addOne 0)
print (addOnePF 0)
print ((addOne . a... | renevp/hello-haskell | src/functionalpatterns/arith2.hs | bsd-3-clause | 551 | 0 | 14 | 145 | 302 | 152 | 150 | 23 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans -fno-warn-name-shadowing #-}
module Real.Load (readPkgIndex) where
import Real.Types
import Real.ReadShow ()
import Text.ParserCombinators.ReadP as ReadP hiding (get)
import qualified Text.ParserCombinators.ReadP as Parse
import qualified Text.PrettyPrint as Disp
import qual... | thoughtpolice/binary-serialise-cbor | bench/Real/Load.hs | bsd-3-clause | 104,030 | 0 | 24 | 33,703 | 27,263 | 14,162 | 13,101 | 1,863 | 26 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoRebindableSy... | facebookincubator/duckling | Duckling/Ordinal/MN/Rules.hs | bsd-3-clause | 3,840 | 0 | 18 | 797 | 974 | 571 | 403 | 104 | 2 |
{-# LANGUAGE TupleSections #-}
-- | Handle effects. They are most often caused by requests sent by clients
-- but sometimes also caused by projectiles or periodically activated items.
module Game.LambdaHack.Server.HandleEffectM
( UseResult(..), EffToUse(..), EffApplyFlags(..)
, applyItem, cutCalm, kineticEffectAndD... | LambdaHack/LambdaHack | engine-src/Game/LambdaHack/Server/HandleEffectM.hs | bsd-3-clause | 107,894 | 4 | 31 | 30,782 | 25,343 | 12,522 | 12,821 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
import Call
import Audiovisual.Deck as Deck
import Control.Monad.State.Strict
import Control.Lens
main = runCallDefault $ do
music <- prepareMusic "assets/Monoidal Purity.wav"
playMusic music
stand
type Music = Instance (StateT (Deck Stereo) IO) IO
prepareMusic :: Call => File... | fumieval/rhythm-game-tutorial | src/music-only.hs | bsd-3-clause | 564 | 0 | 11 | 108 | 199 | 98 | 101 | 18 | 1 |
----------------------------------------------------------------------------
-- |
-- Module : Import1NoListImport2WithListChildrenWildcardsReexportModule.ImportCausesImportCycle
-- Copyright : (c) Sergey Vinokurov 2018
-- License : BSD3-style (see LICENSE)
-- Maintainer : serg.foo@gmail.com
------------... | sergv/tags-server | test-data/0012resolve_reexport_import_cycles/import1NoListImport2WithListChildrenWildcardsReexportModule/ImportCausesImportCycle.hs | bsd-3-clause | 449 | 0 | 3 | 48 | 14 | 12 | 2 | 2 | 0 |
{-# LANGUAGE OverloadedStrings, Safe #-}
module Evalso.Cruncher.Language.Clojure (clojure) where
import Evalso.Cruncher.Language (Language (..))
-- TODO: Improve Clojure runtime speeds. I've not managed <15s in the sandbox. -@duckinator
clojure :: Language
clojure = Language {
_codeFilename = "program.clj"
, _... | eval-so/cruncher | src/Evalso/Cruncher/Language/Clojure.hs | bsd-3-clause | 681 | 0 | 7 | 127 | 111 | 74 | 37 | 20 | 1 |
{-
Copyright © 2007-2012 Gracjan Polak
Copyright © 2012-2016 Ömer Sinan Ağacan
Copyright © 2017-2019 Albert Krewinkel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including... | tarleb/hslua | src/Foreign/Lua.hs | mit | 2,649 | 0 | 5 | 508 | 188 | 130 | 58 | 41 | 0 |
{-# LANGUAGE ScopedTypeVariables, CPP, BangPatterns, RankNTypes #-}
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Unsafe #-}
#endif
{-# OPTIONS_HADDOCK hide #-}
-- | Copyright : (c) 2010 - 2011 Simon Meier
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
-- Stability : unst... | jwiegley/ghc-release | libraries/bytestring/Data/ByteString/Builder/Internal.hs | gpl-3.0 | 43,305 | 0 | 21 | 10,587 | 5,476 | 3,030 | 2,446 | 441 | 3 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- |
-- Copyright : (c) 2011 Simon Meier
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
--
-- 'Document' class allowing to have different interpretations of the
-- HughesPJ pretty-printing combinators.
module Text.PrettyPrint.Class (
... | kelnage/tamarin-prover | lib/utils/src/Text/PrettyPrint/Class.hs | gpl-3.0 | 7,404 | 0 | 12 | 1,997 | 2,287 | 1,238 | 1,049 | 178 | 2 |
{-# 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-elasticbeanstalk/gen/Network/AWS/ElasticBeanstalk/DeleteApplication.hs | mpl-2.0 | 3,905 | 0 | 11 | 721 | 450 | 274 | 176 | 61 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module NLP.LTAG.Earlye5.Test4 where
import Control.Applicative ((<$>), (<*>))
import Control.Monad (void)
import qualified Control.Monad.State.Strict as E
import qualified Data.IntMap as I
import qualified Data.Set as S
import Data.List (sortBy)
impo... | kawu/tag-vanilla | src/NLP/TAG/Vanilla/Earley5/Test4.hs | bsd-2-clause | 2,183 | 0 | 14 | 527 | 614 | 345 | 269 | 56 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.