code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module BioInf.GrammarProducts.Helper where
import Data.Function
import Control.Lens
import qualified Data.Set as S
import Data.List (groupBy)
import BioInf.GrammarProducts.Grammar
-- | Group the RHS of a rule by terminals / non-terminals
groupRHS :: [NtT] -> [[NtT]]
groupRHS = groupBy ((==) `on` isT)
-- | Determ... | choener/GrammarProducts | old-BioInf/GrammarProducts/Helper.hs | gpl-3.0 | 465 | 0 | 13 | 76 | 132 | 80 | 52 | 11 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module Language.ArrayForth.Distance where
import Data.Bits (Bits, popCount, xor)
import Data.List (genericLength)
import Data.Maybe (fromJust)
import Data.Monoid
... | TikhonJelvis/array-forth | src/Language/ArrayForth/Distance.hs | gpl-3.0 | 1,792 | 34 | 11 | 435 | 496 | 273 | 223 | 23 | 1 |
module Main where
--import Data.Version (showVersion)
--import Paths_sifi (version)
import Ledger
import Args
--import Browser (openBrowser)
import Etb (ceb, hsnap, mainEtb, printVersion)
--import Snap (hsnap)
import Yahoo (yahooEpics)
import Utils (initDirs)
main = do
--putStrLn $ "sifi " ++ (showVersion versi... | blippy/sifi | cli/Main.hs | gpl-3.0 | 557 | 0 | 12 | 110 | 130 | 71 | 59 | 16 | 6 |
{-
Copyright (C) 2007 John Goerzen <jgoerzen@complete.org>
All rights reserved.
For license and copyright information, see the file COPYRIGHT
-}
{- |
Module : Data.ListLike.FoldableLL
Copyright : Copyright (C) 2007 John Goerzen
License : LGPL
Maintainer : John Goerzen <jgoerzen@complete.org>
... | jgoerzen/listlike | src/Data/ListLike/FoldableLL.hs | lgpl-2.1 | 3,066 | 0 | 11 | 829 | 639 | 348 | 291 | -1 | -1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-|
Module : Haskoin.Network.Bloom
Copyright : No rights reserved
License : MIT
Maintainer : jprupp@protonmail.ch
Stability : experimental
Portability : POSIX
Bloom filters are used to reduce data transfer when synchronizing thin cients.
Whe... | haskoin/haskoin | src/Haskoin/Network/Bloom.hs | unlicense | 11,215 | 0 | 13 | 2,982 | 2,167 | 1,174 | 993 | 203 | 6 |
module DefaultLocation where
defaultLocation = "d:/home/Haskell/hcpn"
| haroldcarr/learn-haskell-coq-ml-etc | haskell/playpen/hcpn/src/DefaultLocation.hs | unlicense | 70 | 0 | 4 | 6 | 9 | 6 | 3 | 2 | 1 |
{- | Simple list utility functions -}
module Util.List (
anyOf
) where
-- | Couldn't find it on hoogle
anyOf:: [a -> Bool] -> a -> Bool
anyOf fs x = case fs of
[] -> False
f:fs' -> f x || anyOf fs' x
| andreyk0/ifind | Util/List.hs | apache-2.0 | 236 | 0 | 9 | 82 | 77 | 41 | 36 | 6 | 2 |
module HelperSequences.A006530Spec (main, spec) where
import Test.Hspec
import HelperSequences.A006530 (a006530)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A006530" $
it "correctly computes the first 20 elements" $
take 20 (map a006530 [1..]) `shouldBe` expectedValue where
expectedValue... | peterokagey/haskellOEIS | test/HelperSequences/A006530Spec.hs | apache-2.0 | 369 | 0 | 10 | 59 | 160 | 95 | 65 | 10 | 1 |
module S1E2 where
import Data.Char
code :: Int -> Char -> Char
code n x | isLower x = chr ((ord x + n) `mod` 123)
| isUpper x = chr ((ord x + n) `mod` 91)
| otherwise = x
-- map (code 3) "Tomorrow evening, 8 o'clock in Amsterdam"
| wouwouwou/module_8 | src/main/haskell/series1/exercise2.hs | apache-2.0 | 249 | 0 | 11 | 70 | 107 | 55 | 52 | 6 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Data.MInfo.Parser
( parseFile
) where
import Prelude hiding ( take )
import Control.Applicative
import qualified Data.Attoparsec.ByteString.Lazy as AL
import Data.Attoparsec.ByteString.Char8
import qualified Data.ByteString.Char8 as BS
import... | kongo2002/minfo | Data/MInfo/Parser.hs | apache-2.0 | 7,842 | 0 | 16 | 2,055 | 2,693 | 1,370 | 1,323 | 231 | 13 |
module Model where
import Prelude
import Yesod
import Database.Persist.Quasi
import EveApi.Types (Call (..), Scope (..), KeyType (..), Arg (..))
import Orphans ()
-- You can define all of your database entities in the entities file.
-- You can find more information on persistent and how to declare entities
-- at:
--... | HairyDude/heal | Model.hs | bsd-2-clause | 473 | 0 | 8 | 67 | 90 | 56 | 34 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
module Yesod.Auth.OAuth2.Nylas
( oauth2Nylas
, module Yesod.Auth.OAuth2
) where
#if __GLASGOW_HASKELL__ < 710
import Control.Applicative ((<$>), (<*>))
#endif
import Control.Monad (mzero)
import Control.Exception.Lifted (throwIO)
import Data.Aeson (... | jasonzoladz/yesod-auth-oauth2 | Yesod/Auth/OAuth2/Nylas.hs | bsd-2-clause | 3,368 | 0 | 15 | 871 | 770 | 441 | 329 | 79 | 3 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QTextOption.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:35
Warning : this file is machine generated - do n... | keera-studios/hsQt | Qtc/Enums/Gui/QTextOption.hs | bsd-2-clause | 5,723 | 0 | 18 | 1,371 | 1,654 | 816 | 838 | 142 | 1 |
-- | Erlang style supervisors for Haskell.
-- Note that yet, these are not really good enough for using in other projects.
-- are currently subject to change until I figure out how a nice interface will
-- look like. At that moment they could be split off into their own package.
{-# LANGUAGE ScopedTypeVariables #... | jlouis/combinatorrent | src/Supervisor.hs | bsd-2-clause | 5,119 | 0 | 13 | 1,345 | 1,330 | 676 | 654 | 111 | 4 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QStyleOptionFocusRect.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:35
Warning : this file is machine genera... | keera-studios/hsQt | Qtc/Enums/Gui/QStyleOptionFocusRect.hs | bsd-2-clause | 4,732 | 0 | 18 | 921 | 1,080 | 532 | 548 | 90 | 1 |
import Distribution.Simple
import Distribution.PackageDescription
import Distribution.Simple.LocalBuildInfo
import System.Directory
updateExtraLibDirs :: LocalBuildInfo -> IO LocalBuildInfo
updateExtraLibDirs localBuildInfo = do
let packageDescription = localPkgDescr localBuildInfo
Just lib = library pack... | vlasenkov/Denga | denga-transaq/Setup.hs | bsd-3-clause | 869 | 0 | 19 | 233 | 187 | 98 | 89 | 17 | 1 |
{-# OPTIONS_GHC -fno-warn-unrecognised-pragmas #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
#if __GLASGOW_HASKELL__ < 710
{-# LANGUAGE OverlappingInstances #-}
#endif
-- | See "Control.... | bitemyapp/ether | src/Control/Monad/Ether/Except/Class.hs | bsd-3-clause | 1,271 | 0 | 12 | 264 | 284 | 163 | 121 | -1 | -1 |
module Graphics.Pastel.Common.Colors
( darkRed, lightRed, red
, darkOrange, lightOrange, orange
, darkYellow, lightYellow, yellow
, darkGreen, lightGreen, green
, darkBlue, lightBlue, blue
, darkPurple, lightPurple, purple
, darkGrey, lightGrey, grey
, black, white
) where
import Gr... | willdonnelly/pastel | Graphics/Pastel/Common/Colors.hs | bsd-3-clause | 1,293 | 0 | 5 | 328 | 365 | 199 | 166 | 33 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE BangPatterns #-}
module Main (main) where
import qualified Control.Exception as E
import Control.Monad
import Crypto.Hash (Context, SHA1) -- cryptonite
import qualified Crypto.Hash as CH
import Data.ByteString (ByteString)
import qualified Data.ByteString as B
import Da... | kazu-yamamoto/http2 | util/server.hs | bsd-3-clause | 2,311 | 0 | 15 | 538 | 634 | 335 | 299 | 56 | 3 |
{-# LANGUAGE QuasiQuotes #-}
module Macros (testMacros) where
import Pygmalion.Test
import Pygmalion.Test.TH
testMacros = runPygmalionTest "macros.cpp" $ [pygTest|
#define VAR 0
#define VARF(x) (int) x
int main(int argc, char** argv)
{
char local_var = 0;
return @VAR ~[De... | sethfowler/pygmalion | tests/Macros.hs | bsd-3-clause | 472 | 0 | 6 | 118 | 37 | 24 | 13 | 5 | 1 |
{-# language CPP #-}
-- | = Name
--
-- XR_KHR_binding_modification - instance extension
--
-- = Specification
--
-- See
-- <https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_binding_modification XR_KHR_binding_modification>
-- in the main specification for complete information.
--
-- = Register... | expipiplus1/vulkan | openxr/src/OpenXR/Extensions/XR_KHR_binding_modification.hs | bsd-3-clause | 10,287 | 0 | 24 | 1,735 | 1,858 | 1,066 | 792 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
-- |
-- Module : FRP.Yampa.Scan
-- Copyright : (c) Antony Courtney and Henrik Nilsson, Yale University, 2003
-- License : BSD-style (see the LICENSE file in the distribution)
--
-- Maintainer : ivan.perez@keera.co.uk
-- ... | ivanperez-keera/Yampa | yampa/src/FRP/Yampa/Scan.hs | bsd-3-clause | 2,138 | 0 | 11 | 506 | 280 | 166 | 114 | 15 | 2 |
module Main where
import Control.Monad (when)
import Data.Char (toLower)
import qualified Data.HashMap.Strict as M
import System.Environment (getArgs)
type Freq = M.HashMap Char Int
measure :: String -> Freq
measure = foldl (\m ch -> M.insertWith (+) ch 1 m) M.empty . downcase
(.<.) :: Freq -> Freq -> Bool
x .<. y ... | izuk/elephant-pig | src/Main.hs | bsd-3-clause | 621 | 0 | 11 | 128 | 274 | 145 | 129 | 18 | 1 |
module Main where
import Control.Concurrent
import Network
import System.Console.CmdArgs
import System.Posix
import Hmond.Config (getConfig)
import Hmond.Options (options, optionsConf)
import Hmond.Types
import qualified Hmond.Server as Server
import qualified Hmond.PeriodicMetricMutator as Mutator
import Hmond.Hosts... | benarmston/hmond | src/Main.hs | bsd-3-clause | 727 | 0 | 11 | 125 | 209 | 110 | 99 | 22 | 1 |
{-# LANGUAGE ScopedTypeVariables, FlexibleContexts, TypeFamilies, ParallelListComp, TypeSynonymInstances, FlexibleInstances, GADTs, RankNTypes, UndecidableInstances, TypeOperators, NoMonomorphismRestriction #-}
module Language.KansasLava.Protocols.Patch
-- (Patch, bus, ($$),
-- emptyP,forwardP, backwardP,dupP,zipPa... | andygill/kansas-lava | Language/KansasLava/Protocols/Patch.hs | bsd-3-clause | 26,417 | 877 | 13 | 7,342 | 7,803 | 4,193 | 3,610 | 396 | 2 |
module Main where
import Data.Graph.Inductive
import qualified Data.Map as M
import EFA.Topology.Topology
import EFA.Solver.Equation
import EFA.Solver.EquationOrder
{-
import EFA.Solver.Horn
import EFA.Solver.DirEquation
import EFA.Solver.IsVar
import EFA.Solver.DependencyGraph
-}
import EFA.Equation.Env
import ... | energyflowanalysis/efa-2.1 | attic/examples/elementary/modThreeWay_sto/Main_modThreeWay_sto.hs | bsd-3-clause | 2,521 | 0 | 16 | 669 | 904 | 521 | 383 | 52 | 1 |
module Zero.Crypto
(
SecretKey
, PublicKey
-- * Generators
, generateBytes
, generateUUID
, generateSecretKey
-- * Ed25519 primitives
, asSecretKey
, asPublicKey
, asSignature
, toPublicText
-- * HMAC primitives
, deriveRequestKey
, deriveHMACKey
, deriveHMACKey1
, deriveHM... | et4te/zero | src-shared/Zero/Crypto.hs | bsd-3-clause | 5,201 | 0 | 17 | 1,166 | 1,433 | 766 | 667 | 122 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnicodeSyntax #-}
{-|
[@ISO639-1@] en
[@ISO639-2B@] eng
[@ISO639-3@] eng
[@Native name@] English
[@English name@] English... | telser/numerals | src/Text/Numeral/Language/ENG.hs | bsd-3-clause | 9,352 | 64 | 18 | 3,606 | 2,822 | 1,569 | 1,253 | 191 | 13 |
{-# OPTIONS_GHC -Wall #-}
module VizMarkers where
import Control.Exception (SomeException, catch)
import Data.Foldable (toList)
import Graphics.GLUtil
import Graphics.Rendering.OpenGL
import Linear.V2
import Linear.V3
import Linear.Matrix
import MyPaths
import System.Exit (exitWith, ExitCode(..))
data EuclideanGround ... | acowley/PcdViewer | src/VizMarkers.hs | bsd-3-clause | 4,038 | 0 | 17 | 1,707 | 1,045 | 522 | 523 | 72 | 2 |
{-# LANGUAGE OverloadedStrings, PackageImports, TupleSections #-}
module Network.PeyoTLS.CryptoTools (
makeKeys, encrypt, decrypt, hashSha1, hashSha256, finishedHash) where
import Prelude hiding (splitAt, take)
import Control.Arrow (first)
import Data.Bits (xor)
import Data.Word (Word8, Word16, Word64)
import "cryp... | YoshikuniJujo/forest | subprojects/tls-analysis/server/src/Network/PeyoTLS/CryptoTools.hs | bsd-3-clause | 3,695 | 38 | 18 | 678 | 1,612 | 874 | 738 | 80 | 3 |
{-|
Module : Database.Relational.Constraint
Description : Definition of CONSTRAINT.
Copyright : (c) Alexander Vieth, 2015
Licence : BSD3
Maintainer : aovieth@gmail.com
Stability : experimental
Portability : non-portable (GHC only)
-}
{-# LANGUAGE AutoDeriveTypeable #-}
module Database.Relational.Constra... | avieth/Relational | Database/Relational/Constraint.hs | bsd-3-clause | 411 | 0 | 6 | 77 | 31 | 21 | 10 | 4 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module QCommon.PackT where
import Control.Lens (makeLenses)
import qualified Data.ByteString as B
import qualified Data.HashMap.Lazy as HM
import Types
makeLenses ''PackT
newPackT :: PackT
newPackT = PackT B.empty Nothing B.empty 0 HM.empty | ksaveljev/hake-2 | src/QCommon/PackT.hs | bsd-3-clause | 304 | 0 | 6 | 65 | 72 | 43 | 29 | 9 | 1 |
{-# Language DeriveDataTypeable #-}
module Main where
import System.Console.CmdArgs
import System.Exit (exitWith, ExitCode(..))
import Control.Concurrent (threadDelay)
import Control.Monad (unless, when)
import Data.Maybe (isNothing)
import qualified Data.ByteString as B
import Network.Game.Socket
data Cmd =
Cli... | noteed/game-packet | tests/socket.hs | bsd-3-clause | 1,401 | 0 | 16 | 319 | 482 | 239 | 243 | 48 | 2 |
module BISocie.Helpers.Form where
import Import
import BISocie.Helpers.Util
fs :: RenderMessage m msg => msg -> FieldSettings m
fs m = FieldSettings { fsLabel = SomeMessage m
, fsTooltip = Nothing
, fsId = Nothing
, fsName = Nothing
,... | cutsea110/BISocie | BISocie/Helpers/Form.hs | bsd-3-clause | 1,039 | 0 | 10 | 424 | 282 | 157 | 125 | 20 | 1 |
{-# LANGUAGE RecordWildCards #-}
module Allegro.DisplayMode where
import Allegro.C.DisplayMode
import Foreign
import Foreign.C.Types
newtype PixelFormat = PixelFormat CInt
deriving Show
data DisplayMode = DisplayMode
{ dmWidth :: Int
, dmHeight :: Int
, dmPixelFormat :: PixelFo... | yav/allegro | src/Allegro/DisplayMode.hs | bsd-3-clause | 1,182 | 0 | 21 | 416 | 321 | 167 | 154 | 31 | 3 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Network.Wai.Middleware.RequestLogger
import Network.Wai.Middleware.Static
import Web.Scotty as S
import Control.Monad
import Control.Monad.IO.Class... | asg0451/rainbow6-map-server | src/Main.hs | bsd-3-clause | 4,147 | 0 | 23 | 1,719 | 1,059 | 524 | 535 | 106 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE Rank2Types #-}
module HorbitsCC.CameraControlExploration(basesAndCameraControls, ZoomModel(..), linearZoom, geometricZoom) where
import Control.Lens
import Control.Monad hiding (forM_, mapM_)
import Control.Monad.IO.Class
import ... | chwthewke/horbits | src/cc/HorbitsCC/CameraControlExploration.hs | bsd-3-clause | 3,386 | 0 | 13 | 1,039 | 1,134 | 542 | 592 | 76 | 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. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
module Duckling.R... | rfranek/duckling | Duckling/Ranking/Classifiers.hs | bsd-3-clause | 3,396 | 0 | 5 | 319 | 578 | 377 | 201 | 59 | 1 |
import Network.HGopher
import Rascal.API
import Rascal.Types
-- config
hhost = "localhost"
hport = 7071
-- "app"
app "/" = ret [ info "Haskell Resources"
, dir "Reddit /r/haskell" "/r/haskell"
-- , dir "GitHub" "/github"
-- , dir "Twitter" "/twitter"
-- , dir "H... | mxswd/maxgopher | Main.hs | bsd-3-clause | 1,215 | 0 | 13 | 355 | 452 | 231 | 221 | 23 | 1 |
{-# LANGUAGE FlexibleContexts, RankNTypes, CPP #-}
module AWS.RDS.Internal
( apiVersion
, RDS
, rdsQuery
, rdsQueryOnlyMetadata
, elements
, elements'
, dbSubnetGroupSink
, sourceTypeToText
, dbSecurityGroupMembershipSink
, vpcSecurityGroupMembershipSink
) where
import Cont... | IanConnolly/aws-sdk-fork | AWS/RDS/Internal.hs | bsd-3-clause | 3,503 | 0 | 13 | 717 | 861 | 460 | 401 | 104 | 1 |
module Language.Java.Lenses.Java
( module Language.Java.Syntax
, module Language.Java.Syntax.Types
, module Language.Java.Syntax.Exp
, module Language.Java.SyntaxClasses
, module Language.Java.Lenses.Syntax
, module Language.Java.Lenses.Syntax.Types
--, module Language.Java.Lenses.Syntax.Exp... | exemplator/java-parser | Language/Java/Lenses/Java.hs | bsd-3-clause | 726 | 0 | 5 | 180 | 116 | 84 | 32 | 14 | 0 |
module PIC.LinkerScript.Parser.Preprocess
( uncomment
, preprocess
, defaultMacros
) where
-- | Remove "//"-style comments from code. Is not string-literal-aware.
uncomment :: String -> String
uncomment = uncomment'
where
uncomment' a = case a of
"" -> ""
'/' : '/' : xs -> " " ++... | brooksbp/pic | src/PIC/LinkerScript/Parser/Preprocess.hs | bsd-3-clause | 2,327 | 0 | 17 | 689 | 880 | 458 | 422 | 47 | 9 |
module Main where
import Control.Monad (forM_)
import TAPL.Meow (exec_)
import Test.QuickCheck
import Text.Printf (printf)
import Runner (run)
testCount :: Int
testCount = 3
main :: IO ()
main = do
forM_ [1 .. testCount] $ \i -> do
input <- readFile (printf "simplebool/examples/ex%d.in" i)
expected <- rea... | foreverbell/unlimited-plt-toys | tapl/simplebool/Test.hs | bsd-3-clause | 490 | 0 | 15 | 92 | 172 | 89 | 83 | 16 | 1 |
module Data.Leonine.Sparse (
Bit,
Chunk,
test,
set,
clear,
bits,
pop,
-- Internal functions
v_elem, v_insert, v_sort
) where
import qualified Data.List as L
import Data.Maybe (isJust)
import Data.Monoid
import qualifie... | thsutton/leonine | lib/Data/Leonine/Sparse.hs | bsd-3-clause | 2,428 | 0 | 8 | 621 | 559 | 320 | 239 | 40 | 1 |
module Air.Env
(
module Air.Light
, module Prelude
, module Air.Data.Monoid
-- , module Air.Control.Monad.ListBuilder
-- , module Air.Control.Monad.ObjectBuilder
, module Air.Data.Default
) where
import Air.Light
import Prelude hiding ((.), (>), (<), (^), (/), (-), (+), length, drop, take, splitAt, repl... | nfjinjing/air | src/Air/Env.hs | bsd-3-clause | 562 | 0 | 5 | 78 | 130 | 94 | 36 | 10 | 0 |
{-# LANGUAGE RelaxedPolyRec #-} -- needed for inlinesBetween on GHC < 7
{-# LANGUAGE ScopedTypeVariables #-}
{-
Copyright (C) 2006-2015 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 S... | liwanwei/pandoc | src/Text/Pandoc/Readers/Markdown.hs | gpl-2.0 | 73,310 | 0 | 28 | 20,421 | 21,584 | 10,666 | 10,918 | 1,613 | 7 |
{- |
Module : ./Logic/LGToXml.hs
Description : export logic graph information as XML
Copyright : (c) Christian Maeder DFKI GmbH 2013
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : non-portable (via imports)
export logic graph... | spechub/Hets | Logic/LGToXml.hs | gpl-2.0 | 3,898 | 0 | 21 | 851 | 1,296 | 633 | 663 | 81 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Network.AWS.Support.Types.Product
-- ... | fmapfmapfmap/amazonka | amazonka-support/gen/Network/AWS/Support/Types/Product.hs | mpl-2.0 | 39,757 | 0 | 22 | 8,277 | 6,233 | 3,664 | 2,569 | 635 | 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-ec2/gen/Network/AWS/EC2/GetPasswordData.hs | mpl-2.0 | 5,964 | 0 | 16 | 1,224 | 796 | 481 | 315 | 99 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- | Example taken from: http://members.shaw.ca/el.supremo/MagickWand/pixel_mod.htm
-- example/pixel_mod.c
-- Change the colour of one pixel in the logo: image
-- using either DrawPoint or a RegionIterator
import Control.Applicative ((<$>))
import Data... | flowbox-public/imagemagick | examples/pixel_mod.hs | apache-2.0 | 1,607 | 0 | 13 | 424 | 240 | 130 | 110 | 24 | 2 |
module GHC.Type where
import GHC.Kind
import Name
import Utilities
import qualified Data.Set as S
data Type = TyVarTy TyVar
| TyConTy TyCon
| AppTy Type Type
| ForAllTy TyVar Type
deriving (Eq, Show)
instance Pretty Type where
pPrintPrec level prec ty = case ty of
... | batterseapower/cps-core | GHC/Type.hs | bsd-3-clause | 3,487 | 0 | 12 | 835 | 1,280 | 657 | 623 | 80 | 4 |
-- |
-- Module : Console.Options.Nid
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : Good
--
-- Somewhat similar in functionality to Data.Unique.
-- create Nids for parameter identification purpose.
module Console.Options.Nid
( Nid
... | NicolasDP/hs-cli | Console/Options/Nid.hs | bsd-3-clause | 781 | 0 | 8 | 154 | 126 | 78 | 48 | 12 | 1 |
{- |
This module provides normalized versions of the transforms in @fftw@.
The forwards transforms in this module are identical to those in "Numeric.FFT.Vector.Unnormalized".
The backwards transforms are normalized to be their inverse operations (approximately, due to floating point precision).
For more information o... | judah/vector-fftw | Numeric/FFT/Vector/Invertible.hs | bsd-3-clause | 4,639 | 0 | 13 | 1,280 | 669 | 398 | 271 | 47 | 1 |
module Main where
import qualified Vimus.Run
main :: IO ()
main = Vimus.Run.main
| haasn/vimus | driver/Main.hs | mit | 82 | 0 | 6 | 14 | 28 | 17 | 11 | 4 | 1 |
-- Disable full-laziness to keep ghc from optimizing most of the benchmark away.
{-# OPTIONS_GHC -fno-full-laziness #-}
import Control.DeepSeq (NFData(rnf))
import Control.Exception (evaluate)
import Control.Monad.IO.Class (liftIO)
import Criterion.Main (defaultMain, bgroup, bench)
import Criterion.Types (Benchmarkable... | tensorflow/haskell | tensorflow-ops/tests/FeedFetchBench.hs | apache-2.0 | 1,752 | 0 | 19 | 374 | 527 | 274 | 253 | 30 | 1 |
module Util.Tests
( tests
) where
import Test.Framework
import Test.Framework.Providers.HUnit
import Test.HUnit hiding (Test)
import Util.Sanitize (sanitize)
tests :: [Test]
tests = [ testCase "sanitize case 1" sanitize1
, testCase "sanitize case 2" sanitize2
]
-- | Simple sanitize test case... | iblech/blaze-html | tests/Util/Tests.hs | bsd-3-clause | 497 | 0 | 6 | 96 | 111 | 66 | 45 | 13 | 1 |
-- (c) 1999 - 2002 by Martin Erwig [see file COPYRIGHT]
-- | Tree-based implementation of 'Graph' and 'DynGraph'
module Data.Graph.Inductive.Tree (Gr,UGr) where
import Data.List (foldl')
import Data.Graph.Inductive.Graph
import Data.Graph.Inductive.Internal.FiniteMap
import Data.Maybe (fromJust)
----------... | FranklinChen/hugs98-plus-Sep2006 | packages/fgl/Data/Graph/Inductive/Tree.hs | bsd-3-clause | 3,126 | 0 | 13 | 807 | 1,335 | 730 | 605 | 50 | 2 |
<?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-SP">
<title>Regular Expression Tester</title>
<maps>
<homeID>regextester</homeID>
<m... | thc202/zap-extensions | addOns/regextester/src/main/javahelp/help_sr_SP/helpset_sr_SP.hs | apache-2.0 | 978 | 77 | 66 | 157 | 409 | 207 | 202 | -1 | -1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module T13662 (run) where
import Data.Kind (Type)
newtype Value a = Value a
type family Repr (f :: Type -> Type) a :: Type
type instance Repr f Int = f Int
class (Repr Value i ~ Value ir) => Native i ir where
instance Native Int Int where
fromI... | sdiehl/ghc | testsuite/tests/indexed-types/should_compile/T13662.hs | bsd-3-clause | 518 | 0 | 11 | 121 | 204 | 112 | 92 | -1 | -1 |
-- Copyright (c) 2000 Galois Connections, Inc.
-- All rights reserved. This software is distributed as
-- free software under the license in the file "LICENSE",
-- which is included in the distribution.
module Data where
import Data.Array
import CSG
import Geometry
import Illumination
import Primitives
import Surfa... | ezyang/ghc | testsuite/tests/programs/galois_raytrace/Data.hs | bsd-3-clause | 13,679 | 0 | 17 | 4,178 | 3,828 | 2,161 | 1,667 | 312 | 1 |
module T7672a(Decl.T) where
import {-# SOURCE #-} qualified T7672 as Decl
| urbanslug/ghc | testsuite/tests/rename/should_compile/T7672a.hs | bsd-3-clause | 74 | 0 | 5 | 11 | 18 | 13 | 5 | 2 | 0 |
module ShouldCompile where
-- Strict field unpacking tests: compile with -O -funbox-strict-fields.
-- test 1: simple unboxed int field
data T = T !Int
t (T i) = i + 1
-- test 2: mutual recursion (should back off from unboxing either field)
data R = R !S
data S = S !R
r (R s) = s
-- test 3: multi-level unboxing
dat... | urbanslug/ghc | testsuite/tests/deSugar/should_compile/ds046.hs | bsd-3-clause | 891 | 0 | 13 | 245 | 495 | 268 | 227 | 51 | 1 |
module ParserNoMultiWayIf where
x = 123
y = if | x < 0 -> -1
| x == 0 -> 0
| otherwise -> 1
| ghc-android/ghc | testsuite/tests/parser/should_fail/ParserNoMultiWayIf.hs | bsd-3-clause | 115 | 0 | 9 | 48 | 51 | 26 | 25 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, BangPatterns #-}
module Scene.Parser (parseScene, parseMesh) where
import Control.Applicative
import Data.Attoparsec.ByteString.Char8 as A8
import Data.Functor
import Data.IntMap as IM
import Data.IntSet
import qualified Data.Foldable as F
import Data.ByteString as B
import Data.ByteStr... | Drezil/htrace | src/Scene/Parser.hs | mit | 9,134 | 14 | 19 | 4,393 | 2,402 | 1,228 | 1,174 | 225 | 10 |
{-# LANGUAGE FlexibleContexts #-}
{-# OPTIONS_GHC -freduction-depth=50 #-}
module CoqLNOutputThmOpenClose2 where
import Text.Printf ( printf )
import AST
import ASTAnalysis
import ComputationMonad
import CoqLNOutputCommon
import CoqLNOutputCombinators
openCloseThms2 :: ASTAnalysis -> [[NtRoot]] -> M String
openClos... | plclub/lngen | src/CoqLNOutputThmOpenClose2.hs | mit | 5,803 | 0 | 14 | 2,708 | 1,390 | 686 | 704 | 108 | 1 |
import Math.NumberTheory.Primes.Sieve(primes)
euler n = sum $ takeWhile (<n) primes
main = do
print $ euler 10
print $ euler 2000000 | dpieroux/euler | 0/0010.hs | mit | 142 | 4 | 9 | 30 | 67 | 30 | 37 | 5 | 1 |
{-# LANGUAGE BangPatterns, DataKinds, DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Hadoop.Protos.ClientNamenodeProtocolProtos.AllowSnapshotResponseProto (AllowSnapshotResponseProto(..)) where
import Prelude ((+), (/))
import qualified Prelude as Pr... | alexbiehl/hoop | hadoop-protos/src/Hadoop/Protos/ClientNamenodeProtocolProtos/AllowSnapshotResponseProto.hs | mit | 2,976 | 1 | 16 | 536 | 554 | 291 | 263 | 53 | 0 |
import XXP
main = runXXP $ do cmake "gen"
-- gitCommit
spawn "gen"
| mahrz/xxp | example/xp_gen.hs | mit | 106 | 3 | 7 | 52 | 30 | 12 | 18 | 3 | 1 |
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
-- | Custom data type to represent a sequence of properties
-- each property may or may not have a key associated with it,
-- and duplicates are allowed
module Scripting.Fuligite.PropertyList
( PropList,
empty,
elems... | tomjefferys/fuligite | src/Scripting/Fuligite/PropertyList.hs | mit | 2,254 | 0 | 12 | 487 | 759 | 403 | 356 | 54 | 2 |
module Dependencies where
import Language
import Val
import Data.List
type Id = String
type Decl = (Name, [Name], Val)
type Binding = (Name, Val)
-- Depdendency graphs
type DepGraph = [(Id, [Id])]
--Get the list of function names that the passed function depends on
depends :: DepGraph -> Id -> [Id]
depends g f = ... | jmct/IterativeCompiler | frontend/Dependencies.hs | mit | 3,240 | 0 | 13 | 780 | 1,396 | 740 | 656 | 67 | 6 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.TextTrack
(js_addCue, addCue, js_removeCue, removeCue, js_addRegion,
addRegion, js_removeRegion, removeRegion, js_getId, getId,
js_setKind, setKind, js_getKind, getKind, js_getLabel, getLabe... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/TextTrack.hs | mit | 8,270 | 116 | 11 | 1,236 | 1,846 | 1,011 | 835 | 117 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE QuasiQuotes #-}
{-# L... | piyush-kurur/yesod | yesod-routes/test/main.hs | mit | 12,613 | 10 | 19 | 3,746 | 3,222 | 1,595 | 1,627 | 184 | 3 |
-------------------------------------------------------------------------
--
-- Haskell: The Craft of Functional Programming, 3e
-- Simon Thompson
-- (c) Addison-Wesley, 1996-2011.
--
-- Chapter 8
--
-------------------------------------------------------------------------
module Chapter8 where
import Data.Time
i... | Numberartificial/workflow | snipets/.stack-work/intero/intero30430oOV.hs | mit | 9,218 | 0 | 15 | 2,764 | 2,269 | 1,161 | 1,108 | 243 | 10 |
import Control.Applicative
import Data.STRef
import Control.Monad
import Control.Monad.ST
import Vector
import System.IO
import SVM
type Count = Int
findMaxR :: [Point] -> Double
findMaxR ps = maximum [l2Norm (point y) | y <- ps]
learn1 :: LearningRate -> Double -> Parameter -> Point -> Parameter
learn1 eta r2 (w, b... | kenkov/nlp | haskell/learn/perceptron.hs | mit | 1,537 | 0 | 14 | 393 | 617 | 315 | 302 | 34 | 2 |
#!/usr/bin/env stack
-- stack --install-ghc runghc --package turtle
{-# LANGUAGE OverloadedStrings #-}
import Turtle
main = stdout stdin
| JoshuaGross/haskell-learning-log | Code/turtle/cat.hs | mit | 150 | 1 | 4 | 31 | 18 | 9 | 9 | 3 | 1 |
module Main where
import HSudoku
import Data.Maybe (fromJust, isJust, mapMaybe)
main :: IO ()
main = do
content <- getContents
let grids = mapMaybe parseGrid (lines content)
let results = zip grids (map solve grids)
mapM_ (putStrLn . \g -> maybe (showGrid . fst $ g) showGrid (snd g)) results
| Kirez/hsudoku | src/Main.hs | mit | 311 | 0 | 14 | 68 | 131 | 67 | 64 | 9 | 1 |
-- Compiler Toolkit: Self-optimizing lexers
--
-- Author : Manuel M. T. Chakravarty
-- Created: 2 March 99
--
-- Copyright (c) 1999 Manuel M. T. Chakravarty
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Library General Public
-- License as published b... | jrockway/c2hs | src/Text/Lexers.hs | gpl-2.0 | 19,182 | 0 | 19 | 5,513 | 3,304 | 1,908 | 1,396 | 151 | 9 |
-- | The git \"index\" is a disk-based packed binary file that represents
-- a tree of files (complete with cached last-stat info). It is used for
-- quick diffing\/status queries, to stage commits, and to hold extra data
-- during merges.
module Index (
Index(..)
, IndexEntry(..)
, IndexTree(..)
, loadInde... | martine/gat | Index.hs | gpl-2.0 | 5,716 | 0 | 14 | 1,246 | 1,343 | 698 | 645 | 134 | 2 |
module Prover.Pretty where
import Prover.Types
import Language.Fixpoint.PrettyPrint
instance PPrint (Var a) where
pprint = pprint . var_name
instance PPrint (Expr a) where
pprint = pprint . mkExpr
instance PPrint (Predicate a) where
pprint = pprint . p_pred
instance Show (Axiom a) where
show a = sh... | nikivazou/prover | src/Prover/Pretty.hs | gpl-2.0 | 2,002 | 0 | 19 | 591 | 860 | 423 | 437 | 41 | 1 |
{- |
Module : $Header$
Description : composition tables of qualitative calculi
Copyright : (c) Uni Bremen 2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@informatik.uni-bremen.de
Stability : provisional
Portability : portable
composition tables
-}
module CASL.CompositionTable.C... | nevrenato/Hets_Fork | CASL/CompositionTable/CompositionTable.hs | gpl-2.0 | 1,970 | 0 | 9 | 428 | 425 | 250 | 175 | 46 | 0 |
{-# LANGUAGE NoImplicitPrelude, LambdaCase #-}
module Main (main) where
import Conflict (Conflict(..))
import qualified Conflict as Conflict
import qualified Control.Exception as E
import Control.Monad (when, unless, filterM)
import Data.Foldable (asum, traverse_)
import Data.L... | Peaker/resolve-trivial-conflicts | src/Main.hs | gpl-2.0 | 10,051 | 0 | 15 | 2,768 | 2,591 | 1,316 | 1,275 | 211 | 3 |
-- bottom-up of n-ary tree
data Tree a = Node a [Tree a]
p72 :: Tree a -> [a]
p72 (Node x xs) = concatMap p72 xs ++ [x]
| yalpul/CENG242 | H99/70-73/p72.hs | gpl-3.0 | 122 | 1 | 9 | 31 | 68 | 33 | 35 | 3 | 1 |
module State where
{ import System.IO.Unsafe (unsafePerformIO);
import Control.Concurrent.MVar;
import Deployment;
data State = State{deploymentState :: DeploymentState};
currentState :: MVar State;
currentState = unsafePerformIO (newMVar initialState);
initialState :: State;
initialState = St... | ckaestne/CIDE | CIDE_Language_Haskell/test/WSP/Webserver/State.hs | gpl-3.0 | 367 | 0 | 8 | 60 | 88 | 56 | 32 | 9 | 1 |
{-# 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/Directory/RoleAssignments/Insert.hs | mpl-2.0 | 5,185 | 0 | 20 | 1,266 | 790 | 459 | 331 | 117 | 1 |
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
{-# LANGUAGE MultiWayIf #-}
func = do
let
foo = if
| Constuctoooooooooooooooooooooooooooooooooooor `elem` artics -- TODO
-> ma... | lspitzner/brittany | data/Test537.hs | agpl-3.0 | 455 | 1 | 14 | 156 | 91 | 46 | 45 | 10 | 2 |
-----------------------------------------------------------------------------------------
{-| Module : ParseC
Copyright : (c) Daan Leijen 2003
License : BSD-style
Maintainer : wxhaskell-devel@lists.sourceforge.net
Stability : provisional
Portability : portable
Parse the wxc... | thielema/wxhaskell | wxdirect/src/ParseC.hs | lgpl-2.1 | 10,571 | 0 | 43 | 2,736 | 3,169 | 1,506 | 1,663 | 235 | 3 |
module SyntaxSpec
( syntaxSpec
) where
import qualified Data.Attoparsec.Text as A
import Test.Hspec
import Text.Shakespeare.Text
import Text.XmlHtml
import qualified Lupo.Syntax as S
syntaxSpec :: Spec
syntaxSpec = describe "diary syntax parser" $ do
it "parses bullet list" $
parseDiary [st|
* foo
* bar
|]... | keitax/lupo | spec/SyntaxSpec.hs | lgpl-3.0 | 1,919 | 0 | 15 | 437 | 478 | 256 | 222 | -1 | -1 |
module Main where
import ClassyPrelude hiding (getArgs)
import System.Environment (getArgs, getProgName)
import System.Exit (exitFailure)
import Network.IRC
import Network.IRC.Config
main :: IO ()
main = do
-- get args
args <- getArgs
prog <- getProgName
when (length args < 1) $ do
p... | abhin4v/hask-irc | hask-irc-runner/Main.hs | apache-2.0 | 499 | 0 | 12 | 117 | 141 | 73 | 68 | 15 | 1 |
module HelperSequences.A000720Spec (main, spec) where
import Test.Hspec
import HelperSequences.A000720 (a000720)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A000720" $
it "correctly computes the first 20 elements" $
take 20 (map a000720 [1..]) `shouldBe` expectedValue where
expectedValue... | peterokagey/haskellOEIS | test/HelperSequences/A000720Spec.hs | apache-2.0 | 365 | 0 | 10 | 59 | 160 | 95 | 65 | 10 | 1 |
{-
Copyright 2015 Tristan Aubrey-Jones
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 agreed to in writing, sof... | flocc-net/flocc | v0.1/Compiler/Back/Maps/STemplates.hs | apache-2.0 | 22,015 | 0 | 31 | 6,002 | 6,242 | 3,164 | 3,078 | 385 | 1 |
-- necessary for `ToParamSchema Core.EpochIndex`
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Cardano.Node.API.Swagger where
import Universum
import Control.Lens (at, (?~))
import Data.Swagger
import Servant
import Servant.Swagger
import Servant.Swagger.UI ... | input-output-hk/cardano-sl | node/src/Cardano/Node/API/Swagger.hs | apache-2.0 | 2,254 | 0 | 16 | 683 | 516 | 272 | 244 | -1 | -1 |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="ja-JP">
<title>Server-Sent Events | ZAP Extension</title>
<maps>
<homeID>top</homeID>
... | 0xkasun/security-tools | src/org/zaproxy/zap/extension/sse/resources/help_ja_JP/helpset_ja_JP.hs | apache-2.0 | 1,006 | 88 | 63 | 160 | 411 | 208 | 203 | -1 | -1 |
-- Implements the surreal numbers
-- Don't you dare do 3 * 3
module Data.Surreal ( Surreal, srZero ) where
data Surreal = Surreal [Surreal] [Surreal]
deriving (Show, Read)
srZero = Surreal [] []
instance Eq Surreal where
x == y = (x <= y) && (y <= x)
instance Ord Surreal where
(<=) = srleq
instance Nu... | elfakyn/Haskell-surreals | surreal.hs | bsd-2-clause | 2,214 | 0 | 10 | 731 | 998 | 524 | 474 | 57 | 1 |
{-# LANGUAGE KindSignatures, TypeFamilies, ConstraintKinds, PolyKinds, DataKinds #-}
module Control.Effect.ParameterisedAsGraded where
import Control.Effect
{-| Implements Bob Atkey's 'parametric monads',
and also the Control.Monad.Indexed package, by emulating
indexing by morphisms -}
{-| Data type of morp... | dorchard/effect-monad | src/Control/Effect/ParameterisedAsGraded.hs | bsd-2-clause | 763 | 1 | 11 | 199 | 265 | 139 | 126 | 13 | 0 |
-- This module contains some useful functions (yet) not available in rewriting library
module Tct.Trs.Data.Rewriting where
import Control.Arrow ((&&&))
import Control.Monad.State.Strict
import Data.Maybe
import qualified Data.Set as S
import Dat... | ComputationWithBoundedResources/tct-trs | src/Tct/Trs/Data/Rewriting.hs | bsd-3-clause | 7,573 | 0 | 18 | 1,935 | 2,923 | 1,518 | 1,405 | 112 | 3 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
module Cabal.Index (
-- * Metadata construction
indexMetadata,
cachedHackageMetadata,
-- ** Ex... | hvr/multi-ghc-travis | cabal-install-parsers/src/Cabal/Index.hs | bsd-3-clause | 25,768 | 0 | 30 | 7,094 | 6,617 | 3,443 | 3,174 | 498 | 14 |
-- |
-- Module : Crypto.Random.Entropy
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : Good
--
{-# LANGUAGE CPP #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Crypto.Random.Entropy
( Entrop... | vincenthz/hs-crypto-random | Crypto/Random/Entropy.hs | bsd-3-clause | 6,060 | 0 | 15 | 1,420 | 1,479 | 770 | 709 | 102 | 3 |
module Wikirick.Import
( module Export
) where
import Control.Applicative as Export
import Control.Lens as Export
import Control.Monad as Export
import Control.Monad.State as Export
import Data.Default as Export
import Data.Function as Export
import Data.Maybe as Export
import Data.Monoid as Export
import Data.Tex... | keitax/wikirick | src/Wikirick/Import.hs | bsd-3-clause | 337 | 0 | 4 | 48 | 77 | 55 | 22 | 11 | 0 |
module Rules.Wrappers.Ghc (ghcWrapper) where
import Base
import Expression
import Settings
ghcWrapper :: FilePath -> Expr String
ghcWrapper program = do
lift $ need [sourcePath -/- "Rules/Wrappers/Ghc.hs"]
top <- getTopDirectory
return $ unlines
[ "#!/bin/bash"
, "exec " ++ (top -/- progra... | quchen/shaking-up-ghc | src/Rules/Wrappers/Ghc.hs | bsd-3-clause | 395 | 0 | 15 | 94 | 115 | 61 | 54 | 12 | 1 |
module Distribution.Nixpkgs.Haskell.Hackage
( HackageDB, PackageData, VersionData(..)
, hackageTarball, readTarball
) where
import Data.Map as Map
import qualified Distribution.Hackage.DB.Parsed as P
import Distribution.Hackage.DB.Path
import qualified Distribution.Hackage.DB.Unparsed as U
import Distribution.Ni... | Fuuzetsu/cabal2nix | src/Distribution/Nixpkgs/Haskell/Hackage.hs | bsd-3-clause | 1,501 | 0 | 11 | 311 | 401 | 221 | 180 | 39 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.