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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{- |
Module : ./Fpl/Morphism.hs
Description : morphism mapping for FPL
Copyright : (c) Christian Maeder, DFKI GmbH 2011
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
-}
module Fpl.Morphism (FplMor, mapFplSen) where
... | spechub/Hets | Fpl/Morphism.hs | gpl-2.0 | 1,406 | 0 | 19 | 334 | 558 | 281 | 277 | 28 | 6 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-s3/gen/Network/AWS/S3/DeleteBucketReplication.hs | mpl-2.0 | 3,120 | 0 | 9 | 642 | 360 | 216 | 144 | 49 | 1 |
-- yammat - Yet Another MateMAT
-- Copyright (C) 2015 Amedeo Molnár, Astro
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published
-- by the Free Software Foundation, either version 3 of the License, or
-- (at your opt... | nek0/yammat | Handler/Demand.hs | agpl-3.0 | 900 | 0 | 10 | 166 | 58 | 37 | 21 | -1 | -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="sk-SK">
<title>Passive Scan Rules - Beta | ZAP Extension</title>
<maps>
<homeID>top</homeID... | veggiespam/zap-extensions | addOns/pscanrulesBeta/src/main/javahelp/org/zaproxy/zap/extension/pscanrulesBeta/resources/help_sk_SK/helpset_sk_SK.hs | apache-2.0 | 987 | 85 | 53 | 163 | 405 | 213 | 192 | -1 | -1 |
import DPH.Testsuite
import DPH.Testsuite.Utils as TU ( limitRange, update )
import DPH.Arbitrary.Int
import DPH.Arbitrary.Perm
import Data.Array.Parallel.Unlifted as U
import qualified Data.Vector as V
import Prelude as P
import Data.List ( sort )
(!:) = index "test:Permutes"
$(testcases [ "" <@ [t| (... | mainland/dph | dph-test/test/Unlifted/Permutes.hs | bsd-3-clause | 1,747 | 0 | 9 | 476 | 147 | 100 | 47 | -1 | -1 |
{-# LANGUAGE BangPatterns, ScopedTypeVariables #-}
-- |An efficient implementation of 'Data.Graph.Inductive.Graph.Graph'
-- using big-endian patricia tree (i.e. "Data.IntMap").
--
-- This module provides the following specialised functions to gain
-- more performance, using GHC's RULES pragma:
--
-- * 'Data.Graph.Indu... | flowbox-public/fgl | Data/Graph/Inductive/PatriciaTree.hs | bsd-3-clause | 6,449 | 0 | 15 | 2,080 | 2,604 | 1,372 | 1,232 | 132 | 2 |
-- |
-- Module : Crypto.Number.Basic
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : Good
{-# LANGUAGE BangPatterns #-}
module Crypto.Number.Basic
( sqrti
, gcde
, areEven
, log2
, numBits
, numBytes
, asPow... | vincenthz/cryptonite | Crypto/Number/Basic.hs | bsd-3-clause | 4,082 | 0 | 16 | 1,511 | 1,446 | 792 | 654 | 81 | 10 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Test suite for GHCi like applications including both GHCi and Intero.
module Stack.GhciSpec where
import qualified Data.ByteString.Lazy as LBS
import qualified Data.Map as M
import qualified Data.Set as S
import ... | mrkkrp/stack | src/test/Stack/GhciSpec.hs | bsd-3-clause | 9,128 | 0 | 25 | 2,377 | 1,712 | 993 | 719 | 192 | 1 |
{-# LANGUAGE DataKinds, TypeOperators, OverloadedStrings #-}
module CoinBias5 where
import Prelude (print, length, IO)
import Language.Hakaru.Syntax.Prelude
import Language.Hakaru.Disintegrate
import Language.Hakaru.Syntax.ABT
import Language.Hakaru.Syntax.AST
import Language.Hakaru.Types.DataKind
import Language.Hak... | zachsully/hakaru | haskell/Tests/Unroll/CoinBias5.hs | bsd-3-clause | 1,124 | 0 | 27 | 341 | 336 | 183 | 153 | 32 | 1 |
{-# LANGUAGE CPP #-}
module Utils
( baseDir, rootDir
, srcDir, refDir, outDir, refDir', outDir'
, haddockPath
, stripLocalAnchors, stripLocalLinks, stripLocalReferences
) where
import Data.List
import System.FilePath
baseDir, rootDir :: FilePath
baseDir = takeDirectory __FILE__
rootDir = base... | lamefun/haddock | hypsrc-test/Utils.hs | bsd-2-clause | 1,257 | 0 | 13 | 224 | 373 | 209 | 164 | 31 | 2 |
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnboxedTuples #-}
{-# OPTIONS_GHC -fbyte-code #-}
module T16876B where
import T16876A
import GHC.Exts
import GHC.IO
inlinePerformIO :: IO a -> a
inlinePerformIO (IO m) = case m realWorld# of
(# _, r #) -> r
{-# INLINE inlinePerformIO #-}
g :: Int
g = inlinePerformIO $ return... | sdiehl/ghc | testsuite/tests/ghci/scripts/T16876B.hs | bsd-3-clause | 375 | 0 | 8 | 78 | 96 | 56 | 40 | 15 | 1 |
module TwiceM where
{-@ LIQUID "--short-names" @-}
import RIO
{-@ appM :: forall <pre :: World -> Prop, post :: World -> b -> World -> Prop>.
(a -> RIO <pre, post> b) -> a -> RIO <pre, post> b @-}
appM :: (a -> RIO b) -> a -> RIO b
appM f x = f x
{-@
twiceM :: forall < pre :: World -> Prop
... | mightymoose/liquidhaskell | benchmarks/icfp15/pos/TwiceM.hs | bsd-3-clause | 1,176 | 0 | 18 | 357 | 212 | 111 | 101 | 10 | 1 |
module Latex (generate) where
import Control.Monad (mapM_)
import Data.List (intersperse)
import System.IO
import Text.PrettyPrint
import API
import Common
import qualified Matlab as Matlab
import qualified Cpp as Cpp
import qualified C as C
generate
:: Bool -- ^ is this a stand-alone document
-> [A... | nico202/NeMosim | src/api/autogen/Latex.hs | gpl-2.0 | 6,138 | 0 | 15 | 1,564 | 2,098 | 1,079 | 1,019 | -1 | -1 |
module B5 (myFringe) where
import D5 hiding (sum)
import qualified D5
instance SameOrNot Float
where
isSame a b = a == b
isNotSame a b = a /= b
myFringe :: (Tree a) -> [a]
myFringe (Leaf x) = [x]
myFringe (Branch left right) = myFringe right
sumSquares ((x : xs)) = (x ^ 2) + (sumSquares xs)
sumSquar... | kmate/HaRe | old/testing/renaming/B5_AstOut.hs | bsd-3-clause | 331 | 0 | 8 | 83 | 157 | 85 | 72 | 11 | 1 |
module Main where
{-# NOINLINE foo #-}
foo :: Int -> Int
foo x = x
{-# RULES "foo/5" forall (f :: Int -> Int). foo (f 5) = foo (f 42) #-}
-- highly suspect, of course!
main = print $ foo (let {-# NOINLINE j #-}
j :: Int -> Int
j n = n + 1 in j 5)
{-
If we're not caref... | ezyang/ghc | testsuite/tests/perf/join_points/join006.hs | bsd-3-clause | 565 | 0 | 12 | 170 | 71 | 39 | 32 | 8 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Octopus.Jobs (JobsSpec, JobName, readJobs) where
import qualified Data.Map as M
import qualified Data.Text as T
import Data.Yaml
import Data.Maybe (fromJust)
import Octopus.Command (Command(..))
type JobName = T.Text
type JobsSpec = M.Map JobName Command
readJobs :: FilePat... | zalora/octopus | src/Octopus/Jobs.hs | isc | 375 | 0 | 6 | 54 | 108 | 66 | 42 | 11 | 1 |
-- import Control.Monad
-- import Control.Monad.Trans.Maybe
-- import Control.Monad.Identity
-- import Control.Applicative
-- import Data.Maybe
import Control.Monad.Reader
main :: IO ()
main = putStrLn . show $ runReader computation $ MyContext "hello" 1
example :: Maybe Int
example = do
a <- Just 3
b <- Noth... | michalc/haskell-experiments | maybe.hs | mit | 971 | 4 | 11 | 258 | 197 | 104 | 93 | 19 | 2 |
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}
{-# LANG... | iand675/disruptor | src/Control/Disruptor/RingBuffer.hs | mit | 4,915 | 0 | 22 | 1,004 | 1,516 | 774 | 742 | 110 | 1 |
{-# LANGUAGE OverloadedStrings, NoMonomorphismRestriction, FlexibleContexts, MultiParamTypeClasses, ScopedTypeVariables, DeriveDataTypeable, DeriveGeneric #-}
module EZCouch.Model.EntityIsolation where
import Prelude ()
import ClassyPrelude
import GHC.Generics
import EZCouch.Entity
import EZCouch.Types
import Data.Aes... | nikita-volkov/ez-couch | src/EZCouch/Model/EntityIsolation.hs | mit | 726 | 0 | 8 | 112 | 115 | 67 | 48 | 19 | 0 |
module Import
( module X
) where
import Prelude as X hiding (appendFile)
import Control.Arrow as X
import Data.Maybe as X
import GHC.Generics as X
import System.Exit as X
import Text.Read as X (readEither)
import Path as X
import Path.IO as X
import Control.Monad as X
import Control.Monad.Except as X
import... | NorfairKing/super-user-spark | src/Import.hs | mit | 557 | 0 | 6 | 93 | 156 | 113 | 43 | 19 | 0 |
module Data.Map.Strict.Extra where
import Prelude
import Data.Map.Strict as M
-- | Construct a map to lists (similar to a multimap)
fromListMulti :: Ord k => [(k, a)] -> Map k [a]
fromListMulti [] = M.empty
fromListMulti ((xk,xa):xs) = M.map reverse $ insertAll (M.singleton xk [xa]) xs
where
f y (Just ys) = Jus... | circuithub/circuithub-prelude | Data/Map/Strict/Extra.hs | mit | 461 | 0 | 11 | 112 | 214 | 116 | 98 | 10 | 3 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : Sindre.Formatting
-- License : MIT-style (see LICENSE)
--
-- Stability : provisional
-- Portability : portable
--
-- Parser and definitio... | Athas/Sindre | Sindre/Formatting.hs | mit | 3,575 | 0 | 15 | 954 | 769 | 418 | 351 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TemplateHaskell #-}
-- |
module Hask8080.ByteQQ where
import Control.Applicative
import Control.Monad
import Data.Bits
import qualified Data.Bits.Bitwise as Bits
import Data.Char ... | reinh/Hask8080 | src/Hask8080/ByteQQ.hs | mit | 2,460 | 0 | 11 | 716 | 877 | 463 | 414 | 65 | 3 |
module PPL2.VM.Main where
import PPL2.Prelude
import PPL2.VM.Types
import qualified PPL2.VM.Memory.CodeSeg as CodeSeg
import qualified PPL2.VM.Memory.Segment as Segment
import PPL2.VM.Memory.State (MState, newMState
, msInstr, msMem, msStatus... | UweSchmidt/ppl2 | src/PPL2/VM/Main.hs | mit | 1,374 | 0 | 12 | 418 | 353 | 191 | 162 | 30 | 1 |
module Haskeroids.Callbacks
( initCallbackRefs
, renderViewport
, handleKeyboard
) where
import Data.IORef
import Data.Time.Clock.POSIX
import Graphics.Rendering.OpenGL
import Graphics.UI.GLUT
import Haskeroids.Render (LineRenderable(..))
import Haskeroids.Keyboard
import Haskeroids.State
import Hask... | shangaslammi/haskeroids | Haskeroids/Callbacks.hs | mit | 1,972 | 0 | 14 | 433 | 544 | 282 | 262 | 51 | 1 |
module Mish.MissionGenerator(generateMission) where
import qualified Data.Map as M
import Mish.Config
import Mish.ConnectorGenerator
import Mish.HexagonalGrid
import Mish.MazeGenerator
import Mish.RoomGenerator
import System.Random
-- Generates a mission bas... | halvorgb/mish | src/Mish/MissionGenerator.hs | mit | 852 | 0 | 18 | 242 | 218 | 114 | 104 | 17 | 2 |
module Lwch006 where
-- : retab
-- : set +s
-- [count]ge
-- [count](
-- [count]{
-- set expandtab ts=4 ruler number spell linebreak
{- Haskell's Type System
Haskell's type system combines the good of Dynamic and Static systems.
Oodles of compile time errors are caught, more than C, C++, Object-C. Because it's... | HaskellForCats/HaskellForCats | ladiesWhoCodeHaskell/ladiesWhoCodeHaskell006.hs | mit | 983 | 0 | 2 | 204 | 11 | 10 | 1 | 1 | 0 |
module Utilities where
maybeToEither :: l -> Maybe r -> Either l r
maybeToEither l = maybe (Left l) Right
concatMapM :: Monad m => (a -> m [b]) -> [a] -> m [b]
concatMapM f = foldr go (return [])
where go x xs = do y <- f x; if null y then xs else do ys <- xs; return $ y++ys
| Shakadak/ft_turing | src/Utilities.hs | mit | 282 | 0 | 13 | 70 | 163 | 81 | 82 | 6 | 2 |
module Text.Point
( Point(..)
, Side(Start, End, Auto)
, tag
) where
import Control.Applicative hiding ( (<|>), many )
import Data.String.Utils ( strip )
import Text.ParserCombinators.Parsec
import Text.ParserCombinators.TagWiki
import Text.Utils
import qualified Text.Symbols as Y
data Side = Start | E... | Soares/tagwiki | src/Text/Point.hs | mit | 1,206 | 0 | 12 | 329 | 457 | 244 | 213 | 40 | 1 |
-- | Samples and other extras for LaunchpadALSA
--
-- You will want to import qualified or otherwise only what you want
-- since main is defined, amongst other things.
module System.MIDI.LaunchpadALSA.Extra where
import System.MIDI.LaunchpadALSA
import Control.Monad (forever)
import ... | fizzoo/launchpad-alsa | src/System/MIDI/LaunchpadALSA/Extra.hs | mit | 2,601 | 0 | 17 | 589 | 798 | 438 | 360 | 46 | 5 |
{-# LANGUAGE TupleSections #-}
{- |
Module : Language.Egison.Desugar
Licence : MIT
This module provides desugar functions.
-}
module Language.Egison.Desugar
( desugarTopExpr
, desugarTopExprs
, desugarExpr
) where
import Control.Monad.Except (throwError)
import Data.Ch... | egison/egison | hs-src/Language/Egison/Desugar.hs | mit | 28,450 | 0 | 20 | 6,370 | 9,570 | 4,734 | 4,836 | 490 | 18 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module ATest where
import Control.Applicative
import Control.Monad (mplus)
import Data.Char (isUpper)
import AParser
------------------------------------------------------------
conv :: (a -> b) -> (a, c) -> (b, c)
conv f... | sajith/cis194 | hw10/ATest.hs | mit | 2,009 | 0 | 13 | 415 | 487 | 267 | 220 | 28 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module BoilerplateGenerator (check) where
import Control.Applicative
import qualified Control.Arrow as CA (left)
import Data.List hiding (nub)
import Data.List.Ordered (nub)
import Data.List.Utils
import Data.Char
import Data.Maybe
import Data.Aeson
import Data.Time.Clock
import Tex... | Prinhotels/goog-closure | src/BoilerplateGenerator.hs | mit | 12,235 | 0 | 18 | 2,577 | 3,381 | 1,895 | 1,486 | 294 | 14 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : $Header$
Description : Handling of tree-like partial ordering relations
Copyright : (c) Ewaryst Schulz, DFKI Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : ewaryst.schulz@dfki.de
Stability : experimental
Por... | nevrenato/Hets_Fork | CSL/TreePO.hs | gpl-2.0 | 12,473 | 0 | 20 | 3,401 | 3,114 | 1,558 | 1,556 | -1 | -1 |
{-
pandoc-crossref is a pandoc filter for numbering figures,
equations, tables and cross-references to them.
Copyright (C) 2015 Nikolay Yakimov <root@livid.pp.ru>
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... | lierdakil/pandoc-crossref | test/test-pandoc-crossref.hs | gpl-2.0 | 22,279 | 0 | 31 | 5,838 | 6,262 | 3,237 | 3,025 | 339 | 1 |
-- Lists and functions, many properties come from QuickSpec
module Tricky where
import Hip.Prelude
import Prelude (Eq,Ord,Show,iterate,(!!),fmap,Bool(..),Int)
data Nat = Z | S Nat
-- PAPs
Z + y = y
(S x) + y = S (x + y)
map :: (a -> b) -> [a] -> [b]
map f [] = []
map f (x:xs) = (f x) : (map f xs)
one = S Z
-... | danr/hipspec | examples/old-examples/hip/Tricky.hs | gpl-3.0 | 2,547 | 0 | 10 | 649 | 1,101 | 578 | 523 | 56 | 2 |
module Robatira.Model.Actions
where
import Robatira.Model.Cards
data Action = Throw Card | Take | Resign deriving (Show, Eq)
| pbrandwijk/robatira | src/Robatira/Model/Actions.hs | gpl-3.0 | 129 | 0 | 6 | 21 | 39 | 24 | 15 | 3 | 0 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-liberate-case #-}
module BioInf.Alignment.DnaProtein.Score (fillTables,algScore) where
import Data.Array.Repa.Index
import qualified Data.Vector.Fusion.Stream.Monadic as M
import qualified Data.Vector.F... | choener/DnaProteinAlignment | BioInf/Alignment/DnaProtein/Score.hs | gpl-3.0 | 3,918 | 0 | 19 | 1,071 | 1,631 | 870 | 761 | 93 | 1 |
module TestLLVM
(testCodeGen,prologue,memsetDecl,copyDefn,copyrttDefn,alloc2Defn)
where
import Control.Monad(unless)
import System.Exit(ExitCode(ExitSuccess))
import System.Process(readProcessWithExitCode)
import Test.HUnit(Assertion,Test(..),assertEqual,assertFailure)
import Compile(compile)
import Parse(parse)
... | qpliu/esolang | blo/hs/TestLLVM.hs | gpl-3.0 | 2,638 | 0 | 15 | 462 | 320 | 183 | 137 | 31 | 1 |
module PropT24 where
import Prelude(Bool(..))
import Zeno
-- Definitions
True && x = x
_ && _ = False
False || x = x
_ || _ = True
not True = False
not False = True
-- Nats
data Nat = S Nat | Z
(+) :: Nat -> Nat -> Nat
Z + y = y
(S x) + y = S (x + y)
(*) :: Nat -> Nat -> Nat
Z * _ = Z
(S x) * y = y + (x... | danr/hipspec | testsuite/prod/zeno_version/PropT24.hs | gpl-3.0 | 2,978 | 0 | 10 | 920 | 2,003 | 1,042 | 961 | 114 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-bigquerydatatransfer/gen/Network/Google/Resource/BigQueryDataTransfer/Projects/Locations/Get.hs | mpl-2.0 | 4,705 | 0 | 15 | 1,054 | 701 | 410 | 291 | 102 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.GamesManage... | rueshyna/gogol | gogol-games-management/gen/Network/Google/GamesManagement/Types/Product.hs | mpl-2.0 | 37,671 | 0 | 22 | 9,139 | 6,300 | 3,611 | 2,689 | 752 | 1 |
{-# 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-iam/gen/Network/AWS/IAM/UploadServerCertificate.hs | mpl-2.0 | 8,029 | 0 | 13 | 1,488 | 894 | 544 | 350 | 109 | 1 |
{-
Copyright (C) 2005 John Goerzen <jgoerzen@complete.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This progr... | jgoerzen/anydbm | src/Database/AnyDBM/MapDBM.hs | lgpl-2.1 | 2,159 | 0 | 11 | 522 | 307 | 163 | 144 | 20 | 1 |
-- | Tree rendering helpers
--
-- Assumes ImageMagic utility /display/ and Graphviz utility /dot/,
-- both utilies should be in $PATH.
module CoALP.Render (
renderProgram
, ppProgram
, ppClause
, ppTerm
, ppSubst
, displayProgram
, displayRewTree
, displayDerTree
, displayDerTreeUnsafe
, displayObsTr... | frantisekfarka/CoALP | src/CoALP/Render.hs | lgpl-3.0 | 12,334 | 208 | 23 | 2,631 | 4,917 | 2,493 | 2,424 | 233 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Openshift.V1.ClusterRoleBinding where
import GHC.Generics
import Data.Text
import Kubernetes.V1.ObjectMeta
import Openshift.V1.ObjectReference
... | minhdoboi/deprecated-openshift-haskell-api | openshift/lib/Openshift/V1/ClusterRoleBinding.hs | apache-2.0 | 1,546 | 0 | 9 | 240 | 152 | 96 | 56 | 22 | 0 |
-----------------------------------------------------------------------------
-- Copyright 2019, Ideas project team. This file is distributed under the
-- terms of the Apache License 2.0. For more information, see the files
-- "LICENSE.txt" and "NOTICE.txt", which are included in the distribution.
-----------------... | ideas-edu/ideas | src/Ideas/Text/OpenMath/Symbol.hs | apache-2.0 | 1,090 | 0 | 8 | 181 | 154 | 92 | 62 | 12 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QGridLayout.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:16
Warning : this file is machine generated - do n... | uduki/hsQt | Qtc/Gui/QGridLayout.hs | bsd-2-clause | 36,249 | 0 | 16 | 5,898 | 11,841 | 6,027 | 5,814 | -1 | -1 |
{-# LANGUAGE CPP #-}
import Data.Char
import System.Environment
import System.FilePath
import Test.Haddock
import Test.Haddock.Xhtml
checkConfig :: CheckConfig Xml
checkConfig = CheckConfig
{ ccfgRead = \mdl input -> stripIfRequired mdl <$> parseXml input
, ccfgDump = dumpXml
, ccfgEqual = (==)
}
... | randen/haddock | html-test/Main.hs | bsd-2-clause | 1,083 | 0 | 11 | 233 | 292 | 158 | 134 | 30 | 1 |
{-# LANGUAGE Strict #-}
{-# LANGUAGE StrictData #-}
module Mangekyo.Utils where
import Data.Scientific (Scientific)
import Data.Text.Encoding (decodeUtf8)
import Text.Read (readMaybe)
import Text.Trifecta.Delta (Delta)
import Text.Trifecta.Rendering (renderingCaret)
import Text.Trifecta.Result (explain, failed)
import... | nakamuray/mangekyo | src/Mangekyo/Utils.hs | bsd-2-clause | 1,000 | 0 | 9 | 160 | 307 | 172 | 135 | 25 | 1 |
module Network.Punch.Broker.Http.Backend
( Broker
, newBroker
, bindListen
, listListeners
, accept
, connect
) where
import Network.Punch.Broker.Http.Types
import Data.Time
import Control.Applicative
import Control.Concurrent
import Control.Monad
import Control.Concurrent.Async
import Control.Concurren... | overminder/punch-forward | src/Network/Punch/Broker/Http/Backend.hs | bsd-3-clause | 3,993 | 0 | 28 | 1,068 | 1,145 | 572 | 573 | -1 | -1 |
--------------------------------------------------------------------------------
-- |
-- Module : UnivOpWrap.Repl
-- Note :
--
-- partly stolen from https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours/Building_a_REPL
--
--------------------------------------------------------------------------... | maximilianhuber/univOpWrap | src/System/UnivOpWrap/Repl.hs | bsd-3-clause | 2,785 | 0 | 20 | 769 | 821 | 406 | 415 | 65 | 5 |
-- |
-- Module: $Header$
-- Description: Environment variables as they are understood by Command Wrapper.
-- Copyright: (c) 2018-2020 Peter Trško
-- License: BSD3
--
-- Maintainer: peter.trsko@gmail.com
-- Stability: experimental
-- Portability: GHC specific language extensions.
--
-- Environment variable... | trskop/command-wrapper | command-wrapper-core/src/CommandWrapper/Core/Environment/Variable.hs | bsd-3-clause | 9,628 | 0 | 8 | 1,954 | 611 | 421 | 190 | -1 | -1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
module Datastore.Aggregates.GenericEntity where
import Eventstore.Aggregate
import Eventstore.PostgreSQL
import E... | bflyblue/eventsource | src/Datastore/Aggregates/GenericEntity.hs | bsd-3-clause | 2,762 | 0 | 14 | 631 | 757 | 396 | 361 | 63 | 5 |
module Main where
import Control.Monad (forM_)
import TAPL.Meow (exec_)
import Test.QuickCheck
import Text.Printf (printf)
import Runner (run)
testCount :: Int
testCount = 6
main :: IO ()
main = do
forM_ [1 .. testCount] $ \i -> do
input <- readFile (printf "arith/examples/ex%d.in" i)
expected <- readFile... | foreverbell/unlimited-plt-toys | tapl/arith/Test.hs | bsd-3-clause | 480 | 0 | 15 | 92 | 172 | 89 | 83 | 16 | 1 |
module Rules.SourceDist (sourceDistRules) where
import Hadrian.Oracles.DirectoryContents
import Base
import Builder
import Oracles.Setting
import Rules.Clean
sourceDistRules :: Rules ()
sourceDistRules = do
"sdist-ghc" ~> do
-- We clean the source tree first.
-- See https://github.com/snowleopard... | ezyang/ghc | hadrian/src/Rules/SourceDist.hs | bsd-3-clause | 3,299 | 0 | 15 | 1,099 | 676 | 355 | 321 | 106 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.MESA.WindowPos
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
-... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/MESA/WindowPos.hs | bsd-3-clause | 1,140 | 0 | 4 | 147 | 106 | 77 | 29 | 26 | 0 |
module Owl.Service.API.Auth
( OwlRes(..)
, AuthReq(..)
, AuthRes(..)
) where
import Control.Applicative ((<$>),(<*>))
import Control.Monad (mzero)
import Data.Aeson
import qualified Data.ByteString.Lazy.Char8 as LB
import Data.HashMap.Strict as M (toList)
import Data.Text (Text)
import Owl.... | cutsea110/owl-api | Owl/Service/API/Auth.hs | bsd-3-clause | 1,995 | 0 | 14 | 847 | 524 | 297 | 227 | 42 | 0 |
module ScoreBoardSpec(spec) where
import ScoreBoard
import Test.Hspec
import Test.QuickCheck
instance Eq Score where
(Score s1) == (Score s2) = s1 == s2
spec :: IO ()
spec = hspec $
describe "ScoreBoard" $ do
describe "initScore" $
it "creates an empty score board" $
... | joelchelliah/rock-paper-scissors-hs | test/ScoreBoardSpec.hs | bsd-3-clause | 790 | 0 | 16 | 219 | 254 | 131 | 123 | 20 | 1 |
{- |
Module : SAWScript.MGU
Description : SAW-Script type checking.
License : BSD3
Maintainer : diatchki
Stability : provisional
-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TupleS... | GaloisInc/saw-script | src/SAWScript/MGU.hs | bsd-3-clause | 21,020 | 0 | 23 | 6,350 | 8,511 | 4,160 | 4,351 | 504 | 23 |
-- © 2001, 2002 Peter Thiemann
module Main where
import System.Random
import Prelude hiding (head, div, span, map)
import Data.List hiding (head, span, map)
import WASH.HTML.HTMLMonad
import WASH.CGI.CGI
import qualified WASH.CGI.Persistent2 as P
import Score
highScoreStore :: CGI (P.T [Score])
highScoreStore = P.i... | nh2/WashNGo | Examples/old/GuessNumber.hs | bsd-3-clause | 2,065 | 2 | 16 | 492 | 659 | 323 | 336 | 57 | 3 |
-- | This module exports the type used to create match queries.
module Data.Factual.Query.MatchQuery
(
-- * MatchQuery type
MatchQuery(..)
-- * MatchValue type
, MatchValue(..)
) where
import Data.Factual.Query
import qualified Data.Map as M
import Data.List.Utils (join)
-- | A match value can eithe... | rudyl313/factual-haskell-driver | Data/Factual/Query/MatchQuery.hs | bsd-3-clause | 1,333 | 0 | 12 | 306 | 251 | 145 | 106 | 18 | 0 |
{-# LANGUAGE CPP #-}
import qualified Simple
#if __GLASGOW_HASKELL__ >= 710
import qualified Custom
#endif
main = do
Simple.main
#if __GLASGOW_HASKELL__ >= 710
Custom.main
#endif
-- Importing both modules causes overlapping instances error on GHC < 7.10
| emilaxelsson/open-typerep | tests/Tests.hs | bsd-3-clause | 268 | 0 | 7 | 51 | 30 | 19 | 11 | 4 | 1 |
{-
VArray.hs (adapted from varray.c which is (c) Silicon Graphics, Inc.)
Copyright (c) Sven Panne 2002-2005 <sven.panne@aedion.de>
This file is part of HOpenGL and distributed under a BSD-style license
See the file libraries/GLUT/LICENSE
This program demonstrates vertex arrays.
-}
import Control.Monad ... | FranklinChen/hugs98-plus-Sep2006 | packages/GLUT/examples/RedBook/VArray.hs | bsd-3-clause | 4,463 | 0 | 15 | 1,039 | 1,382 | 699 | 683 | 115 | 3 |
{-#LANGUAGE RankNTypes, ScopedTypeVariables #-}
module Database.Migrate.Data where
import Control.Monad.IO.Class
import Control.Monad.Trans.Class
import Control.Monad.Trans.Reader
import Control.Monad.Trans.Writer
import Control.Monad.Trans.Maybe
import Data.Text hiding (foldr, filter, reverse, length)
data Migratio... | markhibberd/database-migrate | src/Database/Migrate/Data.hs | bsd-3-clause | 2,053 | 0 | 14 | 440 | 686 | 377 | 309 | 54 | 0 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Config
-- Copyright : (c) David Himmelstrup 2005
-- License : BSD-like
--
-- Maintainer : lemmih@gmail.com
-- Stability : provisional
-- Portability : portable
--
... | trskop/cabal | cabal-install/Distribution/Client/Config.hs | bsd-3-clause | 43,342 | 0 | 27 | 11,769 | 9,064 | 4,895 | 4,169 | 774 | 13 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
module Web.Bugzilla.Internal.Network
( BugzillaServer
, BugzillaContext (..)
, BugzillaToken
, BugzillaSession (..)
, BugzillaException (..)
, QueryPart
, Request
, requestUrl
, newBzRequest
, sendBzRequest
) where
import Blaze.ByteString.Builder ... | sethfowler/hsbugzilla | src/Web/Bugzilla/Internal/Network.hs | bsd-3-clause | 3,633 | 0 | 14 | 746 | 919 | 511 | 408 | 84 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module HTIG.Config
( defaultConfig
) where
import HTIG.Core
import HTIG.Action
import HTIG.Channel.Timeline
import HTIG.Channel.Mention
import HTIG.StatusHook
import HTIG.Hooks.ShowTimeDiff
import HTIG.Hooks.Tid
import HTIG.Utils
import qualified Data.Map as Map
myStatusHook... | nakamuray/htig | HTIG/Config.hs | bsd-3-clause | 1,187 | 0 | 7 | 312 | 248 | 158 | 90 | 41 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Main where
import Control.Applicative
import Data.Monoid ((<>))
import Data.Text (Text)
import Turtle (ExitCode(..), Parser, ShellFailed(..), s, (%))
import qualified Control.Exception
import qualified Criterion
import qualified Criterion... | Gabriel439/bench | src/Main.hs | bsd-3-clause | 3,832 | 0 | 21 | 1,254 | 937 | 498 | 439 | 92 | 5 |
module GenerateTestData (main) where
import Control.Monad.Random
import System.Random
import System.Environment
import Data.List
import Data.Graph
import Control.Monad
import Control.Monad.ST
import Control.Monad.Random
import Control.Monad.Trans.Class
import System.Random
import Data.Array.ST
import Data.Array
import... | alexisVallet/ag44-graph-algorithms | graphs/GenerateTestData.hs | bsd-3-clause | 2,868 | 0 | 20 | 594 | 994 | 525 | 469 | 68 | 2 |
module Arpack.Foreign ( Arpack(..) ) where
import Arpack.Foreign.Class
import Arpack.Foreign.Complex ()
import Arpack.Foreign.Real ()
| ttuegel/arpack | src/Arpack/Foreign.hs | bsd-3-clause | 135 | 0 | 5 | 15 | 39 | 26 | 13 | 4 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Berp.Base.StdTypes.Function
-- Copyright : (c) 2010 Bernie Pope
-- License : BSD-style
-- Maintainer : florbitous@gmail.com
-- Stability : experimental
-- Portability : ghc
--
-- The standard function type.
--
-... | bjpop/berp | libs/src/Berp/Base/StdTypes/Function.hs | bsd-3-clause | 1,535 | 0 | 10 | 244 | 269 | 167 | 102 | 27 | 1 |
module Test.Language.Javascript.ExpressionParser
( testExpressionParser
) where
import Test.Hspec
import Language.JavaScript.Parser
import Language.JavaScript.Parser.Grammar7
import Language.JavaScript.Parser.Parser
testExpressionParser :: Spec
testExpressionParser = describe "Parse expressions:" $ do
i... | alanz/language-javascript | test/Test/Language/Javascript/ExpressionParser.hs | bsd-3-clause | 14,498 | 0 | 12 | 2,461 | 1,457 | 722 | 735 | 128 | 1 |
{-# LANGUAGE FlexibleContexts, CPP #-}
module AWS.EC2.Image
( describeImages
, createImage
, registerImage
, deregisterImage
, describeImageAttribute
, modifyImageAttribute
) where
import Data.Text (Text)
import Data.XML.Types (Event)
import Data.Conduit
import Control.Applicative
import C... | IanConnolly/aws-sdk-fork | AWS/EC2/Image.hs | bsd-3-clause | 5,960 | 0 | 28 | 1,464 | 1,362 | 700 | 662 | 160 | 6 |
import CCO.Component (printer, ioWrap)
import CCO.Tree (parser)
import Control.Arrow ((>>>))
main = ioWrap (parser >>> printer) | UU-ComputerScience/uu-cco | uu-cco-examples/src/PpATerm.hs | bsd-3-clause | 136 | 0 | 7 | 24 | 51 | 30 | 21 | 4 | 1 |
{-# LANGUAGE FlexibleInstances, TypeSynonymInstances #-}
module BrokenClass
(
JSON(..)
, JValue(..)
) where
import SimpleJSON
{-- snippet class --}
type JSONError = String
class JSON a where
toJValue :: a -> JValue
fromJValue :: JValue -> Either JSONError a
{-- /snippet class --}
instance... | binesiyu/ifl | examples/ch06/BrokenClass.hs | mit | 1,331 | 0 | 13 | 407 | 382 | 203 | 179 | 34 | 3 |
main :: IO Int
main = return "hello"
| alanz/haskell-lsp | lsp-test/test/data/Error.hs | mit | 37 | 0 | 5 | 8 | 17 | 8 | 9 | 2 | 1 |
module TestSolvers where
import Distribution.TestSuite
import qualified Problem1
import qualified Problem37
tests :: IO [Test]
tests = return tests'
where
tests' = map (\tc -> Test tc) testCases
testCases = [tc1, tc37]
testCase problem bool = TestInstance
{ run = return $ check bool
... | ajsmith/project-euler-solutions | test/TestSolvers.hs | gpl-2.0 | 661 | 0 | 10 | 205 | 197 | 110 | 87 | 20 | 2 |
module Graph.Circle.Quiz where
-- $Id$
import Autolib.Graph.Type
import Autolib.Set
import Autolib.Util.Zufall ( eins , genau )
import Graph.Circle.Plain
import Graph.Circle.Config
import Inter.Quiz
import Inter.Types
instance Generator Circle Config ( (Int,Graph Int) , Set Int ) where
generator _ conf _ = do... | florianpilz/autotool | src/Graph/Circle/Quiz.hs | gpl-2.0 | 1,009 | 4 | 18 | 285 | 366 | 188 | 178 | -1 | -1 |
{-# 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-opsworks/gen/Network/AWS/OpsWorks/UpdateElasticIP.hs | mpl-2.0 | 3,918 | 0 | 12 | 825 | 489 | 295 | 194 | 68 | 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="it-IT">
<title>Forced Browse Add-On</title>
<maps>
<homeID>top</homeID>
<mapref locati... | veggiespam/zap-extensions | addOns/bruteforce/src/main/javahelp/org/zaproxy/zap/extension/bruteforce/resources/help_it_IT/helpset_it_IT.hs | apache-2.0 | 967 | 79 | 67 | 158 | 415 | 210 | 205 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Separate module because TH.
module System.Process.Log
(logCreateProcess
,withProcessTimeLog
,showProcessArgDebug)
where
import qualified Data.Text as T
import Stack.Prelude
import qualified System.Clock as Clock
impo... | MichielDerhaeg/stack | src/System/Process/Log.hs | bsd-3-clause | 2,200 | 0 | 15 | 507 | 562 | 292 | 270 | 48 | 3 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Main
-- Copyright : (c) David Himmelstrup 2005
-- License : BSD-like
--
-- Maintainer : lemmih@gmail.com
-- Stability : provisional
-- Portability : portable
--
-- Entry point to the ... | kolmodin/cabal | cabal-install/Main.hs | bsd-3-clause | 61,476 | 0 | 24 | 16,855 | 11,209 | 5,842 | 5,367 | 1,007 | 13 |
-- -----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 1994-2004
--
-- -----------------------------------------------------------------------------
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a temporary kludge.
-- While working... | lukexi/ghc-7.8-arm64 | compiler/nativeGen/SPARC/Regs.hs | bsd-3-clause | 6,740 | 173 | 15 | 1,583 | 1,742 | 1,049 | 693 | 152 | 10 |
-----------------------------------------------------------------------------
-- |
-- Module : Text.Parsec.String
-- Copyright : (c) Antoine Latter 2011
-- License : BSD-style (see the file libraries/parsec/LICENSE)
--
-- Maintainer : aslatter@gmail.com
-- Stability : provisional
-- Portability : p... | benpence/parsec | Text/Parsec/Text.hs | bsd-2-clause | 691 | 0 | 6 | 107 | 77 | 53 | 24 | 7 | 0 |
module PosixProcEnv where
data SysVar = ArgumentLimit | ChildLimit | ClockTick | GroupLimit | OpenFileLimit | PosixVersion | HasSavedIDs | HasJobControl
data ProcessTimes -- (PosixUtil.ClockTick, PrelByteArr.ByteArray Int)
type ClockTick = Int -- from PosixUtil
foreign import getProcessTimes :: IO ProcessTimes
forei... | forste/haReFork | tools/base/tests/GhcLibraries/PosixProcEnv.hs | bsd-3-clause | 371 | 1 | 7 | 50 | 70 | 43 | 27 | -1 | -1 |
module Renaming.RenameInExportedType
(
MyType (NewType)
) where
data MyType = MT Int | NewType
| RefactoringTools/HaRe | test/testdata/Renaming/RenameInExportedType2.expected.hs | bsd-3-clause | 104 | 0 | 6 | 23 | 27 | 17 | 10 | 6 | 0 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE ScopedTypeVariables #-}
module PostgREST.Middleware where
import Data.Maybe (fromMaybe)
import Data.Monoid
import Data.Text
-- import Data.Pool(withResource, Pool)
import qualified Hasql as H
import qualified Hasql.Postgres as P
import Data.String.Conversions(cs)
i... | nayosx/postgrest | src/PostgREST/Middleware.hs | mit | 2,996 | 0 | 17 | 747 | 882 | 467 | 415 | 72 | 9 |
module Main where
import System.Environment (getArgs)
import System.IO (readFile)
import System.IO.Error (catchIOError, isDoesNotExistError, ioError, ioeGetFileName)
main :: IO ()
main = catchIOError toTry handler
toTry :: IO ()
toTry = do (fileName : _) <- getArgs
contents <- readFile fileName... | Forec/learn | 2017.1/joking-haskell/joking6.hs | mit | 750 | 0 | 13 | 206 | 218 | 108 | 110 | 18 | 2 |
import qualified Data.Set as S
import Data.Set (Set)
dfs :: (Eq a, Ord a) => (a -> [a]) -> a -> a -> [[a]]
dfs neighboursOf start end = dfs' S.empty start
where
dfs' vs cur = if cur == end then
-- if we're at the end, return ourselves, aka the only path from cur to end
[[c... | sdroege/snippets.hs | dfs.hs | mit | 648 | 0 | 13 | 248 | 188 | 103 | 85 | 10 | 2 |
module IRC.IRC where
import Control.Monad (forever)
import Control.Monad.Reader (asks)
import Control.Applicative ((<$>))
import System.IO (hGetLine, Handle)
import Text.Printf (printf)
import Data (BotState(..), Bot, io)
import Net (write)
import Config (Config(..))
import IRC.Parser (Sequence(..), Ping(..), parseSe... | jdiez17/HaskellHawk | IRC/IRC.hs | mit | 1,048 | 0 | 12 | 226 | 449 | 237 | 212 | 32 | 2 |
{-# LANGUAGE FlexibleContexts #-}
module Web.Google.Maps ( mkEnv
, mkEnvWithMan
, runGoogleMaps
, queryGeocode
, queryDistMatrix
, module X
) where
import Control.Monad.IO.Class ... | jhedev/google-maps | src/Web/Google/Maps.hs | mit | 1,324 | 0 | 9 | 361 | 328 | 187 | 141 | 31 | 1 |
module NoUnionLazy.FV where
import Types
import FVCommon
f :: Term -> FV
f (Var v) fv_cand in_scope acc = oneFV v fv_cand in_scope acc
f (App t tys) fv_cand in_scope acc =
f t fv_cand in_scope $ fs tys fv_cand in_scope acc
f (Lam v t) fv_cand in_scope acc = delFV v (f t) fv_cand in_scope acc
fs :: [Term] -> FV
fs ... | niteria/deterministic-fvs | NoUnionLazy/FV.hs | mit | 544 | 0 | 8 | 116 | 262 | 137 | 125 | 16 | 1 |
/*Owner & Copyrights: Vance King Saxbe. A.*//* Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe... | VanceKingSaxbeA/GoldSaxMachineStore | GoldSaxMachineModule13/src/Chapter13/CheckPresentsFnDeps.hs | mit | 3,306 | 23 | 16 | 931 | 1,255 | 621 | 634 | -1 | -1 |
{-# LANGUAGE ExistentialQuantification, Rank2Types #-}
{-# OPTIONS_GHC -Wwarn #-} -- FIXME
module Database.Siege.DBOperation where
import Prelude hiding (null)
import Data.Nullable
import qualified Data.ByteString as B
import Control.Monad
import Control.Monad.Hoist
import Control.Monad.Error
import qualified Data... | DanielWaterworth/siege | src/Database/Siege/DBOperation.hs | mit | 4,331 | 0 | 16 | 1,173 | 2,039 | 1,011 | 1,028 | 122 | 8 |
module BackEnd.Type
( ServerSetting(..)
, serverSetting ) where
import Prelude
import BackEnd.Settings
data ServerSetting = ServerSetting {
basePath :: String
, serverPort :: Int
, monitorPath :: String
, jsonPath :: Strin... | cosmo0920/FileDeliverServer | src/BackEnd/Type.hs | mit | 812 | 0 | 9 | 337 | 158 | 91 | 67 | 25 | 1 |
module Zipped where
zipped :: ([a], [b]) -> [(a, b)]
zipped ([], [])
= []
zipped ([], (x:xs))
= []
zipped ((x:xs), [])
= []
zipped ((x:xs), (y:ys))
= (x, y) : zipped (xs, ys)
| CristiBalu/HaskellWorkshops | BasicFunctions/Zipped.hs | mit | 184 | 0 | 8 | 44 | 151 | 88 | 63 | 10 | 1 |
{-|
Module : Control.Flower.Apply.Lazy
Description : Combinators for directional lazy application
-}
module Control.Flower.Apply.Lazy (
(<|), (|>),
(|<), (>|)
) where
{- $setup
>>> let x = 3
>>> let y = 4
>>> let f = (+2)
>>> let g = (*2)
>>> let h = (+)
-}
{-| Left-flowing application, equivalent to 'prel... | expede/flower | src/Control/Flower/Apply/Lazy.hs | mit | 1,877 | 0 | 8 | 431 | 190 | 119 | 71 | 15 | 1 |
import System.Environment
import Backend.Recipe
import Text.Printf (printf)
main = do
(inputFile:outputFile:_) <- getArgs
recipe <- readFile inputFile
writeFile outputFile $ formatOutput . handleLines . decomposeRecipe $ recipe
putStrLn $ "Scaled your recipe and saved results as " ++ show outputFile ++... | tpoulsen/RecipeScaler | RecipeScaler.hs | mit | 680 | 0 | 11 | 159 | 195 | 99 | 96 | 14 | 1 |
{- arch-tag: HVIO tests main file
Copyright (C) 2004-2011 John Goerzen <jgoerzen@complete.org>
All rights reserved.
For license and copyright information, see the file LICENSE
-}
module HVIOtest(tests) where
import Test.HUnit
import System.IO.HVIO
import Test.HUnit.Tools
import System.IO
import System.IO.Error
impor... | haskellbr/missingh | missingh-all/testsrc/HVIOtest.hs | mit | 3,339 | 0 | 15 | 1,605 | 818 | 396 | 422 | 63 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.