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 TypeFamilies, MultiParamTypeClasses, GADTs, FlexibleInstances, FlexibleContexts, ScopedTypeVariables, TypeSynonymInstances, StandaloneDeriving, DeriveDataTypeable, EmptyDataDecls, NamedFieldPuns, CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Control.Etage.Internals (
Axon(..),
Nerve(..),
Impu... | mitar/etage | lib/Control/Etage/Internals.hs | lgpl-3.0 | 8,839 | 0 | 11 | 1,441 | 908 | 511 | 397 | -1 | -1 |
module Git.Command.HttpBackend (run) where
run :: [String] -> IO ()
run args = return () | wereHamster/yag | Git/Command/HttpBackend.hs | unlicense | 89 | 0 | 7 | 15 | 42 | 23 | 19 | 3 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module TrieInternal
( NodeDB, Digest(..)
, getNode, putNode
, lookupPath
, insertRef, insertPath
, emptyRef, normalize
, Ref(..), Node(..)
)
where
import PPrelude
import qualified RLP as RLP... | haroldcarr/learn-haskell-coq-ml-etc | haskell/playpen/blockchain/ben-kirwin-merkle/src/TrieInternal.hs | unlicense | 6,241 | 0 | 21 | 1,808 | 2,446 | 1,215 | 1,231 | 154 | 10 |
module Data.Trees.KD1 where
import Data.List (sortBy, splitAt)
import Data.Ord (comparing)
type Point = [Int]
data KDTree = Branch Point KDTree KDTree | Leaf Point | Empty deriving (Show)
-- | building a KD tree from a list of Points.
--
-- >>> kd_from_list [[2,3], [5,4], [9,6], [4,7], [8,1], [7,2]]
-- Branch [7,2]... | stevej/tree-fun | Data/Trees/KD1.hs | apache-2.0 | 1,290 | 0 | 12 | 406 | 279 | 157 | 122 | 17 | 1 |
ans (xa1:ya1:xa2:ya2:xb1:yb1:xb2:yb2:_) =
if (yb1 > ya2 || yb2 < ya1) || (xb2 < xa1 || xb1 > xa2)
then "NO"
else "YES"
main = do
c <- getContents
let i = map (map read) $ map words $ lines c :: [[Double]]
o = map ans i
mapM_ putStrLn o
| a143753/AOJ | 0059.hs | apache-2.0 | 258 | 0 | 14 | 73 | 157 | 79 | 78 | 9 | 2 |
{- File mode utilities.
-
- Copyright 2010-2012 Joey Hess <id@joeyh.name>
-
- License: BSD-2-clause
-}
{-# LANGUAGE CPP #-}
module Utility.FileMode (
module Utility.FileMode,
FileMode,
) where
import System.IO
import Control.Monad
import System.PosixCompat.Types
import Utility.PosixFiles
#ifndef mingw32_HOST_... | ArchiveTeam/glowing-computing-machine | src/Utility/FileMode.hs | bsd-2-clause | 4,756 | 18 | 11 | 801 | 1,124 | 599 | 525 | 88 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Bucketeer.Types (Consumer(..),
Feature(..),
BucketeerNamespace,
Bucket(..)) where
import Control.Applicative ((<$>),
pure,
(<*>))
import Data.Aeson.T... | MichaelXavier/Bucketeer | Bucketeer/Types.hs | bsd-2-clause | 2,507 | 0 | 13 | 1,057 | 584 | 325 | 259 | 56 | 0 |
-- | Frequently useful definitions for working with general prettyprinters.
module Prettyprinter.Util (
module Prettyprinter.Util
) where
import Data.Text (Text)
import qualified Data.Text as T
import Prettyprinter.Render.Text
import ... | quchen/prettyprinter | prettyprinter/src/Prettyprinter/Util.hs | bsd-2-clause | 1,855 | 0 | 9 | 427 | 214 | 135 | 79 | 15 | 1 |
{-# LANGUAGE PackageImports #-}
-- | Pulls in lots of useful modules for building and using Properties.
module Propellor.Base (
-- * Propellor modules
module Propellor.Types
, module Propellor.Property
, module Propellor.Property.Cmd
, module Propellor.Property.List
, module Propellor.Types.PrivData
, module... | np/propellor | src/Propellor/Base.hs | bsd-2-clause | 1,450 | 2 | 5 | 183 | 289 | 189 | 100 | 50 | 0 |
module Drasil.NoPCM.DataDefs where --exports all of it
import Language.Drasil
import Theory.Drasil (DataDefinition)
import Drasil.SWHS.DataDefs (balanceDecayRate, balanceDecayRateQD)
qDefs :: [QDefinition]
qDefs = [balanceDecayRateQD]
dataDefs :: [DataDefinition]
dataDefs = [balanceDecayRate]
| JacquesCarette/literate-scientific-software | code/drasil-example/Drasil/NoPCM/DataDefs.hs | bsd-2-clause | 299 | 0 | 5 | 33 | 69 | 44 | 25 | 8 | 1 |
-- Solution to Stanford Compilers Course.
-- (c) Copyright 2012 Michael Starzinger. All Rights Reserved.
module Assembler.Printer (
prettyAsm,
) where
import Assembler
import System.IO (Handle,hPutStr)
prettyAsm :: (Show a) => Assembly a -> Handle -> IO ()
prettyAsm ds h = do
hPutStr h "# This file was automatica... | mstarzinger/coolc | asm-printer.hs | bsd-3-clause | 747 | 4 | 10 | 141 | 223 | 114 | 109 | 14 | 1 |
{-# LANGUAGE TypeOperators, TypeFamilies, MultiParamTypeClasses, CPP #-}
{-# LANGUAGE ExplicitForAll #-}
{-# OPTIONS_GHC -Wall #-}
-- {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- TEMP
-- {-# OPTIONS_GHC -fno-warn-unused-binds #-} -- TEMP
----------------------------------------------------------------------
-... | conal/reification-rules | src/ReificationRules/Misc.hs | bsd-3-clause | 2,425 | 0 | 13 | 450 | 415 | 247 | 168 | 28 | 1 |
{-# LANGUAGE GADTs, FlexibleContexts, MultiParamTypeClasses #-}
module YaLedger.Reports.Ledger where
import Control.Applicative ((<$>))
import Control.Monad.Exception
import Data.Maybe
import qualified Data.Map as M
import Data.Decimal
import Data.String
import YaLedger.Types
import YaLedger.Output
import YaLedger.K... | portnov/yaledger | YaLedger/Reports/Ledger.hs | bsd-3-clause | 8,838 | 0 | 20 | 2,306 | 3,281 | 1,694 | 1,587 | 168 | 3 |
module Hypo
(
) where
hypo' :: IO ()
hypo' = do
let x :: Integer
x = undefined
s <- getLine
case x `seq` s of
"hi" -> print x
_ -> putStrLn "hello"
hypo'' :: IO ()
hypo'' = do
let x :: Integer
x = undefined
s <- x `seq` getLine -- x must be evaluated before getLine
case s of
... | nicklawls/haskellbook | src/Hypo.hs | bsd-3-clause | 838 | 0 | 11 | 260 | 379 | 199 | 180 | 42 | 2 |
{-# LANGUAGE RankNTypes #-}
module Rumpus.Systems.CodeEditor where
import PreludeExtra hiding (Key, catch)
import Graphics.GL.TextBuffer
import Halive.SubHalive
import Halive.Recompiler
import Halive.FileListener
import qualified Data.HashMap.Strict as Map
import Data.ECS.Vault
import Control.Monad.Trans.Maybe
impo... | lukexi/rumpus | src/Rumpus/Systems/CodeEditor.hs | bsd-3-clause | 15,534 | 0 | 28 | 4,129 | 3,221 | 1,601 | 1,620 | -1 | -1 |
module NLP.Semiring.Helpers where
cartesian as bs = [(a,b) | a <- as, b <- bs]
| srush/SemiRings | NLP/Semiring/Helpers.hs | bsd-3-clause | 83 | 0 | 7 | 19 | 42 | 24 | 18 | 2 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Stack.Setup
( ... | cocreature/stack | src/Stack/Setup.hs | bsd-3-clause | 31,252 | 0 | 30 | 10,277 | 7,729 | 3,847 | 3,882 | 649 | 15 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-
BrowseNodeLookup call.
Currenlty only the default BrowseNodeInfo report group is parsed in the response.
And then only the child node information and not the ancestor nodes.
-}
module Aws.Pa.Commands.BrowseNodeLookup (
BrowseNodeLookupRe... | RayRacine/aws | Aws/Pa/Commands/BrowseNodeLookup.hs | bsd-3-clause | 4,498 | 0 | 15 | 1,210 | 930 | 520 | 410 | -1 | -1 |
import qualified GameModesSpec as GameModes
import qualified ReactionsSpec as Reactions
import qualified ScoreBoardSpec as ScoreBoard
import qualified WeaponsSpec as Weapons
main :: IO ()
main = do
GameModes.spec
Reactions.spec
ScoreBoard.spec
Weapons.spec
| joelchelliah/rock-paper-scissors-hs | test/Spec.hs | bsd-3-clause | 271 | 0 | 7 | 45 | 60 | 36 | 24 | 10 | 1 |
module Mistral.TypeCheck.Translate (
ParamMap
, mkParamMap
, translateSchema
, translateType ) where
import qualified Mistral.Parser.AST as P
import Mistral.TypeCheck.AST
import Mistral.TypeCheck.Monad
import Mistral.Utils.Panic ( panic )
import Mistral.Utils.PP
import... | GaloisInc/mistral | src/Mistral/TypeCheck/Translate.hs | bsd-3-clause | 2,681 | 0 | 26 | 896 | 895 | 444 | 451 | 68 | 11 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PolyKinds #-}
module... | dalaing/type-systems | src/Fragment/SystemF/Rules/Type/Infer/Common.hs | bsd-3-clause | 3,116 | 0 | 19 | 835 | 1,108 | 573 | 535 | 76 | 2 |
module MyIO where
import Control.Monad
import Control.Applicative
import Data.Char
instance Functor MyIO where
fmap = liftM
instance Applicative MyIO where
pure = return
(<*>) = ap
type Input = String
type Remainder = String
type Output = String
data MyIO a = MyIO (Input -> (a, Remainder, Output)... | bzhkl/MonadTry | libMyIO/MyIO.hs | bsd-3-clause | 1,545 | 0 | 16 | 514 | 599 | 325 | 274 | 45 | 2 |
module Module5.Task5 where
-- system code
data Log a = Log [String] a deriving Show
-- solution code
toLogger :: (a -> b) -> String -> (a -> Log b)
toLogger f msg = Log [msg] . f
execLoggers :: a -> (a -> Log b) -> (b -> Log c) -> Log c
execLoggers a f g = Log (logb ++ logc) c where
(Log logb b) = f a
(Log logc ... | dstarcev/stepic-haskell | src/Module5/Task5.hs | bsd-3-clause | 329 | 0 | 10 | 84 | 176 | 92 | 84 | 8 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- |Random and Binary IO with generic Iteratees. These functions use Handles
-- for IO operations, and are provided for compatibility. When available,
-- the File Descriptor based functions are preferred as these wastefully
-- allocate memory rat... | JohnLato/iteratee | src/Data/Iteratee/IO/Handle.hs | bsd-3-clause | 4,561 | 0 | 16 | 992 | 1,023 | 548 | 475 | 102 | 2 |
{-# LANGUAGE TypeFamilies, TypeOperators, FlexibleContexts, DoRec #-}
{-# LANGUAGE DeriveDataTypeable, NoImplicitPrelude, TemplateHaskell #-}
{-# LANGUAGE UndecidableInstances #-}
module Hardware.HHDL.Examples.RunningSum where
import Data.Word
import Hardware.HHDL
import Hardware.HHDL.Examples.Clock
import Hardware... | thesz/hhdl | src/Hardware/HHDL/Examples/RunningSum.hs | bsd-3-clause | 1,024 | 2 | 15 | 141 | 272 | 146 | 126 | 17 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Program.HcPkg
-- Copyright : Duncan Coutts 2009, 2013
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- This module provides an library interface to the @hc-pkg@ progra... | typelead/epm | Cabal/Distribution/Simple/Program/HcPkg.hs | bsd-3-clause | 14,219 | 0 | 18 | 3,628 | 2,855 | 1,521 | 1,334 | 250 | 5 |
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies,
FlexibleInstances, FlexibleContexts,
TupleSections, QuasiQuotes, BangPatterns #-}
module Language.Java.Paragon.TypeCheck.Monad.TcDeclM
(
module Language.Java.Paragon.Monad.PiReader,
TcDeclM, runTcDeclM, TypeCheck,
... | bvdelft/parac2 | src/Language/Java/Paragon/TypeCheck/Monad/TcDeclM.hs | bsd-3-clause | 55,824 | 781 | 40 | 19,194 | 10,432 | 5,609 | 4,823 | -1 | -1 |
module AmbiguousSignature where
import AmbitiousSignature
hServer :: String
hServer = "Server"
| phischu/fragnix | tests/quick/AmbiguousSignature/AmbiguousSignature.hs | bsd-3-clause | 98 | 0 | 4 | 14 | 17 | 11 | 6 | 4 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE PatternGuards, DataKinds, TypeOperators, UndecidableInstances, GeneralizedNewtypeDeriving #-}
module Database.Persist.Class.PersistField
( PersistField (..)
, SomePersistField (... | paul-rouse/persistent | persistent/Database/Persist/Class/PersistField.hs | mit | 23,336 | 0 | 15 | 5,631 | 5,343 | 2,763 | 2,580 | -1 | -1 |
module Model where
import ClassyPrelude.Yesod
import Database.Persist.Quasi
import Yesod.Markdown
-- You can define all of your database entities in the entities file.
-- You can find more information on persistent and how to declare entities
-- at:
-- http://www.yesodweb.com/book/persistent/
share [mkPersist sqlSett... | bitemyapp/lypaste | Model.hs | agpl-3.0 | 407 | 0 | 8 | 53 | 53 | 30 | 23 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Propellor.Types.Exception where
import Data.Typeable
import Control.Exception
-- | Normally when an exception is encountered while propellor is
-- ensuring a property, the property fails, but propellor robustly
-- continues on to the next property.
--
-- This is the only exc... | ArchiveTeam/glowing-computing-machine | src/Propellor/Types/Exception.hs | bsd-2-clause | 874 | 2 | 6 | 137 | 59 | 39 | 20 | 7 | 0 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Traversable
-- Copyright : Conor McBride and Ross Paterson 2005
-- License : BSD-style (see the LICENSE file in the distribution)
--
-- Maint... | gcampax/ghc | libraries/base/Data/Traversable.hs | bsd-3-clause | 10,210 | 0 | 12 | 2,271 | 2,012 | 1,131 | 881 | 106 | 1 |
------------------------------------------------------------------------
-- |
-- Module : ALife.Creatur.Wain.ImageID.Daemon
-- Copyright : (c) Amy de Buitléir 2013-2016
-- License : BSD-style
-- Maintainer : amy@nualeargais.ie
-- Stability : experimental
-- Portability : portable
--
-- The daemon th... | mhwombat/numeral-wains | src/ALife/Creatur/Wain/ImageID/Daemon.hs | bsd-3-clause | 2,344 | 0 | 14 | 375 | 539 | 299 | 240 | 44 | 1 |
-- (c) The University of Glasgow 2006
--
-- FamInstEnv: Type checked family instance declarations
{-# LANGUAGE CPP, GADTs, ScopedTypeVariables #-}
module FamInstEnv (
FamInst(..), FamFlavor(..), famInstAxiom, famInstTyCon, famInstRHS,
famInstsRepTyCons, famInstRepTyCon_maybe, dataFamInstRepTyCon,
... | gcampax/ghc | compiler/types/FamInstEnv.hs | bsd-3-clause | 42,302 | 0 | 19 | 11,953 | 6,294 | 3,399 | 2,895 | -1 | -1 |
{-
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2001-2003
--
-- Access to system tools: gcc, cp, rm etc
--
-----------------------------------------------------------------------------
-}
{-# LANGUAGE CPP, ScopedTypeVariables #-}
module SysTools (
... | wxwxwwxxx/ghc | compiler/main/SysTools.hs | bsd-3-clause | 70,671 | 97 | 22 | 22,984 | 12,170 | 6,220 | 5,950 | 988 | 12 |
{- |
Module : $Header$
Description : Maps a MathServResponse into a prover configuration.
Copyright : (c) Rainer Grabbe
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : needs POSIX
Maps a MathServResponse into a GenericConfig s... | keithodulaigh/Hets | SoftFOL/MathServMapping.hs | gpl-2.0 | 7,025 | 1 | 26 | 2,340 | 1,230 | 655 | 575 | 115 | 4 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUA... | sinelaw/stack | src/Stack/Config.hs | bsd-3-clause | 23,081 | 0 | 30 | 6,903 | 5,043 | 2,529 | 2,514 | 451 | 11 |
<?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="pt-BR">
<title>Linux WebDrivers</title>
<maps>
<homeID>top</homeID>
<mapref location="m... | kingthorin/zap-extensions | addOns/webdrivers/webdriverlinux/src/main/javahelp/org/zaproxy/zap/extension/webdriverlinux/resources/help_pt_BR/helpset_pt_BR.hs | apache-2.0 | 961 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
module RefacAddEvalMon (refacAddEvalMon) where
import PrettyPrint
import PosSyntax
import Data.Maybe
import TypedIds
import UniqueNames hiding (srcLoc)
import PNT
import TiPNT
import Data.List
import RefacUtils
import PFE0 (findFile)
import MUtils(( # ))
import AbstractIO
import Debug.Trace
import RefacMvDefBtwMod... | RefactoringTools/HaRe | old/refactorer/RefacAddEvalMon.hs | bsd-3-clause | 955 | 12 | 9 | 228 | 256 | 147 | 109 | -1 | -1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1993-1998
\section{Code output phase}
-}
{-# LANGUAGE CPP #-}
module CodeOutput( codeOutput, outputForeignStubs ) where
#include "HsVersions.h"
import AsmCodeGen ( nativeCodeGen )
import LlvmCodeGen ( llvmCodeGen )
import UniqSupply ( mkSplitUniqSupply )
i... | nushio3/ghc | compiler/main/CodeOutput.hs | bsd-3-clause | 9,162 | 29 | 28 | 3,241 | 1,345 | 700 | 645 | 145 | 7 |
{-# LANGUAGE CPP #-}
-- STM Async API used in \secref{stm-async}
module Main where
import GetURL
#if __GLASGOW_HASKELL__ < 706
import ConcurrentUtils (forkFinally)
#endif
import Control.Concurrent
import Control.Exception
import Control.Concurrent.STM
import Text.Printf
import qualified Data.ByteString as B
-- ----... | prt2121/haskell-practice | parconc/geturlsfirst.hs | apache-2.0 | 2,018 | 0 | 13 | 413 | 615 | 317 | 298 | 52 | 2 |
{-# LANGUAGE TypeFamilies, DataKinds, TypeOperators, GADTs #-}
module T7967 where
data Nat = Zero | Succ Nat
data SNat :: Nat -> * where
SZero :: SNat Zero
SSucc :: SNat n -> SNat (Succ n)
data HList :: [*] -> * where
HNil :: HList '[]
HCons :: h -> HList t -> HList (h ': t)
data Index :: Nat -> [*] -> * wh... | urbanslug/ghc | testsuite/tests/indexed-types/should_fail/T7967.hs | bsd-3-clause | 904 | 0 | 10 | 217 | 379 | 203 | 176 | 21 | 1 |
{-# Language OverloadedStrings, TupleSections #-}
module Unison.FileParser where
import Control.Applicative
import Control.Monad.Reader
import Data.Either (partitionEithers)
import Data.Map (Map)
import qualified Data.Map as Map
import Prelude hiding (readFile)
import... | paulp/unison | parser-typechecker/src/Unison/FileParser.hs | mit | 3,193 | 0 | 19 | 627 | 961 | 504 | 457 | 58 | 1 |
import System.Metrics
import System.Remote.Monitoring.Statsd
import Control.Monad (forever, void)
import Control.Concurrent (threadDelay)
import Data.String.Conversions (cs)
import Data.Text hiding (length)
import Data.Monoid ( (<>) )
import Crypto.Hash.MD5 (hash)
import Network.HTTP hiding (host)
import Text.Bytedump... | begriffs/micro-scraper | Main.hs | mit | 1,952 | 0 | 12 | 371 | 664 | 344 | 320 | 48 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Exception
import Data.ByteString hiding (putStrLn)
import Data.ByteString.Char8
import Network.Socket hiding (recvFrom)
import Network.Socket.ByteString
import Prelude ... | JoshuaGross/haskell-learning-log | Code/SimpleUdpServer/src/Main.hs | mit | 867 | 0 | 12 | 318 | 205 | 108 | 97 | 19 | 1 |
{-# LANGUAGE ScopedTypeVariables, BangPatterns #-}
{-# LANGUAGE TemplateHaskell, OverloadedStrings, QuasiQuotes, NamedFieldPuns #-}
module Control.OperationalTransformation.JSON.QuasiQuote (v, s, l, x) where
import Control.OperationalTransformation.JSON.Types
import Control.OperationalTransformation.Text0
import Data... | thomasjm/ot.hs | test/Control/OperationalTransformation/JSON/QuasiQuote.hs | mit | 2,271 | 0 | 11 | 351 | 489 | 270 | 219 | 46 | 2 |
module Types where
import Data.Monoid
import System.Random
import Control.Monad.State
data Move
= Betray
| Cooperate
deriving (Show)
charToMove :: Char -> Move
charToMove 'C' = Cooperate
charToMove _ = Betray
moveToString :: Move -> String
moveToString Cooperate = "C"
moveToString Betray = "D"
instanc... | barkmadley/etd-retreat-2014-hteam | src/Types.hs | mit | 2,012 | 0 | 12 | 513 | 807 | 422 | 385 | 62 | 1 |
module Clingo.Solving
(
ResultReady(..),
MonadSolve(..),
solverClose,
withModel
)
where
import Control.Monad.IO.Class
import Control.Monad.Catch
import Clingo.Model (MonadModel)
import Clingo.Internal.Types
import Foreign.Ptr
import Foreign.Marshal.Utils
import Clingo.Internal.Utils
import qualified Cl... | tsahyt/clingo-haskell | src/Clingo/Solving.hs | mit | 2,900 | 0 | 12 | 625 | 905 | 466 | 439 | 60 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
module Hpack.Util (
List(..)
, GhcOption
, GhcProfOption
, CppOption
, CcOption
, LdOption
, parseMain
, toModule
, getFilesRecursive
, tryReadFile
, expandGlobs
, sort
, lexicographically
) where
import Prelude ()
import Prelude.Compat
import Contro... | deech/hpack | src/Hpack/Util.hs | mit | 3,847 | 0 | 15 | 921 | 1,312 | 701 | 611 | 99 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-|
Yesod.Test is a pragmatic framework for testing web applications built
using wai and persistent.
By pragmatic I may also mean ... | erikd/yesod | yesod-test/Yesod/Test.hs | mit | 36,614 | 5 | 23 | 9,112 | 7,328 | 3,915 | 3,413 | 582 | 11 |
module E7 where
definition :: Integer -> Integer
definition anInteger
| even anInteger = anInteger / 2
| otherwise = 0
{-
definition :: Integer -> Integer
definition anInteger
| even anInteger = anInteger `div` 2
| otherwise = 0
-} | pascal-knodel/haskell-craft | Examples/· Errors/E7.hs | mit | 311 | 0 | 8 | 120 | 44 | 22 | 22 | 5 | 1 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module System.Etc.Resolver.Cli.PlainTest where
import RIO
import qualified RIO.Set as Set
import Data.Aeson ((.:))
import qualified Data.Aeson as JSON... | roman/Haskell-etc | etc/test/System/Etc/Resolver/Cli/PlainTest.hs | mit | 14,915 | 0 | 19 | 5,303 | 2,649 | 1,353 | 1,296 | 288 | 9 |
module Tests where
import Matrizer.MTypes
import Matrizer.Parsing
import Matrizer.Analysis
import Matrizer.Preprocess
import Matrizer.Optimization
import Matrizer.CodeGen
import Matrizer.Equivalence
import Control.Monad
import System.Directory
import System.FilePath
import Data.List
import qualified Data.Set as Set
... | davmre/matrizer | src/matrizer_cmd/Tests.hs | gpl-2.0 | 4,496 | 0 | 18 | 1,605 | 1,261 | 635 | 626 | 77 | 6 |
{-# LANGUAGE CPP #-}
-- | A module to fetch the version of the program
module Version (
programName
, version
, versionInfo
, versionInfoWith
, welcome
, banner
, getPun
) where
import Data.Version
import System.Random(randomRIO)
#ifdef __CABAL_BUILD__
import qualified Paths_picalc as Paths (version... | bordaigorl/jamesbound | src/Version.hs | gpl-2.0 | 1,353 | 0 | 11 | 317 | 267 | 159 | 108 | 40 | 1 |
module Hectare.Image where
import Data.Word
import Graphics.Rendering.OpenGL (PixelData(..), TextureSize2D(..))
import Hectare.Terrain.VectorTerrain
class ImageTexture a where
imagePixelData :: a -> IO (PixelData Word8)
imageSize :: a -> TextureSize2D
class ImageTerrain a where
imageTerrain :: a -> Vecto... | zenzike/hectare | src/Hectare/Image.hs | gpl-2.0 | 329 | 0 | 10 | 51 | 93 | 53 | 40 | 9 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
module Keystone.Model.User
where
import Common (skipUnderscoreOptions)
import M... | VictorDenisov/keystone | src/Keystone/Model/User.hs | gpl-2.0 | 1,120 | 0 | 9 | 269 | 265 | 151 | 114 | 29 | 0 |
--
-- Copyright (c) 2011-16 Bonelli Nicola <bonelli@antifork.org>
--
-- 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.... | awgn/ass | src/Ass/Build.hs | gpl-2.0 | 2,380 | 0 | 22 | 496 | 451 | 232 | 219 | 30 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Hoodle.Script.Hook
-- Copyright : (c) 2012, 2013 Ian-Woo Kim
--
-- License : BSD3
-- Maintainer : Ian-Woo Kim <ianwookim@gmail.com>
-- Stability : experimental
-- Portability : GHC
--
---------------------------... | wavewave/hoodle-core | src/Hoodle/Script/Hook.hs | gpl-3.0 | 2,446 | 0 | 15 | 858 | 453 | 264 | 189 | 36 | 1 |
module Oracle
( -- * Access to Hackage
addHackageCache, addCabalFileCache, addConstraintResolverOracle
, parseCabalFile, hasLibrary, packageRevision
)
where
import Oracle.Hackage
| opensuse-haskell/configuration | src/cabal2obs/Oracle.hs | gpl-3.0 | 192 | 0 | 4 | 32 | 30 | 20 | 10 | 5 | 0 |
module Main where
import Control.Concurrent.STM ( atomically
, TChan, newTChanIO, writeTChan, tryReadTChan )
import Control.Monad ( when )
import Data.Set ( Set )
import Data.Time ( UTCTime, getCurrentTime, diffUTCTime, addUTCTime )
import Data.Vect.Float ( Vec4(..), Vec3(..), (.*.), cros... | scvalex/regular-hexagon | regular-hexagon.hs | gpl-3.0 | 17,999 | 0 | 22 | 5,929 | 4,986 | 2,636 | 2,350 | 324 | 10 |
{-# LANGUAGE StandaloneDeriving #-}
-----------------------------------------------------------------------------
-- |
-- Module : HEP.Util.Table
-- Copyright : (c) 2013 Ian-Woo Kim
--
-- License : GPL-3
-- Maintainer : Ian-Woo Kim <ianwookim@gmail.com>
-- Stability : experimental
-- Portability : GHC
-... | wavewave/lhc-analysis-collection | lib/HEP/Util/Table.hs | gpl-3.0 | 2,693 | 0 | 14 | 835 | 1,005 | 511 | 494 | 58 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-dns/gen/Network/Google/Resource/DNS/ManagedZoneOperations/List.hs | mpl-2.0 | 5,266 | 0 | 18 | 1,241 | 649 | 380 | 269 | 103 | 1 |
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Test... | twittner/wai-routing | test/Tests/Wai/Route.hs | mpl-2.0 | 8,406 | 0 | 14 | 1,857 | 2,617 | 1,231 | 1,386 | 192 | 1 |
-- | The HTML renderer.
module UUAGD.Html.Renderer where
import qualified Data.List as L
import Paths_uuagd
import Text.Blaze.Html.Renderer.String (renderHtml)
import Text.Blaze.Html5 (Html)
-- | Render the generated HTML as a HTML document.
render :: Html -> IO String
render html = do
filename <- getDataFileName "r... | matthijssteen/uuagd | haskell/uuagd/src/UUAGD/Html/Renderer.hs | mpl-2.0 | 541 | 4 | 15 | 83 | 162 | 87 | 75 | 13 | 2 |
module Types where
import STMSet
import States
type Flower = (Int, Int)
type FlowerMap = STMSet Flower
type FlowerState = State Flower
| mreluzeon/block-monad | src/Types.hs | lgpl-3.0 | 139 | 0 | 5 | 26 | 40 | 25 | 15 | 6 | 0 |
module TextExpr( TextExpr(..)
, apply
, binaryOp, unaryOp
, showCommon
) where
data Operands = ZeroOp
| OneOp TextExpr
| TwoOps TextExpr TextExpr
-- Mimic the CoreExpr's expression application structure, with
-- function type in... | yjwen/hada | src/TextExpr.hs | lgpl-3.0 | 3,378 | 0 | 12 | 993 | 816 | 422 | 394 | 51 | 3 |
-- Project Euler problem 4: Largest palindrome product
-- A palindromic number reads the same both ways. The largest palindrome made from the product of two
-- 2-digit numbers is 9009 = 91 × 99.
-- Find the largest palindrome made from the product of two 3-digit numbers.
import Data.List (sort)
is_palindrom :: (Eq ... | m3mitsuppe/haskell | projecteuler/pr004.hs | unlicense | 1,505 | 4 | 13 | 560 | 385 | 211 | 174 | 19 | 5 |
module Util where
import Text.ABNF.ABNF.Types
simpleSum :: Element -> SumSpec
simpleSum = SumSpec . (:[]) . simpleProd
simpleProd :: Element -> ProductSpec
simpleProd = ProductSpec . (:[]) . single
single :: Element -> Repetition
single = Repetition (Repeat 1 (Just 1))
wsElement :: Element
wsElement = LiteralEleme... | Xandaros/abnf | test/Util.hs | bsd-2-clause | 348 | 0 | 10 | 55 | 126 | 71 | 55 | 10 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QAbstractSlider.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:27
Warning : this file is machine generated - ... | keera-studios/hsQt | Qtc/Gui/QAbstractSlider.hs | bsd-2-clause | 56,290 | 0 | 14 | 8,490 | 17,200 | 8,735 | 8,465 | -1 | -1 |
--------------------------------------------------------------------------------
module Language.Haskell.Stylish.Parse
( parseModule
) where
--------------------------------------------------------------------------------
import Data.Maybe (fromMaybe, listToMaybe)
import qualifi... | silkapp/stylish-haskell | lib/Language/Haskell/Stylish/Parse.hs | bsd-3-clause | 2,886 | 0 | 16 | 766 | 557 | 300 | 257 | 42 | 4 |
module Sharc.Instruments.ViolinMarteleBowing (violinMarteleBowing) where
import Sharc.Types
violinMarteleBowing :: Instr
violinMarteleBowing = Instr
"violin_martele"
"Violin (martele bowing)"
(Legend "McGill" "1" "5")
(Range
(InstrRange
(HarmonicFreq 1 (Pitch 195.99 43 "g3"))
... | anton-k/sharc-timbre | src/Sharc/Instruments/ViolinMarteleBowing.hs | bsd-3-clause | 34,640 | 0 | 15 | 10,010 | 13,036 | 6,764 | 6,272 | 1,187 | 1 |
module Problem118 where
import Control.Monad
import Data.List
import Prime
main :: IO ()
main = print . length . filter (\xs -> isSorted xs && all isPrimeNaive xs) $ concatMap
combinations
lists
where
isSorted :: [Int] -> Bool
isSorted xs = and $ zipWith (<=) xs (tail xs)
combinations xs = map (... | adityagupta1089/Project-Euler-Haskell | src/problems/Problem118.hs | bsd-3-clause | 991 | 0 | 14 | 301 | 493 | 260 | 233 | 23 | 3 |
{-# LANGUAGE RankNTypes #-}
-- | Class of types that can be used as array shapes and indices.
module Data.Array.Repa.Shape
( Shape(..)
, inShape
, showShape )
where
-- Shape ----------------------------------------------------------------------
-- | Class of types that can be used as array shapes and... | kairne/repa-lts | Data/Array/Repa/Shape.hs | bsd-3-clause | 2,201 | 40 | 10 | 518 | 345 | 203 | 142 | 39 | 1 |
module Ivory.BSP.STM32F405.CAN
( can1
, can2
, canFilters
) where
import Ivory.Language
import Ivory.HW
import Ivory.BSP.STM32.Peripheral.CAN
import Ivory.BSP.STM32F405.Interrupt
import Ivory.BSP.STM32F405.MemoryMap
import Ivory.BSP.STM32F405.RCC
canFilters :: CANPeriphFilters
canFilters = mkCANPeriphFilters... | GaloisInc/ivory-tower-stm32 | ivory-bsp-stm32/src/Ivory/BSP/STM32F405/CAN.hs | bsd-3-clause | 1,041 | 0 | 7 | 214 | 243 | 131 | 112 | 30 | 1 |
import Simulation
import Options.Applicative hiding ((<>))
import Data.Semigroup ((<>))
main :: IO ()
main = do
let simCount = 512
putStr "["
runSimWithSeed False 0
mapM_ (runSimWithSeed True) [1..(simCount - 1)]
putStr "]"
runSimWithSeed :: Bool -> Int -> IO ()
runSimWithSeed prepend seedOffset ... | satai/FrozenBeagle | Simulation/CLI/src/Main.hs | bsd-3-clause | 1,551 | 0 | 19 | 481 | 478 | 229 | 249 | 30 | 2 |
{-|
Module: FunnyMath
Description: Buggy implementations of math, for illustrating testing.
Copyright: Franklin Chen, 2015
License: BSD3
Maintainer: franklinchen@franklinchen.com
Just to illustrate HSpec and QuickCheck use.
-}
module FunnyMath where
-- | Do addition.
add :: Int -> Int -> Int
add x y = x + y
-- | Do ... | pittsburgh-haskell/haskell-intro-session | answersrc/FunnyMath.hs | bsd-3-clause | 548 | 0 | 6 | 105 | 73 | 46 | 27 | 5 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Language.Scheme.Evaluator
( evalLispVal
, evalString
, newEnv
, runOne
, withStandardLibrary
) where
import Control.Monad
import Control.Monad.Except
import Control.Monad.Reader
import Data.Maybe
import System.IO
import Paths_scheme
import Language.Scheme.Desugare... | alldne/scheme | src/Language/Scheme/Evaluator.hs | bsd-3-clause | 5,805 | 0 | 19 | 1,336 | 2,137 | 1,060 | 1,077 | 131 | 3 |
{-# LANGUAGE OverloadedStrings #-}
import Control.Applicative
import Control.Monad.Trans.Resource (ExceptionT(runExceptionT))
import Control.Exception (throw)
import Data.Maybe (fromMaybe)
import Data.Functor.Identity (Identity(runIdentity))
import qualified Data.ByteString.Char8 as S
import qualified Data.ByteString.L... | yihuang/xml2json | tests/Test.hs | bsd-3-clause | 5,051 | 0 | 14 | 1,625 | 911 | 499 | 412 | 86 | 1 |
module Language.Wart.Type
( module Language.Wart.Type.Graphic
, module Language.Wart.Type.Unify
) where
import Language.Wart.Type.Graphic
import Language.Wart.Type.Unify
| sonyandy/wart | src/Language/Wart/Type.hs | bsd-3-clause | 192 | 0 | 5 | 36 | 39 | 28 | 11 | 5 | 0 |
passiblyKaboom = \f -> f fst snd (0, undefined)
-- booleans in lambda for True
true :: a -> a -> a
true = \a -> (\b -> a)
false :: a -> a -> a
false = \a -> (\b -> b)
-- apply true to passiblyKaboom: the process of reduction
-- (\f -> f fst snd (0, undefined)) (\a -> (\b -> a))
-- (\a -> (\b -> a) fst snd (0, undef... | chengzh2008/hpffp | src/ch27-NonStrictness/insideOutSideIn.hs | bsd-3-clause | 941 | 0 | 9 | 218 | 284 | 159 | 125 | 17 | 1 |
--
-- Test: top level of test suites
--
import System.Environment (getArgs)
import Test.Framework
import qualified UnitTest.Aya as Aya (testSuite)
main :: IO ()
main = runTests
runTests :: IO ()
runTests =
do
args <- filter (/= "--tests") `fmap` getArgs
(defaultMainWithArgs testSuite args)
testSuite :: [... | eiji-a/aya | src/Test.hs | bsd-3-clause | 378 | 0 | 10 | 78 | 122 | 70 | 52 | 13 | 1 |
----------------------------------------------------------------------------
-- |
-- Module : Server.Tags.Search
-- Copyright : (c) Sergey Vinokurov 2015
-- License : BSD3-style (see LICENSE)
-- Maintainer : serg.foo@gmail.com
----------------------------------------------------------------------------
... | sergv/tags-server | src/Haskell/Language/Server/Tags/Search.hs | bsd-3-clause | 9,823 | 0 | 22 | 2,041 | 2,421 | 1,262 | 1,159 | 201 | 3 |
{-# OPTIONS -Wall #-}
-- | a module for handling failure
module Language.Paraiso.Failure
(
module Control.Monad.Failure, unsafePerformFailure
) where
import Control.Monad.Failure
import System.IO.Unsafe
unsafePerformFailure :: IO a -> a
unsafePerformFailure = unsafePerformIO
| drmaruyama/Paraiso | Language/Paraiso/Failure.hs | bsd-3-clause | 293 | 0 | 6 | 49 | 50 | 32 | 18 | 8 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE FlexibleContexts #-}
module EFA.Flow.Cumulated.Absolute (
module EFA.Flow.Cumulated.Absolute,
Abs.liftF, Abs.liftF2,
(=.=),
) where
import qualified EFA.Flow.Cumulated.EquationSystem as EqSys
import qualified EFA.Flow.Cumulated.Quantity... | energyflowanalysis/efa-2.1 | src/EFA/Flow/Cumulated/Absolute.hs | bsd-3-clause | 3,104 | 0 | 13 | 560 | 1,015 | 568 | 447 | 80 | 1 |
module WebAPI.Dota.Types.Team
( Team(Team)
, Faction(..)
, SF.HasName(..)
, SF.HasIdentifier(..)
, SF.HasLogo(..)
, SF.HasComplete(..) ) where
import WebAPI.Dota.Internal.SharedFields as SF
import Control.Applicative
import Control.Lens
import Data.Aeson
import Data.Text (Text)
import Prelude
data Factio... | intolerable/dota2 | src/WebAPI/Dota/Types/Team.hs | bsd-3-clause | 799 | 0 | 13 | 185 | 259 | 149 | 110 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
{-# OPTIONS_GHC -fno-warn-implicit-prelude #-}
module Paths_DFS (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
import Data.Version (V... | Garygunn94/DFS | .stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/autogen/Paths_DFS.hs | bsd-3-clause | 1,838 | 0 | 10 | 223 | 371 | 215 | 156 | 31 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module RPG.Scene
( Loc (..)
, newSceneGraph
, newTimedCollection
) where
import Control.Arrow
import Control.Monad (join, liftM2)
import Data.Map (Map)
import Data.Maybe (fromJust)
import RPG.Core
import Game.Sequoia.Utils
import qualified Data.Map as M
type Scene... | isovector/rpg-gen | src/RPG/Scene.hs | bsd-3-clause | 1,940 | 0 | 18 | 878 | 604 | 316 | 288 | 51 | 2 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnicodeSyntax #-}
module Test.Complexity.Fit where
--------------------------------------------------------------------------------
-- Imports
---------------------------------------------... | roelvandijk/complexity | Test/Complexity/Fit.hs | bsd-3-clause | 8,126 | 0 | 12 | 2,971 | 1,305 | 759 | 546 | 85 | 3 |
{-| This script builds any version of the Elm Platform from source.
Before you use it, make sure you have the Haskell Platform with a recent
version of cabal.
To install a released version of Elm, you will run something like this:
runhaskell BuildFromSource.hs 0.16
Before you do that, in some directory of your c... | jvoigtlaender/elm-platform | installers/BuildFromSource.hs | bsd-3-clause | 5,636 | 0 | 16 | 1,736 | 985 | 536 | 449 | 102 | 3 |
module Triangle (TriangleType (..), triangleType) where
data TriangleType = Equilateral
| Isosceles
| Scalene
| Illegal
deriving (Eq, Show, Read)
triangleType :: (Num a, Ord a) => a -> a -> a -> TriangleType
triangleType a b c
| any (<= 0) [a, b, c] || impossi... | Bugfry/exercises | exercism/haskell/triangle/src/Triangle.hs | mit | 496 | 0 | 12 | 159 | 217 | 117 | 100 | 13 | 1 |
-- |
-- Copyright : (c) 2015 Egor Tensin <Egor.Tensin@gmail.com>
-- License : MIT
-- Maintainer : Egor.Tensin@gmail.com
-- Stability : experimental
-- Portability : Windows-only
module Main (main) where
import Control.Monad (when, void)
import Control.Monad.Trans.Except (catchE, runExceptT, throwE)
import ... | egor-tensin/windows-env | app/AddPath.hs | mit | 3,513 | 0 | 14 | 910 | 868 | 440 | 428 | 86 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE RecursiveDo #-}
import Control.Concurrent
import Control.Concurrent.Async
import Control.Concurrent.MVar
import Control.Exception
import Control.Monad
data Logic = Logic
{ getTip :: IO Int
}... | input-output-hk/pos-haskell-prototype | docs/network/shelley/Interface.hs | mit | 2,504 | 0 | 23 | 665 | 741 | 372 | 369 | 63 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module DataBase (
getMaxWordLength,
getWordLengthList,
getDataSetFilter0,
getDataSetFilter1,
getDataSetFilter2,
getDataSetFilter3,
getDataSetFilter4,
getDataSetFilter5,
getDataSetFilter6,
getDataSetFilter7,
getDataSetFilter8
) where
impo... | laonawuli/warofwordsinhaskell | src/DataBase.hs | mit | 7,101 | 0 | 17 | 1,830 | 2,304 | 1,125 | 1,179 | 184 | 5 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : ./Modal/ModalSign.hs
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 ex... | spechub/Hets | Modal/ModalSign.hs | gpl-2.0 | 2,417 | 0 | 11 | 478 | 808 | 421 | 387 | 47 | 2 |
#!/usr/bin/env runghc
-- NB: This code deliberately avoids relying on non-standard packages
import Control.Monad
import Data.List
import Data.Version
import System.Environment
import System.Exit
import System.IO
import Distribution.PackageDescription.Parse (readPackageDescription)
import Distribution.PackageDescript... | alexvong1995/pandoc | make_travis_yml.hs | gpl-2.0 | 8,655 | 0 | 17 | 2,634 | 1,709 | 928 | 781 | 167 | 2 |
{-#LANGUAGE FlexibleContexts, StandaloneDeriving, UndecidableInstances, ConstraintKinds #-}
module Carnap.Calculi.Tableau.Checker where
import Carnap.Core.Data.Types
import Carnap.Core.Data.Classes
import Carnap.Core.Data.Optics
import Carnap.Core.Data.Util (hasVar)
import Carnap.Core.Unification.Unification
import Ca... | opentower/carnap | Carnap/src/Carnap/Calculi/Tableau/Checker.hs | gpl-3.0 | 8,893 | 46 | 31 | 3,508 | 2,108 | 1,101 | 1,007 | 146 | 11 |
module Arith
where
--
-- Expression
--
data Exp a = Const a
| Binary BinOp (Exp a) (Exp a)
| Unary UnOp (Exp a)
| ITE (Exp a) (Exp a) (Exp a)
deriving Show
data BinOp = Add | Sub | Mul | Div deriving Show
data UnOp = Neg | Recip deriving Show
--
-- Evaluation result
-... | ckaestne/CIDE | other/CaseStudies/Arith/orig_armin/ite/Arith.hs | gpl-3.0 | 2,775 | 0 | 11 | 758 | 1,217 | 611 | 606 | 65 | 3 |
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
{-# OPTIONS_GHC -Wno-missing-signatures #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds ... | tel/haskell-maia | maia-example-api/src/Maia/Example/Api.hs | mpl-2.0 | 5,381 | 0 | 13 | 1,108 | 1,447 | 738 | 709 | -1 | -1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE JavaScriptFFI #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStr... | et4te/zero | src/Reflex/Dom/SemanticUI/Container.hs | bsd-3-clause | 2,635 | 0 | 10 | 538 | 478 | 265 | 213 | 56 | 1 |
#!/usr/bin/env stack
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Foundation
import Foundation.Conduit
import Foundation.Conduit.Textual
import Foundation.IO
import Foundation.String (String, Encoding(..))
import Foundation.Collection
-- | Capitalize all 'a' and retur... | vincenthz/hs-foundation | programs/InputOutputLines.hs | bsd-3-clause | 806 | 0 | 13 | 223 | 209 | 112 | 97 | 21 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.