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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
import Types
import Genetic
import Runner
import Control.Monad.State
import Control.Lens
import System.Random
main = do
-- Create a prog with some haskell code
let prog = (def :: StateMachine) & code .~ (read "[+>++<].")
-- Execute the prog
let res =... | Zenol/brainf_gen | Main.hs | bsd-2-clause | 1,212 | 0 | 12 | 314 | 318 | 161 | 157 | 24 | 1 |
{-# LANGUAGE QuasiQuotes, TemplateHaskell, TypeFamilies #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module MySite
( MySite (..)
, MySiteRoute (..)
, resourcesMySite
, Handler
, Widget
, maybeAuth
, requireAuth
, module Yesod.Helpers.Static
, module Y... | Tarrasch/Nollform | MySite.hs | bsd-2-clause | 6,094 | 0 | 17 | 1,394 | 1,058 | 601 | 457 | 116 | 1 |
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
module Language.Drasil.CodeExpr (new, newWithNamedArgs, message,
msgWithNamedArgs) where
import Language.Drasil
import Language.Drasil.Chunk.Code (CodeIdea)
import Control.Lens ((^.))
new :: (Callable f, HasUID f, CodeIdea f) => f -> [Expr] -> Expr
new c ps = Ne... | JacquesCarette/literate-scientific-software | code/drasil-code/Language/Drasil/CodeExpr.hs | bsd-2-clause | 1,307 | 0 | 14 | 298 | 573 | 308 | 265 | 26 | 2 |
module Graphics.XHB.Connection.Types where
import Graphics.XHB.Shared
import Graphics.XHB.Connection.Open
import Control.Concurrent.STM
import Control.Concurrent
import System.IO
import Data.Word
import Data.Map(Map)
import Graphics.XHB.Gen.Xproto.Types
data Connection = Connection
{conn_error_queue :: TChan ... | aslatter/xhb | Graphics/XHB/Connection/Types.hs | bsd-3-clause | 1,021 | 0 | 10 | 185 | 211 | 131 | 80 | 27 | 0 |
-- | HTML elements
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RankNTypes #-}
module VirtualHom.Internal.Element where
import Control.Appli... | j-mueller/virtual-hom | src/VirtualHom/Internal/Element.hs | bsd-3-clause | 5,477 | 0 | 15 | 1,253 | 1,472 | 816 | 656 | 259 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
... | jeremyjh/free-agent | examples/famon/FreeAgent/Plugins/Nagios.hs | bsd-3-clause | 4,621 | 0 | 17 | 1,323 | 1,103 | 595 | 508 | 100 | 1 |
module BitD.Util.State ( modify'
) where
import qualified Control.Monad.State as State
modify' :: State.MonadState s m => (s -> s) -> m ()
modify' f = do v <- State.get
State.put $! f v
| benma/bitd | src/BitD/Util/State.hs | bsd-3-clause | 226 | 0 | 8 | 74 | 82 | 44 | 38 | 5 | 1 |
module Common.Utils (
if'
, (?)
, isqrt
, modifyArray
, initArray
, submasks
, combmasks
) where
import Control.Monad (forM_)
import Data.Array.MArray (MArray, newArray, readArray, writeArray)
import Data.Bits (shiftL, shiftR, complement, (.&.), (.|.))
import Data.Ix (Ix)
if' :: Bool -> t -> t -> t
{-# INLINE if' #... | foreverbell/project-euler-solutions | lib/Common/Utils.hs | bsd-3-clause | 1,307 | 0 | 14 | 321 | 610 | 340 | 270 | 39 | 2 |
{-# LANGUAGE PolyKinds #-}
module Data.Vinyl.Class.Implication where
import Data.Constraint
import Data.List.TypeLevel.Cmp (eqTProxy)
import Data.List.TypeLevel.Constraint (ListAll)
import Data.Proxy (Proxy (Proxy))
import Data.Tagged.Functo... | andrewthad/vinyl-vectors | src/Data/Vinyl/Class/Implication.hs | bsd-3-clause | 2,741 | 0 | 15 | 745 | 1,234 | 633 | 601 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Web.Spock.FrameworkSpecHelper where
import Test.Hspec
import Test.Hspec.Wai
import Data.Monoid
import Data.Word
import qualified Data.ByteString.Lazy.Char8 as BSLC
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import qualified Network.Wai as Wai
si... | nmk/Spock | test/Web/Spock/FrameworkSpecHelper.hs | bsd-3-clause | 5,541 | 0 | 20 | 1,892 | 1,269 | 664 | 605 | 118 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Data.IHO.S57.DSID where
import Control.Lens
import Data.Text (Text)
import Data.Data (Data)
import Data.Typeable (Typeable)
import Data.Tree
import Data.IHO.S57.Types
data DataStructure =
CartographicS... | alios/iho-s57 | library/Data/IHO/S57/DSID.hs | bsd-3-clause | 6,252 | 50 | 13 | 1,640 | 1,540 | 817 | 723 | 197 | 1 |
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS -fno-warn-orphans #-}
module Database.Sqroll.I... | pacak/sqroll | src/Database/Sqroll/Internal.hs | bsd-3-clause | 15,751 | 0 | 20 | 4,188 | 4,090 | 2,085 | 2,005 | 291 | 3 |
-- | Calculate 2D distance fields via the Grevera improved 8SED (Danielsson)
-- using small kernel sweeps across the data stored as a 2D array.
module Grevera8SEDFast1
(
grevera8SED
)
where
import Prelude as P
import Data.Vector.Unboxed as U
dX, dY, dXY :: Double
dX = 1
dY ... | tau-tao/DistField-2D | src/Grevera8SEDFast1.hs | bsd-3-clause | 1,633 | 0 | 14 | 389 | 483 | 250 | 233 | 25 | 1 |
module System.Keychain (getLogin, setLogin, askAndSetLogin) where
import Control.Monad
import Control.Monad.IO.Class
import System.Console.Haskeline
import System.Exit (ExitCode (..))
import System.Process (readProcess,
... | madjar/fhue | src/System/Keychain.hs | bsd-3-clause | 1,406 | 0 | 11 | 342 | 408 | 221 | 187 | 28 | 2 |
{-# LANGUAGE CPP, OverloadedStrings #-}
-- | DNS Resolver and generic (lower-level) lookup functions.
module CacheDNS.DNS.Resolver (
-- * Documentation
-- ** Configuration for resolver
FileOrNumericHost(..), ResolvConf(..), defaultResolvConf
-- ** Intermediate data type for resolver
, ResolvSeed, makeResol... | DavidAlphaFox/CacheDNS | src/CacheDNS/DNS/Resolver.hs | bsd-3-clause | 17,592 | 1 | 23 | 4,633 | 2,972 | 1,615 | 1,357 | 217 | 7 |
module AlphabetSoup where
import Rumpus
start :: Start
start = do
let n = 0.3
forM_ (take 100 $ cycle ['!'..'~']) $ \letter -> do
pos <- V3 <$> randomRange (-n,n)
<*> randomRange (-n,n)
<*> randomRange (-n,n)
let (V3 x y z) = pos
spawnC... | lukexi/rumpus | pristine/Room/AlphabetSoup.hs | bsd-3-clause | 820 | 0 | 25 | 398 | 298 | 146 | 152 | 22 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
-------------------------------------------------------------------------------
--
-- | Dynamic flags
--
-- Most flags are dynamic flags, which means they can change from compilation
-- to compilation using @OPTIONS_GHC@ pragm... | mettekou/ghc | compiler/main/DynFlags.hs | bsd-3-clause | 220,181 | 1 | 41 | 58,601 | 39,376 | 21,550 | 17,826 | -1 | -1 |
{-# LANGUAGE CPP, FlexibleContexts, ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-} -- for LFScan
{-# OPTIONS_GHC -Wall #-}
-- {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- TEMP
-- {-# OPTIONS_GHC -fno-warn-unused-binds #-} -- TEMP
----------------------------------------------------------------------
--... | conal/lambda-ccc | src/LambdaCCC/RadixSort.hs | bsd-3-clause | 3,778 | 52 | 22 | 842 | 1,304 | 708 | 596 | 52 | 1 |
{-# LANGUAGE NPlusKPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Chap01 where
import Prelude hiding (last, foldr, foldl, take, drop, zip, concat, inits, reverse)
-- | Ex 1.1
-- solution 1
k1 x = if k1 x == 0 then 1 else 0
-- solution 2
k2 x = not (k2 x)
-- solution 3
k3 x = k3 x + 1
-- solution 4
k4 x =... | cutsea110/aop | src/Chap01.hs | bsd-3-clause | 22,782 | 1 | 12 | 7,226 | 5,152 | 2,943 | 2,209 | 273 | 5 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TupleSections #-}
{-# LANGU... | mrakgr/futhark | src/Futhark/Representation/Kernels/Kernel.hs | bsd-3-clause | 47,575 | 0 | 20 | 13,296 | 13,732 | 6,845 | 6,887 | 950 | 14 |
module Language.Iso.Target.Scala where
import Language.Iso.App
import Language.Iso.Fls
import Language.Iso.Ite
import Language.Iso.Lam
import Language.Iso.Tru
import Language.Iso.Var
newtype Scala = Scala { runScala :: String }
instance Show Scala where
show (Scala ps) = ps
instance Var Scala ... | joneshf/iso | src/Language/Iso/Target/Scala.hs | bsd-3-clause | 798 | 0 | 12 | 224 | 274 | 145 | 129 | 26 | 0 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeFamilies #-}
module HMenu.Search (
createIndex,
search,
Index,
tokenCount,
Indexable(..)
) where
import ClassyPrelude hiding (Index)
import Control.DeepSeq
import Control... | Adirelle/hmenu | src/HMenu/Search.hs | bsd-3-clause | 3,635 | 0 | 16 | 1,316 | 1,286 | 649 | 637 | 97 | 2 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module VYPe15.Internal.AssemblyGenerator
( generateAssembly
)
where
import Prelude (Integral, Num, error, fromIntegral, negate)
import Control.Applicative (pure)
import Control... | Tr1p0d/VYPe15 | src/VYPe15/Internal/AssemblyGenerator.hs | bsd-3-clause | 12,875 | 0 | 17 | 4,095 | 4,467 | 2,318 | 2,149 | 372 | 19 |
{-# LANGUAGE AllowAmbiguousTypes #-}
-- | Different key/value serialization helpers abstracted over
-- 'MonadDB'.
module Pos.DB.Functions
(
-- * Encoded putting/getting
dbGetBi
, dbPutBi
-- * Decoding/encoding primitives and iteration related
, encodeWithKeyPrefix
,... | input-output-hk/pos-haskell-prototype | db/src/Pos/DB/Functions.hs | mit | 2,818 | 0 | 13 | 723 | 806 | 431 | 375 | -1 | -1 |
{-# LANGUAGE LambdaCase #-}
module Statistics.Graph
( graphF
, writeGraph
) where
import Universum hiding (unlines)
import Control.Foldl (Fold (..))
import Data.Graph.Inductive.Graph (Graph (mkGraph))
import Data.Graph.Inductive.PatriciaTree (Gr)
import Da... | input-output-hk/pos-haskell-prototype | tools/post-mortem/src/Statistics/Graph.hs | mit | 2,946 | 0 | 21 | 1,037 | 888 | 482 | 406 | 62 | 3 |
module Language.Entry (
main,
) where
import Language.Repl
main :: IO ()
main = repl
| airtial/hellolisp.scala | src/Language/Entry.hs | mit | 89 | 0 | 6 | 19 | 32 | 19 | 13 | 5 | 1 |
module Test where
import Test.QuickCheck
import Debug.Trace
import Arbitrary
import Data.Map (Map)
import qualified Data.Map as Map
import Text.ParserCombinators.Parsec
import Syntax
import Parser
import Printer
bags :: Gen (Map Int Int)
bags = do
let positivePairs = arbitrary :: Gen (Int, Positive Int)
list <... | jff/TeLLer | tests/Test.hs | gpl-3.0 | 623 | 0 | 14 | 124 | 225 | 119 | 106 | 22 | 2 |
{-# LANGUAGE RankNTypes #-}
{-| Implementation of a reader for the job queue.
-}
{-
Copyright (C) 2013 Google Inc.
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 mu... | mbakke/ganeti | src/Ganeti/JQScheduler.hs | bsd-2-clause | 24,689 | 0 | 20 | 5,658 | 5,915 | 2,982 | 2,933 | -1 | -1 |
module Cauterize.Dynamic.Meta.Types
( MetaType(..)
, MetaHeader(..)
) where
import Cauterize.Dynamic.Types
import Data.Word
data MetaHeader =
MetaHeader { metaLength :: Integer
, metaTag :: [Word8]
}
deriving (Show, Eq, Ord)
data MetaType =
MetaType { unMetaType :: CautType }
... | cauterize-tools/cauterize | src/Cauterize/Dynamic/Meta/Types.hs | bsd-3-clause | 345 | 0 | 9 | 85 | 104 | 64 | 40 | 12 | 0 |
-- (c) The University of Glasgow 2006
-- (c) The GRASP/AQUA Project, Glasgow University, 1998
--
-- Type - public interface
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | Main functions for manipulating types and type-related things
module Type (
-- Note some of this is just re-exports from T... | TomMD/ghc | compiler/types/Type.hs | bsd-3-clause | 66,827 | 0 | 14 | 18,112 | 13,086 | 6,880 | 6,206 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.Foldable
-- Copyright : Ross Paterson 2005
-- License : BSD-style (see the LICENSE file in the distribution)
--
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : portabl... | alekar/hugs | packages/base/Data/Foldable.hs | bsd-3-clause | 9,271 | 69 | 15 | 2,050 | 2,590 | 1,394 | 1,196 | 140 | 2 |
{-# LANGUAGE Haskell2010 #-}
{-# LINE 1 "Control/Concurrent/STM/TMVar.hs" #-}
{-# LANGUAGE CPP, DeriveDataTypeable, MagicHash, UnboxedTuples #-}
{-# LANGUAGE Trustworthy #-}
-----------------------------------------------------------------------------
-- |
-- Module ... | phischu/fragnix | tests/packages/scotty/Control.Concurrent.STM.TMVar.hs | bsd-3-clause | 4,914 | 0 | 14 | 1,100 | 1,067 | 538 | 529 | 87 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RankNTypes #-}
-- | Some helpers for parsing data out of a raw WAI 'Request'.
module Network.Wai.Parse
( parseHttpAccept
, parseRequestBody
, RequestBodyType (..)
, ... | frontrowed/wai | wai-extra/Network/Wai/Parse.hs | mit | 14,689 | 0 | 26 | 5,224 | 4,683 | 2,356 | 2,327 | 352 | 8 |
<?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="sr-CS">
<title>Passive Scan Rules - Alpha | ZAP Extension</title>
<maps>
<homeID>top</homeI... | 0xkasun/security-tools | src/org/zaproxy/zap/extension/pscanrulesAlpha/resources/help_sr_CS/helpset_sr_CS.hs | apache-2.0 | 988 | 89 | 29 | 163 | 405 | 216 | 189 | -1 | -1 |
{-
Copyright 2015 Google Inc. 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 applicable law or a... | Ye-Yong-Chi/codeworld | codeworld-base/src/System/IO.hs | apache-2.0 | 733 | 0 | 4 | 136 | 23 | 17 | 6 | 4 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE NoImplicitPrelude #-}
#ifdef FAY
import Prelude
#else
this is invalid code
#endif
#ifdef FAY
main :: Fay ()
#endif
#ifndef FAY
more invalid code
#if FAY
this should not be used
#endif
#else
#if FAY
main = print True
#else
invalid and nested
#endif
#endif
| fpco/fay | tests/CPP.hs | bsd-3-clause | 316 | 1 | 6 | 78 | 52 | 28 | 24 | -1 | -1 |
import Control.Concurrent.STM
main = do
x <- atomically $ do
t <- newTVar 1
writeTVar t 2
((readTVar t >> retry) `orElse` return ()) `orElse` return ()
readTVar t
print x
| gridaphobe/packages-stm | tests/stm064.hs | bsd-3-clause | 211 | 1 | 16 | 71 | 94 | 43 | 51 | 8 | 1 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.C
-- Copyright : (c) The FFI task force 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : [email protected]
--... | alexander-at-github/eta | libraries/base/Foreign/C.hs | bsd-3-clause | 716 | 0 | 5 | 130 | 62 | 47 | 15 | 9 | 0 |
module Foo where
import Prelude hiding (putStr, putStrLn)
import qualified System.IO (putStr, putStrLn)
import Data.Maybe
import qualified ValidHoleFits
ps :: String -> IO ()
ps = putStrLn
a :: Int -> IO Int
a _ = return 1
b :: Int -> IO Int
b _ = return 2
c :: Int -> IO Int
c _ = do { x <- a 0
; y <- _ x
... | sdiehl/ghc | testsuite/tests/typecheck/should_compile/valid_hole_fits.hs | bsd-3-clause | 612 | 0 | 8 | 166 | 290 | 157 | 133 | 29 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, NoImplicitPrelude
, MagicHash
, UnboxedTuples
#-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.TopHandler
-- Copyright : (c) The University of G... | beni55/haste-compiler | libraries/ghc-7.10/base/GHC/TopHandler.hs | bsd-3-clause | 7,332 | 0 | 20 | 1,749 | 945 | 507 | 438 | 105 | 6 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE BangPatterns #-}
module Main where
import Control.Exception (throwIO, throw)
import Control.Monad
import qualified Data.ByteString as S
--import Data.ByteString.Char8 (ByteString)
import qualified Data.ByteString.Char8 as B (unpack)
import qualified... | creichert/wai | warp/bench/Parser.hs | mit | 7,847 | 0 | 18 | 2,191 | 1,894 | 990 | 904 | 141 | 4 |
module Tach.Impulse.Types.TimeValueSeriesSpec (main, spec) where
import Tach.Impulse.Types.TimeValueSeries
import Tach.Impulse.Types.TimeValue
import Control.Applicative
import qualified Data.Sequence as S
import Test.Hspec
import Test.QuickCheck
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "TVSim... | smurphy8/tach | core-types/tach-impulse-series-types/test/Tach/Impulse/Types/TimeValueSeriesSpec.hs | mit | 848 | 0 | 13 | 175 | 270 | 150 | 120 | 20 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module UserInputParserSpec (spec) where
import Test.Hspec
import Test.QuickCheck
import Control.Exception (evaluate)
import Data.ByteString.Char8 hiding (filter, length)
import Test.Hspec.Attoparsec
import Pipes.ByteString hiding (filter, length, lines)
import Prelude hiding (readFi... | tort/mud-drifter | test/UserInputParserSpec.hs | mit | 2,953 | 0 | 13 | 455 | 868 | 460 | 408 | 43 | 1 |
{-# LANGUAGE JavaScriptFFI #-}
-- | FIXME: doc
module GHCJS.Electron.BrowserWindow where
| taktoa/ghcjs-electron | src/GHCJS/Electron/BrowserWindow.hs | mit | 90 | 0 | 3 | 12 | 9 | 7 | 2 | 2 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
module ForwardVector where
import Numeric.AD.Internal.Forward.Double
import Numeric.AD.Internal.On
import Numeric.AD.Mode
import Numeric.AD.Internal.Iden... | fhaust/aer-utils | src/ForwardVector.hs | mit | 3,403 | 0 | 15 | 862 | 1,384 | 739 | 645 | 81 | 1 |
module Main where
import Control.Concurrent.MVar (newMVar)
import Server.Web (runServer)
import Server.Types (newServerState)
import Server.ProgramOptions (parseOptions)
main :: IO ()
main = do
programOptions <- parseOptions
serverState <- newMVar newServerState
runServer serverState... | best-coloc-ever/twitch-cast | streamer/app/Main.hs | mit | 336 | 0 | 8 | 68 | 85 | 46 | 39 | 10 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Writer.Formats.Acacia
-- License : MIT (see the LICENSE file)
-- Maintainer : Felix Klein ([email protected])
--
-- Transforms a specification to the Acacia+ format.
--
---------------------------------... | reactive-systems/syfco | src/lib/Writer/Formats/Acacia.hs | mit | 3,221 | 0 | 19 | 825 | 934 | 492 | 442 | 61 | 7 |
module Interpreter.DataTypes
( Frame
, Environment(..)
, Expression(..)
, addBinding
, lookupValue
, extendEnvironment
, pairToList
) where
import qualified Data.Map as Map
-- A frame contains mappings from variable names to Lisp values.
type Frame = Map.Map String Expression
-- An Environment is a frame coupled with... | IvanIvanov/haskell-lisp-interpreter | src/DataTypes.hs | mit | 3,302 | 0 | 11 | 674 | 853 | 449 | 404 | 68 | 2 |
-- TODO: Write module docs.
module Main where
import Lib
main :: IO ()
main = do
someFunc
| xnil/ply | app/Main.hs | mit | 96 | 0 | 6 | 24 | 26 | 15 | 11 | 5 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Graph.JSON.Cypher.Read.Rows where
import Data.Aeson
import Data.Aeson.Types (Parser)
import qualified Data.ByteString.Lazy.Char8 as BL
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe (fromJust, mapMaybe)
import Data.Set (Set)
import qualified Dat... | geophf/1HaskellADay | exercises/HAD/Graph/JSON/Cypher/Read/Rows.hs | mit | 3,740 | 0 | 10 | 747 | 844 | 461 | 383 | 46 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-ipv6add.html
module Stratosphere.ResourceProperties.EC2LaunchTemplateIpv6Add where
import... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/EC2LaunchTemplateIpv6Add.hs | mit | 1,429 | 0 | 12 | 157 | 173 | 100 | 73 | 22 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude, BangPatterns, MagicHash, UnboxedTuples #-}
module Data.Word.Word24.Internal
( Word24(..)
, byteSwap24
) where
import Data.X24Bit.Internal
import GHC.Word
import Data.Bits
import Data.Maybe
import GHC.Base
import GHC.Enum
import GHC.Num
import ... | nickspinale/24-bit | src/Data/Word/Word24/Internal.hs | mit | 6,764 | 0 | 15 | 2,119 | 1,841 | 956 | 885 | 141 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-route53-aliastarget.html
module Stratosphere.ResourceProperties.Route53RecordSetAliasTarget where
import Str... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/Route53RecordSetAliasTarget.hs | mit | 2,676 | 0 | 13 | 268 | 356 | 202 | 154 | 34 | 1 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
module FRP.Yampa.SDL.Graphic where
import Control.Monad (void)
import Graphics.UI.SDL as SDL
import Graphics.UI.SDL.TTF
type Screen = SDL.Surface
newtype Graphic = Graphic { paintGraphic :: Screen -> IO () }
type GraphicOpt = Rect -> Gr... | scan/yampa-sdl | src/FRP/Yampa/SDL/Graphic.hs | mit | 3,094 | 0 | 13 | 966 | 1,170 | 619 | 551 | 83 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-spotfleet-spotfleetrequestconfigdata-launchspecifications-networkinterfaces-privateipaddresses.html
modul... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/EC2SpotFleetPrivateIpAddressSpecification.hs | mit | 2,706 | 0 | 13 | 213 | 266 | 152 | 114 | 28 | 1 |
-- Copyright (c) 2014 Curtis Gagliardi
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish... | ethercrow/yi-config | modules/FuzzyMatchScore.hs | gpl-2.0 | 2,852 | 0 | 19 | 722 | 631 | 333 | 298 | 39 | 4 |
-----------------------------------------------------------------------------
-- |
-- Module : Hie.Language.Haskell.Exts.Annotated.ExactPrint
-- Copyright : (c) Niklas Broberg 2009
-- License : BSD-style (see the file LICENSE.txt)
--
-- Maintainer : Niklas Broberg, [email protected]
-- Stabili... | monsanto/hie | Hie/Language/Haskell/Exts/Annotated/ExactPrint.hs | gpl-3.0 | 64,542 | 0 | 25 | 24,374 | 20,500 | 9,563 | 10,937 | -1 | -1 |
module Lib where
import Data.Char
half :: Fractional a => a -> a
half x = x / 2
capitalizeWord :: String -> String
capitalizeWord [] = []
capitalizeWord (c:cs) = toUpper c : cs
| nirvinm/Solving-Exercises-in-Haskell-Programming-From-First-Principles | Testing/quickcheck-testing/src/Lib.hs | gpl-3.0 | 180 | 0 | 7 | 38 | 80 | 42 | 38 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- | This is a simple library to query the Linux UPower daemon (via
-- DBus) for battery information. Currently, it only retrieves
-- information for the first battery it finds.
module System.Information.Battery (
-- * Types
BatteryContext,
BatteryInfo(..),
BatteryState(..),
... | Fizzixnerd/xmonad-config | site-haskell/src/System/Information/Battery.hs | gpl-3.0 | 8,528 | 0 | 14 | 3,014 | 1,412 | 782 | 630 | 136 | 8 |
-- Module : PDBparse
-- Copyright : (c) 2012 Grant Rotskoff
-- License : GPL-3
--
-- Maintainer : [email protected]
-- Stability : experimental
module PDButil.PDBparse where
import Data.ByteString.Char8 (ByteString)
import qualified Data.ByteString.Char8 as B
import System.IO (FilePath)
data Atom = Atom { n... | rotskoff/Haskell-PDB-Utilities | PDBtools/PDButil/PDBparse.hs | gpl-3.0 | 3,279 | 0 | 14 | 1,051 | 870 | 465 | 405 | 58 | 1 |
{-# OPTIONS_GHC -F -pgmF htfpp #-}
module Test.StandOff.DataXML (htf_thisModulesTests) where
import Test.Framework
import StandOff.TextRange
import Test.StandOff.TestSetup
test_elementImplementsTextRange = do
assertEqual 100 (start d)
assertEqual 200 (end d)
assertEqual (100, 200) (spans d)
assertEqual ((99... | lueck/standoff-tools | testsuite/Test/StandOff/DataXML.hs | gpl-3.0 | 1,361 | 0 | 12 | 249 | 646 | 327 | 319 | 29 | 1 |
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Wiretap.Main where
im... | ucla-pls/wiretap-tools | src/Wiretap/Main.hs | gpl-3.0 | 21,568 | 0 | 36 | 7,185 | 5,493 | 2,767 | 2,726 | 435 | 15 |
{---------------------------------------------------------------------}
{- Copyright 2015, 2016 Nathan Bloomfield -}
{- -}
{- This file is part of Feivel. -}
{- ... | nbloomf/feivel | src/Feivel/Grammar/ZZMod.hs | gpl-3.0 | 1,804 | 0 | 8 | 672 | 168 | 110 | 58 | 20 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-cloudiot/gen/Network/Google/Resource/CloudIOT/Projects/Locations/Registries/Get.hs | mpl-2.0 | 5,066 | 0 | 15 | 1,113 | 700 | 410 | 290 | 105 | 1 |
-- {-# LANGUAGE #-}
{-# OPTIONS_GHC -Wall -fno-warn-missing-signatures #-}
----------------------------------------------------------------------
-- |
-- Module : Shady.Play.CseTest
-- Copyright : (c) Conal Elliott 2009
-- License : AGPLv3
--
-- Maintainer : [email protected]
-- Stability : experiment... | sseefried/shady-gen | src/Shady/Play/CseTest.hs | agpl-3.0 | 2,553 | 0 | 11 | 718 | 575 | 340 | 235 | 45 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
module Test.Types where
import Control.Concurrent.STM
import Prelude hiding (min,max)
import qualified Prelude as Pr
import Data.RTree.Bounds
import Data.RTree.TStore
data Vec2F = Vec2F
{ x :: Float
, y :: Float
} der... | johnpmayer/concurrent-rtree | Test/Types.hs | agpl-3.0 | 2,100 | 0 | 17 | 526 | 986 | 498 | 488 | 67 | 0 |
module GameServer.State where
import Control.Concurrent.STM
import Control.Monad.Except
import Control.Monad.State
import Control.Monad.Trans (MonadIO(..))
import Data.Aeson (FromJSON, ToJSON)
import qualified Data.Map as Map
import Data.Text (Text)
import GHC.Generics (Generic)
import GHC.Natural
import System.Random... | abailly/acquire | game-server/src/GameServer/State.hs | apache-2.0 | 3,979 | 0 | 18 | 908 | 1,299 | 681 | 618 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DataKinds #-}
module Novelist.FSopsSpec where
-- base
import Control.Monad (void)
-- containers
import qualified Data.Map.Lazy as Map
-- Hspec
import Test.Hspec (Spec, describe, it, shouldBe, Expectation)
-- microlens-ghc
im... | kgadek/novelist | test/Novelist/FSopsSpec.hs | bsd-2-clause | 5,999 | 0 | 28 | 2,354 | 1,389 | 704 | 685 | -1 | -1 |
-- | __Warning: internal module!__ This means that the API may change
-- arbitrarily between versions without notice. Depending on this module may
-- lead to unexpected breakages, so proceed with caution!
--
-- This module provides debugging helpers for inspecting 'Doc's.
--
-- Use the @pretty-simple@ package to get a ... | quchen/prettyprinter | prettyprinter/src/Prettyprinter/Internal/Debug.hs | bsd-2-clause | 2,963 | 0 | 13 | 836 | 679 | 370 | 309 | 52 | 13 |
module Drasil.GlassBR.Body where
import Control.Lens ((^.))
import Language.Drasil hiding (organization)
import qualified Drasil.SRS as SRS
import Drasil.DocumentLanguage (AppndxSec(..), AuxConstntSec(..),
DocSection(..), GSDSec(GSDProg2), GSDSub(UsrChars, SystCons), --DocSection uses everything but Verbatim
Intro... | JacquesCarette/literate-scientific-software | People/Dan/Presentations/CommitteeMeeting4/BodyNew.hs | bsd-2-clause | 32,942 | 0 | 26 | 4,930 | 9,169 | 5,188 | 3,981 | 565 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Application.HXournal.NetworkClipboard.Server.Type
import Application.HXournal.NetworkClipboard.Server.Yesod ()
import Yesod
import qualified Data.Map as M
import Data.Acid
-- import Data.Xournal.Simple
-- import Data.Strict.Tuple
-- import Data.UUID.V5
i... | wavewave/hxournalclip-server | exe/hxournalclip-server.hs | bsd-2-clause | 718 | 0 | 11 | 100 | 110 | 66 | 44 | 13 | 1 |
module Text.FastAleck.Text
( module Text.FastAleck
, fastAleck
) where
--------------------------------------------------------------------------------
import Data.Text (Text)
import qualified Data.Text.Encoding as T
----------------------------------------------------------... | jaspervdj/fast-aleck-hs | src/Text/FastAleck/Text.hs | bsd-3-clause | 642 | 0 | 8 | 104 | 93 | 58 | 35 | 10 | 1 |
{-# LANGUAGE CPP, RecordWildCards, NamedFieldPuns, RankNTypes #-}
-- | Planning how to build everything in a project.
--
module Distribution.Client.ProjectPlanning (
-- * elaborated install plan types
ElaboratedInstallPlan,
ElaboratedConfiguredPackage(..),
ElaboratedPlanPackage,
ElaboratedSharedCon... | headprogrammingczar/cabal | cabal-install/Distribution/Client/ProjectPlanning.hs | bsd-3-clause | 100,058 | 0 | 28 | 28,841 | 12,842 | 7,008 | 5,834 | 1,357 | 7 |
module Htads where
import System.IO
import qualified Data.Char as Char
import qualified Data.Map.Strict as Map
import qualified Data.List as List
import qualified Data.Text as Text
import qualified Data.Maybe as Maybe
import qualified Data.Set as Set
import GHC.Generics
-- local module
import Alias
import qualified U... | Danl2620/htads | src/Htads.hs | bsd-3-clause | 9,945 | 0 | 17 | 2,673 | 3,143 | 1,643 | 1,500 | 222 | 9 |
module TicTacToe.Game where
import qualified TicTacToe.Data.Board as B
import qualified TicTacToe.Data.Move as M
import qualified TicTacToe.Data.Token as T
import qualified TicTacToe.Internal.Matrix as MX
import qualified TicTacToe.Internal.Move as IM
startingBoard :: B.Board
startingBoard = B.Board... | rodamber/haskell-tic-tac-toe | src/TicTacToe/Game.hs | bsd-3-clause | 460 | 0 | 8 | 71 | 122 | 76 | 46 | 10 | 1 |
{-
Copyright 2013-2019 Mario Blazevic
License: BSD3 (see BSD3-LICENSE.txt file)
-}
-- | This module defines the monoid transformer data type 'Concat'.
--
{-# LANGUAGE Haskell2010 #-}
module Data.Monoid.Instances.Concat (
Concat, concatenate, extract, force
)
where
import Control.Applicative -- (App... | blamario/monoid-subclasses | src/Data/Monoid/Instances/Concat.hs | bsd-3-clause | 12,540 | 0 | 16 | 3,481 | 5,428 | 2,822 | 2,606 | 243 | 2 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude, ScopedTypeVariables, MagicHash #-}
{-# LANGUAGE BangPatterns #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.List
-- Copyright : (c) The University of Glasgow 1... | sdzivanovich/cs1699_deliverable5 | MyList.hs | bsd-3-clause | 23,442 | 0 | 16 | 6,338 | 3,613 | 2,085 | 1,528 | 252 | 3 |
module Lava.Signal where
import Lava.Ref
import Lava.Sequent
import Lava.Error
import Data.List
( transpose
)
----------------------------------------------------------------
-- Signal, Symbol, S
newtype Signal a
= Signal Symbol
newtype Symbol
= Symbol (Ref (S Symbol))
data S s
= Bool Bool
| Inv ... | dfordivam/lava | Lava/Signal.hs | bsd-3-clause | 8,701 | 0 | 15 | 3,009 | 4,024 | 1,937 | 2,087 | 256 | 20 |
module Lib where
someFunc :: IO ()
someFunc = putStrLn "someFunc"
data CatA = AA
| AB
deriving (Eq, Show)
type FA = (CatA -> CatA)
data CatB = BA
| BB
deriving (Eq, Show)
type GB = (CatB -> CatB)
f :: CatA -> CatA
f AA = AB
f AB = AA
g :: CatB -> CatB
g BA = BB
g BB = ... | matthewfranglen/category-set-graph | src/Lib.hs | bsd-3-clause | 523 | 0 | 7 | 184 | 217 | 118 | 99 | 25 | 2 |
import System.Environment
import System.Directory
import System.IO
import qualified Data.Text as T
import qualified Data.Text.Lazy as L
import qualified Data.Text.Lazy.IO as LIO
import qualified Data.Map as M
import qualified Data.List as DL
import Control.Monad
import Parser
import ParserTypes
import Interpretor
... | planrich/abstractmachines | src/Main.hs | bsd-3-clause | 3,221 | 0 | 21 | 1,230 | 988 | 468 | 520 | 100 | 3 |
module Dang where
| elliottt/dang | src/Dang.hs | bsd-3-clause | 18 | 0 | 2 | 3 | 4 | 3 | 1 | 1 | 0 |
module Day1 (run) where
import Data.Char
import Data.List.Split
dirs :: [(Int, Int)]
dirs = [(0, 1), (1, 0), (0, -1), (-1, 0)]
start = ([(0, 0)], 0)
parse :: String -> (Int, Int)
parse = head . parseSaving
parseSaving :: String -> [(Int, Int)]
parseSaving = fst . foldl (flip move) start . splitOn ", ... | ulyssesp/AoC | src/day1.hs | bsd-3-clause | 1,907 | 0 | 11 | 490 | 712 | 405 | 307 | -1 | -1 |
{-# LANGUAGE PolyKinds #-}
module ODE where
import FAD
import Taylor
import Data.Number.IReal -- .Rounded
import Data.Number.IReal(VarPrec(..))
import Data.Number.IReal.Auxiliary
import Data.Maybe
import Plot
{-
A solver for the initial value problem
x' = f t x, t >= t0
x t0 = x0
using a Taylor method, combine... | sydow/ireal | applications/ODE.hs | bsd-3-clause | 2,803 | 0 | 16 | 745 | 802 | 426 | 376 | 34 | 1 |
-- HilbertCurve.hs
{-# OPTIONS_GHC -Wall #-}
module Lab2.HilbertCurve( makeHilbertCurve
, drawHilbertCurve
, xy2d
, d2xy
) where
import Graphics.Gloss
import Data.Bits
import Lab2.HilbertCoord
drawHilbertCurve :: Int -... | ghorn/cs240h-class | Lab2/HilbertCurve.hs | bsd-3-clause | 2,600 | 0 | 16 | 1,006 | 1,165 | 628 | 537 | 61 | 2 |
{-# LANGUAGE DeriveGeneric #-}
module Tutorial.Chapter10.Martian (Martian(..), run) where
import Tutorial.Chapter10.Rock (Rock)
import Tutorial.Chapter10.Plant (Plant)
import qualified Tutorial.Chapter10.Plant as P (tryMating)
import Tutorial.Chapter10.Bug (Bug)
import qualified Tutorial.Chapter10.Bug as B (tryMating)... | mhwombat/creatur-examples | src/Tutorial/Chapter10/Martian.hs | bsd-3-clause | 1,506 | 0 | 9 | 242 | 545 | 293 | 252 | 38 | 1 |
module EFS(EFS,
Proof,
ProofLine,
Formula,
JustificationType(..),
LineNo,
sProof,
proof,
isEmpty,
justification,
sentence,
rest,
firstLine,
letter,
var,
ax... | dillonhuff/EFSChecker | src/EFS.hs | bsd-3-clause | 2,343 | 0 | 10 | 683 | 789 | 436 | 353 | 90 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
module V1.Api (Api, server) where
import Servant
import qualified V1.Projects.Api as Projects (Api, server)
type Api = "projects" :> Projects.Api
server :: Server Api
server = Projects.server
| thiagorp/deployments-web | app/v1/Api.hs | bsd-3-clause | 254 | 0 | 6 | 39 | 63 | 40 | 23 | 8 | 1 |
module Day17 where
import Data.List
partOne = length filtered
partTwo = length $ takeWhile (\c -> length c == minimumNum) sorted
where
sorted = sortOn length filtered
minimumNum = length $ head sorted
filtered = filter (\i -> sum i == 150) $ subsequences input
input :: [Int]
input = map read $ w... | z0isch/advent-of-code | src/Day17.hs | bsd-3-clause | 387 | 0 | 10 | 99 | 123 | 64 | 59 | 9 | 1 |
{-# LANGUAGE Rank2Types #-}
module STPermute (
tests_STPermute,
smoke_STPermute
) where
import Control.Monad
import Control.Monad.ST
import Data.Permute
import Data.Permute.ST
import Driver
import Debug.Trace
import Test.QuickCheck
import Text.Printf
import Test.Permute()
import qualified Test.... | patperry/permutation | tests/STPermute.hs | bsd-3-clause | 6,700 | 0 | 15 | 2,050 | 2,433 | 1,241 | 1,192 | 187 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : TestSuite.CodeGeneration.GCD
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : [email protected]
-- Stability : experimental
--
-- Test suite for Data.SBV.Examples.CodeGeneration.GCD
--------... | josefs/sbv | SBVTestSuite/TestSuite/CodeGeneration/GCD.hs | bsd-3-clause | 835 | 0 | 11 | 170 | 123 | 70 | 53 | 12 | 1 |
{-# LANGUAGE CPP #-}
#ifdef FILE_EMBED
{-# LANGUAGE TemplateHaskell #-}
#endif
-- | The information from Paths_shake cleaned up
module Development.Shake.Internal.Paths(
shakeVersionString,
initDataDirectory,
hasManualData, copyManualData,
readDataFileHTML
) where
import Control.Monad.Extra
import... | ndmitchell/shake | src/Development/Shake/Internal/Paths.hs | bsd-3-clause | 3,205 | 0 | 13 | 573 | 366 | 206 | 160 | 49 | 2 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TupleSections #-}
-- |
--
-- Functions for generic traversals across Futhark syntax trees. The
-- motivation for this module came from dissatisfaction with rewriting
-- the same trivial tree recursions for every module. A possible
-- alternative would be to use normal ... | diku-dk/futhark | src/Language/Futhark/Traversals.hs | isc | 20,310 | 0 | 17 | 4,841 | 7,844 | 3,849 | 3,995 | 409 | 11 |
{-# OPTIONS_GHC -Wno-deprecations #-}
module Main (main) where
--------------------------------------------------------------------------------
import Data.IORef
import Numeric.Natural
import Prelude
import System.Exit
import System.IO.Unsafe
import Test.QuickCheck
import Control.Monad (when)
import Data.B... | jfranklin9000/urbit | pkg/hs/urbit-atom/test/Main.hs | mit | 5,857 | 0 | 13 | 1,018 | 1,404 | 700 | 704 | 115 | 2 |
{-# LANGUAGE CPP #-}
-- Copyright (c) 2010, Diego Souza
-- 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 of source code must retain the above copyright notice,
-- ... | rasata/iyql | src/test/haskell/Test/Yql/Core/Types.hs | gpl-3.0 | 24,854 | 6 | 20 | 7,056 | 6,435 | 3,339 | 3,096 | 241 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/DescribeServiceErrors.hs | mpl-2.0 | 5,551 | 0 | 10 | 1,066 | 657 | 395 | 262 | 75 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
module Ntp.Util
( ntpPort
, WithAddrFamily (..)
... | input-output-hk/cardano-sl | networking/src/Ntp/Util.hs | apache-2.0 | 10,248 | 0 | 18 | 2,895 | 2,906 | 1,537 | 1,369 | 217 | 4 |
--------------------------------------------------------------------
-- |
-- Copyright : (c) Edward Kmett and Dan Doel 2012-2013
-- License : BSD2
-- Maintainer: Edward Kmett <[email protected]>
-- Stability : experimental
-- Portability: non-portable
--
------------------------------------------------------------... | PipocaQuemada/ermine | src/Ermine/Parser/Keywords.hs | bsd-2-clause | 1,333 | 0 | 6 | 270 | 185 | 120 | 65 | 44 | 1 |
module SubHask.Compatibility.HyperLogLog
where
import SubHask.Algebra
import SubHask.Category
import SubHask.Internal.Prelude
import qualified Data.HyperLogLog as H
import qualified Data.Reflection as R
import qualified Data.Semigroup as S
import qualified Prelude as P
-- FIXME: move the below imports to separat... | Drezil/subhask | src/SubHask/Compatibility/HyperLogLog.hs | bsd-3-clause | 1,150 | 0 | 10 | 236 | 366 | 208 | 158 | -1 | -1 |
-------------------------------------------------------------------------------------
-- |
-- Copyright : (c) Hans Hoglund 2012
--
-- License : BSD-style
--
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : portable
--
-- A Haskell representation of MusicXML.
-- You may want to ... | music-suite/musicxml2 | src/Data/Music/MusicXml.hs | bsd-3-clause | 3,371 | 0 | 6 | 922 | 556 | 395 | 161 | 74 | 1 |
module Database.DSH.VSL.VirtSegAlgebra where
| ulricha/dsh | src/Database/DSH/VSL/VirtSegAlgebra.hs | bsd-3-clause | 45 | 0 | 3 | 3 | 8 | 6 | 2 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.