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 #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
#ifndef NO_OVERLAP
{-# LANGUAGE OverlappingInstances #-}
#endif
module Database.Persist.S... | nakaji-dayo/persistent | persistent/Database/Persist/Sql/Class.hs | mit | 10,685 | 0 | 17 | 2,740 | 3,731 | 2,108 | 1,623 | 226 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Database.Persist.Sql.Types.Internal
( HasPersistBackend (..)
, IsPersistBackend (..)
, SqlReadBackend (unSqlReadBackend)
, SqlWrit... | psibi/persistent | persistent/Database/Persist/Sql/Types/Internal.hs | mit | 5,849 | 0 | 16 | 1,136 | 1,231 | 709 | 522 | 118 | 1 |
module Control.Stud_Aufg.DB where
-- $Id$
import Control.SQL
import Control.Types hiding ( ok )
import Control.Stud_Aufg.Typ
import qualified Control.Exception as CE
import Prelude hiding ( all )
put_blank :: SNr -> ANr -> IO Stud_Aufg
put_blank snr anr = do
conn <- myconnect
let common = [ ( reed "SNr",... | florianpilz/autotool | src/Control/Stud_Aufg/DB.hs | gpl-2.0 | 2,072 | 21 | 16 | 644 | 671 | 351 | 320 | 56 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fwarn-unused-imports #-}
-------------------... | juhp/leksah | src/IDE/Pane/Info.hs | gpl-2.0 | 7,163 | 0 | 18 | 1,901 | 1,806 | 917 | 889 | 157 | 3 |
module Sortier.Netz.Check where
import Sortier.Netz.Type
import Sortier.Netz.Rechnung
import Sortier.Netz.Example
import Sortier.Netz.Bild
import Autolib.Util.Bild
import qualified Autolib.Util.Wort ( alle )
import Data.List ( tails)
import Data.Typeable
import Autolib.Reporter
import Autolib.ToDoc
import qualified... | florianpilz/autotool | src/Sortier/Netz/Check.hs | gpl-2.0 | 2,825 | 32 | 20 | 779 | 726 | 408 | 318 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-ses/gen/Network/AWS/SES/VerifyEmailIdentity.hs | mpl-2.0 | 4,062 | 0 | 13 | 797 | 471 | 290 | 181 | 61 | 1 |
{-# LANGUAGE TemplateHaskell #-}
--------------------------------------------------------------------------------
-- |
-- Module : Data.Comp.Multi.Derive.HTraversable
-- Copyright : (c) 2011 Patrick Bahr
-- License : BSD3
-- Maintainer : Patrick Bahr <paba@diku.dk>
-- Stability : experimental
-- Port... | spacekitteh/compdata | src/Data/Comp/Multi/Derive/HTraversable.hs | bsd-3-clause | 3,698 | 4 | 18 | 1,058 | 1,042 | 570 | 472 | -1 | -1 |
{-# OPTIONS -Wall #-}
import Language.Paraiso.Annotation
main :: IO ()
main = do
putStrLn "hi"
| nushio3/Paraiso | attic/TestAnnotation.hs | bsd-3-clause | 100 | 0 | 7 | 20 | 29 | 15 | 14 | 5 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DataKinds, PolyKinds #-}
module Main where
import Data.Kind
import Language.Haskell.TH
type Id1 a = a
type Id2 k (a :: k) = a
data Proxy1 (a :: Id1 k) = Proxy1
data Proxy2 (a :: Id2 * k) = Proxy2
$(return [])
main :: IO ()
main = do
putStrLn $(reify ''Proxy... | ghcjs/ghcjs | test/ghc/th/t11463.hs | mit | 394 | 0 | 13 | 88 | 147 | 81 | 66 | 14 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DeriveFunctor #-}
-- TODO:
-- better interface
-- have error messages in the right order
-- have a message for plain failures as well / remove failure i... | noughtmare/yi | yi-core/src/Parser/Incremental.hs | gpl-2.0 | 13,925 | 6 | 15 | 4,340 | 5,654 | 2,899 | 2,755 | 259 | 12 |
{-# language ScopedTypeVariables #-}
-- | Contains configuration values for all robots.
module Sorts.Robots.Configuration where
import Physics.Chipmunk as CM
import Graphics.Qt
import Base
-- * physics
-- | robot mass per (square-)pixel
robotMaterialMass :: CpFloat = 2 -- tweakValue "robotMaterialMass" -- 78
... | nikki-and-the-robots/nikki | src/Sorts/Robots/Configuration.hs | lgpl-3.0 | 658 | 0 | 6 | 116 | 93 | 57 | 36 | 11 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE CPP #-}
-- |
-- Module : Network.TLS.Record.State
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : unknown
--
module Network.TLS.Record.State... | lancelotsix/hs-tls | core/Network/TLS/Record/State.hs | bsd-3-clause | 4,389 | 0 | 15 | 1,248 | 1,267 | 687 | 580 | 120 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-|
Module : Stack.Types.Sig
Description : Signature Types
Copyright : (c) FPComplete.com, 2015
License : BSD3
Maintainer : Tim Dysinger <tim@fpcomplete.com>
Stabi... | harendra-kumar/stack | src/Stack/Types/Sig.hs | bsd-3-clause | 3,021 | 0 | 15 | 798 | 709 | 389 | 320 | 70 | 0 |
{-
(c) The University of Glasgow 2011
The deriving code for the Generic class
(equivalent to the code in TcGenDeriv, for other classes)
-}
{-# LANGUAGE CPP, ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
module TcGenGenerics (canDoGenerics, canDoGenerics1,
GenericKind(..),
... | urbanslug/ghc | compiler/typecheck/TcGenGenerics.hs | bsd-3-clause | 37,401 | 0 | 23 | 11,995 | 7,361 | 3,917 | 3,444 | 498 | 6 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Functor
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : l... | tolysz/prepare-ghcjs | spec-lts8/base/Data/Functor.hs | bsd-3-clause | 3,230 | 0 | 8 | 688 | 307 | 231 | 76 | 21 | 1 |
import Test.Cabal.Prelude
-- Test PATH-munging
main = setupAndCabalTest $ do
setup_build []
runExe' "hello-world" []
>>= assertOutputContains "1111"
| mydaum/cabal | cabal-testsuite/PackageTests/BuildTools/Internal/setup.test.hs | bsd-3-clause | 165 | 0 | 10 | 34 | 42 | 20 | 22 | 5 | 1 |
module Test where
test = "test"
| ezyang/ghc | testsuite/tests/ghci/scripts/ghci062/Test.hs | bsd-3-clause | 33 | 0 | 4 | 7 | 9 | 6 | 3 | 2 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Test
-- Copyright : (c) Simon Marlow 2002
-- License : BSD-style
--
-- Maintainer : libraries@haskell.org
-- Stability : provisional
-- Portability : portable
--
-- This module illustrates & tests most of ... | DavidAlphaFox/ghc | utils/haddock/html-test/src/Test.hs | bsd-3-clause | 9,158 | 74 | 10 | 2,263 | 1,219 | 796 | 423 | -1 | -1 |
-- From a blog post: http://www.jonmsterling.com/posts/2012-01-12-unifying-monoids-and-monads-with-polymorphic-kinds.html
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances, FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
... | urbanslug/ghc | testsuite/tests/polykinds/MonoidsTF.hs | bsd-3-clause | 3,963 | 2 | 12 | 965 | 1,025 | 568 | 457 | 62 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
module D where
import A
import C
typeRepX :: Fingerprint
typeRepX = mkTyConApp Fingerprint
| urbanslug/ghc | testsuite/tests/driver/T7373/D.hs | bsd-3-clause | 129 | 0 | 5 | 21 | 24 | 15 | 9 | 6 | 1 |
{-|
Module : Control.Spear
Description : Thicker Arrows
Copyright : Matt Gambogi, Travis Whitaker 2015
License : MIT
Maintainer : m@gambogi.com
Stability : Provisional
Portability : Portable
Thicker Arrows.
-}
{-# LANGUAGE DefaultSignatures, TypeFamilies #-}
module Control.Spear where
import Control.A... | gambogi/spear | src/Control/Spear.hs | mit | 597 | 0 | 9 | 138 | 129 | 70 | 59 | 10 | 1 |
module Protocol where
import Bitcoin.Protocol
import qualified Data.Serialize as S
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import Control.Applicative
import Test.QuickCheck
import Network.Socket
import Data.List
import Data.Word
--instance (Arbitrary w, Bits w) => Arbitrary ... | fhaust/bitcoin | test/Protocol.hs | mit | 1,584 | 0 | 14 | 448 | 356 | 194 | 162 | 39 | 1 |
{- Cameras module. Exports all modules in Cameras. -}
module Graphics.ThreeJs.Cameras
( -- * Modules
module Graphics.ThreeJs.Cameras.PerspectiveCamera
) where
import Graphics.ThreeJs.Cameras.PerspectiveCamera
| sanghakchun/three-js-haste | src/Graphics/ThreeJs/Cameras.hs | mit | 219 | 0 | 5 | 31 | 26 | 19 | 7 | 4 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE CPP #-}
-- | Debugging helper functions, for internal use only
module Dissent.Internal.Debug where
import Debug.Trace
-- | Alias to Debug.Trace(trace), but disabled in non-debug builds
log :: String -> a -> a
#ifdef DEBUG
log = trace
#else
log _ ret = ret
#endif
| solatis/dissent | src/Dissent/Internal/Debug.hs | mit | 318 | 0 | 6 | 56 | 37 | 25 | 12 | 6 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Partials.AdminBlock (AdminBlock(..)) where
import Control.Monad (forM_, when)
import Data.List (intercalate, nub, sort)
import Data.Monoid ((<>))
import ... | mayeranalytics/nanoPage | src/Partials/AdminBlock.hs | mit | 4,446 | 0 | 17 | 1,289 | 1,457 | 768 | 689 | 88 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- This example shows how to run a CPU-intensive thread in the
-- background while keeping the UI responsive. All FLTK calls are
-- done on the main thread.
--
-- Press the "start background thread" button to start the
-- CPU-intensive thread. Then observe that clicking the "increme... | deech/fltkhs-demos | src/Examples/threads.hs | mit | 3,036 | 0 | 17 | 633 | 935 | 468 | 467 | 55 | 3 |
import Test.HUnit (Assertion, (@=?), runTestTT, Test(..), Counts(..))
import System.Exit (ExitCode(..), exitWith)
import Sublist (Sublist(Equal, Sublist, Superlist, Unequal), sublist)
exitProperly :: IO Counts -> IO ()
exitProperly m = do
counts <- m
exitWith $ if failures counts /= 0 || errors counts /= 0 then Ex... | dzeban/haskell-exercism | sublist/sublist_test.hs | mit | 2,152 | 0 | 12 | 474 | 679 | 342 | 337 | 51 | 2 |
{- |
Module : $Header$
Description : Abstract syntax for propositional logic extended with QBFs
Copyright : (c) Jonathan von Schroeder, DFKI GmbH 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : <jonathan.von_schroeder@dfki.de>
Stability : experimental
Portability : portable
Definitio... | nevrenato/Hets_Fork | QBF/AS_BASIC_QBF.der.hs | gpl-2.0 | 8,279 | 0 | 24 | 2,390 | 2,699 | 1,386 | 1,313 | 177 | 16 |
module Interp where
import Control.Monad.Reader
import AbsFun
import ErrM
data Strategy = CallByName -- evaluation strategy
| CallByValue
data Env = Map Ident Exp -- environment
data Value = VInt Int -- values are integers
| VClos Exp Env -- or closures
type Eval = Reader... | izimbra/PLT2014 | Lab4/2015/Interp.hs | gpl-2.0 | 645 | 0 | 7 | 184 | 121 | 71 | 50 | 14 | 1 |
{-# LANGUAGE CPP, TupleSections #-}
{-
Copyright (C) 2006-2014 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) ... | sapek/pandoc | pandoc.hs | gpl-2.0 | 59,657 | 0 | 25 | 27,007 | 11,383 | 6,158 | 5,225 | -1 | -1 |
{- This module was generated from data in the Kate syntax
highlighting file sgml.xml, version 1.02, by -}
module Text.Highlighting.Kate.Syntax.Sgml
(highlight, parseExpression, syntaxName, syntaxExtensions)
where
import Text.Highlighting.Kate.Types
import Text.Highlighting.Kate.Common
import Text.ParserC... | ambiata/highlighting-kate | Text/Highlighting/Kate/Syntax/Sgml.hs | gpl-2.0 | 4,310 | 0 | 15 | 744 | 1,281 | 687 | 594 | 78 | 8 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/List.hs | mpl-2.0 | 3,493 | 0 | 16 | 859 | 492 | 289 | 203 | 73 | 1 |
{-# LANGUAGE TupleSections #-}
module Web.Info
( makeWebFileInfo
, loadWebFileMap
) where
import qualified Data.HashMap.Strict as HM
import Data.Text (pack)
import qualified Network.Mime as Mime
import System.FilePath (takeFileName)
import System.Posix.ByteString (getFileStatus)
import Files
import Web
import W... | databrary/databrary | src/Web/Info.hs | agpl-3.0 | 780 | 0 | 14 | 120 | 235 | 126 | 109 | 22 | 1 |
-- Copyright (C) 2016-2017 Red Hat, Inc.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any later version.
--
-- This libr... | dashea/bdcs | importer/Import/Repodata.hs | lgpl-2.1 | 4,140 | 0 | 11 | 934 | 767 | 418 | 349 | 63 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Transform (
toPigLatin
) where
import Model.Definition
import Data.Text.Lazy as D
toPigLatin :: [Definition] -> [(Definition, D.Text)]
toPigLatin defs = error "todo"
| codemiller/fp-in-the-cloud | src/Transform.hs | apache-2.0 | 228 | 0 | 8 | 47 | 57 | 35 | 22 | 7 | 1 |
{-# LANGUAGE FlexibleContexts, OverloadedStrings,
NoImplicitPrelude, FlexibleInstances, GADTs, Rank2Types,
TypeFamilies, ScopedTypeVariables, UndecidableInstances #-}
module Ethereum.Analyzer.EVM.IR
( HplCfg
, HplContract(..)
, HplOp(..)
, WordLabelMapM
, WordLabelMapFuelM
, unWordLabelMapM
, evmOps2... | zchn/ethereum-analyzer | ethereum-analyzer/src/Ethereum/Analyzer/EVM/IR.hs | apache-2.0 | 6,899 | 0 | 20 | 1,582 | 2,295 | 1,196 | 1,099 | 194 | 4 |
{-# LANGUAGE Haskell2010 #-}
module PR643_1 where
infixr 5 `test`
-- | Some big documentation
test :: ()
test = ()
| haskell/haddock | html-test/src/PR643_1.hs | bsd-2-clause | 117 | 0 | 5 | 23 | 27 | 18 | 9 | 5 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module D5Lib where
import Data.Char
import Data.List
import Data.Maybe
import Util
type CharPos = (Char, Int)
passwordLength = 8
maxStretches = 100000000 -- reasonable limit to detect infinite recursion
stretches = [0..]
password :: String -> String
password seed = take password... | wfleming/advent-of-code-2016 | 2016/src/D5Lib.hs | bsd-3-clause | 2,257 | 0 | 14 | 564 | 691 | 362 | 329 | 43 | 5 |
{-# LANGUAGE FlexibleInstances, TypeOperators, DefaultSignatures, DeriveGeneric, FlexibleContexts, OverloadedStrings, RankNTypes, EmptyDataDecls #-}
-- |
-- Module: Text.XML.Generic.ToXml
-- Copyright: 2013 Dmitry Olshansky
-- License: BSD3
--
-- Maintainer: olshanskydr@gmail.com
--
-- Parameters of xml to ADT conversi... | odr/xml-conduit-generic | Text/XML/Generic/FromXmlUtil.hs | bsd-3-clause | 13,282 | 1 | 31 | 5,857 | 3,694 | 1,924 | 1,770 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
-- | This is the bindings per-se to the Docker Registry API but you probably
-- want to use the module `Network.Docker.Registry`. Still this module is
-- available if you have your own data types to represent repositories... | noteed/rescoyl-checks | Network/Docker/Registry/Internal.hs | bsd-3-clause | 6,101 | 0 | 17 | 1,052 | 1,636 | 822 | 814 | 110 | 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.
module Duckling.Dimensions.TA
( allDimensions
) where
import Duckling.Dimensions.Types
allDimensions :: [Se... | facebookincubator/duckling | Duckling/Dimensions/TA.hs | bsd-3-clause | 388 | 0 | 6 | 70 | 51 | 32 | 19 | 7 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
module Fragment.Let.Ast (
module X
) where
import Fragment.Let.Ast.Term as X
| dalaing/type-systems | src/Fragment/Let/Ast.hs | bsd-3-clause | 237 | 0 | 4 | 47 | 23 | 17 | 6 | 3 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | Description: Types defining the protocol for client/server interaction
-- with retcond.
module Retcon.Network.Protocol where
import Control.Applicative
impo... | anchor/retcon | lib/Retcon/Network/Protocol.hs | bsd-3-clause | 6,822 | 0 | 11 | 1,464 | 1,480 | 799 | 681 | 153 | 2 |
module Rules.Nofib where
import Base
import Expression
import GHC
import Oracles.Setting
import Target
import System.Environment
import System.Exit
nofibRules :: Rules ()
nofibRules = do
root <- buildRootRules
-- a phony "nofib" rule that just triggers
-- the rule below.
"nofib" ~> need [root -/- nofibLogFi... | bgamari/shaking-up-ghc | src/Rules/Nofib.hs | bsd-3-clause | 1,669 | 0 | 17 | 362 | 422 | 215 | 207 | 35 | 2 |
module Utility where
import System.IO
import Control.Concurrent
import Control.Exception
sendSafe :: Handle -> String -> IO ()
sendSafe hand str = finally (hPutStrLn hand str) (return ())
| allonsy/chirp | src/Utility.hs | bsd-3-clause | 191 | 0 | 8 | 30 | 68 | 36 | 32 | 6 | 1 |
module Sexy.Instances.FromInteger.Int () where
import Sexy.Classes (FromInteger(..))
import Sexy.Data (Int)
import qualified Prelude as P
instance FromInteger Int where
fromInteger = P.fromInteger
| DanBurton/sexy | src/Sexy/Instances/FromInteger/Int.hs | bsd-3-clause | 202 | 0 | 6 | 27 | 56 | 36 | 20 | 6 | 0 |
{- |
CoreFoundation tends to store filepaths as URIs rather than in POSIX
format. The functions 'uriToFilepath' and 'filepathToUri' provide the
appropriate conversions.
-}
module CoreFoundation.URI(
Uri,
uriToFilepath,
filepathToUri,
) where
import qualified Prelude
import Prelude hiding(String)
imp... | reinerp/CoreFoundation | CoreFoundation/URI.hs | bsd-3-clause | 1,612 | 0 | 10 | 332 | 296 | 157 | 139 | 34 | 1 |
module Data.TTask.Pretty
( module Data.TTask.Pretty.Contents
, module Data.TTask.Pretty.Status
) where
import Data.TTask.Pretty.Contents
import Data.TTask.Pretty.Status
| tokiwoousaka/ttask | src/Data/TTask/Pretty.hs | bsd-3-clause | 175 | 0 | 5 | 20 | 39 | 28 | 11 | 5 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Blip.Compiler.Types
-- Copyright : (c) 2012, 2013, 2014 Bernie Pope
-- License : BSD-style
-- Maintainer : florbitous@gmail.com
-- Stability : experimental
-- Portability : ghc
--
-- Type definitions which are u... | bjpop/blip | blipcompiler/src/Blip/Compiler/Types.hs | bsd-3-clause | 4,459 | 0 | 11 | 855 | 839 | 512 | 327 | 185 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- |
-- Module : Database.Monarch.Mock.Types
-- Copyright : 2013 Noriyuki OHKAWA
-- License : BSD3
--
-- Maintainer : n.ohkawa@gmail.com
-- Stability : experimental
-- Portability : unknown
--
-- ... | notogawa/monarch | src/Database/Monarch/Mock/Action.hs | bsd-3-clause | 5,289 | 0 | 24 | 1,872 | 1,735 | 846 | 889 | 121 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- | This module provides types and functions to safely encode the remoteStorage
-- support specified by IETF's @draft-dejong-remotestorage-00.txt@ draft.
module Network.RemoteStorage.Types
( apiVersion
, apiAuthMethod
, apiWebfinger... | k0001/snaplet-remotestorage | src/Network/RemoteStorage/Types.hs | bsd-3-clause | 7,905 | 0 | 15 | 1,666 | 1,882 | 1,028 | 854 | 157 | 2 |
{-| General purpose utilities
The names in this module clash heavily with the Haskell Prelude, so I
recommend the following import scheme:
> import Pipes
> import qualified Pipes.Prelude as P -- or use any other qualifier you prefer
Note that 'String'-based 'IO' is inefficient. The 'String'-based utili... | FranklinChen/Haskell-Pipes-Library | src/Pipes/Prelude.hs | bsd-3-clause | 22,513 | 0 | 21 | 6,900 | 5,525 | 2,802 | 2,723 | -1 | -1 |
module Compiler where
import qualified Codegen
import qualified Lexer
import qualified Parser
import Data.Bifunctor (first)
import Text.Megaparsec.Error (ParseError)
import Control.Exception.Base (try, SomeException)
data CompilationError = ParseError ParseError
| LlvmError Codegen.LlvmError
... | letsbreelhere/egg | src/Compiler.hs | bsd-3-clause | 1,174 | 0 | 18 | 326 | 347 | 176 | 171 | 25 | 3 |
--
-- >>> Main <<<
--
-- Main driver for the hub tool (see the README for details).
--
-- (c) 2011-2012 Chris Dornan
module Main(main) where
import Control.Monad
import System.IO
import System.Exit
import Text.Printf
import Hub.System
import Hub.FilePaths
i... | Lainepress/hub-src | hub.hs | bsd-3-clause | 2,482 | 0 | 11 | 1,238 | 641 | 301 | 340 | 58 | 32 |
{-# Language RebindableSyntax #-}
{-# Language ScopedTypeVariables #-}
{-# Language FlexibleContexts #-}
module Main where
import Prelude hiding ((>>=), (>>), fail, return)
import Symmetry.Language
import Symmetry.Verify
pingServer :: (DSL repr) => repr (Process repr ())
pingServer = do (p :: repr ()) <- recv
... | abakst/symmetry | checker/tests/pos/PingSingle.hs | mit | 638 | 0 | 11 | 178 | 221 | 118 | 103 | 19 | 1 |
{-
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2001-2003
--
-- Access to system tools: gcc, cp, rm etc
--
-----------------------------------------------------------------------------
-}
{-# LANGUAGE CPP, ScopedTypeVariables #-}
module SysTools (
... | AlexanderPankiv/ghc | compiler/main/SysTools.hs | bsd-3-clause | 70,435 | 97 | 22 | 22,950 | 12,199 | 6,235 | 5,964 | 989 | 12 |
module Random where
import System.Random.MWC
import Control.Monad.Primitive
import Data.Array.Accelerate as A
import Data.Array.Accelerate.Array.Data as A
import Data.Array.Accelerate.Array.Sugar as Sugar
randomArrayIO :: (Shape sh, Elt e) => (sh -> GenIO -> IO e) -> sh -> IO (Array... | aesadde/AccObsBenchmarks | Sort/haskell/src/Random.hs | bsd-3-clause | 1,926 | 0 | 20 | 752 | 551 | 282 | 269 | 35 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-| DRBD proc file parser
This module holds the definition of the parser that extracts status
information from the DRBD proc file.
-}
{-
Copyright (C) 2012 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public... | dblia/nosql-ganeti | src/Ganeti/Block/Drbd/Parser.hs | gpl-2.0 | 13,103 | 0 | 26 | 3,130 | 2,904 | 1,429 | 1,475 | 265 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-ssm/gen/Network/AWS/SSM/Types.hs | mpl-2.0 | 20,605 | 0 | 15 | 5,271 | 4,099 | 2,293 | 1,806 | -1 | -1 |
{-#LANGUAGE CPP#-}
import qualified CV.Matrix as M
import CV.Calibration
main = do
let mat = M.fromList (2,10) $ concat [[x,y] | x <- [1,2], y <- [1..5]]
mat2 = M.fromList (1,10) $ [(x,y) | x <- [1,2], y <- [1..5]]
a = findFundamentalMat mat mat c'CV_FM_RANSAC 1 0.6
(c,d) = stereoRe... | TomMD/CV | examples/Fundamental.hs | bsd-3-clause | 398 | 0 | 15 | 111 | 202 | 109 | 93 | 11 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Data.Comp
-- Copyright : (c) 2010-2011 Patrick Bahr, Tom Hvitved
-- License : BSD3
-- Maintainer : Patrick Bahr <paba@diku.dk>, Tom Hvitved <hvitved@diku.dk>
-- Stability : experimental
-- Portability : ... | spacekitteh/compdata | src/Data/Comp.hs | bsd-3-clause | 982 | 0 | 4 | 154 | 83 | 65 | 18 | 10 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
-- TODO This module was originally based on the PackageTests.PackageTester
-- module in Cabal, however it has a few differences. I suspect that as
-- this module ages the two modules will diverge further. As such, I have
-- not attempted to merge them into a single module nor to ex... | DavidAlphaFox/ghc | libraries/Cabal/cabal-install/tests/PackageTests/PackageTester.hs | bsd-3-clause | 8,262 | 0 | 14 | 1,805 | 1,696 | 918 | 778 | 149 | 3 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Heis... | 23Skidoo/heist | src/Heist/Compiled/LowLevel.hs | bsd-3-clause | 514 | 0 | 4 | 127 | 38 | 28 | 10 | 15 | 0 |
{-# LANGUAGE EmptyDataDecls, GADTs, TypeFamilies #-}
module T7489 where
data Credit
data Debit
data family Account (s :: *) (t :: *)
data instance Account Int t where
CAccount :: Account Int Credit
DAccount :: { debitAccountPostings :: [Int] } -> Account Int Debit
| ghc-android/ghc | testsuite/tests/indexed-types/should_compile/T7489.hs | bsd-3-clause | 274 | 0 | 8 | 53 | 72 | 45 | 27 | -1 | -1 |
-- | This module provides a function for downloading robots.txt of any domain via HTTP.
module YesWeScan.RobotsTxt (robotsTxt) where
import Network.HTTP (simpleHTTP, getRequest, getResponseBody)
-- | Get the contents of a `robots.txt` associated with a URL.
robotsTxt :: String -> IO String
robotsTxt url =
getResp... | kmein/yes-we-scan | YesWeScan/RobotsTxt.hs | mit | 459 | 0 | 11 | 110 | 88 | 49 | 39 | 9 | 2 |
import Data.List
main = do
wholeFile <- readFile "p054_poker.txt"
print $ process wholeFile
process wholeFile = length player1Wins
where lists = map listsOfCards $ lines wholeFile
hands = map handsFromListsOfCards lists
player1Wins = winningHandsPlayer1 hands
l... | arekfu/project_euler | p0054/p0054.hs | mit | 5,313 | 0 | 12 | 1,406 | 2,449 | 1,265 | 1,184 | 119 | 1 |
{-# language ScopedTypeVariables, QuasiQuotes, FlexibleInstances, InstanceSigs #-}
module Database where
import Database.PostgreSQL.Simple (Connection, fromOnly, query_, execute_)
import Control.Applicative
import Data.List (intercalate)
import Text.InterpolatedString.Perl6 (qc)
import Control.Monad (forM_, when, unl... | commercializetv/postgresql-user-manager | src/Database.hs | mit | 8,947 | 0 | 15 | 3,111 | 1,681 | 853 | 828 | 123 | 1 |
{-# OPTIONS_GHC -O0 #-}
{-# LANGUAGE TupleSections, OverloadedStrings, ExistentialQuantification #-}
module Handler.Admin.Board where
import Import
import qualified Data.Text as T
import Handler.Common (deletePosts)
import Utils.YobaMarkup (doYobaMarkup)
import Handl... | ahushh/Monaba | monaba/src/Handler/Admin/Board.hs | mit | 24,937 | 0 | 41 | 8,372 | 5,479 | 2,776 | 2,703 | -1 | -1 |
{- |
Module: Capnp.IO
Description: Utilities for reading and writing values to handles.
This module provides utilities for reading and writing values to and
from file 'Handle's.
-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVari... | zenhack/haskell-capnp | lib/Capnp/IO.hs | mit | 4,853 | 0 | 18 | 1,192 | 1,219 | 649 | 570 | 93 | 2 |
module Signals where
samplesPerSecond :: (Num a) => a
samplesPerSecond = 44100
type SafeValue = Float
data SignalValue = SignalValue SafeValue
data Signal = Signal [SignalValue]
flatSignal val = toSignal [val, val..]
-- Need to make this be ok with signals that end pretty soon or I'll be in trouble.
takeSeconds s (... | orblivion/Haskell-Synth | Signals.hs | mit | 2,752 | 0 | 12 | 720 | 692 | 352 | 340 | 46 | 1 |
f x = 2*x
square x = x * x
foo x =
case x of
0 -> 1
1 -> 7
_ -> 2 * x
| MaxHorstmann/myfirsthaskell | test.hs | mit | 90 | 4 | 8 | 47 | 63 | 31 | 32 | 7 | 3 |
-----------------------------------------------------------------------------
-- |
-- Module : Language.Krill.Parser.Location
-- Description : Source location and span information
-- Maintainer : coskuacay@gmail.com
-- Stability : experimental
--------------------------------------------------------------------... | cacay/language-sill | Language/Krill/Parser/Location.hs | mit | 5,322 | 0 | 12 | 1,088 | 1,159 | 626 | 533 | 107 | 1 |
{- Problem
(*) Find the last element of a list.
Example in Haskell:
Prelude> myLast [1,2,3,4]
4
Prelude> myLast ['x','y','z']
'z'
-}
myLast :: [a] -> a
myLast [] = error "myLast does not work on empty list!"
myLast [x] = x
myLast (x:xs) = myLast xs
| gaoce/haskell_99 | 01.hs | mit | 252 | 0 | 7 | 50 | 56 | 29 | 27 | 4 | 1 |
{-# LANGUAGE ViewPatterns #-}
{-
Copyright (C) 2014 Matthew Pickering <matthewtpickering@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option... | sapek/pandoc | src/Text/Pandoc/Readers/Txt2Tags.hs | gpl-2.0 | 17,838 | 0 | 19 | 4,060 | 5,644 | 2,865 | 2,779 | 409 | 3 |
module Paths_sudoku (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
import Data.Version (Version(..))
import System.Environment (getEnv)
import Prelude
catchIO :: IO a -> (Exception.IOException -> IO a) ->... | wsuchy/sudoku_solver | dist/build/autogen/Paths_sudoku.hs | gpl-2.0 | 1,382 | 0 | 10 | 182 | 365 | 209 | 156 | 28 | 1 |
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable, TypeSynonymInstances, MultiParamTypeClasses #-}
module RAM.Type where
-- $Id$
import RAM.Builtin
import Autolib.ToDoc
import Autolib.Reader
import Autolib.Size
import Autolib.TES.Identifier
import Data.Typeable
import Autolib.Xml
type Var = Identifier
instanc... | Erdwolf/autotool-bonn | src/RAM/Type.hs | gpl-2.0 | 1,051 | 5 | 10 | 248 | 334 | 183 | 151 | 34 | 3 |
{-# LANGUAGE RecordWildCards, ScopedTypeVariables, MultiParamTypeClasses
, DeriveDataTypeable, OverloadedStrings, PatternSynonyms
, GeneralizedNewtypeDeriving, FlexibleContexts #-}
-- this module isn't finished, and there's heaps of warnings.
{-# OPTIONS_GHC -w #-}
-- |
-- Module : Yi.UI.P... | leksah/yi | src/library/Yi/UI/Pango/Control.hs | gpl-2.0 | 37,041 | 12 | 36 | 10,758 | 9,743 | 4,990 | 4,753 | -1 | -1 |
{-# OPTIONS_GHC -fno-prof-auto #-}
{-# LANGUAGE DeriveLift #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Types
( AllowNewer(..)... | merijn/GPU-benchmarks | benchmark-analysis/src/Types.hs | gpl-3.0 | 2,756 | 0 | 9 | 528 | 757 | 418 | 339 | 71 | 1 |
module Model where
import Control.Concurrent.STM (TQueue)
import Control.Monad.Reader (ReaderT)
import Control.Monad.State.Strict (StateT)
import Linear
import qualified Graphics.UI.GLFW as G
import qualified Graphics.Rendering.OpenGL as GL
import Graphics.Object
import Utils
data Env = Env
{ envEventsChan ... | sgillis/HaskHull | src/Model.hs | gpl-3.0 | 1,367 | 1 | 12 | 413 | 402 | 228 | 174 | 66 | 1 |
module PetaVision.PVPFile.Utility where
import Data.Array.Unboxed as AU
import GHC.Float
import Prelude as P
sparse2Nonsparse
:: (Int,Int,Int) -> [(Int,Double)] -> AU.Array (Int,Int,Int) Double
sparse2Nonsparse (nf,nx,ny) frame =
accumArray (+)
0
... | XinhuaZhang/PetaVisionHaskell | PetaVision/PVPFile/Utility.hs | gpl-3.0 | 659 | 0 | 10 | 264 | 266 | 156 | 110 | 19 | 1 |
{-# 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/Events/Get.hs | mpl-2.0 | 4,786 | 0 | 17 | 1,129 | 657 | 387 | 270 | 98 | 1 |
import Test.Hspec
import Data.List
import Data.Array
-- Usy dynamic programming to avoid redoing same job multiple times.
-- Array is very slow in here...
paths_cache :: Int -> Array (Int, Int) Int
paths_cache m = array ((0,0),(mx,my))
(((mx,my),1) :
[((mx,j),1) | j <- [0..(my-1)]] ++ -- last column is 1s
... | orbitgray/ProjectEuler | haskell/015.hs | lgpl-3.0 | 2,708 | 0 | 19 | 637 | 1,013 | 554 | 459 | 44 | 1 |
module Network.FQDN (fullyQualifiedDomainName) where
import Foreign
import Foreign.C
import Foreign.C.Types
foreign import ccall unsafe "c_fullyQualifiedDomainName"
c_fullyQualifiedDomainName :: CString -> CSize -> IO CInt
-- | Return the fully qualified domain name (if available). Not all hosts have
-- a FQ... | wereHamster/fqdn | Network/FQDN.hs | unlicense | 789 | 0 | 14 | 170 | 142 | 76 | 66 | 14 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Lst.Feat where
import Text.Parsec.Char (char, satisfy)
import Text.Parsec.Combinator (sepBy, sepBy1, many1)
import ClassyPrelude
import Modifications
import JEPFormula hiding (Add)
import Common
data FeatDefinition = Description String
| Visible Visibili... | gamelost/pcgen-rules | src/Lst/Feat.hs | apache-2.0 | 2,850 | 0 | 27 | 815 | 622 | 335 | 287 | 70 | 1 |
module Helpers.Factorials (binomial, factorial) where
factorial :: Integer -> Integer
factorial n = factorial' n 1 where
factorial' 0 accum = accum
factorial' n accum = factorial' (n - 1) (accum * n)
binomial :: Integer -> Integer -> Integer
binomial _ 0 = 1
binomial 0 _ = 0
binomial n k
| n < k' = 0
| oth... | peterokagey/haskellOEIS | src/Helpers/Factorials.hs | apache-2.0 | 403 | 0 | 9 | 96 | 186 | 96 | 90 | 12 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UnicodeSyntax #-}
import qualified Data.IntSet as IntSet
import System.Log.Logger (Priority(DEBUG),rootLoggerName,setLevel,updateGlobalLogger)
import Test.Framework
import Test.Framework.Providers.QuickCheck2
import Test.QuickCheck.Instances ()
import LogicGrowsOn... | gcross/LogicGrowsOnTrees | LogicGrowsOnTrees/tests/test-helpers.hs | bsd-2-clause | 704 | 0 | 17 | 111 | 184 | 102 | 82 | 18 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DeriveFunctor #-}
module Data.SRX
( SRX (..)
, Lang (..)
, Rule (..)
, rulesBy
-- , merge
-- , mergeBy
-- , ruleRE
) where
import Prelude hiding (break)
import Data.List (find)
import Data.Maybe (maybeToList)
import Text.Regex.Applicative
import Data.Regex.Parse
-- | Hea... | kawu/tokenize | Data/SRX.hs | bsd-2-clause | 1,685 | 0 | 14 | 433 | 300 | 189 | 111 | 29 | 1 |
{-| Implementation of the generic daemon functionality.
-}
{-
Copyright (C) 2011, 2012 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 must retain the ab... | mbakke/ganeti | src/Ganeti/Daemon.hs | bsd-2-clause | 18,429 | 0 | 15 | 4,166 | 3,833 | 1,996 | 1,837 | 370 | 4 |
module Main (main) where
import Test.Tasty
import Test.Tasty.Program
import qualified Data.List as List
import Data.Maybe (fromMaybe)
import qualified System.Directory as Directory
import System.FilePath ((</>),(<.>))
import qualified System.IO.Unsafe as Unsafe
data BuildTarget
= ... | ggreif/clash-compiler | testsuite/Main.hs | bsd-2-clause | 13,898 | 0 | 15 | 3,744 | 4,564 | 2,443 | 2,121 | 181 | 3 |
{-# LANGUAGE ScopedTypeVariables #-}
import Criterion.Main
import Data.Vectro as TV
import Data.Vector as V
main = do
let l = [1..(10000::Int)]
let v = V.fromList l
let tv = TV.fromVector v
let vec = TV.fromVect tv
defaultMain [
bgroup "build" [
bench "tv" $ nf TV.fromList l
, ... | bos/vectro | tests/benchmarks/Benchmark.hs | bsd-2-clause | 794 | 0 | 20 | 285 | 355 | 178 | 177 | 21 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
module RandTools where
-- base
import Data.Foldable
import Data.Word
import Control.Monad.ST
-- primitive
import Control.Monad.Primitive (PrimState,PrimMonad)
-- mwc-random
import qualified System.Random.MWC as R
-- containers
import qualified Dat... | kgadek/evil-pareto-tests | src/RandTools.hs | bsd-3-clause | 1,155 | 0 | 17 | 331 | 396 | 214 | 182 | 25 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module IOArrayTests (ioArrayTests) where
import TestHelpers
import Data.Array.Storable (StorableArray)
import Control.Parallel.MPI.Fast
import Data.Array.IO (IOArray, newListArray, getElems)
import Control.Concurrent (threadDelay)
import Control.Monad (when)
import Foreign.C.Type... | bjpop/haskell-mpi | test/IOArrayTests.hs | bsd-3-clause | 12,761 | 1 | 18 | 2,931 | 3,793 | 1,888 | 1,905 | 211 | 2 |
{-# LANGUAGE GADTs #-}
module CardEffect
where
{-
import Control.Monad.Operational
data DeckColumn = L | M | R
deriving (Show, Eq, Ord)
data DeckRow = F | B
deriving (Show, Eq, Ord)
data CardEffectOp a where
QueueDmg :: Int -> Int -> DeckColumn -> CardEffectOp ()
AddDP :: Int -> CardEffectOp ()
AddCard ... | rubenpieters/gre-project | shared/src/CardEffect.hs | bsd-3-clause | 369 | 0 | 2 | 78 | 6 | 5 | 1 | 2 | 0 |
module DTD_ | FranklinChen/hugs98-plus-Sep2006 | packages/HaXml/bugs/GxlDtd.hs | bsd-3-clause | 11 | 0 | 2 | 1 | 4 | 3 | 1 | -1 | -1 |
{-# LANGUAGE FlexibleContexts, RankNTypes #-}
module EC2Tests.ImageTests
( runImageTests
)
where
import Control.Monad ((>=>))
import Data.Maybe (catMaybes)
import Data.Text (Text)
import Test.Hspec
import Cloud.AWS.EC2
import Cloud.AWS.EC2.Types
import Util
import EC2Tests.Util
region :: Text
region = "... | worksap-ate/aws-sdk | test/EC2Tests/ImageTests.hs | bsd-3-clause | 2,228 | 0 | 30 | 747 | 463 | 237 | 226 | 46 | 1 |
module Graphics.Square(
renderSquare
) where
import Control.Monad.IO.Class
import Data.Word
import Foreign.C.Types
import Game.Camera
import Game.GoreAndAsh
import Game.GoreAndAsh.SDL
import SDL
-- | Function of rendering player
renderSquare :: MonadIO m => Window -> Renderer -> Camera -> Double -> V2 Double ->... | Teaspot-Studio/gore-and-ash-demo | src/client/Graphics/Square.hs | bsd-3-clause | 1,130 | 0 | 13 | 228 | 425 | 212 | 213 | 22 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Configure
-- Copyright : Isaac Jones 2003-2005
-- L... | typelead/epm | Cabal/Distribution/Simple/Configure.hs | bsd-3-clause | 80,673 | 1 | 26 | 25,702 | 14,071 | 7,415 | 6,656 | 1,188 | 17 |
module Main where
import Lib
import Data.Time.Clock
import Data.Time.Calendar
import System.Environment
import Data.Monoid
import Network.Mail.Mime hiding (mailFrom, mailTo)
import Options.Applicative
data CLIOptions = CLIOptions
{ filename :: String
, mailTo :: String
, mailFrom ... | Drezil/markdown2reminder | app/Main.hs | bsd-3-clause | 1,938 | 0 | 14 | 753 | 469 | 240 | 229 | 49 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Client255.Client255
where
import System.IO
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as LBS
import qualified Data.Text as T
import qualified Data.Text.Encoding as TE
import Web.Authenticate.OAuth as OAuth
import Network.HTTP.Conduit
im... | c000/twitter-client255 | Client255/Client255.hs | bsd-3-clause | 2,808 | 0 | 15 | 502 | 741 | 380 | 361 | 64 | 1 |
module SlashSpec where
import Test.Hspec
import Test.Hspec.QuickCheck
import Test.QuickCheck hiding ((.&.))
import Control.Monad
import Data.Ratio
import Data.Ratio.Slash
spec :: Spec
spec = do
describe "rational" $ do
prop "read" $
\n d -> d /= 0 && n /= 0 && d > 1 && denominator ( n % d ) > 1 ==>
... | narumij/matrix-as-xyz | test/SlashSpec.hs | bsd-3-clause | 868 | 0 | 20 | 268 | 405 | 215 | 190 | 23 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.