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 Arrows #-}
import FRP.Yampa
data Personality = Hero | Coward
type Pos = (Float,Float)
type AgentIx = Int
data Agent = Agent { personality :: Personality,
position :: Pos,
friend, enemy :: AgentIx }
type AgentList = [ Agent ]
type AgentSF = SF [Pos] Pos
agent... | thalerjonathan/phd | coding/papers/tutorial/Main.hs | gpl-3.0 | 1,073 | 2 | 15 | 435 | 333 | 186 | 147 | 22 | 2 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid 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 Lice... | karamellpelle/grid | designer/source/Game/Values.hs | gpl-3.0 | 10,037 | 0 | 8 | 1,631 | 1,138 | 709 | 429 | 301 | 1 |
{-# LANGUAGE UnicodeSyntax #-}
{-# LANGUAGE OverloadedStrings #-}
module Game.Osu.OszLoader.OsuParser.ColoursSpec (spec) where
import Data.Attoparsec.Text
import Data.Map (fromList)
import Data.Text
import Game.Osu.OszLoader.OsuParser.Colours
import Game.Osu.OszLoader.Types
import Test.Hspec
import Test.QuickCheck
co... | Fuuzetsu/osz-loader | test/Game/Osu/OszLoader/OsuParser/ColoursSpec.hs | gpl-3.0 | 1,669 | 0 | 27 | 533 | 508 | 294 | 214 | 38 | 1 |
module Scotch.Config where
import System.Environment.Executable
import System.Info
major = "0"
minor = "5"
revision = "0"
version = major ++ "." ++ minor ++ "." ++ revision
environment = os
libraryPath :: IO String
libraryPath = do fullPath <- splitExecutablePath
return $ (fst fullPath) ++ ... | bendmorris/scotch | Scotch/Config.hs | gpl-3.0 | 333 | 0 | 10 | 75 | 95 | 52 | 43 | 11 | 1 |
-- Copyright (C) 2009-2012 John Millikin <jmillikin@gmail.com>
--
-- 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
-- any later version.
--
-- This program ... | tmishima/haskell-dbus | lib/DBus.hs | gpl-3.0 | 8,279 | 8 | 13 | 1,466 | 1,210 | 720 | 490 | 156 | 1 |
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Copyright : (c) 2010, 2011 Benedikt Schmidt
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Benedikt Schmidt <beschmi@gmail.com>
--
-- Pretty printing and parsing of Maude terms and replies.
module Term.Maude.Parser (
-- * pretty pr... | kmilner/tamarin-prover | lib/term/src/Term/Maude/Parser.hs | gpl-3.0 | 11,939 | 0 | 18 | 3,412 | 2,951 | 1,512 | 1,439 | 216 | 9 |
module TestFakeAst where
import FakeAst
f x =
(
(HsModule
(AJust
((ModuleName("Foo"))))
(ANothing)
(EmptyArray)
(EmptyArray)
(ANothing)
(ANothing)))
| h4ck3rm1k3/gcc-ontology | tests/simple0.dump-parsed-ast.hs | gpl-3.0 | 193 | 0 | 13 | 61 | 67 | 39 | 28 | 12 | 1 |
{-# LANGUAGE FlexibleInstances, UndecidableInstances #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ImplicitParams #-}
module Database.Design.Ampersand.Core.AbstractSyntaxTree (
A_Context(..)
, Typology(..)
, Meta(..)
, Pattern(..)
, PairView(..)
, PairViewSegment(..)
, Rul... | 4ZP6Capstone2015/ampersand | src/Database/Design/Ampersand/Core/AbstractSyntaxTree.hs | gpl-3.0 | 57,067 | 0 | 22 | 19,041 | 13,036 | 7,105 | 5,931 | 891 | 90 |
module Objects.Stick
( stick
) where
import Linear
import Linear.Affine
import Object
import Color
stick :: (Floating a) => Int -> a -> a -> Color -> Object V3 a
stick n r l c = Object (P (V3 0 0 (l/2))) (norm $ V2 (l/2) r) $
[ Face c (map P
[ bot i , bot (i+1)
, top (i+1) , to... | MatthiasHu/4d-labyrinth | src/Objects/Stick.hs | gpl-3.0 | 779 | 0 | 14 | 276 | 472 | 242 | 230 | 24 | 1 |
module Main where
import Data.Function
import Data.List
import Data.Ord
import Data.Vector (Vector, (!))
import qualified Data.Vector as V
import Graphics.Rendering.Chart.Backend.Cairo
import Graphics.Rend... | mrlovre/super-memory | Pro7/src/Plots/Main.hs | gpl-3.0 | 3,095 | 0 | 21 | 940 | 1,214 | 625 | 589 | 60 | 1 |
-- https://esolangs.org/wiki/Hollow
-- Build: ghc --make hollow
-- Usage: hollow SRC-FILE
import Data.Array(Array,array,bounds,inRange,(!))
import Data.Char(isSpace)
import System.Environment(getArgs)
data Line = Line {
dataPart :: [DataPart],
instruction :: Instruction,
success :: Maybe Int,
failure... | qpliu/esolang | featured/candidates/hollow.hs | gpl-3.0 | 5,817 | 0 | 16 | 1,117 | 2,275 | 1,162 | 1,113 | 89 | 20 |
{-# 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/RemarketingLists/Patch.hs | mpl-2.0 | 3,888 | 0 | 15 | 886 | 509 | 300 | 209 | 75 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-sqladmin/gen/Network/Google/Resource/SQL/Instances/Get.hs | mpl-2.0 | 4,861 | 0 | 18 | 1,212 | 780 | 454 | 326 | 114 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.ServiceControl.Types
-- Copyright : (c) 2015-2016 Bren... | brendanhay/gogol | gogol-servicecontrol/gen/Network/Google/ServiceControl/Types.hs | mpl-2.0 | 6,657 | 0 | 7 | 1,760 | 764 | 524 | 240 | 223 | 1 |
module ReadAndResolve where
import Parse(parse)
import BackwardChaining(resolve)
import Types
import Interactive(askForChange)
parseFile :: String -> IO (Either String ([Relation], Init, Query))
parseFile path = do
content <- readFile (path)
return (parse content)
readAndResolve :: String -> IO (Either String [(... | tmielcza/demiurge | src/ReadAndResolve.hs | apache-2.0 | 613 | 0 | 10 | 103 | 230 | 115 | 115 | 21 | 1 |
module Data.GLop
( aggregate
, getCurrent
, getLast
, getRsync
, getUnmerge
, printCurrent
, printLast
, printMap
, printRsync
, printUnmerge
) where
import qualified Data.ByteString.Char8 as BS
import qualified Data.ByteString.Lazy as BL
import qualified Data.Map.Strict as M
import Dat... | kongo2002/glop | Data/GLop.hs | apache-2.0 | 6,811 | 0 | 16 | 1,855 | 2,585 | 1,329 | 1,256 | 186 | 3 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( makeApplication
, getApplicationDev
, makeFoundation
) where
import Import
import Settings
import Yesod.Auth
import Yesod.Default.Config
import Yesod.Default.Main
import Yesod.Default.Handlers
import Network.Wai.Middleware.RequestLogger
( m... | burz/sonada | Application.hs | apache-2.0 | 4,507 | 0 | 13 | 832 | 745 | 424 | 321 | -1 | -1 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
---------------------------------------------------------
--
-- | Serve static files from a Yesod ... | chreekat/yesod | yesod-static/Yesod/Static.hs | bsd-2-clause | 12,914 | 0 | 22 | 3,109 | 2,511 | 1,362 | 1,149 | 204 | 4 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QGraphicsScene.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:14
Warning : this file is machine generated - d... | keera-studios/hsQt | Qtc/Gui/QGraphicsScene.hs | bsd-2-clause | 77,249 | 0 | 18 | 11,726 | 24,409 | 12,382 | 12,027 | -1 | -1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
module BigML.Types
where
import Control.Concurrent (threadDelay)
import qualified Control.Exception as X
import Control.Monad.State
import Data.Aeson ((.:), (.=),... | creswick/bigml-hs | src/BigML/Types.hs | bsd-3-clause | 6,518 | 0 | 11 | 1,618 | 1,600 | 857 | 743 | 150 | 2 |
-- |
-- Module : Data.CVector.Mutable
-- Copyright : (c) 2012-2013 Michal Terepeta
-- (c) 2008-2010 Roman Leshchinskiy
-- License : BSD-style
--
-- Maintainer : Michal Terepeta <michal.terepeta@gmail.com>
-- Stability : experimental
-- Portability : non-portable
--
-- Wrapper around Data.Vec... | michalt/cvector | Data/CVector/Mutable.hs | bsd-3-clause | 6,502 | 0 | 12 | 1,279 | 1,861 | 1,030 | 831 | 143 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Text.Templating.Heist.Tests
( tests
, quickRender
) where
-----------------------------------------------------------------------... | janrain/heist | test/suite/Text/Templating/Heist/Tests.hs | bsd-3-clause | 19,071 | 0 | 18 | 4,275 | 4,476 | 2,297 | 2,179 | 324 | 3 |
module Lava.Netlist
( netlist
, netlistIO
, netlistST
)
where
import Lava.Ref
import Lava.Signal
import Lava.Generic
import Lava.Sequent
import Lava.MyST
( ST
)
----------------------------------------------------------------
-- netlist
netlist :: Functor f => (S a -> a) -> f Symbol -> f a
netlist phi ... | dfordivam/lava | Lava/Netlist.hs | bsd-3-clause | 1,584 | 0 | 21 | 647 | 537 | 250 | 287 | 40 | 2 |
module Main where
import Data.Set.StringSet
import Test.QuickCheck
import Test.QuickCheck.Batch
import Control.Monad
import Data.Monoid
import Data.Binary
import Data.List hiding (insert)
main = do
putStrLn "Running tests..."
runTests "simple" defOpt [
run prop_singleton,
run prop_insert1
... | axman6/TernaryTrees | TestSSet.hs | bsd-3-clause | 1,064 | 0 | 9 | 288 | 257 | 137 | 120 | 21 | 1 |
module LSI ( module LSI.System )
where
import LSI.System
| gdeest/lsi-systems | src/LSI.hs | bsd-3-clause | 58 | 0 | 5 | 10 | 17 | 11 | 6 | 2 | 0 |
{-# LANGUAGE CPP #-}
{-|
Module : Database.Memcache.Client
Description : Memcached Client
Copyright : (c) David Terei, 2016
License : BSD
Maintainer : code@davidterei.com
Stability : stable
Portability : GHC
A Memcached client. Memcached is an in-memory key-value store typically used as
a distributed an... | dterei/memcache-hs | Database/Memcache/Client.hs | bsd-3-clause | 15,666 | 0 | 17 | 4,436 | 3,297 | 1,656 | 1,641 | 197 | 5 |
module PathFinder.Configs ( searchIn2d
, searchInMatrix
) where
import Control.Lens.Operators
import Control.Lens (_2, view)
import Control.Monad (guard)
import Data.List (genericIndex)
import Data.Maybe (fromJust, isJust)
import Data.Monoid ((<>), Sum(Sum))
import L... | markus1189/pathfinder | src/PathFinder/Configs.hs | bsd-3-clause | 1,825 | 0 | 11 | 684 | 639 | 359 | 280 | 38 | 1 |
{-# LANGUAGE OverloadedLists, OverloadedStrings, QuasiQuotes #-}
module AbstractInterpretation.EffectTrackingSpec where
import Data.Map (Map)
import Grin.TH
import Grin.Grin
import Grin.PrimOpsPrelude
import Test.Hspec
import Test.Assertions
import AbstractInterpretation.Reduce (AbstractInterpretationResult(..),eva... | andorp/grin | grin/test/AbstractInterpretation/EffectTrackingSpec.hs | bsd-3-clause | 11,488 | 0 | 19 | 4,572 | 2,220 | 1,270 | 950 | 157 | 1 |
module Main where
import Control.Applicative
import System.Environment
import Data.Array.Repa as R
import Learn.Types
import Learn.Optimization
import Learn.ConjugateGradient
-- function that is just a sum of squares of all components shifted right by 1. Minimum is at (1,1,1,...1)
func :: Monad m => UVec -> m (Dou... | ratatosk/learn | test/OptTest.hs | bsd-3-clause | 734 | 0 | 13 | 181 | 265 | 142 | 123 | 19 | 1 |
module OptionsSpec where
import Data.HashMap.Strict as HashMap
import System.Environment
import System.Exit
import System.IO
import System.IO.Silently
import System.IO.Temp
import Test.Hspec
import Options
spec :: Spec
spec = do
des... | zalora/journal-mailer | test/OptionsSpec.hs | bsd-3-clause | 3,312 | 0 | 23 | 975 | 650 | 339 | 311 | 73 | 1 |
{-
%
% (c) The GRASP/AQUA Project, Glasgow University, 1992-1998
%
\section{SetLevels}
***************************
Overview
***************************
1. We attach binding levels to Core bindings, in preparation for floating
outwards (@FloatOut@).
2. We als... | lukemaurer/sequent-core | src/Language/SequentCore/FloatOut/SetLevels.hs | bsd-3-clause | 77,474 | 0 | 22 | 23,462 | 13,646 | 7,171 | 6,475 | -1 | -1 |
{-# LANGUAGE CPP, ScopedTypeVariables #-}
module TcErrors(
reportUnsolved, reportAllUnsolved,
warnDefaulting,
solverDepthErrorTcS
) where
#include "HsVersions.h"
import TcRnTypes
import TcRnMonad
import TcMType
import TcType
import TypeRep
import Type
import Kind ( isKind )
import Unify ... | gcampax/ghc | compiler/typecheck/TcErrors.hs | bsd-3-clause | 71,277 | 1 | 21 | 21,694 | 14,829 | 7,519 | 7,310 | -1 | -1 |
module Vectorise.Type.TyConDecl (
vectTyConDecls
) where
import Vectorise.Type.Type
import Vectorise.Monad
import Vectorise.Env( GlobalEnv( global_fam_inst_env ) )
import BuildTyCl
import Class
import Type
import TyCon
import DataCon
import BasicTypes
import DynFlags
import Var
import Name
import Outputable
import ... | ekmett/ghc | compiler/vectorise/Vectorise/Type/TyConDecl.hs | bsd-3-clause | 8,322 | 1 | 14 | 2,956 | 1,473 | 757 | 716 | 134 | 1 |
import Data.Map.Strict (Map)
import Numeric.LinearAlgebra
import LeastSquares
type VarName = String
data LinExpr = Var VarName Int
| ...
infix 4 :==:
data LinContr = LinExpr :==: LinExpr
data QuadExpr = SumSquares LinExpr
| ProdQuad Double QuadExpr
| SumQuad QuadExpr QuadExpr
... | tridao/leastsquares | app/example1.hs | bsd-3-clause | 397 | 2 | 9 | 110 | 108 | 60 | 48 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.SBV.Provers.MathSAT
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : erkokl@gmail.com
-- Stability : experimental
--
-- The connection to the MathSAT SMT solver
-----------------------... | josefs/sbv | Data/SBV/Provers/Z3.hs | bsd-3-clause | 1,888 | 0 | 9 | 693 | 193 | 127 | 66 | 23 | 1 |
{- Data/Metrology/Units.hs
The units Package
Copyright (c) 2013 Richard Eisenberg
eir@cis.upenn.edu
This file defines the class Dimension, which is needed for
defining dimensions.
-}
{-# LANGUAGE TypeFamilies, DataKinds, DefaultSignatures, MultiParamTypeClasses,
ConstraintKinds, Undecidab... | hesiod/units | Data/Metrology/Dimensions.hs | bsd-3-clause | 864 | 0 | 9 | 161 | 66 | 41 | 25 | 9 | 0 |
{-
(c) Rahul Muttineni 2016-2017
(c) The University of Glasgow 2006
(c) The AQUA Project, Glasgow University, 1998
Desugaring foreign declarations.
-}
{-# LANGUAGE OverloadedStrings #-}
module ETA.DeSugar.DsForeign where
import ETA.Core.CoreSyn
import ETA.Core.CoreUtils
import ETA.Core.MkCore
import ETA.DeSugar.DsM... | AlexeyRaga/eta | compiler/ETA/DeSugar/DsForeign.hs | bsd-3-clause | 35,564 | 0 | 29 | 12,011 | 9,841 | 5,009 | 4,832 | -1 | -1 |
----------------------------------------------------------------------------
-- |
-- Module : ImportViaReexport
-- Copyright : (c) Sergey Vinokurov 2018
-- License : BSD3-style (see LICENSE)
-- Maintainer : serg.foo@gmail.com
----------------------------------------------------------------------------
... | sergv/tags-server | test-data/0010exported_name_defined_via_macro/ImportViaReexport.hs | bsd-3-clause | 369 | 0 | 3 | 48 | 14 | 12 | 2 | 2 | 0 |
{-
(c) The University of Glasgow 2006-2012
(c) The GRASP Project, Glasgow University, 1992-1998
-}
-- | This module defines classes and functions for pretty-printing. It also
-- exports a number of helpful debugging and other utilities such as 'trace' and 'panic'.
--
-- The interface to this module is very similar to ... | gcampax/ghc | compiler/utils/Outputable.hs | bsd-3-clause | 38,974 | 0 | 17 | 10,120 | 9,384 | 5,017 | 4,367 | 643 | 4 |
{-|
Module : DeepControl.Monad
Description : Deepend the usual Control.Monad module.
Copyright : (c) The University of Glasgow 2001,
(c) 2015 KONISHI Yohsuke
License : BSD-style (see the LICENSE file in the distribution)
Maintainer : ocean0yohsuke@gmail.com
Stability : experimental
Portabil... | ocean0yohsuke/deepcontrol | DeepControl/Monad.hs | bsd-3-clause | 32,069 | 0 | 18 | 6,858 | 18,116 | 9,481 | 8,635 | 307 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Data.Git.Errors (
GitError(..),
errorOr
) where
import Data.Typeable
import Bindings.Libgit2.Errors
import Control.Exception
data GitError = Error
| NotObjectID
| NotFound
| NoMemory
| OSError
| Object... | iand675/hgit | Data/Git/Errors.hs | bsd-3-clause | 1,298 | 0 | 11 | 575 | 219 | 132 | 87 | 44 | 2 |
module GLUtil.ABFA where
-- all of the interfaces to graphics are abstracted
-- away to allow for new graphics libs (eg vulkan)
-- in the future.
import Data.Bits ((.|.))
import Data.Data
import Data.Typeable
import GHC.Generics
import qualified Graphics.Rendering.OpenGL as GL
import qualified Graphics.Rendering.OpenG... | coghex/abridgefaraway | src/GLUtil/ABFA.hs | bsd-3-clause | 6,372 | 0 | 13 | 1,282 | 1,786 | 904 | 882 | 155 | 1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
-- |Here we use the stuff defined in the AST and Parsec modules
-- to parse things.
module Language.Sh.Parser ( parse, hereDocsComplete ) where
import Language.Sh.Parser.Internal
import Language.Sh.Parser.Parsec
import Language.Sh.Syntax
import Language.Sh.Ma... | MgaMPKAy/language-sh | Language/Sh/Parser.hs | bsd-3-clause | 25,720 | 0 | 21 | 11,425 | 6,083 | 3,037 | 3,046 | 430 | 6 |
module Main where
import Network.Socket
| nh2/haskell-socket | Main.hs | mit | 42 | 0 | 4 | 7 | 9 | 6 | 3 | 2 | 0 |
module TestImport
( module TestImport
, module X
) where
import Application (makeFoundation, makeLogWare)
import ClassyPrelude as X hiding (delete, deleteBy)
import Database.Persist as X hiding (get)
import Database.Persist.Sql (SqlPersistM, SqlBackend, runSqlPersistMPool, rawExecut... | mithrandi/ucd-api | test/TestImport.hs | mit | 3,013 | 0 | 19 | 652 | 635 | 339 | 296 | 51 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : $Header$
Copyright : (c) Till Mossakowski, C. Maeder, Uni Bremen 2004
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@informatik.uni-bremen.de
Stability : provisional
Portability : portable
Signatures for modal logic, as extension of C... | mariefarrell/Hets | Modal/ModalSign.hs | gpl-2.0 | 2,405 | 0 | 11 | 478 | 808 | 421 | 387 | 47 | 2 |
module Foreign.Erlang.Processes (
-- * Low-level communication.
-- ** Represents a Haskell node (program).
Self
, createSelf
-- ** Represents a Haskell process (thread).
, MBox
, createMBox
, createNamedMBox
, mboxRef
, mboxSelf
-- ** Represents Erlang nodes and processes.
, Node
, Pid
-- ... | lywaterman/erlang-haskell-interface | src/Foreign/Erlang/Processes.hs | gpl-3.0 | 12,430 | 0 | 22 | 3,960 | 3,270 | 1,613 | 1,657 | 228 | 18 |
{-# LANGUAGE TemplateHaskell, OverloadedStrings #-}
module SecondTransfer.Test.DecoySession where
import Control.Concurrent
import Control.Concurrent.STM.TMVar
import Control.Concurrent.STM.TChan
import Control.Exception
import Control.Lens (view... | shimmercat/second-transfer | tests/tests-hs-src/SecondTransfer/Test/DecoySession.hs | bsd-3-clause | 12,872 | 2 | 25 | 3,408 | 2,535 | 1,295 | 1,240 | -1 | -1 |
{-# LANGUAGE NamedFieldPuns, TupleSections #-}
-- |A Haskell program that demonstrates a simple "Hello, world!"
-- application using genetic algorithms. Based on code by John Svazic.
--
-- Author: Anthony Cowley
-- The MIT License
--
-- Copyright © 2011 Anthony Cowley
--
-- Permission is hereby grante... | jboissard/GAHelloWorld | haskell/gahelloworld.hs | mit | 6,852 | 0 | 15 | 1,785 | 1,803 | 966 | 837 | 96 | 1 |
{- |
Module : $Header$
Description : Some basic types for simple boolean representations
Copyright : (c) Ewaryst Schulz, DFKI Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : ewaryst.schulz@dfki.de
Stability : experimental
Portability : portable
This module defines some basic t... | keithodulaigh/Hets | CSL/BoolBasic.hs | gpl-2.0 | 1,825 | 0 | 12 | 506 | 420 | 210 | 210 | 26 | 6 |
{-# LANGUAGE MultiParamTypeClasses #-}
{- |
Module : $Header$
Description : Instances of classes defined in Logic.hs for first-order logic
with dependent types (DFOL)
Copyright : (c) Kristina Sojakova, DFKI Bremen 2009
License : GPLv2 or higher, see LICENSE.txt
Maintainer : k.sojakova@j... | keithodulaigh/Hets | DFOL/Logic_DFOL.hs | gpl-2.0 | 3,153 | 0 | 9 | 655 | 641 | 334 | 307 | 79 | 1 |
--
-- Copyright (c) 2012 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 | rpc-proxy/RpcProxy.hs | gpl-2.0 | 24,561 | 0 | 27 | 7,044 | 6,144 | 3,098 | 3,046 | 440 | 8 |
module Jhc.ForeignPtr(
ForeignPtr(),
newPlainForeignPtr_,
newForeignPtr_,
mallocPlainForeignPtrAlignBytes,
mallocForeignPtrAlignBytes,
unsafeForeignPtrToPtr,
castForeignPtr,
touchForeignPtr
) where
import Jhc.Addr
import Jhc.Basics
import Jhc.IO
import Jhc.Order
import Jhc.Prim.Rts
... | hvr/jhc | lib/jhc/Jhc/ForeignPtr.hs | mit | 3,746 | 54 | 11 | 781 | 908 | 479 | 429 | -1 | -1 |
{-# LANGUAGE RankNTypes, NamedFieldPuns, RecordWildCards, RecursiveDo,
BangPatterns, OverloadedStrings, TemplateHaskell, FlexibleContexts #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Distribution.Server.Features.Users (
initUserFeature,
UserFeature(..),
UserResource(..),
GroupResource(... | ocharles/hackage-server | Distribution/Server/Features/Users.hs | bsd-3-clause | 35,894 | 0 | 21 | 10,313 | 6,934 | 3,641 | 3,293 | 523 | 18 |
-- Copyright (c) 2000 Galois Connections, Inc.
-- All rights reserved. This software is distributed as
-- free software under the license in the file "LICENSE",
-- which is included in the distribution.
module Construct
( Surface (..)
, Face (..)
, CSG (..)
, Texture
, Transform
, union, inter... | ezyang/ghc | testsuite/tests/programs/galois_raytrace/Construct.hs | bsd-3-clause | 7,800 | 6 | 10 | 2,805 | 3,027 | 1,712 | 1,315 | 199 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
-- | This module implements common-subexpression elimination. This
-- module does not actually remove the duplicate, but only replaces
-- one with a diference to the other.... | HIPERFIT/futhark | src/Futhark/Optimise/CSE.hs | isc | 9,962 | 0 | 25 | 2,427 | 2,961 | 1,506 | 1,455 | 242 | 3 |
{-# OPTIONS #-}
-- ------------------------------------------------------------
{- |
Module : Control.Sequential.MapFoldBinary
Copyright : Copyright (C) 2010 Uwe Schmidt
License : MIT
Maintainer : Uwe Schmidt (uwe@fh-wedel.de)
Stability : experimental
A map-fold function for interleaved m... | ichistmeinname/holumbus | src/Control/Sequential/MapFoldBinary.hs | mit | 4,488 | 0 | 15 | 2,097 | 752 | 393 | 359 | 47 | 5 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Yesod.Form.Types
( -- * Helpers
Enctype (..)
, FormResult (..)
, FormMessage (..)
, Env
, FileEnv
, Ints (..)
... | piyush-kurur/yesod | yesod-form/Yesod/Form/Types.hs | mit | 5,314 | 0 | 15 | 1,498 | 1,590 | 891 | 699 | 124 | 0 |
{-# LANGUAGE QuasiQuotes #-}
module Test.GBA.Thumb.T1
(tests)
where
import Control.Applicative
import Data.Word
import Language.Literals.Binary
import Test.HUnit
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.HUnit (testCase)
import Game.GBA.Monad
import Game.GBA.Register
import Game.GBA.Thumb.Executi... | jhance/gba-hs | test/Test/GBA/Thumb/T1.hs | mit | 7,775 | 0 | 21 | 2,173 | 2,799 | 1,561 | 1,238 | 237 | 1 |
module MiniForth
( module MiniForth.Types
, module MiniForth.Parser
, module MiniForth.Engine
, module MiniForth.StdLib
) where
import MiniForth.Types
import MiniForth.Parser
import MiniForth.Engine
import MiniForth.StdLib
| L8D/miniforth | lib/MiniForth.hs | mit | 244 | 0 | 5 | 45 | 50 | 32 | 18 | 9 | 0 |
{- |
Module : ToolBar.hs
Description : .
Maintainer : Kelvin Glaß, Chritoph Graebnitz, Kristin Knorr, Nicolas Lehmann (c)
License : MIT
Stability : experimental
The ToolBar-module depicts the tool bar at the top of the main window below the menu bar.
-}
module ToolBar (
create
)
wh... | SWP-Ubau-SoSe2014-Haskell/SWPSoSe14 | src/RailEditor/ToolBar.hs | mit | 4,428 | 0 | 25 | 970 | 1,190 | 556 | 634 | 92 | 2 |
module Main (main) where
import Scheme48.Main
main :: IO ()
main = scheme48
| mpitid/scheme48 | Main.hs | mit | 79 | 0 | 6 | 16 | 29 | 17 | 12 | 4 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Integration.Foreign.Lua.UtilSpec (spec) where
import qualified System.Process as P
import TestImport hiding (assertEqual)
import Test.HUnit (assertEqual, assertFailure)
import Foreign.Lua.Util (getSourcePaths, findFilesAPICalls)
------------... | rzetterberg/alven | src/test/Integration/Foreign/Lua/UtilSpec.hs | mit | 2,007 | 0 | 18 | 677 | 431 | 205 | 226 | 41 | 3 |
#!/usr/bin/env stack
{- |
Pandoc filter for lightweight inline Haskell code blocks
-}
{-# LANGUAGE OverloadedStrings #-}
import Text.Pandoc.JSON
--import Text.Pandoc.Walk
import Control.Monad
import Data.IORef
import Data.List (partition)
import Data... | haskell-web-intro/secdev | slide-build/filter-bld/filter.hs | mit | 2,745 | 0 | 18 | 636 | 935 | 478 | 457 | 58 | 3 |
-- | Tests of Api functions.
module Api where
import System.NanoMsg
import System.NanoMsg.C.NanoMsg(nnStrerror)
import Test.QuickCheck
import Test.QuickCheck.Monadic
import qualified Data.ByteString as BS
import Data.ByteString (ByteString)
import Control.Applicative((<$>))
import Control.Concurrent.MVar(newEmptyMVar,p... | cheme/nanomsg-hs | test/Api.hs | mit | 2,269 | 0 | 17 | 445 | 665 | 339 | 326 | 52 | 2 |
module ExChap7 where
import Data.Char
import Prelude hiding (product, and, or, reverse, unzip, minimum, maximum,
drop, splitAt, take)
-- 7.1
digits :: String -> String
digits [] = []
digits (x:xs) = (if isDigit x then [x] else []) ++ (digits xs)
firstIntegerPlusOne :: Strin... | CarmineM74/haskell_craft3e | ExChap7.hs | mit | 5,713 | 0 | 11 | 1,787 | 2,546 | 1,342 | 1,204 | 136 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-restapi-s3location.html
module Stratosphere.ResourceProperties.ApiGatewayRestApiS3Location where
... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/ApiGatewayRestApiS3Location.hs | mit | 2,956 | 0 | 12 | 301 | 446 | 253 | 193 | 37 | 1 |
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE FlexibleInstances, DeriveFunctor #-}
module Syntax(
Var,
LambdaTerm(..),
Type(..),
alphaRename,
substitute,
convert,
varIntToString,
FreshPickable(..))
where
import Data.Maybe
import Data.Char
import Data.Set as S
import Data.List
type ... | fsestini/stlc-machine | src/Syntax.hs | mit | 2,917 | 0 | 14 | 872 | 1,159 | 593 | 566 | 67 | 1 |
module Sound.SC3.Server.State.Monad.Process (
withTransport
, withSynth
, withDefaultSynth
-- * Re-exported for convenience
, module Sound.SC3.Server.Process
) where
import Data.Default (def)
import qualified Sound.SC3.Server.Connection as Conn
import Sound.SC3.Server.Process hiding (withSynth, w... | kaoskorobase/hsc3-server | Sound/SC3/Server/State/Monad/Process.hs | gpl-2.0 | 1,812 | 0 | 9 | 396 | 296 | 175 | 121 | 37 | 1 |
import Foreign
import Foreign.C
foreign export ccall "hello" helloC :: IO CString
helloC = newCString $ hello
hello :: String
hello = "Hello World from ajhc!"
main :: IO ()
main = return ()
| titan/AjhcTest-Android | hs_src/Hello.hs | gpl-2.0 | 193 | 0 | 6 | 37 | 63 | 34 | 29 | 8 | 1 |
module STH.Lib.Text.Esc (
esc, bsEsc, bsUnEsc
) where
import Data.List (unfoldr)
import Data.Char (ord, readLitChar)
import STH.Lib.Int (showHex)
--bsEsc.S
bsEsc :: String -> String
bsEsc = concatMap esc
--bsEsc.E
--esc.S
esc :: Char -> String
esc x
| 32 <= k && k <= 126 = [x]
| k == 7 = "\\a"
| k == 8 ... | nbloomf/st-haskell | src/STH/Lib/Text/Esc.hs | gpl-3.0 | 5,398 | 0 | 22 | 1,736 | 2,639 | 1,416 | 1,223 | 114 | 68 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
module QLogic.States where
import Data.List
import System.Random
import QLogic
import QLogic.Utils
data State a f = State {evalState :: a -> f}
fromAtomicState :: (Num f, QLogicStruct p a) => p -> (a -> f) -> State a f
fromAtomicState ql s = State $ sum . ma... | ttylec/QLogic | src/QLogic/States.hs | gpl-3.0 | 1,836 | 0 | 12 | 506 | 781 | 402 | 379 | 33 | 2 |
{-#LANGUAGE TypeOperators, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses#-}
module Carnap.Languages.PureFirstOrder.Parser
( folFormulaParser, folFormulaParserRelaxed, mfolFormulaParser
, magnusFOLFormulaParser, thomasBolducAndZachFOLFormulaParser, gamutNDFormulaParser
, thomasBolducAndZachFOL2019FormulaPa... | opentower/carnap | Carnap/src/Carnap/Languages/PureFirstOrder/Parser.hs | gpl-3.0 | 21,864 | 0 | 17 | 8,366 | 3,829 | 2,029 | 1,800 | 270 | 4 |
{-# 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/Series/Get.hs | mpl-2.0 | 4,298 | 0 | 18 | 1,085 | 723 | 421 | 302 | 103 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-cognito-identity/gen/Network/AWS/CognitoIdentity/DescribeIdentityPool.hs | mpl-2.0 | 6,674 | 0 | 21 | 1,422 | 820 | 487 | 333 | 101 | 1 |
{-# LANGUAGE RecordWildCards, LambdaCase #-}
import Types
import GL
import RandomGeneration
import Graphics.Rendering.OpenGL as Gl
import Graphics.UI.GLUT as Glut
import qualified Data.Set as S
import Control.Concurrent
import System.Environment (getArgs)
ma... | mgmeier/MazeGenerator | MazeGenerator.hs | unlicense | 9,603 | 0 | 26 | 3,624 | 1,919 | 977 | 942 | 143 | 4 |
module AlecAirport.A284548Spec (main, spec) where
import Test.Hspec
import AlecAirport.A284548 (a284548)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A284548" $
it "correctly computes the first 20 elements" $
take 20 (map a284548 [0..]) `shouldBe` expectedValue where
expectedValue = [1,1,... | peterokagey/haskellOEIS | test/AlecAirport/A284548Spec.hs | apache-2.0 | 357 | 0 | 10 | 59 | 160 | 95 | 65 | 10 | 1 |
-- Copyright (c) 2014-2015 Jonathan M. Lange <jml@mumak.net>
--
-- 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 ... | jml/haverer | tests/CLI.hs | apache-2.0 | 1,085 | 0 | 11 | 170 | 116 | 74 | 42 | 14 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- | The Region API.
--
-- This module should be imported qualified, to prevent name clashes:
--
-- @
-- import NationStates
-- import qualified NationStates.Region as Region
-- @
--
-- In general, this module follows the terminology used in the
-- <https://www.nationstates.... | lfairy/nationstates | NationStates/Region.hs | apache-2.0 | 5,034 | 0 | 12 | 1,002 | 1,013 | 565 | 448 | 74 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Seraph.Process
( waitOn
, kill
, spawnProg
, runSeraphChildM
, runSeraphProcessM
) where
-------------------------------------------------------------------------------
import Control.Applicative
import Control.Concurrent
import ... | MichaelXavier/Seraph | src/Seraph/Process.hs | bsd-2-clause | 7,837 | 0 | 16 | 1,834 | 1,794 | 928 | 866 | -1 | -1 |
{-# LANGUAGE CPP, MagicHash #-}
-----------------------------------------------------------------------------
-- |
-- Module : Haddock.Interface.AttachInstances
-- Copyright : (c) Simon Marlow 2006,
-- David Waern 2006-2009,
-- Isaac Dupree 2009
-- License : BSD-like... | mrBliss/haddock | haddock-api/src/Haddock/Interface/AttachInstances.hs | bsd-2-clause | 8,017 | 97 | 23 | 2,002 | 2,067 | 1,119 | 948 | 142 | 6 |
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Data.Char
import Data.Text (Text)
import qualified Data.Text as T
import Prettyprinter.Internal
import Test.Tasty.Bench
-- The old implementation. Performance isn’t much worse to b... | quchen/prettyprinter | prettyprinter/bench/FasterUnsafeText.hs | bsd-2-clause | 953 | 0 | 13 | 234 | 323 | 173 | 150 | 22 | 3 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-}
{-# LANGUAGE PatternGuards #-}
{-# OPTIONS_GHC -Wno-dodgy-imports #-} -- singleton in Data.List since base 4.15
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.NoBorders
-- Des... | xmonad/xmonad-contrib | XMonad/Layout/NoBorders.hs | bsd-3-clause | 15,425 | 20 | 16 | 4,694 | 2,400 | 1,330 | 1,070 | 156 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Bits
import Data.ByteString( ByteString )
import qualified Data.ByteString as BS
import qualified Data.ByteString.Base64 as Base64
import Data.List
import Time.WWVB
ss :: BS.ByteString
-- ss = "/////gD/AAAAAf//8AAB/8AOAAD/gAAAAf+AA... | robdockins/wwvb | test/Test.hs | bsd-3-clause | 9,225 | 2 | 15 | 940 | 1,143 | 634 | 509 | 78 | 2 |
module Parse.Expression (def,term,typeAnnotation,expr) where
import Control.Applicative ((<$>), (<*>))
import Data.List (foldl')
import Text.Parsec hiding (newline,spaces)
import Text.Parsec.Indent
import Parse.Binop
import Parse.Helpers
import Parse.Literal
import qualified Parse.Pattern as Pattern
import qualified ... | deadfoxygrandpa/Elm | compiler/Parse/Expression.hs | bsd-3-clause | 7,726 | 0 | 17 | 2,329 | 2,730 | 1,352 | 1,378 | 186 | 3 |
{-# LANGUAGE CPP #-}
-- | Compatibility helpers for the @aeson-2@ migration.
module Dhall.JSON.Compat (
objectFromList
, mapToAscList
, filterObject
, lookupObject
, traverseObjectWithKey
, objectKeys
, textToKey
) where
import Data.Aeson (Object, Value)
import Data.Text (Text)
#if... | Gabriel439/Haskell-Dhall-Library | dhall-json/src/Dhall/JSON/Compat.hs | bsd-3-clause | 2,063 | 0 | 10 | 355 | 376 | 224 | 152 | 28 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Exception
import Control.Monad.IO.Class (liftIO)
import Data.Int (Int64)
import Data.Monoid ((<>))
import qualified Data.Text as T
import Database... | pellagic-puffbomb/simpleservantblog | app/Plumbing.hs | bsd-3-clause | 5,514 | 0 | 22 | 1,556 | 1,551 | 748 | 803 | 138 | 4 |
module MiniC.Skel where
-- Haskell module generated by the BNF converter
import MiniC.Abs
import MiniC.ErrM
type Result = Err String
failure :: Show a => a -> Result
failure x = Bad $ "Undefined case: " ++ show x
transIdent :: Ident -> Result
transIdent x = case x of
Ident string -> failure x
transPrg :: Prg -> R... | jyp/ling | MiniC/Skel.hs | bsd-3-clause | 2,783 | 0 | 8 | 700 | 1,217 | 561 | 656 | 102 | 26 |
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE TypeFamilies #-}
module Phil.Core.AST.Types where
import Control.Exception
import GHC.Stack
import Phil.Exception
import Data.Bifunctor
import Data.Foldable
import qualified Data.Map as M
import Data.Map (Map)
import Data.Maybe
import Data.Monoid
import Data.List (inte... | LightAndLight/hindley-milner | src/Phil/Core/AST/Types.hs | bsd-3-clause | 5,040 | 0 | 19 | 1,060 | 1,943 | 999 | 944 | -1 | -1 |
module Main ( main ) where
import Prelude hiding (catch)
import Control.Exception.Extensible (ArithException (..))
import Control.Monad.Catch as MC
import Control.Monad (liftM, when)
import Control.Concurrent (forkIO)
import Control.Concurrent.MVar
import qualified Data.Complex as Complex
import Sys... | konn/hint-forked | unit-tests/run-unit-tests.hs | bsd-3-clause | 13,620 | 0 | 20 | 5,243 | 3,172 | 1,620 | 1,552 | 270 | 2 |
module Main where
import HW07.Editor
import HW07.JoinList
import HW07.Scrabble
import HW07.Sized
main = runEditor editor (Single (Score 0, Size 0) "")
| kemskems/cis194-spring13 | src/HW07/JoinListBufEditor.hs | bsd-3-clause | 153 | 0 | 9 | 23 | 54 | 30 | 24 | 6 | 1 |
{-# OPTIONS_HADDOCK not-home #-}
{-# LANGUAGE CPP, DeriveDataTypeable, DeriveFunctor,
DeriveFoldable, DeriveTraversable #-}
-- | This module provides access to all the internals use by the LRU
-- type. This can be used to create data structures that violate the
-- invariants the public interface maintain... | DavidAlphaFox/CacheDNS | src/CacheDNS/Cache/LRU/Internal.hs | bsd-3-clause | 13,490 | 0 | 16 | 4,161 | 3,041 | 1,641 | 1,400 | 174 | 4 |
module Main where
import Control.Concurrent (forkIO)
import Network.Wai.Handler.Warp (run)
import Dots
import Dots.Server
main :: IO ()
main = do
config <- mkDefaultConfig
forkIO $ periodicUpdates 10000 config -- update Universe every 10 milliseconds
run 8000 $ server config
| fizruk/dots-game | server/Main.hs | bsd-3-clause | 287 | 0 | 8 | 50 | 82 | 44 | 38 | 10 | 1 |
{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE BangPatterns #-}
module Main where
import Control.DeepSeq (force)
import Criterion
import Criterion.Main
import qualified Data.Aeson as Aeson
import qua... | andyfriesen/buffer-builder-aeson | bench/Bench.hs | bsd-3-clause | 2,119 | 0 | 15 | 468 | 608 | 324 | 284 | 39 | 1 |
{-# LANGUAGE CPP #-}
-- |
-- Module : Caching.ExpiringCacheMap.Utils.TestSequence
-- Copyright: (c) 2014 Edward L. Blake
-- License: BSD-style
-- Maintainer: Edward L. Blake <edwardlblake@gmail.com>
-- Stability: experimental
-- Portability: portable
--
-- TestSequence monad for testing caching behaviour.
--
-- > {-# ... | elblake/expiring-cache-map | Caching/ExpiringCacheMap/Utils/TestSequence.hs | bsd-3-clause | 6,431 | 0 | 16 | 1,382 | 1,385 | 780 | 605 | 93 | 2 |
{-|
Module : Game.GoreAndAsh.Core.Monad
Description : Definition of game monad and core modules.
Copyright : (c) Anton Gushcha, 2015-2018
Oganyan Levon, 2016
License : BSD3
Maintainer : ncrashed@gmail.com
Stability : experimental
Portability : POSIX
The module defines basement for FRP e... | Teaspot-Studio/gore-and-ash | src/Game/GoreAndAsh/Core/Monad.hs | bsd-3-clause | 11,675 | 0 | 24 | 2,369 | 2,949 | 1,542 | 1,407 | -1 | -1 |
{-# LINE 1 "GHC.Classes.hs" #-}
{-# LANGUAGE CPP, Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude, MagicHash, StandaloneDeriving, BangPatterns,
KindSignatures, DataKinds, ConstraintKinds,
MultiParamTypeClasses, FunctionalDependencies #-}
{-# LANGUAGE A... | phischu/fragnix | builtins/ghc-prim/GHC.Classes.hs | bsd-3-clause | 37,626 | 0 | 11 | 10,935 | 5,593 | 3,117 | 2,476 | 272 | 3 |
{-|
Module : Foreign.Lua.Types
Copyright : © 2017-2019 Albert Krewinkel
License : MIT
Maintainer : Albert Krewinkel <tarleb+hslua@zeitkraut.de>
Stability : beta
Portability : non-portable (depends on GHC)
Types for working with Lua.
-}
module Foreign.Lua.Types
( module Foreign.Lua.Types.Peekable
, mo... | osa1/hslua | src/Foreign/Lua/Types.hs | mit | 432 | 0 | 5 | 69 | 40 | 29 | 11 | 5 | 0 |
module Codec.Encryption.Historical.XOR.Test (test) where
-- Normal Libraries
import Data.Char
import Data.List
import Data.Bits
import Data.Word8
import Control.Monad
-- Testing Libraries
import Test.QuickCheck
import Test.HUnit.Lang
import Test.Framework.Providers.QuickCheck2
import Test.Framework.Providers.HUnit... | beni55/Historical-Cryptography | Codec/Encryption/Historical/XOR/Test.hs | mit | 2,827 | 0 | 12 | 763 | 654 | 346 | 308 | -1 | -1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable, ScopedTypeVariables #-}
module Sieve where
import Prelude hiding (lookup, read)
import TestMain
import Helper
import AST hiding (Process)
import Render
import Control.Distributed.Process
import Control.Distributed.Process.Serializable
import Data.Binar... | abakst/symmetry | checker/src/cloud-haskell-tests/Sieve.hs | mit | 1,752 | 0 | 13 | 689 | 523 | 259 | 264 | 47 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.