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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
-- |
-- Examples in various locations...
--
-- Some random text. Some random text. Some random text. Some random text.
-- Some random text. Some random text. Some random text. Some random text.
-- Some random text.
--
-- >>> let x = 10
--
-- Some random text. Some random text. Some random text. Some random tex... | beni55/doctest-haskell | tests/integration/testCommentLocation/Foo.hs | mit | 1,392 | 0 | 8 | 434 | 153 | 106 | 47 | 14 | 1 |
{-# LANGUAGE Arrows #-}
module Agent
(
sugAgent
) where
import Control.Monad.Random
import Control.Monad.State.Strict
import FRP.BearRiver
import Common
import Environment
import Discrete
import Model
import Random
import Utils
---------------------------------------------------------------... | thalerjonathan/phd | thesis/code/concurrent/sugarscape/SugarScapeSTMTVar/src/Agent.hs | gpl-3.0 | 6,856 | 49 | 17 | 1,949 | 1,562 | 797 | 765 | 154 | 2 |
module ExprDoLetShadowVar where
main :: Int
main = unsafePerformIO main_
main_ :: IO Int
main_ = do { let { x :: a; x = x main } ; let { x :: Int; x = 1 } ; return x} | roberth/uu-helium | test/staticwarnings/ExprDoLetShadowVar.hs | gpl-3.0 | 170 | 0 | 10 | 44 | 77 | 44 | 33 | 5 | 1 |
{-# LANGUAGE NamedFieldPuns, RecordWildCards #-}
module RecordReadRef where
{-# ANN module "HLint: ignore Eta reduce" #-}
-- TODO(robinpalotai): define and refer separate bindings for accessors. Maybe
-- add an option to choose if the bindings will overlap, or if one should go
-- on the ::s. So can be switched dep... | robinp/haskell-indexer | kythe-verification/testdata/basic/RecordReadRef.hs | apache-2.0 | 1,603 | 0 | 8 | 319 | 150 | 95 | 55 | 13 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleContexts #-}
-- |Functions and types for working with Google Chrome extensions.
module Test.WebDriver.Chrome.Extension
( ChromeExtension
, loadExtension
, loadRawExtension
) where
import Data.ByteString.Lazy as LBS
import Data.ByteString.Base6... | plow-technologies/hs-webdriver | src/Test/WebDriver/Chrome/Extension.hs | bsd-3-clause | 1,072 | 0 | 7 | 176 | 173 | 104 | 69 | 18 | 1 |
module Distribution.Utils.NubList
( NubList -- opaque
, toNubList -- smart construtor
, fromNubList
, overNubList
, NubListR
, toNubListR
, fromNubListR
, overNubListR
) where
import Distribution.Compat.Binary
import Data.Monoid
import Prelude
import Distribution.Simple.Utils ... | trskop/cabal | Cabal/Distribution/Utils/NubList.hs | bsd-3-clause | 3,406 | 0 | 9 | 685 | 751 | 412 | 339 | 47 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Skell.Buffer where
import Control.Lens
import Control.Monad.State
import Data.Default
--import Yi.Rope (YiString)
--import qualified Yi.Rope as YS
-- | TODO:
data Buffer = Buffer
{ _filepath :: String
, _... | damianfral/Skell | src/Skell/Buffer.hs | bsd-3-clause | 1,623 | 0 | 9 | 433 | 388 | 208 | 180 | 31 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( makeApplication
, getApplicationDev
, makeFoundation
) where
import Import
import Settings
import Yesod.Auth
import Yesod.Default.Config
import Yesod.Default.Main
import Yesod.Default.Handlers
import Handler.Main
import Handler.CRUD.Parts
impor... | smurphy8/backoffice | Application.hs | bsd-3-clause | 2,750 | 0 | 12 | 539 | 474 | 258 | 216 | -1 | -1 |
import Root.B(foo)
import Root.C(bar)
main = do
putStrLn "Hello Haskell World!"
foo
bar
| codeboardio/mantra | test/test_resources/haskell/hs_several_files/Root/Main.hs | mit | 96 | 0 | 7 | 21 | 38 | 19 | 19 | 6 | 1 |
{-# LANGUAGE DeriveGeneric #-}
module Auto.G.D where
import Control.DeepSeq
import Data.Aeson
import GHC.Generics (Generic)
import Options
data D a = Nullary
| Unary Int
| Product String Char a
| Record { testOne :: Double
, testTwo :: Bool
, testThr... | dmjio/aeson | benchmarks/bench/Auto/G/D.hs | bsd-3-clause | 1,142 | 0 | 10 | 432 | 361 | 198 | 163 | 33 | 1 |
module ParseProgram where
import HsModule
import HsConstants(prelude_mod)
import SrcLoc(loc0)
--import HsName
import NamesEntities
import ParseMonad(parseFile)
import Unlit(readHaskellFile)
import ParserOptions
import WorkModule(analyzeModules,WorkModuleI(..))
import PPModules
import TypedIds(NameSpace(..),IdTy(..),n... | forste/haReFork | tools/base/ParseProgram.hs | bsd-3-clause | 1,609 | 0 | 11 | 249 | 408 | 222 | 186 | -1 | -1 |
module Classes where
class Foo f where
bar :: f a -> f b -> f (a, b)
baz :: f ()
baz = undefined
class Quux q where
(+++), (///) :: q -> q -> q
(***), logBase :: q -> q -> q
foo, quux :: q -> q -> q
| Helkafen/haddock | hoogle-test/src/classes/Classes.hs | bsd-2-clause | 230 | 0 | 10 | 84 | 116 | 66 | 50 | -1 | -1 |
{-# LANGUAGE PolyKinds, DataKinds, TypeFamilies, GADTs, MultiParamTypeClasses,
FunctionalDependencies, FlexibleInstances, UndecidableInstances, ExistentialQuantification #-}
module T6068 where
import Prelude hiding (Maybe, Nothing)
data Maybe :: * -> * where
Nothing :: Maybe a
data family Sing (a :: ... | forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/polykinds/T6068.hs | bsd-3-clause | 868 | 0 | 10 | 176 | 235 | 134 | 101 | -1 | -1 |
-- !!! Importing Class with duplicate member
module M where
import Prelude(Eq((==),(/=),(==)))
| siddhanathan/ghc | testsuite/tests/module/mod93.hs | bsd-3-clause | 96 | 0 | 6 | 13 | 27 | 22 | 5 | 2 | 0 |
{-| A Flappy bird/ helicopter game clone -}
module Flappy where
import FRP.Helm
import qualified FRP.Helm.Time as Time
import qualified FRP.Helm.Text as Text
import qualified FRP.Helm.Window as Window
import qualified FRP.Helm.Keyboard as Keys
import qualified FRP.Helm.Sample as S
import Control.Concurrent
import Co... | santolucito/Euterpea_Projects | Parallel/flappy.hs | mit | 3,561 | 1 | 13 | 906 | 1,361 | 734 | 627 | 70 | 1 |
{-# LANGUAGE RecordWildCards, TupleSections #-}
-- |
-- This module contains the graph-related checks of a proof, i.e. no cycles;
-- local assumptions used properly.
module ShapeChecks
( findCycles
, findEscapedHypotheses
, findUnconnectedGoals
, findUsedConnections
, calculateScopes
) where
im... | nomeata/incredible | logic/ShapeChecks.hs | mit | 2,751 | 0 | 19 | 561 | 845 | 441 | 404 | 58 | 1 |
{-# htermination (readOctMyInt :: (List Char) -> (List (Tup2 MyInt (List Char)))) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
data Tup2 a b = Tup2 a b ;
data Char = Char MyInt ;
data Integer = Integer MyInt ;
data MyInt = Pos Nat | Neg Nat ;
data Nat = Succ... | ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/readOct_1.hs | mit | 7,323 | 0 | 121 | 1,552 | 4,027 | 2,087 | 1,940 | 148 | 1 |
module Data.Matrix (
matrix, Matrix
) where
import Data.Matrix.Construct
| robertzk/matrix.hs | src/Data/Matrix.hs | mit | 77 | 0 | 4 | 13 | 20 | 13 | 7 | 3 | 0 |
module Rebase.Control.Monad.Trans.Class
(
module Control.Monad.Trans.Class
)
where
import Control.Monad.Trans.Class
| nikita-volkov/rebase | library/Rebase/Control/Monad/Trans/Class.hs | mit | 119 | 0 | 5 | 12 | 26 | 19 | 7 | 4 | 0 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
-- |
-- Provides the primitives necessary for building readers of
-- 'BS.ByteString' or ['Word8'] data.
-- A reader attempts to read from an input stream. The reader can succeed
-- or fail depending on the input stream and what it is attempting to read.
modu... | michaelgwelch/bacnet | src/BACnet/Reader/Core.hs | mit | 9,157 | 0 | 10 | 1,859 | 1,430 | 837 | 593 | 101 | 2 |
module Data.FixedWidth where
import Control.Applicative
import Control.Monad
import Data.Attoparsec.Text as StrictText
import Data.Attoparsec.Text.Lazy as LazyText
import qualified Data.ByteString.Lazy.Char8 as BL
import qualified Data.Text as T
import qualified Data.Text.Lazy as TL
import Data.Text.Lazy.Encoding (dec... | avantcredit/fixedwidth-hs | Data/FixedWidth.hs | mit | 1,118 | 0 | 16 | 267 | 378 | 198 | 180 | 27 | 3 |
{-# LANGUAGE TemplateHaskell #-}
------------------------------------------------------------------------------
-- | This module defines our application's state type and an alias for its
-- handler monad.
module Application where
------------------------------------------------------------------------------
import Ap... | cackharot/heub | app/Application.hs | mit | 697 | 0 | 9 | 63 | 81 | 50 | 31 | 11 | 0 |
removeNonUppercase :: [Char] -> [Char]
removeNonUppercase st = [c | c <- st, c `elem` ['A' .. 'Z']]
addThree :: Int -> Int -> Int -> Int
addThree x y z = x + y + z
-- TYPES:
-- Int: fixed size
-- Integer: arbitrary size
-- Float
-- Double
-- Bool
-- Char
-- TYPECLASSES:
-- Eq: interface for equalities (ex: ==)
-- ... | fabriceleal/learn-you-a-haskell | 03/types_and_typeclasses.hs | mit | 842 | 0 | 8 | 167 | 134 | 82 | 52 | 6 | 1 |
import Control.Monad.Trans.Reader
import Control.Monad.Trans.State
import Data.Functor.Identity
rDec :: Num a => Reader a a
rDec = ReaderT $ \a -> Identity (a - 1)
-- point free
rDec' :: Num a => Reader a a
rDec' = ReaderT $ return . (subtract 1)
rShow :: Show a => ReaderT a Identity String
rShow = ReaderT $ \a -> I... | mitochon/hexercise | src/haskellbook/ch26/ch26.end.hs | mit | 769 | 0 | 12 | 207 | 325 | 171 | 154 | 17 | 1 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.WebGLCompressedTextureS3TC
(pattern COMPRESSED_RGB_S3TC_DXT1_EXT,
pattern COMPRESSED_RGBA_S3TC_DXT1_EXT,
... | ghcjs/jsaddle-dom | src/JSDOM/Generated/WebGLCompressedTextureS3TC.hs | mit | 1,420 | 0 | 6 | 171 | 344 | 224 | 120 | 26 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UnicodeSyntax #-}
module Control.Monad.Trace.Class
( MonadTrace(..)
) where
import Control.Monad.List
import Control.Monad.Reader
import Control.Monad.Tr... | alephcloud/hs-trace | src/Control/Monad/Trace/Class.hs | mit | 2,936 | 23 | 9 | 533 | 981 | 513 | 468 | 64 | 0 |
module Let where
--Grammar for Let (concrete)
-- int ::= Integer
-- var ::= (Any variable name)
-- exp ::= Int Integer Literal
-- | exp `+` exp Addition
-- | `let` var `=` exp `in` exp Variable declaration
-- | var ... | siphayne/CS381 | scratch/let.hs | mit | 1,286 | 0 | 13 | 446 | 292 | 161 | 131 | 16 | 1 |
module LinkedList ( LinkedList
, fromList, toList, reverseLinkedList
, datum, next, isNil, nil, new) where
data LinkedList a = Nil
| Cons { datum :: a
, next :: LinkedList a }
deriving (Eq, Show)
new :: a -> LinkedList a -> LinkedList a
... | exercism/xhaskell | exercises/practice/simple-linked-list/.meta/examples/success-standard/src/LinkedList.hs | mit | 721 | 0 | 10 | 225 | 278 | 148 | 130 | 23 | 2 |
-- Global.hs
module GlobalLocal where
topLevelFunction :: Integer -> Integer
topLevelFunction x = x + woot + topLevelValue
where woot :: Integer
woot = 10
topLevelValue :: Integer
topLevelValue = 5
| Lyapunov/haskell-programming-from-first-principles | chapter_3/Global.hs | mit | 212 | 0 | 6 | 45 | 52 | 30 | 22 | 7 | 1 |
-- | RealSimpleMusic API.
-- Types and records PitchClass, Scale, Octave, Pitch,
-- IndexedPitch, and etc. implement components aggregated
-- by top-level Score type.
-- Convenience functions to
-- 1) generate scales: majorScale,
-- naturalMinorScale, melodicMinorScale, and
-- scaleFromEnhChromaticScale,... | tomtitchener/RealSimpleMusic | src/Music/RealSimpleMusic.hs | cc0-1.0 | 1,888 | 0 | 5 | 422 | 296 | 211 | 85 | 55 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : ./CspCASL/Symbol.hs
Description : semantic csp-casl symbols
Copyright : (c) Christian Maeder, DFKI GmbH 2011
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
-}
module ... | gnn/Hets | CspCASL/Symbol.hs | gpl-2.0 | 9,772 | 135 | 23 | 2,707 | 3,167 | 1,622 | 1,545 | 222 | 13 |
module Main where
import System.Environment(getArgs)
import Data.List (sortBy, sort)
import Data.Ord (comparing)
sortNumbers :: [(Float, String)] -> [(Float, String)]
sortNumbers = sort
processLine :: String -> String
processLine = unwords . map snd . sortNumbers . map (\s -> (read s, s)) . words
main :: IO ()
main... | cryptica/CodeEval | Challenges/91_SimpleSorting/main.hs | gpl-3.0 | 437 | 0 | 11 | 83 | 177 | 96 | 81 | 13 | 1 |
module HFlint.Internal.Utils
where
import Control.Exception ( Exception
, throw
)
{-# INLINE throwBeforeIf #-}
throwBeforeIf :: Exception e
=> e -> (a -> Bool)
-> (a -> b) -> a -> b
throwBeforeIf e cond f a =
if cond a then throw e else... | martinra/hflint | src/HFlint/Internal/Utils.hs | gpl-3.0 | 541 | 0 | 11 | 210 | 186 | 98 | 88 | 15 | 2 |
{-# LANGUAGE CPP, ScopedTypeVariables #-}
import Control.Applicative
import Control.Arrow
import Control.Concurrent (forkIO)
import Control.Concurrent.Chan
import Control.Concurrent.MVar
import Control.Concurrent.Process
import Control.Exception
impo... | kaoskorobase/mescaline | app/main.hs | gpl-3.0 | 24,271 | 0 | 28 | 6,441 | 6,223 | 3,197 | 3,026 | 393 | 8 |
module Lib where
import Utils.All
import Assets
import AssetUtils
import LanguageDef.Data.LanguageDef
import LanguageDef.ModuleLoader
import LanguageDef.Data.Function
import LanguageDef.Data.Expression
import LanguageDef.Utils.LocationInfo
import LanguageDef.Interpreter
import LanguageDef.Prover
import LanguageDe... | pietervdvn/ALGT2 | src/Lib.hs | gpl-3.0 | 418 | 0 | 5 | 48 | 85 | 55 | 30 | 15 | 0 |
{-# LANGUAGE DeriveGeneric, FlexibleInstances, OverloadedStrings, TypeFamilies #-}
module Kraken.Request.Balance
(
Balance(..)
) where
import qualified Kraken.Result.Balance as R
import Kraken.Request
import Kraken.Tools.ToURLEncoded
import GHC.Generics
data Balance = Balance deriving Generic
... | laugh-at-me/kraken-api | src/Kraken/Request/Balance.hs | gpl-3.0 | 441 | 1 | 8 | 78 | 87 | 52 | 35 | 13 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-apps-calendar/gen/Network/Google/Resource/Calendar/Calendars/Clear.hs | mpl-2.0 | 3,003 | 0 | 13 | 631 | 311 | 192 | 119 | 47 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-logging/gen/Network/Google/Resource/Logging/BillingAccounts/Operations/Get.hs | mpl-2.0 | 5,233 | 0 | 15 | 1,127 | 708 | 416 | 292 | 104 | 1 |
module Codewars.Kata.Addition where
-- What should add's type be?
add :: Num n => n -> n -> n
add = (+)
| ice1000/OI-codes | codewars/1-100/functional-addition.hs | agpl-3.0 | 105 | 0 | 7 | 23 | 35 | 21 | 14 | 3 | 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... | tensorflow/haskell | tensorflow-records/tests/Main.hs | apache-2.0 | 1,745 | 0 | 12 | 313 | 304 | 174 | 130 | 27 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Spark.Core.InternalStd.Observable(
asDouble,
localPackBuilder) where
import qualified Spark.Core.InternalStd.Column as C
import Spark.Core.Internal.DatasetStructures
import Spark.Core.Internal.FunctionsInternals
import Spark.Core.Internal.TypesGenerics(SQLTypeable)
import... | tjhunter/karps | haskell/src/Spark/Core/InternalStd/Observable.hs | apache-2.0 | 1,543 | 0 | 13 | 225 | 353 | 195 | 158 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module DistRemoteServer where
import Control.Concurrent (threadDelay)
import Control.Distributed.Process
import Control.Distributed.Process.Node
import Control.Distributed.Process.Closure
import Control.Monad (forever)
import Network.Transport.TCP ... | songpp/my-haskell-playground | src/DistRemoteServer.hs | apache-2.0 | 1,013 | 0 | 15 | 224 | 285 | 152 | 133 | 23 | 1 |
module Graphics.GL.Low.Texture (
-- | Textures are objects that contain image data that can be sampled by
-- a shader. An obvious application of this is texture mapping, but there
-- are many other uses for textures. The image data doesn't have to be an
-- image at all, it can represent anything.
--
-- Each sampler un... | evanrinehart/lowgl | Graphics/GL/Low/Texture.hs | bsd-2-clause | 10,633 | 0 | 12 | 2,064 | 1,748 | 934 | 814 | 152 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
-- | A module responsible for identifying occurrences of the
-- Walenty valency dictionary entri... | kawu/skladnica-with-walenty | src/NLP/Skladnica/Walenty/Mapping.hs | bsd-2-clause | 11,122 | 0 | 17 | 2,767 | 2,688 | 1,427 | 1,261 | 200 | 15 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
-- ------------------------------------------------------------
{- |
Module : Yuuko.Control.Arrow.IOStateListArrow
Copyright : Copyright (C) 2005-8 Uwe Schmidt
License : MIT
Maintainer : Uwe Schmidt (uwe\@fh-wedel.de)
Stability : exper... | nfjinjing/yuuko | src/Yuuko/Control/Arrow/IOStateListArrow.hs | bsd-3-clause | 5,702 | 75 | 15 | 1,936 | 2,165 | 1,149 | 1,016 | 112 | 1 |
module Diagrams.SVG.Fonts.WriteFont where
import Numeric ( showHex )
import Data.String ( fromString )
import Data.Char ( ord )
import Data.List ( intercalate )
import qualified Data.Set as Set
import qualified Data.Map as M
import Control.Monad ( forM_ )
import Text.Blaze.Svg11 ((!), toValue)
import qualified Tex... | diagrams/diagrams-input | src/Diagrams/SVG/Fonts/WriteFont.hs | bsd-3-clause | 5,800 | 0 | 42 | 1,805 | 1,602 | 809 | 793 | 115 | 9 |
{-
- Main.hs
- By Steven Smith
-}
module Main where
import System.Environment
import SpirV.Builder (buildModule)
import SpirV.PrettyPrint
import Program1
import Program2
main :: IO ()
main = do
args <- getArgs
let program = case args of
["1"] -> program1
["2"] -> program2
... | stevely/hspirv | test/src/Main.hs | bsd-3-clause | 377 | 0 | 13 | 106 | 102 | 55 | 47 | 14 | 3 |
module Scheme.DataType.Error where
import Scheme.DataType.Error.Eval (EvalError)
import Scheme.DataType.Error.Try (TryError)
import Scheme.DataType.Misc
import DeepControl.Monad.Except
--------------------------------------------------
-- Data
--------------------------------------------------
data ScmError = EXITE... | ocean0yohsuke/Scheme | src/Scheme/DataType/Error.hs | bsd-3-clause | 919 | 0 | 10 | 213 | 209 | 115 | 94 | 17 | 0 |
{-
Arr.hs, the Array representation used in Obsidian.
Joel Svensson
-}
module Obsidian.ArrowObsidian.Arr where
import Obsidian.ArrowObsidian.Exp
--------------------------------------------------------------------------------
data Arr a = Arr (IndexE -> a) Int -- Dynamic content, Static length
... | svenssonjoel/ArrowObsidian | Obsidian/ArrowObsidian/Arr.hs | bsd-3-clause | 950 | 0 | 12 | 291 | 326 | 168 | 158 | 17 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module HLiquid.Parser where
import Control.Monad (void)
import Text.Megaparsec
import Text.Megaparsec.Text
import Data.Text (pack)
import Data.Maybe (maybeToList)
import HLiquid.Lexer
import HLiquid.Syntax
import HLiquid.Parser.Variable
import HLiquid.Parser.Expression
fullFile ... | xldenis/hliquid | src/HLiquid/Parser.hs | bsd-3-clause | 4,543 | 0 | 17 | 1,026 | 1,492 | 737 | 755 | 123 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{- Main hrolldice executable -}
import System.Console.CmdArgs
import RollDice.Roller
import Data.List
data HRollDice = RollStatements {rolls :: [String]}
deriving (Show, Data, Typeable)
rollstatements = RollStatements {rolls = def &= args &= typ "dice_string" } &= summary "hrolld... | tarmstrong/hrolldice | RollDice.hs | bsd-3-clause | 721 | 0 | 10 | 123 | 212 | 106 | 106 | 17 | 1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, GADTs #-}
-- | The @esqueleto@ EDSL (embedded domain specific language).
-- This module replaces @Database.Persist@, so instead of
-- importing that module you should just import this one:
--
-- @
-- -- For a module using just esqueleto.
-- import Database.Esqueleto
-- ... | begriffs/esqueleto | src/Database/Esqueleto.hs | bsd-3-clause | 11,272 | 0 | 11 | 2,301 | 739 | 634 | 105 | 58 | 1 |
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE... | sgeop/micro | src/Models.hs | bsd-3-clause | 1,238 | 0 | 9 | 321 | 179 | 104 | 75 | 30 | 1 |
-- -----------------------------------------------------------------------------
--
-- NFA.hs, part of Alex
--
-- (c) Chris Dornan 1995-2000, Simon Marlow 2003
--
-- The `scanner2nfa' takes a `Scanner' (see the `RExp' module) and
-- generates its equivelent nondeterministic finite automaton. NFAs
-- are turned into D... | kumasento/alex | src/NFA.hs | bsd-3-clause | 8,675 | 31 | 21 | 2,071 | 2,577 | 1,318 | 1,259 | 157 | 4 |
{-|
Module : Raytracer
Description : Core
Copyright : (c) Konrad Dobroś, 2017
License : GPL-3
Maintainer : dobros.konrad@gmail.com
Stability : experimental
Portability : POSIX
This is an entry point to internals of Raytrace.
-}
{-# LANGUAGE BangPatterns #-}
module Raytracer (raytrace, roots) where
imp... | kd226/Raytrace | src/Raytracer.hs | bsd-3-clause | 7,847 | 1 | 17 | 1,593 | 2,455 | 1,254 | 1,201 | 137 | 4 |
-- Copyright (c) 2014 Eric McCorkle. All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
--
-- 1. Redistributions of source code must retain the above copyright
-- notice, this list of conditi... | emc2/enumeration | test/Tests/Data/Enumeration/Traversal.hs | bsd-3-clause | 6,807 | 2 | 14 | 1,423 | 2,593 | 1,605 | 988 | 148 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts,
FlexibleInstances #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUA... | edwardgeorge/monad-classes-logging | src/Control/Monad/Classes/Log.hs | bsd-3-clause | 4,652 | 0 | 14 | 1,118 | 1,310 | 693 | 617 | -1 | -1 |
-----------------------------------------------------------------------------
--
-- Pretty-printing of Cmm as C, suitable for feeding gcc
--
-- (c) The University of Glasgow 2004-2006
--
-- Print Cmm as real C, for -fvia-C
--
-- See wiki:Commentary/Compiler/Backends/PprC
--
-- This is simpler than the old PprAbsC, beca... | ilyasergey/GHC-XAppFix | compiler/cmm/PprC.hs | bsd-3-clause | 41,510 | 677 | 21 | 11,353 | 10,306 | 5,424 | 4,882 | 688 | 46 |
{-
Copyright 2013-2019 Mario Blazevic
License: BSD3 (see BSD3-LICENSE.txt file)
-}
-- | This module defines the 'Semigroup' => 'Factorial' => 'StableFactorial' classes and some of their instances.
--
{-# LANGUAGE Haskell2010, FlexibleInstances, Trustworthy #-}
module Data.Semigroup.Factorial (
-- * Cla... | blamario/monoid-subclasses | src/Data/Semigroup/Factorial.hs | bsd-3-clause | 17,869 | 0 | 14 | 4,753 | 6,806 | 3,544 | 3,262 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module PeerTrader.Investment.Database where
import Control.Monad.IO.Class (MonadIO, liftIO... | WraithM/peertrader-backend | src/PeerTrader/Investment/Database.hs | bsd-3-clause | 1,730 | 0 | 10 | 548 | 273 | 157 | 116 | 42 | 1 |
module CppUtils
where
import Data.List
import Control.Monad.State
import qualified Data.Set as S
import HeaderData
import Utils
isType :: String -> Bool
isType "virtual" = False
isType "enum" = False
isType "mutable" = False
isType "struct" = False
isType "union" = False
isType "inline" = False
isType _ ... | anttisalonen/cgen | src/CppUtils.hs | bsd-3-clause | 4,770 | 0 | 19 | 1,267 | 1,662 | 866 | 796 | 126 | 5 |
module Day21 where
import Control.Monad
import Data.Maybe
import Safe
type HitPoints = Int
type Damage = Int
type Armor = Int
type Gold = Int
data Attacker = Attacker HitPoints Damage Armor
data Item = Item String Gold Damage Armor
data Battle = Battle Role Attacker Attacker
data Role
= Player
| B... | patrickherrmann/advent | src/Day21.hs | bsd-3-clause | 2,359 | 0 | 13 | 560 | 1,007 | 531 | 476 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Views where
import Prelude hiding (head, div, id)
import Text.Blaze.Html5 hiding (map, details)
import Text.Blaze.Html5.Attributes hiding (name, title)
import Data.String (fromStrin... | kqr/cod2stats | Views.hs | bsd-3-clause | 4,392 | 0 | 22 | 1,284 | 1,521 | 746 | 775 | 94 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
module Database.Curry.Storage (
saveThread,
createNotifyer,
saveToFile,
loadFromFile,
) where
import Control.Concurrent (forkIO, threadDelay)
import Control.Concurrent.Async
... | tanakh/CurryDB | Database/Curry/Storage.hs | bsd-3-clause | 2,837 | 0 | 22 | 864 | 962 | 472 | 490 | 83 | 3 |
{-# LANGUAGE RecordWildCards #-}
-- | Main Toss logic.
module Pos.Chain.Ssc.Toss.Logic
( verifyAndApplySscPayload
, applyGenesisBlock
, rollbackSsc
, normalizeToss
, refreshToss
) where
import Universum hiding (id)
import Control.Lens (at)
import ... | input-output-hk/pos-haskell-prototype | chain/src/Pos/Chain/Ssc/Toss/Logic.hs | mit | 8,489 | 0 | 18 | 2,196 | 1,874 | 1,001 | 873 | -1 | -1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-}
module Carnap.Languages.ModalPropositional.Parser
(modalPropFormulaParser,worldTheoryPropFormulaParser, absoluteModalPropFormulaParser, relativeModalPropFormulaParser, absoluteModalPropFormulaPreParser)
where
import Carnap.Core.Data.Types ... | opentower/carnap | Carnap/src/Carnap/Languages/ModalPropositional/Parser.hs | gpl-3.0 | 8,349 | 0 | 19 | 2,545 | 2,019 | 1,058 | 961 | 117 | 3 |
{-# 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-ecs/gen/Network/AWS/ECS/DescribeContainerInstances.hs | mpl-2.0 | 5,824 | 0 | 14 | 1,216 | 774 | 460 | 314 | 98 | 1 |
{-# LANGUAGE QuasiQuotes, OverloadedStrings, TemplateHaskell #-}
{-# LANGUAGE CPP #-}
module Handler.Admin
( postAdminR
, postUnadminR
, postRealR
, postUnrealR
, postRealPicR
, postUnrealPicR
, postBlockR
, postUnblockR
, getMessagesR
, postCloseMessageR
, getAdminUsersR
... | danse/haskellers | tests/Handler/Admin.hs | bsd-2-clause | 2,880 | 0 | 21 | 633 | 795 | 394 | 401 | 74 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FlexibleContexts #-}
module Arbitrary (
InversibleGeotransform(..)
, positivePair
, (~==)
) where
import Control.Applicative ((<$>), (<*>), pure)
import Data.Fixed (Fixed, E3)
import Test.QuickCheck hiding (Fixed)
impor... | meteogrid/bindings-gdal | tests/Arbitrary.hs | bsd-3-clause | 1,668 | 0 | 14 | 434 | 487 | 268 | 219 | 49 | 1 |
{-# OPTIONS_GHC -cpp #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.GHC
-- Copyright : Isaac Jones 2003-2006
--
-- Maintainer : Isaac Jones <ijones@syntaxpolice.org>
-- Stability : alpha
-- Portability : portable
--
{- Copyright (c... | alekar/hugs | packages/Cabal/Distribution/Simple/GHC.hs | bsd-3-clause | 19,178 | 272 | 25 | 5,560 | 4,020 | 2,219 | 1,801 | 294 | 13 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-iam/gen/Network/AWS/IAM/ListPolicyVersions.hs | mpl-2.0 | 6,066 | 0 | 14 | 1,225 | 735 | 442 | 293 | 77 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Desugaring arrow commands
-}
module ETA.DeSugar.DsArrows ( dsProcExpr ) where
import ETA.DeSugar.Match
import ETA.DeSugar.DsUtils
import ETA.DeSugar.DsMonad
import ETA.HsSyn.HsSyn hiding (collectPatBinders, collectPa... | alexander-at-github/eta | compiler/ETA/DeSugar/DsArrows.hs | bsd-3-clause | 46,307 | 2 | 22 | 13,576 | 9,690 | 5,006 | 4,684 | 703 | 20 |
--
-- Patricia Fasel
-- Los Alamos National Laboratory
-- 1990 August
--
module PushParticle (pushParticle) where
import PicType
import Consts
import Data.Array--1.3
-- Phase IV: Particle push
-- Each particle has an initial velocity determined by its motion during the
-- previous timestep and is accelerated by t... | PaulBone/mercury | benchmarks/progs/pic/haskell/PushParticle.hs | gpl-2.0 | 1,940 | 28 | 14 | 458 | 710 | 406 | 304 | 37 | 5 |
<?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="ko-KR">
<title>Online Menu | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref ... | thc202/zap-extensions | addOns/onlineMenu/src/main/javahelp/org/zaproxy/zap/extension/onlineMenu/resources/help_ko_KR/helpset_ko_KR.hs | apache-2.0 | 972 | 78 | 66 | 159 | 413 | 209 | 204 | -1 | -1 |
import Test.Cabal.Prelude
main = cabalTest $ do
osx <- isOSX
-- On Travis OSX, Cabal shipped with GHC 7.8 does not work
-- with error "setup: /usr/bin/ar: permission denied"; see
-- also https://github.com/haskell/cabal/issues/3938
-- This is a hack to make the test not run in this case.
when os... | mydaum/cabal | cabal-testsuite/PackageTests/CustomDep/sandbox.test.hs | bsd-3-clause | 769 | 0 | 13 | 194 | 107 | 55 | 52 | 9 | 1 |
module MyDoc2Latex(latex) where
import MyDoc
import Pretty
beg t = text "\\begin{" <> text t <> char '}'
end t = text "\\end{" <> text t <> char '}'
cmd x t = beg x $$ t $$ end x
latex = Style
{ ppHeading = heading
, ppDecStr = txt
, ppCode = code
, ppList = list
, ppItem ... | forste/haReFork | tools/hs2html/MyDoc2Latex.hs | bsd-3-clause | 1,019 | 0 | 12 | 359 | 387 | 195 | 192 | 32 | 4 |
import Control.Concurrent.STM (STM, TVar, newTVar, readTVar, writeTVar, retry, atomically)
-- <<TChan
data TChan a = TChan (TVar (TVarList a))
(TVar (TVarList a))
type TVarList a = TVar (TList a)
data TList a = TNil | TCons a (TVarList a)
newTChan :: STM (TChan a)
newTChan = do
hole <- newTVar... | prt2121/haskell-practice | parconc/TChan.hs | apache-2.0 | 1,850 | 0 | 12 | 421 | 735 | 344 | 391 | 55 | 2 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE BangPatterns, NoImplicitPrelude #-}
-- Copyright (c) 2008, Ralf Hinze
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
--
-- * Redistributions ... | beni55/haste-compiler | libraries/ghc-7.10/base/GHC/Event/PSQ.hs | bsd-3-clause | 18,076 | 0 | 14 | 5,064 | 6,445 | 3,230 | 3,215 | 304 | 6 |
module A070 where
| siddhanathan/ghc | testsuite/tests/driver/A070.hs | bsd-3-clause | 18 | 0 | 2 | 3 | 4 | 3 | 1 | 1 | 0 |
{-# LANGUAGE DataKinds, MultiParamTypeClasses, FunctionalDependencies, TypeOperators, PolyKinds, TypeFamilies, FlexibleInstances, ScopedTypeVariables, UndecidableInstances, DefaultSignatures, FlexibleContexts, InstanceSigs #-}
{-# OPTIONS_HADDOCK prune #-}
module Data.MFoldable where
import Data.MGeneric
import Data... | RafaelBocquet/haskell-mgeneric | src/Data/MFoldable.hs | mit | 5,165 | 0 | 16 | 1,280 | 1,922 | 990 | 932 | 80 | 1 |
module VirtualMachine where
import Data.Char (chr)
import Data.List (findIndices)
import MachineCode
-- Machine Internals
type MemValue = Int
data Machine =
Machine {
prog :: ([Instruction], [Instruction]),
stack :: [MemValue],
st :: Int,
lb :: Int
}
deriving Show
-- Instruction Execution Functions
nex... | tombusby/dissertation | src/VirtualMachine.hs | mit | 10,059 | 142 | 17 | 2,219 | 4,785 | 2,565 | 2,220 | 209 | 6 |
module Tokens.Tokens (
Token(..),
TokenType(..),
FileLoc(..),
TokenLoc(..),
print_tokens
) where
import qualified Debug.Debug as Debug
import qualified Tools.Formatting as Formatting
data FileLoc = FileLoc Int Int
data TokenLoc = TokenLoc FileLoc FileLoc
instance Debug.DebugShow TokenLoc where
... | quintenpalmer/fresh | haskell/src/Tokens/Tokens.hs | mit | 1,987 | 0 | 15 | 506 | 583 | 310 | 273 | 58 | 2 |
module Graphics.Urho3D.Graphics.Internal.Drawable(
Drawable
, PODVectorDrawablePtr
, VectorSourceBatch
, vectorSourceBatchCntx
, SourceBatch(..)
, HasDistance(..)
, HasGeometry(..)
, HasMaterial(..)
, HasWorldTransform(..)
, HasNumWorldTransforms(..)
, HasGeometryType(..)
, FrameInfo(..)
, H... | Teaspot-Studio/Urho3D-Haskell | src/Graphics/Urho3D/Graphics/Internal/Drawable.hs | mit | 2,962 | 0 | 11 | 450 | 600 | 389 | 211 | -1 | -1 |
module Y2016.M07.D20.Solution where
import Control.Monad (join, (<=<))
import Data.Graph
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe (maybeToList, fromJust)
import Control.Logic.Frege ((<<-))
import qualified Data.MultiMap as MM
import Y2016.M07.D19.Exercise (Point2d)
import qualified Y20... | geophf/1HaskellADay | exercises/HAD/Y2016/M07/D20/Solution.hs | mit | 4,326 | 0 | 10 | 714 | 584 | 352 | 232 | -1 | -1 |
-- Generated by protobuf-simple. DO NOT EDIT!
module Types.Int64ListPacked where
import Control.Applicative ((<$>))
import Prelude ()
import qualified Data.ProtoBufInt as PB
newtype Int64ListPacked = Int64ListPacked
{ value :: PB.Seq PB.Int64
} deriving (PB.Show, PB.Eq, PB.Ord)
instance PB.Default Int64ListPacke... | sru-systems/protobuf-simple | test/Types/Int64ListPacked.hs | mit | 1,006 | 0 | 13 | 174 | 348 | 186 | 162 | 21 | 0 |
module Faker.LoremSpec where
import Faker.Lorem
import Helper
import Prelude hiding (words)
import Test.Hspec
spec :: Spec
spec = do
describe "word" $
deterministicOutput word
describe "words" $
deterministicOutput $ words 2
describe "character" $
determ... | gazay/faker | test/Faker/LoremSpec.hs | mit | 653 | 0 | 9 | 163 | 158 | 72 | 86 | 22 | 1 |
-- Logistic regression model from Anglican
-- (https://bitbucket.org/probprog/anglican-white-paper)
module LogReg where
import Control.Monad (replicateM)
import Numeric.Log
import Control.Monad.Bayes.Class
xs :: [Double]
xs = [-10, -5, 2, 6, 10]
labels :: [Bool]
labels = [False, False, True, True, True]
logisticR... | adscib/monad-bayes | models/LogReg.hs | mit | 920 | 0 | 17 | 224 | 390 | 204 | 186 | 26 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
import Data.Array
import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.IO as IO
import Text.Parsec
import Text.Parsec.Text
newtype Light = Brightness Int
deriving (Eq, Num, Show)
type Lights = Array Coordinates Light
data Instruction = I... | SamirTalwar/advent-of-code | 2015/AOC_06_2.hs | mit | 1,804 | 0 | 13 | 388 | 660 | 345 | 315 | 49 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Vaultaire.Collector.Ceilometer.Process
( processSample
, process
, retrieveMessage
, runCollector
, initState
, cleanup
, ackLast
, module Process
) where
import Control.Applicative
import ... | anchor/vaultaire-collector-ceilometer | lib/Vaultaire/Collector/Ceilometer/Process.hs | mit | 9,242 | 0 | 16 | 3,148 | 2,017 | 1,054 | 963 | 154 | 53 |
module Language.Haskell.GHC.HappyParser
( fullStatement
, fullImport
, fullDeclaration
, fullExpression
, fullTypeSignature
, fullModule
) where
import Parser
import SrcLoc
-- compiler/hsSyn
import HsSyn
-- compiler/utils
import OrdList
-- compiler/parser
import Lexer
fullStatement :: P... | gibiansky/IHaskell | ghc-parser/src-8.4/Language/Haskell/GHC/HappyParser.hs | mit | 802 | 0 | 11 | 131 | 215 | 119 | 96 | 24 | 1 |
module D20.Internal.Character.TalentLevel where
data TalentLevel
= Normal
| Improved
| Advanced
deriving (Show,Enum)
| elkorn/d20 | src/D20/Internal/Character/TalentLevel.hs | mit | 126 | 0 | 6 | 22 | 32 | 20 | 12 | 6 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module TitleForLink ( titleForLink ) where
import Network.HTTP.Conduit
import Data.Maybe
import qualified Data.Text as T
import qualified Data.ByteString.Lazy as B
import qualified Data.ByteString.Lazy.Char8 as C
import Text.HTML.TagSoup
import qualified Text.Regex as R
isLink :: ... | HackerspaceBielefeld/wheatley | src/TitleForLink.hs | mit | 1,235 | 0 | 13 | 355 | 344 | 180 | 164 | 26 | 2 |
{-# LANGUAGE DeriveTraversable, FlexibleInstances, MultiParamTypeClasses, RankNTypes, RecordWildCards #-}
module Games.Ambition where
import Control.Lens
import Control.Monad (join)
import Control.Monad.State.Strict
import qualified Data.List as L
import Data.Monoid (Sum(..), getSum)
import Data.Maybe (fromJust)
imp... | michaelochurch/jatek | Games/Ambition.hs | mit | 6,979 | 0 | 14 | 2,178 | 2,367 | 1,296 | 1,071 | -1 | -1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ViewPattern... | krisajenkins/kashmir | src/Kashmir/Github/Api.hs | epl-1.0 | 7,358 | 0 | 17 | 1,860 | 1,868 | 981 | 887 | -1 | -1 |
module ProjectData(ProjectData,
projectName, projectDir, projectCommits, projectFileMods,
buildProjectData) where
import Data.List as L
import Data.Map as M
import Git
data ProjectData
= ProjectData {
projectName :: String,
projectDir :: String,
projectCommits :: [... | dillonhuff/GitVisualizer | src/ProjectData.hs | gpl-2.0 | 551 | 0 | 10 | 129 | 151 | 91 | 60 | 16 | 1 |
module Amoeba.Middleware.Math.Geometry where
-- Inspired by https://github.com/ocharles/netwire-classics/blob/master/asteroids/Asteroids.hs
import qualified Linear as L
import qualified Control.Arrow as Arr
import Data.Maybe (fromJust)
import Data.Tuple (swap)
class Bounded i where
bounds :: i -> Point -> Bound
... | graninas/The-Amoeba-World | src/Amoeba/Middleware/Math/Geometry.hs | gpl-3.0 | 5,666 | 0 | 11 | 1,273 | 2,300 | 1,225 | 1,075 | 132 | 2 |
{-# LANGUAGE FlexibleInstances #-}
--hdbc and hdbc-odbc must be installed (from hackage)
module Database.Design.Ampersand.Prototype.Apps.RAP
(fillAtlas,picturesForAtlas,atlas2context,atlas2populations)
where
import Database.Design.Ampersand.Prototype.CoreImporter
import Database.Design.Ampersand.Prototype.AutoInstal... | DanielSchiavini/ampersand | src/Database/Design/Ampersand/Prototype/Apps/RAP.hs | gpl-3.0 | 19,041 | 0 | 42 | 6,025 | 4,499 | 2,324 | 2,175 | 270 | 10 |
module Main where
{ import qualified Server;
main = Server.main}
| ckaestne/CIDE | CIDE_Language_Haskell/test/WSP/Webserver/Main.hs | gpl-3.0 | 67 | 0 | 5 | 12 | 18 | 13 | 5 | 3 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.ServiceBroker
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozill... | brendanhay/gogol | gogol-servicebroker/gen/Network/Google/ServiceBroker.hs | mpl-2.0 | 2,767 | 0 | 6 | 504 | 213 | 158 | 55 | 47 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-admin-directory/gen/Network/Google/Resource/Admin/Customers/Chrome/Printers/Create.hs | mpl-2.0 | 5,464 | 0 | 20 | 1,278 | 792 | 461 | 331 | 118 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.