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 CPP, BangPatterns, InstanceSigs, RankNTypes, ScopedTypeVariables, TypeFamilies, UndecidableInstances #-}
-- | Continuation-passing parser for context-free grammars that keeps track of the parsed prefix length
module Text.Grampa.ContextFree.Continued.Measured (Parser(..), Result(..), alt) where
import Cont... | blamario/grampa | grammatical-parsers/src/Text/Grampa/ContextFree/Continued/Measured.hs | bsd-2-clause | 17,520 | 0 | 19 | 4,821 | 6,710 | 3,444 | 3,266 | -1 | -1 |
import Text.ParserCombinators.Parsec
x (Right a) = a
x (Left _) = 0
prs = x . (parse r "!")
blue = do
char 'a'
char 'b'
n <- many (char 'a')
return $ 2 + (2 * (length n))
green = do
char 'b'
b <- blue
return $ 2 + b
red = do
b <- blue
... | pbl64k/CodeSprints | CodeNinja-2012-03-31-Amazon/MagicMachines/mm.hs | bsd-2-clause | 571 | 4 | 11 | 247 | 280 | 129 | 151 | 25 | 2 |
-- |Converts types to contracts.
module BrownPLT.TypedJS.Contracts
( toContract
, toInterface
, encapsulate
, encapsulateTypedModule
, getContractsLib
) where
import BrownPLT.TypedJS.Prelude
import qualified Data.Map as M
import System.FilePath
import Paths_TypedJavaScript -- generated by Cabal
import Br... | brownplt/strobe-old | src/BrownPLT/TypedJS/Contracts.hs | bsd-2-clause | 3,249 | 0 | 10 | 636 | 610 | 332 | 278 | 53 | 4 |
module Main where
import Database.TinkerPop
import Database.TinkerPop.Types
import Data.Text
import Data.Aeson
import Data.Aeson.Types
import qualified Data.HashMap.Strict as H
import Control.Concurrent
import Control.Monad
import Control.Monad.Trans (liftIO)
import Control.Lens hiding ((.=), (.:))
import Data.Aes... | nakaji-dayo/gremlin-haskell | examples/Main.hs | bsd-3-clause | 1,590 | 0 | 20 | 363 | 502 | 272 | 230 | 28 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RecordWildCards #-}
module Dang.TypeCheck.Monad (
TC(), runTC,
Subst.Unify, unify,
Subst.Zonk, zonk, ftvs,
) where
import Dang.Monad (Dang)
import Dang.TypeCheck.AST (TVar)
import qualifie... | elliottt/dang | src/Dang/TypeCheck/Monad.hs | bsd-3-clause | 1,815 | 0 | 10 | 468 | 566 | 309 | 257 | 50 | 1 |
{-# LANGUAGE ImplicitParams #-}
module Internal.TranSpec(Goal(..),
FairRegion(..),
Transition(..),
TranSpec(..)) where
import Text.PrettyPrint
import PP
import Internal.IExpr
import Internal.CFA
data Transition = Transition { tranFrom :: Loc
... | termite2/tsl | Internal/TranSpec.hs | bsd-3-clause | 2,121 | 0 | 17 | 976 | 579 | 315 | 264 | 46 | 0 |
--file : Main.hs
--date : 17/01/18
--author : mi-na
--rational :
--TODO: restrict the member 'special' s kind
--export module
module FieldD ( Node(..)
, NodeInfo
, getMap
, getNextNode
, getNodeInfo
) where
--implementation(... | mi-na/scotland_yard | src/FieldD.hs | bsd-3-clause | 1,660 | 0 | 10 | 531 | 459 | 256 | 203 | 33 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LA... | kcsongor/generic-lens | generic-lens-core/src/Data/Generics/Sum/Internal/Constructors.hs | bsd-3-clause | 4,631 | 1 | 15 | 1,043 | 1,378 | 755 | 623 | -1 | -1 |
-- modified from https://github.com/Daniel-Diaz/matrix for my specific use.
module Common.Matrix.Matrix (
Matrix,
rows, cols,
fmap,
(!), (!.), getElem, safeGet, unsafeGet,
getRow, getCol,
fromList, toList, fromLists, toLists,
create,
zero, identity, scalar,
add, subtract, multip... | foreverbell/project-euler-solutions | lib/Common/Matrix/Matrix.hs | bsd-3-clause | 4,656 | 0 | 14 | 1,239 | 2,256 | 1,174 | 1,082 | 109 | 3 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- |
-- Module : Data.Array.Nikola.Language.Optimize
-- Copyright : (c) ... | mainland/nikola | src/Data/Array/Nikola/Language/Optimize.hs | bsd-3-clause | 21,472 | 0 | 31 | 7,641 | 8,473 | 4,264 | 4,209 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : System.Win32.Com
-- Copyright : (c) Sigbjorn Finne, sof@dcs.gla.ac.uk 1999
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : sof@forkIO.com
-- Stability : provisional
-- Porta... | jjinkou2/ComForGHC7.4 | System/Win32/Com.hs | bsd-3-clause | 34,074 | 410 | 15 | 7,830 | 7,359 | 3,923 | 3,436 | -1 | -1 |
module Oracle.Oracle
( module Oracle.Internal
, module Oracle.NoOracle
, module Oracle.NoDupBranches
, module Oracle.DiffOracle
, module Oracle.DisjointOracle
) where
import Oracle.Internal
import Oracle.NoOracle
import Oracle.NoDupBranches
import Oracle.DiffOracle
import Oracle.DisjointOracle
| nazrhom/vcs-clojure | src/Oracle/Oracle.hs | bsd-3-clause | 308 | 0 | 5 | 42 | 63 | 40 | 23 | 11 | 0 |
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
module Data.TypeLevel.List
( (:::)
, E
, Reverse
) where
infixr 0 :::
-- ... | jonathanknowles/hs-type-level-prime-product | Data/TypeLevel/List.hs | bsd-3-clause | 749 | 4 | 8 | 222 | 147 | 85 | 62 | -1 | -1 |
-- | A module dealing with pandoc file extensions and associated file types
--
module Hakyll.Web.Pandoc.FileType
( FileType (..)
, fileType
, getFileType
) where
import System.FilePath (takeExtension)
import Control.Arrow ((>>^))
import Hakyll.Core.Identifier
import Hakyll.Core.Compiler
-- | Datatype... | sol/hakyll | src/Hakyll/Web/Pandoc/FileType.hs | bsd-3-clause | 1,621 | 0 | 7 | 442 | 320 | 181 | 139 | -1 | -1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Ordinal.AR.Corpus
( corpus
) where
import Data.String
im... | facebookincubator/duckling | Duckling/Ordinal/AR/Corpus.hs | bsd-3-clause | 2,250 | 0 | 9 | 818 | 369 | 213 | 156 | 56 | 1 |
{-# LANGUAGE TupleSections, OverloadedStrings, QuasiQuotes, TemplateHaskell, TypeFamilies, RecordWildCards,
DeriveGeneric ,MultiParamTypeClasses ,FlexibleInstances #-}
module Protocol.ROC.PointTypes.PointType12 where
import GHC.Generics
import Data.Word
import Data.Binary
import Protocol.ROC.Utils
data... | jqpeterson/roc-translator | src/Protocol/ROC/PointTypes/PointType12.hs | bsd-3-clause | 2,391 | 0 | 9 | 952 | 324 | 179 | 145 | 67 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
-------------------------------------------------------------------
-- |
-- Module : Irreverent.Bitbucket.Http.Repositories.Pipelines.DeleteEnvironmentVariable
-- Copyright : (C) 2017 - 2018 Irreverent Pixel Feats
-- License : BSD-style... | irreverent-pixel-feats/bitbucket | bitbucket-http-client/src/Irreverent/Bitbucket/Http/Repositories/Pipelines/DeleteEnvironmentVariable.hs | bsd-3-clause | 1,574 | 0 | 12 | 255 | 269 | 170 | 99 | 36 | 1 |
module ThreadsLang.ParserSuite
( tests
) where
import Test.HUnit.Base
import Text.Megaparsec
import Text.Megaparsec.String
import ThreadsLang.Data
import ThreadsLang.Parser
tests :: Test
tests = TestList
[ TestLabel "Test const expression" testConstExpr
, TestLabe... | li-zhirui/EoplLangs | test/ThreadsLang/ParserSuite.hs | bsd-3-clause | 4,976 | 0 | 17 | 1,333 | 1,298 | 671 | 627 | 118 | 2 |
{-+
This module defines the represenation of types, qualified types, type schemes,
substitution and various auxiliary types.
-}
module TiTypes(module TiTypes,HsTypeI(..),HsIdentI(..),Kind) where
import Syntax(HsTypeI(..),TI(..),HsIdentI(..),HsFunDeps,
hsTyFun,hsTyApp,hsTyTuple,hsTyCon,hsTyVar,
... | forste/haReFork | tools/base/TI/TiTypes.hs | bsd-3-clause | 4,969 | 24 | 14 | 1,176 | 2,199 | 1,216 | 983 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
module PFDS.Sec3.Ex5 where
class Ord e => BinomialHeap h e where
empty :: [h e]
isEmpty :: [h e] -> Bool
rank :: h e -> Int
root :: h e -> e
link :: h e -> h e -> h e
insTree :: h e -> [h e] -> [h e]
insert :: e -> [h ... | matonix/pfds | src/PFDS/Sec3/Ex5.hs | bsd-3-clause | 1,534 | 0 | 11 | 498 | 824 | 421 | 403 | 48 | 0 |
module Renzu.Prism where
----------------------------------------------------------------
import Control.Monad
import Text.Read
import Renzu.Optic
import Renzu.Profunctor
----------------------------------------------------------------
type Prism s t a b = forall p. Choice p => Optic p s t a b
type Prism' s a = Pri... | acple/renzu | src/Renzu/Prism.hs | bsd-3-clause | 1,690 | 0 | 11 | 307 | 550 | 292 | 258 | -1 | -1 |
{-# LANGUAGE
MultiParamTypeClasses
, FunctionalDependencies
#-}
module Data.Trie.Class where
import Prelude hiding (lookup)
-- import qualified Data.Trie as BT
import qualified Data.ByteString as BS
import Data.Maybe (isJust)
import Data.Foldable as F
import Data.Functor.Identity (Identity (..))
-- | Class... | athanclark/tries | src/Data/Trie/Class.hs | bsd-3-clause | 1,558 | 0 | 10 | 330 | 343 | 185 | 158 | 19 | 1 |
-- | This internal module is exposed only for testing and benchmarking. You
-- don't need to import it.
module Text.Regex.Applicative.StateQueue
( StateQueue
, empty
, insert
, insertUnique
, getElements
) where
import Prelude hiding (read, lookup, replicate)
import qualified Data.IntSet as Int... | mitchellwrosen/regex-applicative | Text/Regex/Applicative/StateQueue.hs | mit | 1,627 | 0 | 10 | 417 | 330 | 194 | 136 | 41 | 2 |
-- The parser from the NoFib benchmark suite
-- TODO: getContents implementeren en gebruiken ipv readFile "big_big_test.hs"
-- TODO: internal error fixen
-- ==========================================================--
-- === Raw lexical analysis (tokenisation) of source ===--
-- === ... | roberth/uu-helium | test/benchmarks/Parser.hs | gpl-3.0 | 37,406 | 0 | 19 | 14,433 | 10,629 | 5,745 | 4,884 | 867 | 26 |
{-# LANGUAGE FlexibleContexts #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
-- |
-- Copyright : (c) 2012 Benedikt Schmidt
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Benedikt Schmidt <beschmi@gmail.com>
--
-- Unit tests for the functions dealing with term algebra and related notions.
module Term.UnitTe... | kmilner/tamarin-prover | lib/term/src/Term/UnitTests.hs | gpl-3.0 | 13,105 | 0 | 19 | 3,348 | 4,493 | 2,478 | 2,015 | 214 | 1 |
-- Copyright 2016 TensorFlow authors.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agree... | cem3394/haskell | tensorflow/src/TensorFlow/Build.hs | apache-2.0 | 11,931 | 0 | 19 | 2,556 | 2,760 | 1,507 | 1,253 | 233 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-@ LIQUID "--real" @-}
module Term where
import Data.Vector.Algorithms.Common (shiftRI)
import Language.Haskell.Liquid.Prelude (choose)
{-@ foo :: Nat -> Int @-}
foo :: Int -> Int
foo n = go n
where
go 0 = 1
go (d :: Int) = go (... | abakst/liquidhaskell | benchmarks/vector-algorithms-0.5.4.2/Data/Vector/Algorithms/Termination.hs | bsd-3-clause | 1,274 | 0 | 13 | 509 | 446 | 234 | 212 | 33 | 3 |
import Data.Pipe
import Data.Pipe.List
input :: Pipe () Char IO ()
input = fromList "Hello, world!" `finalize` putStrLn "finalize"
takeP :: Monad m => Int -> Pipe a a m ()
takeP 0 = return ()
takeP n = do
mx <- await
case mx of
Just x -> yield x >> takeP (n - 1)
_ -> return ()
output :: Pipe Char () IO String
... | YoshikuniJujo/simple-pipe | test/testFinalize.hs | bsd-3-clause | 336 | 0 | 13 | 79 | 167 | 82 | 85 | 13 | 2 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
module System.Console.GetOpt.Generics (
-- * Simple IO API
withCli,
WithCli(),
HasArguments,
WithCli.Argument(argumentType, parseArgument),
-- * Customizing the CLI
withCl... | kosmikus/getopt-generics | src/System/Console/GetOpt/Generics.hs | bsd-3-clause | 3,594 | 0 | 11 | 799 | 437 | 273 | 164 | 50 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Generate haddocks
module Stack.Build.Hadd... | harendra-kumar/stack | src/Stack/Build/Haddock.hs | bsd-3-clause | 11,043 | 0 | 24 | 3,649 | 2,229 | 1,159 | 1,070 | 216 | 5 |
{-# LANGUAGE CPP #-}
module TcFlatten(
FlattenEnv(..), FlattenMode(..), mkFlattenEnv,
flatten, flattenMany, flatten_many,
flattenFamApp, flattenTyVarOuter,
unflatten,
eqCanRewrite, eqCanRewriteFR, canRewriteOrSame,
CtFlavourRole, ctEvFlavourRole, ctFlavourRole
) where
#include "HsVersions.h"
impor... | forked-upstream-packages-for-ghcjs/ghc | compiler/typecheck/TcFlatten.hs | bsd-3-clause | 58,044 | 47 | 27 | 16,494 | 5,179 | 2,789 | 2,390 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
{-# LANGUAGE RecordWildCards #-}
import Data.Foldable (for_)
import Test.Hspec (Spec, describe, it, shouldBe)
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)
import CollatzConjecture (collatz)
main :: IO ()
main = hspecWith defaultConfig {con... | mukeshtiwari/Excercism | haskell/collatz-conjecture/test/Tests.hs | mit | 1,578 | 0 | 10 | 665 | 339 | 202 | 137 | 34 | 1 |
module ComplexParamIn2 where
--The application of a function is replaced by the right-hand side of the definition,
--with actual parameters replacing formals.
data Tup a b = Tup a b
--In this example, unfold the first 'sq' in 'sumSquares'
--This example aims to test unfolding a definition with guards.
sumSquares ... | mpickering/HaRe | old/testing/foldDef/ComplexParamIn2.hs | bsd-3-clause | 402 | 0 | 9 | 99 | 80 | 47 | 33 | 5 | 1 |
module A2 where
--Any type/data constructor name declared in this module can be renamed.
--Any type variable can be renamed.
--Rename type Constructor 'BTree' to 'MyBTree'
data BTree a = Empty | T a (BTree a) (BTree a)
deriving Show
buildtree :: Ord a => [a] -> BTree a
buildtree [] = Empty
buildtree... | kmate/HaRe | old/testing/unfoldAsPatterns/A2.hs | bsd-3-clause | 592 | 0 | 8 | 149 | 222 | 114 | 108 | 13 | 1 |
module Main (main) where
import qualified Distribution.ModuleName as ModuleName
import Distribution.PackageDescription
import Distribution.PackageDescription.Check hiding (doesFileExist)
import Distribution.PackageDescription.Configuration
import Distribution.PackageDescription.Parse
import Distribution.Package
impor... | acowley/ghc | utils/ghc-cabal/Main.hs | bsd-3-clause | 25,173 | 0 | 23 | 8,987 | 4,919 | 2,515 | 2,404 | 410 | 13 |
{-
Type table: list of all register types
Part of Mackerel: a strawman device definition DSL for Barrelfish
Copyright (c) 2007, 2008, ETH Zurich.
All rights reserved.
This file is distributed under the terms in the attached LICENSE file.
If you do not find this file, copies can be found by writi... | daleooo/barrelfish | tools/mackerel/TypeTable.hs | mit | 5,785 | 0 | 18 | 2,083 | 1,561 | 870 | 691 | 123 | 4 |
{-# LANGUAGE OverlappingInstances #-}
{-# OPTIONS_GHC -w #-} -- Turn off deprecation for OverlappingInstances
-- | Unsafe as uses overlapping instances
-- Although it isn't defining any so can we mark safe
-- still?
module UnsafeInfered08_A where
g :: Int
g = 1
| forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/safeHaskell/safeInfered/UnsafeInfered08_A.hs | bsd-3-clause | 265 | 0 | 4 | 46 | 20 | 15 | 5 | 5 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -Wall #-}
module Main where
import System.Environment
import GHC
main :: IO ()
main = do
flags <- getArgs
runGhc' flags $ do
setTargets [Target (TargetFile "T10052-input.hs" Nothing) True Nothing]
_success <- load LoadAllTargets
return ()
run... | urbanslug/ghc | testsuite/tests/ghc-api/T10052/T10052.hs | bsd-3-clause | 837 | 0 | 14 | 241 | 250 | 123 | 127 | 26 | 1 |
module ProjectEuler.Problem42
( problem
) where
import Data.Char
import qualified Data.Text as T
import ProjectEuler.GetData
problem :: Problem
problem = pureProblemWithData "p042_words.txt" 42 Solved compute
wordValue :: String -> Int
wordValue word = sum $ toValue <$> word
where
toValue c = ord c - ord ... | Javran/Project-Euler | src/ProjectEuler/Problem42.hs | mit | 705 | 0 | 11 | 136 | 246 | 136 | 110 | 18 | 1 |
{-# htermination (fromEnumMyBool :: MyBool -> MyInt) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
data MyInt = Pos Nat | Neg Nat ;
data Nat = Succ Nat | Zero ;
fromEnumMyBool :: MyBool -> MyInt
fromEnumMyBool MyFalse = Pos Zero;
fromEnumMyBool MyTrue = Pos ... | ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/fromEnum_3.hs | mit | 334 | 0 | 8 | 73 | 104 | 59 | 45 | 8 | 1 |
module CovenantEyes.Api.Internal.Time
( UTCTime, addUTCTime
, Clk.TimeSpec
, Nanosec(..), timeSpecAsNanosec, nanosecAsTimeSpec, addTimeOffset, nanoFactor
) where
import CovenantEyes.Api.Internal.Prelude
import Data.Time.Clock (UTCTime, addUTCTime)
import System.Clock as Clk
newtype Nanosec = Nanosec Integer d... | 3noch/covenanteyes-api-hs | src/CovenantEyes/Api/Internal/Time.hs | mit | 820 | 0 | 8 | 104 | 248 | 141 | 107 | 17 | 1 |
-- | A helper module which takes care of parallelism
{-# LANGUAGE DeriveDataTypeable #-}
module Test.Tasty.Parallel (runInParallel) where
import Control.Monad
import Control.Concurrent
import Control.Concurrent.STM
import Control.Exception
import Foreign.StablePtr
import Data.Typeable
import GHC.Conc (labelThread)
da... | SAdams601/ParRegexSearch | test/tasty-0.9.0.1/Test/Tasty/Parallel.hs | mit | 5,066 | 0 | 23 | 1,273 | 812 | 409 | 403 | 79 | 4 |
-- Merges two sorted lists in ascending order to give
-- a single sorted list in ascending order, e.g.,
-- > merge [2, 5, 6] [1, 3, 4]
-- [1, 2, 3, 4, 5, 6]
merge :: Ord a => [a] -> [a] -> [a]
merge xs [] = xs
merge [] ys = ys
merge (x:xs) (y:ys)
| x <= y = x : merge xs (y:ys)
| otherw... | calebgregory/fp101x | wk3/merge.hs | mit | 352 | 0 | 9 | 116 | 133 | 69 | 64 | 6 | 1 |
module FrameBuffer where
import Foreign
import Graphics.Rendering.OpenGL.Raw
createFrameBuffer textureId renderBufferId = do
bufferPointer <- malloc :: IO (Ptr GLuint)
glGenFramebuffers 1 bufferPointer
bufferId <- peek bufferPointer
glBindFramebuffer gl_FRAMEBUFFER bufferId
glFramebufferTexture2D gl_FRAME... | MichaelBaker/opengl-haskell | src/FrameBuffer.hs | mit | 1,464 | 0 | 10 | 378 | 222 | 98 | 124 | 20 | 1 |
module Bonawitz_3_10b
where
import Blaze
import Tree
import Control.Monad.Random
-- Replicating instance of Bonawitz 3.10b
-- Dual Link Kernel
sr :: State
sr = collectStates dummyState [so, csc]
so :: State
so = mkDoubleParam "Omega" 1.23
csc :: State
csc = (collectStates dummyCState (map mkComp [0..2])) `ta... | othercriteria/blaze | Bonawitz_3_10b.hs | mit | 948 | 0 | 14 | 227 | 345 | 181 | 164 | 25 | 1 |
{-# LANGUAGE TypeOperators, GADTs, KindSignatures,
TypeSynonymInstances, FlexibleInstances, PatternGuards #-}
module Tactics where
import Data.Either
import PigmentPrelude
fromRight :: Either a b -> b
fromRight (Right b) = b
opRunRunner :: Op -> [VAL] -> (VAL -> Bool) -> String -> Either String ()
opRunRunner ... | kwangkim/pigment | tests/Tactics.hs | mit | 11,107 | 0 | 25 | 4,359 | 1,398 | 824 | 574 | 62 | 3 |
{-# LANGUAGE ScopedTypeVariables, DeriveDataTypeable, OverloadedStrings #-}
module Happstack.Crud where
import Data.Typeable
import Data.Data
import Data.Generics.Aliases
import Control.Monad.Reader
import Data.Generics
import Data.Maybe
import Data.Tree
import Text.Blaze.Html5 ((!), toValue)
import qualified Text.B... | TheFrameworkGame/blog-haskell-happstack-attempt | Happstack/Crud.hs | mit | 5,005 | 0 | 23 | 1,516 | 1,296 | 661 | 635 | 87 | 2 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes, BangPatterns, ScopedTypeVariables #-}
module Main where
import Codec.Xlsx
import Data.Text (Text, take)
import Control.Applicative
import qualified Data.Map.Strict as M
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as L
import Data.ByteString.La... | danchoi/jsonxlsx | Main.hs | mit | 9,836 | 0 | 16 | 2,230 | 3,256 | 1,718 | 1,538 | 216 | 3 |
{-# LANGUAGE CPP #-}
module Internal.API where
import Internal.FFI
import Internal.Type
#ifdef ghcjs_HOST_OS
import Data.JSString
import GHCJS.Foreign.Callback (Callback, asyncCallback1)
import GHCJS.Marshal (FromJSVal (..))
import GHCJS.Types ... | agocorona/ghcjs-perch | src/Internal/API.hs | mit | 4,094 | 0 | 13 | 771 | 890 | 481 | 409 | 43 | 1 |
{-# LANGUAGE QuasiQuotes #-}
module TestLedgerXml (ledgerXmlSpec) where
import Test.Hspec (Spec, describe, it, shouldBe)
import Data.String.Interpolate (i)
import Data.String.Interpolate.Util (unindent)
import qualified Text.XML.HXT.Core as HXT
import qualified Data.Expenses.Ledger.Xml as LX
import qualified Data.... | rgoulter/expenses-csv-utils | test/TestLedgerXml.hs | mit | 3,475 | 0 | 18 | 1,344 | 557 | 299 | 258 | 53 | 1 |
module Util.Misc where
import Numeric (showFFloat)
import Data.List.Split (splitOn)
import qualified Turtle as T
import Data.Text as Text (pack, unpack, replace, head, Text)
import Data.Attoparsec.Text (parseOnly, signed, decimal)
import TextShow (showt)
import Numeric ... | dpren/pitch-extractor | src/Util/Misc.hs | mit | 2,489 | 0 | 22 | 591 | 924 | 476 | 448 | 61 | 3 |
module Utils where
import Data.Word
(|>) :: a -> (a -> b) -> b
(|>) = flip ($)
infixl 0 |>
| sgraf812/fndiff | src/Utils.hs | mit | 93 | 0 | 8 | 23 | 48 | 30 | 18 | 5 | 1 |
import System.IO
main = do
withFile "input.txt" ReadMode (\ handle -> do
-- hSetBuffering handle $ BlockBuffering (Just 2048)
contents <- hGetContents handle
putStr contents)
| janherich/learning-haskell | files.hs | epl-1.0 | 283 | 0 | 13 | 133 | 46 | 22 | 24 | 5 | 1 |
module Tema_20a_Monticulo_Spec (main, spec) where
import Tema_20.Monticulo
import Test.Hspec
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "inserta" $
it "e1" $
show (inserta 3 ejM1) `shouldBe`
"M 1 2 (M 4 1 (M 8 1 Vacio Vacio) Vacio) (M 3 1 (M 6 1 Vacio Vacio) Vacio)"
describe... | jaalonso/I1M-Cod-Temas | test/Tema_20a_Monticulo_Spec.hs | gpl-2.0 | 610 | 0 | 12 | 182 | 183 | 91 | 92 | 22 | 1 |
{- |
Module : $Header$
Copyright : (c) Felix Gabriel Mance
License : GPLv2 or higher, see LICENSE.txt
Maintainer : f.mance@jacobs-university.de
Stability : provisional
Portability : portable
RDF syntax parser
-}
module RDF.Parse where
import Common.Parsec
import Common.Lexer
import Common.AnnoPa... | nevrenato/Hets_Fork | RDF/Parse.hs | gpl-2.0 | 5,139 | 0 | 13 | 1,088 | 1,481 | 728 | 753 | 133 | 2 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
module Language.Slicer.Resugar
( RExp, resugar
) where
import Language.Slicer.Absyn ( Con, TyCtx, getTyDeclByNa... | jstolarek/slicer | lib/Language/Slicer/Resugar.hs | gpl-3.0 | 17,789 | 0 | 16 | 5,948 | 5,940 | 2,888 | 3,052 | 357 | 2 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE Fle... | plcplc/typed-rest | types/src/Network/HTTP/Rest/Signature.hs | gpl-3.0 | 4,700 | 0 | 12 | 865 | 920 | 523 | 397 | 72 | 1 |
module FQuoter.Display
( displayQuotes )
where
import System.Console.Haskeline
import Data.Maybe
import Data.List
import FQuoter.Quote
import FQuoter.Config.Config
import FQuoter.Templating.TemplateParser
import FQuoter.Templating.Display
import FQuoter.Serialize.SerializedTypes
displayQuotes :: Config -> [Seriali... | Raveline/FQuoter | src/FQuoter/Display.hs | gpl-3.0 | 1,506 | 0 | 14 | 555 | 350 | 179 | 171 | 35 | 2 |
-- | Definition of the syntax of formulas of first order, signatures,
-- and models; evaluation of formulas under an interpretation for the
-- signature.
module Sat.Core where
import Control.Applicative
import Control.Lens
import Data.Serialize
import qualified Data.Map as M
import qualified Data.Set as S
data Var... | manugunther/sat | Sat/Core.hs | gpl-3.0 | 6,364 | 0 | 17 | 1,915 | 2,277 | 1,171 | 1,106 | 119 | 12 |
import Development.Hake
import Development.Hake.FunSetIO
import System.Environment (getArgs)
import Control.Applicative ((<$>))
main = do
args <- getArgs
let add = getVals "add" args
add2 = getVals "add2" args
hake [
dflt [ "task1" ]
,
file [ "task1" ] [ "task2" ] $ rawSystemE . ("echo":) . (:[]... | YoshikuniJujo/hake_haskell | examples/exitTest/hakeMainIO.hs | gpl-3.0 | 745 | 2 | 19 | 212 | 275 | 147 | 128 | 22 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.BigQuery.Types
-- Copyright : (c) 2015-2016 Brendan Ha... | rueshyna/gogol | gogol-bigquery/gen/Network/Google/BigQuery/Types.hs | mpl-2.0 | 13,914 | 0 | 7 | 3,622 | 1,664 | 1,127 | 537 | 489 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-serviceusage/gen/Network/Google/Resource/ServiceUsage/Services/BatchEnable.hs | mpl-2.0 | 5,639 | 0 | 17 | 1,276 | 789 | 463 | 326 | 115 | 1 |
-- | Parsing of structs.
module Data.GI.GIR.Struct
( Struct(..)
, parseStruct
) where
import Data.Text (Text)
import Data.GI.GIR.Allocation (AllocationInfo(..), unknownAllocationInfo)
import Data.GI.GIR.Field (Field, parseFields)
import Data.GI.GIR.Method (Method, MethodType(..), parseMethod)
import Data.... | hamishmack/haskell-gi | lib/Data/GI/GIR/Struct.hs | lgpl-2.1 | 2,024 | 0 | 15 | 443 | 469 | 263 | 206 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Lens
import Control.Monad.IO.Class
import qualified Control.Monad.RWS.Strict as RWS
------------------------------------------------------------------------------
import qualified LogData as L
import qualified Ret... | haroldcarr/learn-haskell-coq-ml-etc | haskell/topic/logging/structured-log-lines/app/Main.hs | unlicense | 952 | 0 | 11 | 219 | 247 | 130 | 117 | -1 | -1 |
rev = foldl (flip (:)) []
main = do
inputdata <- getContents
mapM_ putStrLn $ map show $ rev $ map (read :: String -> Int) $ lines inputdata
| itsbruce/hackerrank | func/intro/reverse.hs | unlicense | 148 | 0 | 11 | 36 | 74 | 36 | 38 | 4 | 1 |
module Utils.Step where
import Data.Const
import Data.World
import Data.Monster
import Data.Define
import Utils.Changes
import Utils.Monsters
import Utils.Stuff
import Utils.HealDamage
import Utils.Items
import Items.Stuff
import Monsters.Wave
import Monsters.Parts
import IO.Colors
import IO.Texts
import System.Rando... | green-orange/trapHack | src/Utils/Step.hs | unlicense | 6,604 | 72 | 14 | 1,419 | 2,641 | 1,416 | 1,225 | 159 | 11 |
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MonoLocalBinds #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
module Q where
{-
https://aphyr.com/posts/342-typing-the-technical-inte... | haroldcarr/learn-haskell-coq-ml-etc | haskell/topic/type-level/2017-04-kyle-kingsbury-n-queens/Q.hs | unlicense | 6,385 | 0 | 8 | 1,890 | 1,993 | 1,040 | 953 | -1 | -1 |
{-# LANGUAGE
NoImplicitPrelude,
NoMonomorphismRestriction,
FlexibleInstances,
MultiParamTypeClasses,
TypeOperators,
TypeApplications,
ScopedTypeVariables
#-}
module DDF.Dual (module DDF.Dual, module DDF.Prod) where
import DDF.Prod
import qualified DDF.Meta.Dual as M
class Prod r => Dual r where
dual ... | ThoughtWorksInc/DeepDarkFantasy | DDF/Dual.hs | apache-2.0 | 947 | 0 | 13 | 212 | 399 | 209 | 190 | 31 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleContexts #-}
-- A number of standard aggregation functions.
module Spark.Core.Internal.Groups(
GroupData,
LogicalGroupData,
-- Typed functions
groupByKey,
mapGroup,
aggKey,
groupAsDS
... | krapsh/kraps-haskell | src/Spark/Core/Internal/Groups.hs | apache-2.0 | 13,399 | 1 | 25 | 2,878 | 3,282 | 1,706 | 1,576 | 227 | 7 |
import Control.Applicative
import Control.Monad
import Control.Monad.Loops
import Control.Monad.Primitive
import Control.Concurrent
import Control.Concurrent.Async
import Control.Concurrent.STM
import Criterion.Main
import Criterion.Measurement
import Data.Map (Map)
import Data.Monoid
import Data.Monoid.Statistics.Nume... | aloiscochard/influo | src/Main.hs | apache-2.0 | 2,388 | 0 | 19 | 558 | 877 | 446 | 431 | 54 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Network.NSQ.Identify
Description : The metadata component for formatting and parsing the metadata sent to nsqd as part of the feature negotiation done upon connection establish.
-}
module Network.NSQ.Identify
( defaultIdentify
, defaultUserAgent
, encodeM... | pharaun/hsnsq | src/Network/NSQ/Identify.hs | apache-2.0 | 4,377 | 0 | 17 | 980 | 966 | 532 | 434 | 69 | 1 |
{-# LANGUAGE PackageImports #-}
import "fff" Application (develMain)
import Prelude (IO)
main :: IO ()
main = develMain
| Drezil/FFF | app/devel.hs | apache-2.0 | 121 | 0 | 6 | 19 | 34 | 20 | 14 | 5 | 1 |
module Network.Server.MultiLevelDB.Const where
import Network.Server.MultiLevelDB.Util
import qualified Data.ByteString.Lazy.Char8 as B
import Data.Binary.Put (runPut, putWord8)
keyPrefix = B.head $ runPut $ putWord8 1
indexPrefix = B.head $ runPut $ putWord8 2
freePrefix = B.head $ runPut $ putWord8 3
lastPrimary... | wmoss/multileveldb | src/Network/Server/MultiLevelDB/Const.hs | bsd-2-clause | 397 | 0 | 7 | 58 | 123 | 70 | 53 | 10 | 1 |
module ExampleModel where
import qualified Data.Map as DataMap
import MonadServ
data ExampleReturnObject =
ExampleReturnObject
{ retCode :: String
, retValue :: Int
, labels :: [String]
}
instance JSONObject ExampleReturnObject where
toJSON ( ExampleReturnObject retCode retValue labels) = ... | jcaldwell/monadserv | src/ExampleModel.hs | bsd-2-clause | 628 | 0 | 14 | 236 | 142 | 83 | 59 | 13 | 0 |
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
-- | 'Patch'es on 'Map' that can insert, delete, and move valu... | Saulzar/reflex | src/Reflex/Patch/MapWithMove.hs | bsd-3-clause | 13,335 | 0 | 25 | 3,165 | 3,204 | 1,658 | 1,546 | 187 | 6 |
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
{-| Binary instances for the core datatypes -}
module Idris.Core.Binary where
import Control.Applicative ((<*>), (<$>))
import Control.Monad (liftM2)
import Control.DeepSeq (($!!))
import Data.Binary
import Data.Vector.Binary
import qualified Data.Text as T
import quali... | bkoropoff/Idris-dev | src/Idris/Core/Binary.hs | bsd-3-clause | 25,159 | 0 | 19 | 14,956 | 7,340 | 3,248 | 4,092 | 613 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
module Network.Kafka.Primitive.GroupCoordinator where
import qualified Data.Vector as V
import Control.Lens
import ... | iand675/hs-kafka | src/Network/Kafka/Primitive/GroupCoordinator.hs | bsd-3-clause | 1,562 | 0 | 11 | 273 | 245 | 135 | 110 | 40 | 0 |
-- The @FamInst@ type: family instance heads
{-# LANGUAGE CPP, GADTs, ViewPatterns #-}
module FamInst (
FamInstEnvs, tcGetFamInstEnvs,
checkFamInstConsistency, tcExtendLocalFamInstEnv,
tcLookupDataFamInst, tcLookupDataFamInst_maybe,
tcInstNewTyCon_maybe, tcTopNormaliseNewTypeTF_maybe,
... | sdiehl/ghc | compiler/typecheck/FamInst.hs | bsd-3-clause | 46,445 | 0 | 16 | 12,903 | 4,594 | 2,496 | 2,098 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables, DoAndIfThenElse #-}
module TastierMachine.Bytecode where
import qualified TastierMachine.Instructions as Instructions
import qualified Data.Binary.Get as G
import qualified Data.Binary.Put as P
load :: G.Get [Instructions.InstructionWord]
load = do
empty <- G.isEmpty
if empty then... | houli/TastierMachine | src/TastierMachine/Bytecode.hs | bsd-3-clause | 1,650 | 0 | 23 | 448 | 548 | 269 | 279 | 46 | 4 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeApplications #-}
module Main where
import Criterion.Main
import Data.BigWord
import Data.Proxy
import GHC.TypeLits
main :: IO ()
main = defaultMain
[
bgroup "BigWor... | ryanreich/bigint | test/Performance.hs | bsd-3-clause | 1,152 | 0 | 13 | 270 | 417 | 217 | 200 | 31 | 1 |
{-# OPTIONS -fglasgow-exts #-}
module TraversalLib (
module Data.Generics,
innermost
) where
import Data.Generics
import Control.Monad
import Prelude hiding (repeat)
-- Traversal schemes defined on top of Data.Generics
bottomup :: Data x => (forall y. Data y => y -> y) -> x -> x
bottomup f = f . gmapT (bottom... | grammarware/slps | topics/fl/haskell/TraversalLib.hs | bsd-3-clause | 565 | 0 | 10 | 113 | 211 | 110 | 101 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Type subsumption and unification
-}
{-# LANGUAGE CPP, MultiWayIf, TupleSections, ScopedTypeVariables #-}
module TcUnify (
-- Full-blown subsumption
tcWrapResult, tcWrapResultO, tcSkolemise, tcSkolemiseET,
tcSubType... | ezyang/ghc | compiler/typecheck/TcUnify.hs | bsd-3-clause | 88,924 | 75 | 29 | 28,031 | 12,847 | 6,620 | 6,227 | -1 | -1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE CPP #-}
-- |Pre-value and post-value byte alignments
module Flat.Filler (
Filler(..),
fillerLength,
PreAligned(..),
preAligned,
PostAligned(..),
postAligned,
pre... | tittoassini/flat | src/Flat/Filler.hs | bsd-3-clause | 2,426 | 0 | 9 | 482 | 515 | 286 | 229 | 44 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module Test.ZM.ADT.SHAKE128_48.K9f214799149b (SHAKE128_48(..)) where
import qualified Prelude(Eq,Ord,Show)
import qualified GHC.Generics
import qualified Flat
import qualified Data.Model
import qualified Test.ZM.ADT.Word8.Kb1f46a49c8f8
data SHAKE128_48 a ... | tittoassini/typed | test/Test/ZM/ADT/SHAKE128_48/K9f214799149b.hs | bsd-3-clause | 893 | 0 | 7 | 236 | 178 | 117 | 61 | 16 | 0 |
module Exercises99 where
-- 1.
filterMult3 = filter (\x -> x `mod` 3 == 0)
-- 2.
lenMult3 = length . filterMult3
-- 3.
wordsFilter = filter (\x -> x /= "a" && x /= "the" && x /= "an") . words
wordsFilter2 = filter (\x -> not (elem x ["a", "the", "an"])) . words | pdmurray/haskell-book-ex | src/ch9/Exercises9.10.hs | bsd-3-clause | 267 | 0 | 13 | 60 | 122 | 69 | 53 | 5 | 1 |
module Crypto.Xor
( fixedXor
, cycleKey
, cycleKeyChar
, search
, attempt
, Match
, char
, string
, bestMatch
) where
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as BL
import Data.Word (Word8)
import qualified Data.Bits as BB
import qualified Data.List as List
impo... | eelcoh/cryptochallenge | src/Crypto/Xor.hs | bsd-3-clause | 7,421 | 0 | 15 | 1,919 | 1,360 | 747 | 613 | 145 | 3 |
module Utils where
import Control.Applicative
import qualified Control.Monad.State as State
import Debug.Trace.Helpers
traceMsgM
:: (Monad m, Show r)
=> [Char] -> m r -> m r
traceMsgM a = State.liftM $ traceMsg a
(+++)
:: Applicative f
=> f [a] -> f [a] -> f [a]
(+++) = liftA2 (++)
clamp :: (Ord a) ... | fros1y/umbral | src/Utils.hs | bsd-3-clause | 388 | 0 | 9 | 92 | 184 | 101 | 83 | 14 | 1 |
module Game.LambdaPad.Pads.XBox ( xbox ) where
import Game.LambdaPad.Core.PadConfig
xbox :: PadConfig
xbox = PadConfig
{ padShortName = "xbox"
, padName = "Generic X-Box pad"
, buttonConfig = simpleButtonConfig
[ (0, a)
, (1, b)
, (2, x)
, (3, y)
, (4, lb)... | zearen-wover/lambda-pad-core | src/Game/LambdaPad/Pads/XBox.hs | bsd-3-clause | 1,005 | 0 | 10 | 442 | 325 | 207 | 118 | 35 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE LambdaCase #-}
module Graphics.UI.Threepenny.Extra
( module Graphics.UI.Threepenny.Extra
, module Exports
) where
import Graphics.UI.Threepenny.Core as Exports hiding
(attr,text,children,(<**>),Const(..),style,new... | kylcarte/threepenny-extra | src/Graphics/UI/Threepenny/Extra.hs | bsd-3-clause | 8,065 | 0 | 14 | 2,064 | 4,062 | 2,167 | 1,895 | -1 | -1 |
{- DATX02-17-26, automated assessment of imperative programs.
- Copyright, 2017, see AUTHORS.md.
-
- 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... | Centril/DATX02-17-26 | libsrc/Util/Monad.hs | gpl-2.0 | 6,640 | 0 | 13 | 1,287 | 1,442 | 790 | 652 | 70 | 9 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for ganeti-htools.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012 Google 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 ... | dblia/nosql-ganeti | test/hs/Test/Ganeti/Rpc.hs | gpl-2.0 | 2,801 | 0 | 16 | 447 | 482 | 269 | 213 | 38 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-datapipeline/gen/Network/AWS/DataPipeline/ReportTaskProgress.hs | mpl-2.0 | 4,877 | 0 | 10 | 1,012 | 535 | 329 | 206 | 63 | 1 |
{-
Copyright 2019 The CodeWorld Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicab... | alphalambda/codeworld | codeworld-compiler/test/testcases/tooManyArguments/source.hs | apache-2.0 | 650 | 0 | 8 | 118 | 28 | 16 | 12 | 1 | 1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, DeriveFunctor,
PatternGuards, CPP #-}
module Idris.REPL(getClient, getPkg, getPkgCheck, getPkgClean, getPkgMkDoc,
getPkgREPL, getPkgTest, getPort, idris, idrisMain, loadInputs,
opt, runClient, runMain, ver) where
i... | osa1/Idris-dev | src/Idris/REPL.hs | bsd-3-clause | 85,246 | 980 | 18 | 32,659 | 12,437 | 8,472 | 3,965 | 1,690 | 70 |
{-# LANGUAGE QuasiQuotes, TemplateHaskell, MultiParamTypeClasses, DeriveDataTypeable #-}
module Language.Pads.DeriveExample where
import Data.DeriveTH -- Library for deriving instances for existing types
import Data.IP
import Data.Time.Clock
import Data.Time.Calendar
import Data.Data
import Language... | GaloisInc/pads-haskell | Language/Pads/DeriveExample.hs | bsd-3-clause | 1,508 | 0 | 9 | 325 | 303 | 170 | 133 | 29 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE CPP #-}
module Main where
import Control.Monad
import Imports
import Foundation hiding (se... | vincenthz/hs-foundation | foundation/tests/Tests.hs | bsd-3-clause | 14,456 | 0 | 17 | 4,561 | 4,315 | 2,249 | 2,066 | 268 | 3 |
import qualified Numeric.Units.Dimensional.TF.Test
import qualified Numeric.Units.Dimensional.TF.QuantitiesTest
main = do
Numeric.Units.Dimensional.TF.Test.main
Numeric.Units.Dimensional.TF.QuantitiesTest.main
| bjornbm/dimensional-tf | Test.hs | bsd-3-clause | 215 | 1 | 7 | 16 | 45 | 29 | 16 | 5 | 1 |
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module Packages (
-- * GHC packages
array, base, binary, bytestring, cabal, checkApiAnnotations, checkPpr,
compareSizes, compiler, containers, deepseq, deriveConstants, directory,
exceptions, filepath, genapply, genprimopcode, ghc, ghcBoot, ghcBootTh,
... | sdiehl/ghc | hadrian/src/Packages.hs | bsd-3-clause | 9,492 | 0 | 18 | 2,639 | 1,772 | 994 | 778 | -1 | -1 |
-- HpdH runtime configuration parameters
--
-- Author: Patrick Maier
-----------------------------------------------------------------------------
module Control.Parallel.HdpH.Conf
( -- * HdpH runtime system configuration parameters
RTSConf(..),
defaultRTSConf -- :: RTSConf
) where
import Prelude
import... | robstewart57/hdph-rs | src/Control/Parallel/HdpH/Conf.hs | bsd-3-clause | 4,392 | 0 | 9 | 1,134 | 279 | 205 | 74 | 37 | 1 |
{-
(c) The University of Glasgow 2006
(c) The AQUA Project, Glasgow University, 1993-1998
TcRules: Typechecking transformation rules
-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TypeFamilies #-}
module TcRules ( tcRules ) where
import GhcPrelude
import HsSyn
import TcRnTypes
import TcRnMonad
import TcSimplify
im... | ezyang/ghc | compiler/typecheck/TcRules.hs | bsd-3-clause | 14,618 | 1 | 17 | 4,432 | 1,665 | 868 | 797 | 133 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.