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 Systat.Module.Battery (battery) where
import Text.Regex.Posix
import Systat.Module
battery :: Module
battery = Module {
name = "battery"
, prefix = "⚡: "
, command = "acpi"
, args = ["-b"]
, parse = parseInput
}
parseInput :: String -> IO (ModuleState, String)
parseInput input = do
let out = tai... | mfaerevaag/systat | src/Systat/Module/Battery.hs | mit | 791 | 0 | 16 | 215 | 281 | 156 | 125 | 23 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Lastfm group API
--
-- This module is intended to be imported qualified:
--
-- @
-- import qualified Lastfm.Group as Group
-- @
module Lastfm.Group
( getHype, getMembers, getWeeklyAlbumChart, getWeeklyArtistChart, getWeeklyChartList, getWeeklyTrackCha... | supki/liblastfm | src/Lastfm/Group.hs | mit | 2,117 | 0 | 8 | 319 | 244 | 149 | 95 | 17 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS -Wall -Werror -funbox-strict-fields #-}
module FP.ImportWizard.Import
( module FP.ImportWizard.Import
, module X
) where
import BasicPrelude as X hiding (delete, deleteBy,
... | teuffy/min-var-ci | src/FP/ImportWizard/Import.hs | mit | 722 | 0 | 6 | 244 | 112 | 76 | 36 | 17 | 1 |
module SyntheticWeb.RandomData
( randomData
) where
import qualified Data.ByteString.Lazy.Char8 as LBS
import System.Random (mkStdGen, randomRs)
randomData :: LBS.ByteString
randomData = go (mkStdGen 42)
where go = LBS.pack . randomRs ('0', 'z')
| kosmoskatten/synthetic-web | src/SyntheticWeb/RandomData.hs | mit | 258 | 0 | 9 | 43 | 77 | 46 | 31 | 7 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TupleSections #-}
-- Copyright : (c) 2019 Robert Künnemann
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Robert Künnemann <robert@kunnemann.de>
-- Portability : GHC only
--
-- Compute a functio... | tamarin-prover/tamarin-prover | lib/sapic/src/Sapic/ProgressFunction.hs | gpl-3.0 | 6,831 | 0 | 14 | 2,059 | 1,992 | 1,019 | 973 | 101 | 2 |
-- Chapter 5 of book.RealWorldHaskell.org
-- A sample JSON reading and formatting library for RealWorldHaskell
module SimpleJSON
(
JValue(..),
getString,
getInt,
getDouble,
getBool,
getObject,
getArray,
isNull
) where
data JValue = JString String
|... | jtwool/haskell-sandbox | SimpleJSON.hs | gpl-3.0 | 1,159 | 0 | 8 | 380 | 348 | 186 | 162 | 36 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.AndroidPublisher.Types.Sum
-- Copyright : (c) 2015-201... | brendanhay/gogol | gogol-android-publisher/gen/Network/Google/AndroidPublisher/Types/Sum.hs | mpl-2.0 | 22,271 | 0 | 11 | 4,827 | 3,090 | 1,655 | 1,435 | 377 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.AlertCenter.Types.Sum
-- Copyright : (c) 2015-2016 Bre... | brendanhay/gogol | gogol-alertcenter/gen/Network/Google/AlertCenter/Types/Sum.hs | mpl-2.0 | 12,003 | 0 | 11 | 2,503 | 1,752 | 936 | 816 | 209 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/Delete.hs | mpl-2.0 | 6,207 | 0 | 15 | 1,275 | 721 | 432 | 289 | 98 | 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 #-}
-- ... | olorin/amazonka | amazonka-iam/gen/Network/AWS/IAM/ListGroupPolicies.hs | mpl-2.0 | 7,593 | 0 | 14 | 1,586 | 999 | 595 | 404 | 112 | 1 |
{-|
Module : Reflex.WX.Layout
Description : This module re-exports appropriate functions from
Graphics.UI.WXCore.Layout and provides the necessary instance
declaration to make the functions work.
License : wxWindows Library License
Maintainer : joshuabrot@gmail.com
Stability : Ex... | Pamelloes/reflex-wx | src/main/Reflex/WX/Layout.hs | lgpl-2.1 | 3,261 | 0 | 8 | 1,994 | 427 | 254 | 173 | 75 | 0 |
module Print where
import General
import Dictionary
import Data.List (intersperse)
-- printing morphological objects as strings
prStr :: Str -> String
prStr = concat . intersperse "/" . unStr
prAlts :: Str -> String
prAlts ss =
case unStr ss of
[] -> "*"
ys -> unwords $ intersperse "/" ys
consTable :... | johnjcamilleri/maltese-functional-morphology | lib-1.1/Print.hs | lgpl-3.0 | 11,448 | 30 | 18 | 2,998 | 3,810 | 2,048 | 1,762 | 210 | 4 |
-- The sum of the squares of the first ten natural numbers is,
-- 12 + 22 + ... + 102 = 385
-- The square of the sum of the first ten natural numbers is,
-- (1 + 2 + ... + 10)2 = 552 = 3025
-- Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 385 = 2... | nmarshall23/Programming-Challenges | project-euler/006/06.hs | unlicense | 694 | 0 | 8 | 154 | 131 | 73 | 58 | 5 | 1 |
{-# LANGUAGE OverloadedStrings, DataKinds #-}
import Database.Cassandra.CQL
import Control.Monad
import Control.Monad.CatchIO
import Control.Monad.Trans (liftIO)
import Data.Int
import Data.ByteString.Char8 (ByteString)
import qualified Data.ByteString.Char8 as C
import Data.Set (Set)
import qualified Data.Set as S
im... | ducis/cassandra-minimalist | cassandra-cql-0.3.0.1/tests/test-set.hs | apache-2.0 | 1,566 | 0 | 13 | 327 | 473 | 250 | 223 | 38 | 2 |
import Data.IntMap
pack t [] = t
pack t (n:ns) =
let t' = if (member n t)
then update (\v -> Just(v+1)) n t
else insert n 1 t
in
pack t' ns
depack 10 _ = []
depack n t =
let v = if (member n t)
then t ! n
else 0
in
v:(d... | a143753/AOJ | 3201.hs | apache-2.0 | 935 | 0 | 15 | 401 | 496 | 250 | 246 | 33 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Data.Geometry.PolygonSpec where
import Test.Hspec (Spec, describe, it,
shouldBe)
import qualified Data.Geometry.Clip.Internal.Polygon as InternalPolygon
import qualified Data.SpecHelper... | sitewisely/zellige | test/Data/Geometry/PolygonSpec.hs | apache-2.0 | 846 | 0 | 10 | 210 | 229 | 144 | 85 | 18 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleContexts #-}
module Yesod.Form.Class
( {- FIXME ToForm (..)
, -} ToField (..)
) where
import Text.Hamlet
import Yesod.Form.Fields
import Yesod.Form.Types
import Yesod.Form.Fu... | chreekat/yesod | yesod-form/Yesod/Form/Class.hs | bsd-2-clause | 2,048 | 0 | 10 | 392 | 490 | 260 | 230 | 50 | 0 |
module CodeGeneratorTest where
import Test.Hspec
import qualified CodeGenerator as CG
htmlTokens1 = [("sTag", "startDocument"), ("eTag", "endDocument")]
latex1 :: String
latex1 = "\\documentclass[11pt]{article}\n\n\\begin{document}\n\n\\end{document}"
testCodeGenerator = hspec $ do
describe "Code Generator" $ ... | chris-bacon/HTML-LaTeX-Compiler | tests/CodeGeneratorTest.hs | bsd-3-clause | 794 | 0 | 17 | 155 | 175 | 98 | 77 | 14 | 1 |
{-# LANGUAGE ConstrainedClassMethods #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies ... | AjayRamanathan/plots | src/Diagrams/Coordinates/Isomorphic.hs | bsd-3-clause | 3,720 | 0 | 11 | 907 | 783 | 451 | 332 | 70 | 0 |
{-# LANGUAGE OverloadedStrings, RecordWildCards, ScopedTypeVariables #-}
module Main where
import Web.Scotty
import Network.Wai.Handler.Warp
import qualified Data.Text.Lazy as TL
import Control.Monad.IO.Class
import Data.Aeson
main = do
app <- scottyApp $ do
post "/" $ do
ps <- params
-- liftIO $ p... | spacewaffle/ether | exp/posttest/Main.hs | bsd-3-clause | 432 | 0 | 17 | 117 | 108 | 58 | 50 | 15 | 1 |
module Parse where
import Benchmark
import Data.Csv
import Data.List
import System.Directory
import Data.Either
import qualified Data.Vector as V
import qualified Data.ByteString.Lazy.Char8 as BS
import Data.Time.Clock.POSIX
import Data.Time.LocalTime
import System.FilePath
gulpLogs :: FilePath -> IO [V.Vector Benchm... | ssaavedra/liquidhaskell | scripts/plot-benchmarks/src/Parse.hs | bsd-3-clause | 2,084 | 0 | 21 | 699 | 712 | 375 | 337 | 51 | 3 |
{-# LANGUAGE EmptyCase #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE RankNTyp... | kylcarte/derivation | src/Data/Derivation/Inequality.hs | bsd-3-clause | 7,739 | 0 | 17 | 2,357 | 3,474 | 1,794 | 1,680 | -1 | -1 |
{-# LANGUAGE GADTs #-}
module Main where
import Data.Word
import Architecture.ARM.Common
import Architecture.ARM.Instructions.UAL
import Architecture.ARM.Decoder.ARM
import Architecture.ARM.Decoder.Thumb
import Architecture.ARM.Pretty
import Test.Framework (defaultMain, testGroup)
import Test.Framework.Providers.HUn... | copumpkin/charm | tests/Main.hs | bsd-3-clause | 4,632 | 0 | 19 | 950 | 1,294 | 662 | 632 | 55 | 4 |
{-# LANGUAGE TupleSections #-}
module ConsPD.Residualization where
import ConsPD.Unfold
import Control.Applicative ((<|>))
import qualified CPD.Residualization as CpdR
import Data.List (find, intercalate, nub)
import Data.List.NonEmpty (NonEmpty (..), toList)
import ... | kajigor/uKanren_transformations | src/ConsPD/Residualization.hs | bsd-3-clause | 13,151 | 0 | 31 | 3,845 | 3,766 | 1,926 | 1,840 | 184 | 16 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.MESA.ResizeBuffers
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/MESA/ResizeBuffers.hs | bsd-3-clause | 663 | 0 | 4 | 78 | 37 | 31 | 6 | 3 | 0 |
module Main
( main
)
where
import qualified Spec.Async
import qualified Spec.WaitGroup
import qualified Spec.RWLock
import qualified Spec.Aeson
import Test.Hspec
main :: IO ()
main = hspec $ do
Spec.Async.spec
Spec.WaitGroup.spec
Spec.RWLock.spec
Spec.Aeson.spec
| Yuras/qase | spec/spec.hs | bsd-3-clause | 275 | 0 | 8 | 45 | 81 | 47 | 34 | 13 | 1 |
module Data.Singletons.TH.Single.Fixity where
import Prelude hiding ( exp )
import Language.Haskell.TH hiding ( cxt )
import Language.Haskell.TH.Syntax (NameSpace(..), Quasi(..))
import Data.Singletons.TH.Options
import Data.Singletons.TH.Util
import Language.Haskell.TH.Desugar
-- Single a fixity declaration.
singInf... | goldfirere/singletons | singletons-th/src/Data/Singletons/TH/Single/Fixity.hs | bsd-3-clause | 6,813 | 0 | 18 | 1,318 | 437 | 228 | 209 | -1 | -1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE KindSignatures #-}
module EFA.Application.Optimisation.Base where
import qualified EFA.Application.Optimisation.Optimisation as Optimisation
import qualified EFA.Application.Optimisation.DoubleSweep as Double... | energyflowanalysis/efa-2.1 | src/EFA/Application/Optimisation/Base.hs | bsd-3-clause | 21,490 | 0 | 17 | 4,912 | 6,906 | 3,587 | 3,319 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module AnimatedDangerzone.Types where
import Data.Binary
import Data.Map (Map)
import Control.Lens
import NetworkedGame.Handles
type Coord = (Int,Int)
data ClientMsg
= ClientMove Coord
| ClientHello String
deriving (Read, Show)
data ServerMsg
= SetWorld World
| Hello Conne... | glguy/animated-dangerzone | src/AnimatedDangerzone/Types.hs | bsd-3-clause | 993 | 0 | 9 | 210 | 303 | 173 | 130 | 43 | 0 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module React.Flux.Mui.Table.TableHeader where
import Protolude
import Data.Aeson
import Data.Aeson.Casing
import Data.String (String)
import React.Flux
import React.Flux.Mui.Util
data TableHeader = TableHeader
{ tableHeaderAdjustForCheckbox :: !(Ma... | pbogdan/react-flux-mui | react-flux-mui/src/React/Flux/Mui/Table/TableHeader.hs | bsd-3-clause | 1,165 | 0 | 11 | 180 | 292 | 162 | 130 | 44 | 1 |
module Lexicon where
import LG.Base
import LG.Term
import Data.Maybe
data Entry = LexEntry {
term :: NodeTerm,
formula :: Formula
} deriving (Show)
-- Returns the lexical entries to which the given strings map. We assume for simplicity that one word maps to at most one lexical e... | jgonggrijp/net-prove | src/Lexicon.hs | bsd-3-clause | 2,389 | 0 | 15 | 761 | 927 | 473 | 454 | 44 | 2 |
module Week2 where
import Log
parseMessage :: String -> LogMessage
parseMessage xs= let list = words xs in
case list of
("I":line:msg) -> LogMessage Info (read line) (unwords msg)
("W":line:msg) -> LogMessage Warning (read line) (unwords msg)
("E":li... | zach007/cis194 | src/Week2.hs | bsd-3-clause | 1,737 | 0 | 14 | 375 | 599 | 305 | 294 | 32 | 4 |
{-# LANGUAGE RankNTypes, GADTs #-}
module Andromeda.Common.Exists where
import Unsafe.Coerce (unsafeCoerce)
data Exists f where
Exists :: f a -> Exists f
mkExists :: forall f a. f a -> Exists f
mkExists = unsafeCoerce
runExists :: forall f r. (forall a. f a -> r) -> (Exists f -> r)
runExists = unsafeCoerce
| graninas/Andromeda | src/Andromeda/Common/Exists.hs | bsd-3-clause | 315 | 0 | 10 | 61 | 109 | 62 | 47 | 9 | 1 |
{-# LANGUAGE NoMonomorphismRestriction #-}
import Diagrams.Prelude
import Diagrams.Coordinates
import Diagrams.Backend.Cairo.CmdLine
import Rayout
main = defaultMain $
tb "Navigation" 1600 32
===
(tb "Logo" 300 64 ||| tb "Location" 200 32 ||| strutX 100 ||| tb "Search" 600 48) # centerX
===
tb "Banner" 1200 2... | ducis/rayout | 1.hs | bsd-3-clause | 1,024 | 60 | 26 | 304 | 403 | 198 | 205 | 53 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_HADDOCK -ignore-exports #-}
-- | A simple OAuth2 Haskell binding. (This is supposed to be
-- independent of the http client used.)
mod... | freizl/hoauth2 | hoauth2/src/Network/OAuth/OAuth2/Internal.hs | bsd-3-clause | 6,825 | 0 | 16 | 1,290 | 1,762 | 975 | 787 | 147 | 4 |
{-- snippet testscript --}
import QC
import Prettify2
import Test.QuickCheck.Batch
options = TestOptions
{ no_of_tests = 200
, length_of_tests = 1
, debug_tests = False }
main = do
runTests "simple" options
[ run prop_empty_id
, run prop_char
, run pro... | binesiyu/ifl | examples/ch11/Run2.hs | mit | 540 | 0 | 9 | 194 | 113 | 61 | 52 | 18 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( getApplicationDev
, appMain
, develMain
, taskMain
, makeFoundation
, withEnv
-- * for DevelMain
, getApplicationRepl
, shutdownApp
-- * for GHCI
, handler
, db
) where
import Control.Monad.Logger ... | vaporware/carnival | Application.hs | mit | 7,838 | 0 | 16 | 1,980 | 1,310 | 698 | 612 | -1 | -1 |
--{-# LANGUAGE NamedFieldPuns, Safe #-}
{-# LANGUAGE NamedFieldPuns #-}
import Control.Concurrent.MVar (takeMVar)
import Control.Monad (forM, forM_, replicateM)
import Data.List (group, intercalate)
import RP ( RP, RPE, RPR, RPW, ThreadState(..), tid, runRP, forkRP, joinRP, threadDelayRP, readRP, writeRP
, S... | ekmett/MonadicRP | src/RPListIntTest.hs | gpl-3.0 | 1,707 | 0 | 19 | 451 | 645 | 323 | 322 | 39 | 1 |
module Response.Draw
(drawResponse) where
import Text.Blaze ((!))
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import Control.Monad (forM_)
import Happstack.Server
import MasterTemplate
import Scripts
drawResponse :: ServerPart Response
drawResponse =
ok $ ... | christinem/courseography | app/Response/Draw.hs | gpl-3.0 | 2,168 | 0 | 16 | 684 | 684 | 328 | 356 | 53 | 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-elastictranscoder/gen/Network/AWS/ElasticTranscoder/DeletePreset.hs | mpl-2.0 | 3,536 | 0 | 13 | 717 | 445 | 274 | 171 | 57 | 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-dynamodb/gen/Network/AWS/DynamoDB/UpdateItem.hs | mpl-2.0 | 36,622 | 0 | 14 | 8,387 | 2,274 | 1,553 | 721 | 190 | 1 |
{-# LANGUAGE PatternSynonyms #-}
module OpenCog.Lojban.Util where
import OpenCog.AtomSpace
mapFst :: (a -> b) -> (a,c) -> (b,c)
mapFst f (a,c) = (f a,c)
mapSnd :: (a -> b) -> (c,a) -> (c,b)
mapSnd f (c,a) = (c,f a)
highTv :: TruthVal
highTv = stv 1 0.9
lowTv :: TruthVal
lowTv = stv 0.000001 0.01
if' :: Bool ->... | ruiting/opencog | opencog/nlp/lojban/HaskellLib/src/OpenCog/Lojban/Util.hs | agpl-3.0 | 5,409 | 1 | 17 | 2,777 | 1,671 | 858 | 813 | 118 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
-- |
-- Module: Data.Configurator.FromValue
-- Copyright: (c) 2016 Leon P Smith
-- License: BSD3
-- Maintainer: Leon P Smith <leon@melding-monads.com>
module Data.Configurator.FromValue
( MaybeParser
, runMaybeParser
, FromMaybeValue(..)
, optionalV... | lpsmith/configurator | Data/Configurator/FromValue.hs | bsd-3-clause | 996 | 0 | 5 | 267 | 136 | 95 | 41 | 33 | 0 |
{-# LANGUAGE DoRec, RankNTypes, NamedFieldPuns, RecordWildCards #-}
module Distribution.Server.Features.Html (
HtmlFeature(..),
initHtmlFeature
) where
import Distribution.Server.Framework
import qualified Distribution.Server.Framework.ResponseContentTypes as Resource
import Distribution.Server.Framework.Tem... | haskell-infra/hackage-server | Distribution/Server/Features/Html.hs | bsd-3-clause | 79,192 | 0 | 33 | 25,263 | 15,876 | 8,340 | 7,536 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
@DsMonad@: monadery used in desugaring
-}
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-} -- instance MonadThings is necessarily an orphan
module Eta.DeSugar.DsMonad (
DsM, mapM, mapAndU... | rahulmutt/ghcvm | compiler/Eta/DeSugar/DsMonad.hs | bsd-3-clause | 21,540 | 2 | 18 | 6,699 | 4,075 | 2,204 | 1,871 | 335 | 5 |
{-|
Module : IRTS.CodegenJavaScript
Description : The JavaScript code generator.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE OverloadedStrings, PatternGuards #-}
module IRTS.CodegenJavaScript (codegenJavaScript
, codegenNode
... | markuspf/Idris-dev | src/IRTS/CodegenJavaScript.hs | bsd-3-clause | 2,032 | 0 | 14 | 859 | 330 | 196 | 134 | 46 | 2 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE FlexibleInstances, GADTs, OverloadedStrings, CPP #-}
module Data.JSTarget.Print () where
import Prelude hiding (LT, GT)
import Data.JSTarget.AST
import Data.JSTarget.Op
import Data.JSTarget.PP as PP
import Data.ByteString.Builder
import Control.Monad
import Data.Char
i... | beni55/haste-compiler | src/Data/JSTarget/Print.hs | bsd-3-clause | 8,458 | 0 | 19 | 2,723 | 3,737 | 1,796 | 1,941 | 242 | 6 |
{-# OPTIONS_HADDOCK show-extensions #-}
{-# LANGUAGE DataKinds #-}
{- |
Copyright : Copyright (C) 2006-2018 Bjorn Buckwalter
License : BSD3
Maintainer : bjorn@buckwalter.se
Stability : Stable
Portability: GHC only
= Summary
This module defines type synonyms for common dimensionalities and
the a... | bjornbm/dimensional-dk | src/Numeric/Units/Dimensional/Quantities.hs | bsd-3-clause | 16,831 | 0 | 8 | 2,576 | 3,939 | 2,225 | 1,714 | 233 | 1 |
import Control.Monad (when)
import Src
import B
main = when (funMainLib 41 /= funInternal 43) $ error "test failed"
| juhp/stack | test/integration/tests/4105-test-coverage-of-internal-lib/files/test/Main.hs | bsd-3-clause | 118 | 0 | 9 | 21 | 45 | 23 | 22 | 4 | 1 |
-- Cmm representations using Hoopl's Graph CmmNode e x.
{-# LANGUAGE CPP, GADTs #-}
module Cmm (
-- * Cmm top-level datatypes
CmmProgram, CmmGroup, GenCmmGroup,
CmmDecl, GenCmmDecl(..),
CmmGraph, GenCmmGraph(..),
CmmBlock,
RawCmmDecl, RawCmmGroup,
Section(..), CmmStatics(..), CmmStat... | frantisekfarka/ghc-dsi | compiler/cmm/Cmm.hs | bsd-3-clause | 7,316 | 0 | 9 | 1,740 | 1,009 | 616 | 393 | 110 | 1 |
-- (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... | forked-upstream-packages-for-ghcjs/ghc | compiler/types/Type.hs | bsd-3-clause | 66,016 | 0 | 14 | 17,989 | 13,143 | 6,909 | 6,234 | -1 | -1 |
{-# LANGUAGE PolyKinds, DataKinds, TypeOperators, TypeFamilies, GADTs, PartialTypeSignatures #-}
module T13035 where
newtype MyAttr a b = MyAttr { _unMyAttr :: MyFun (a b) }
type MyRec a b = Rec (MyAttr a) b
type family MyFun (a :: k1) :: k2
data GY (a :: k1) (b :: k2) (c :: k1 -> k3) (d :: k1)
data GNone (a :: k1)... | ezyang/ghc | testsuite/tests/perf/compiler/T13035.hs | bsd-3-clause | 4,275 | 0 | 28 | 1,627 | 1,432 | 784 | 648 | -1 | -1 |
{-# LANGUAGE CPP, MagicHash #-}
{-# OPTIONS_GHC -funbox-strict-fields #-}
--
-- (c) The University of Glasgow 2002-2006
--
-- | ByteCodeInstrs: Bytecode instruction definitions
module ByteCodeInstr (
BCInstr(..), ProtoBCO(..), bciStackUse,
) where
#include "HsVersions.h"
#include "../includes/MachDeps.h"
... | ezyang/ghc | compiler/ghci/ByteCodeInstr.hs | bsd-3-clause | 15,696 | 0 | 22 | 4,982 | 3,725 | 1,876 | 1,849 | 299 | 1 |
{-# htermination print :: Show a => a -> IO () #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_print_1.hs | mit | 51 | 0 | 2 | 12 | 3 | 2 | 1 | 1 | 0 |
{-# htermination (enumFromToChar :: Char -> Char -> (List Char)) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
data Char = Char MyInt ;
data MyInt = Pos Nat | Neg Nat ;
data Nat = Succ Nat | Zero ;
data Ordering = LT | EQ | GT ;
data WHNF a = WHNF a ;
f... | ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/enumFromTo_4.hs | mit | 3,753 | 0 | 15 | 830 | 1,712 | 908 | 804 | 96 | 1 |
-- | Settings are centralized, as much as possible, into this file. This
-- includes database connection settings, static file locations, etc.
-- In addition, you can configure a number of different aspects of Yesod
-- by overriding methods in the Yesod typeclass. That instance is
-- declared in the Foundation.hs file.... | TimeAttack/time-attack-server | Settings.hs | mit | 2,878 | 0 | 9 | 502 | 293 | 188 | 105 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE Rank2Types #-}
-- | Buffers for 'Builder's. This is a partial copy of blaze-builder-0.3.3.4's
-- "Blaze.ByteString.Builder.Internal.Buffer" module, which was removed in
-- blaze-builder-0.4.
--
-- If you are using blaze-builder 0.3.*, this module just re... | fpco/streaming-commons | Data/Streaming/ByteString/Builder/Buffer.hs | mit | 6,645 | 0 | 11 | 1,357 | 914 | 535 | 379 | 79 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Oden.Infer (
TypeError(..),
Subst(..),
TypeBinding(..),
TypingEnvironment,
inferExpr,
inferDefinition,
inferPackage,
constraintsExpr
) where
import Control.Arrow (le... | AlbinTheander/oden | src/Oden/Infer.hs | mit | 21,806 | 0 | 22 | 5,342 | 6,983 | 3,430 | 3,553 | 381 | 39 |
module Main where
main = putStrLn "Hello, World"
| CSE3320/30-languages-in-30-days | Day-08-Haskell/hello.hs | mit | 50 | 0 | 5 | 9 | 12 | 7 | 5 | 2 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module Calc where
import ExprT
import Parser
import qualified Data.Map as M
eval :: ExprT -> Integer
eval (Lit n) = n
eval (Mul x y) = eval x * eval y
eval (Add x y) = eval x + eval y
-------------------------------------
evalStr :: String -> Maybe Integer
evalStr s = fmap eval ... | flocknroll/haskell_cis194 | H5/Calc.hs | mit | 2,230 | 0 | 10 | 645 | 865 | 458 | 407 | 69 | 1 |
-- file: ch04/FixLines.hs
import System.Environment (getArgs)
interactWith function inputFile outputFile = do
input <- readFile inputFile
writeFile outputFile (function input)
main = mainWith myFunction
where mainWith function = do
args <- getArgs
case args of
[input... | supermitch/learn-haskell | real-world-haskell/ch04/FixLines.hs | mit | 1,171 | 0 | 12 | 341 | 282 | 142 | 140 | 23 | 4 |
{-# LANGUAGE OverloadedStrings #-}
module Bot.NetHack.EdibleCorpses
( isEdible )
where
import qualified Data.Text as T
isEdible :: T.Text -> Bool
isEdible name = isEdible' (stripPartiallyEaten $ T.strip $ T.toLower name)
stripPartiallyEaten :: T.Text -> T.Text
stripPartiallyEaten txt =
if T.isInfixOf "partial... | Noeda/adeonbot | bot/src/Bot/NetHack/EdibleCorpses.hs | mit | 4,173 | 0 | 9 | 670 | 1,115 | 563 | 552 | 137 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
module Rx.Observable.Timeout where
import Prelude.Compat
import Control.Exception (toException)
import Control.Monad (void, when)
import Tiempo (TimeInterval, seconds)
import Rx.Disposable (dispose, newBooleanDisposable,
newSingleAssignmentDisposable, setDisp... | roman/Haskell-Reactive-Extensions | rx-core/src/Rx/Observable/Timeout.hs | mit | 3,332 | 0 | 16 | 775 | 700 | 365 | 335 | 79 | 2 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module GhostLang.Types
( Declaration (..)
, Label
, ModuleSegment
, Weight
, GhostModule (..)
, ModuleDecl (..)
, ImportDecl (..)
, Time... | kosmoskatten/ghost-lang | ghost-lang/src/GhostLang/Types.hs | mit | 6,592 | 0 | 12 | 1,817 | 1,548 | 844 | 704 | 168 | 1 |
import System.Posix.Eventfd
import System.Environment
import System.Exit
import Control.Concurrent
import Control.Monad
main = do
xs <- getArgs
when (length xs < 1) $ do
putStrLn "Usage, <num>..."
exitFailure
efd <- eventfdSem 0 [] -- TODO: use safe flags
forkIO $ do
forM_ xs $ \x -> do
put... | qnikst/eventfd | examples/sym.hs | mit | 533 | 0 | 17 | 132 | 170 | 78 | 92 | 20 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Views.Pages.NotFound (notFoundView) where
import BasicPrelude
import Text.Blaze.Html5 (Html, (!))
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import Routes (Route)
import Views.Layout (layoutVie... | nicolashery/example-marvel-haskell | Views/Pages/NotFound.hs | mit | 566 | 0 | 13 | 88 | 139 | 81 | 58 | 15 | 1 |
module FileAPI.Client
( fileAPIClient
) where
import Servant.Client (client)
import FileAPI.API (fileAPIProxy)
fileAPIClient = client fileAPIProxy
| houli/distributed-file-system | dfs-shared/src/FileAPI/Client.hs | mit | 154 | 0 | 5 | 23 | 39 | 23 | 16 | 5 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Ketchup.Routing
( Route
, match
, prefix
, route
, useHandler
) where
import qualified Data.ByteString.Char8 as B
import Ketchup.Httpd
import Ketchup.Utils
import Network
type Route = Socket -> HTTPRequest -> (B.ByteString -> Ma... | Hamcha/ketchup | Ketchup/Routing.hs | mit | 2,207 | 0 | 11 | 616 | 758 | 405 | 353 | 49 | 1 |
{-# LANGUAGE ScopedTypeVariables, TemplateHaskell #-}
module Sort_MergeSortBottomUp2 where
import Test.QuickCheck
import Test.QuickCheck.Poly
import Test.QuickCheck.All
import Data.List( sort, delete )
--------------------------------------------------------------------------------
msort :: Ord a => [a] -> [a]
msort... | koengit/induction-examples | Sort_MergeSortBottomUp2.hs | mit | 2,197 | 0 | 11 | 532 | 846 | 449 | 397 | 48 | 1 |
mySqr :: [Integer]
mySqr = [x^2 | x <- [1..5]]
myCube :: [Integer]
myCube = [y^3 | y <- [1..5]]
main :: IO ()
main = do
print (length [(x, y) | x <- mySqr, y <- myCube, x < 50 && y < 50]) | candu/haskellbook | ch9/squareCube.hs | mit | 191 | 0 | 14 | 48 | 135 | 73 | 62 | 7 | 1 |
{-
This file is part of the Haskell package thetvdb. It is subject to the
license terms in the LICENSE file found in the top-level directory of
this distribution and at git://pmade.com/thetvdb/LICENSE. No part of
themoviedb package, including this file, may be copied, modified,
propagated, or distributed except accord... | pjones/thetvdb | Network/API/TheTVDB/Types/Season.hs | mit | 740 | 0 | 9 | 117 | 104 | 69 | 35 | 10 | 0 |
module Main where
import GameInit
import Linear.V2
import qualified Physics.Demo.IOWorld as IOWorld
main :: IO ()
main =
let window = V2 800 600
scale = V2 40 40
in runMain "physics test" window $ IOWorld.demoMain (fmap fromIntegral window) scale
| ublubu/shapes | shapes-demo/src/Main.hs | mit | 280 | 0 | 10 | 73 | 86 | 46 | 40 | 9 | 1 |
module Raindrops (convert) where
convert :: Integer -> String
convert n =
if result == ""
then show n
else
result
where result = factorThree n ++ factorFive n ++ factorSeven n
factorThree :: Integer -> String
factorThree n =
if n `mod` 3 == 0 then "Pling" else ""
factorFive :: Integer... | xTVaser/Exercism-Solutions | haskell/raindrops/src/Raindrops.hs | mit | 482 | 0 | 9 | 130 | 170 | 94 | 76 | 16 | 2 |
{- First we define the function prototype-}
len :: [a] -> Integer
{-Then we define the patterns for functions-}
len [] = 0
len (x:xs) = 1 + len xs
{- the main function -}
main = print (len [1,2,3,4])
| creativcoder/recurse | list_len.hs | mit | 202 | 0 | 8 | 42 | 74 | 41 | 33 | 4 | 1 |
{-# LANGUAGE QuasiQuotes, TemplateHaskell, TypeFamilies, OverloadedStrings, ScopedTypeVariables #-}
import Yesod.Core
import Yesod.WebSockets
import qualified Data.Text.Lazy as TL
import Control.Monad (forever)
import Control.Monad.Trans.Reader
import Control.Concurrent (threadDelay)
import Data.Time
import Conduit
imp... | yesodweb/yesod | yesod-websockets/chat-with-timeout-control.hs | mit | 4,337 | 0 | 19 | 1,377 | 445 | 231 | 214 | 43 | 2 |
module Y2017.M02.D16.Exercise where
import Data.Probability
{--
A Genotype is a paired value a trait dominance, so that for some trait, T,
the genotype of a purely dominant trait is TT, mixed (showing dominant) is Tt
and a purely recessive trait is tt.
Note that a mixed trait Tt is always written thus (so Tt == tT, ... | geophf/1HaskellADay | exercises/HAD/Y2017/M02/D16/Exercise.hs | mit | 2,856 | 0 | 9 | 545 | 157 | 99 | 58 | 11 | 1 |
factorial :: Integer -> Integer
factorial 1 = 1
factorial n = n * factorial (n - 1)
solve = sum . map (read . return) . show . factorial $ 100
| jwtouron/haskell-play | ProjectEuler/Problem20.hs | mit | 144 | 0 | 11 | 33 | 71 | 36 | 35 | 4 | 1 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE Strict #-}
module SmallGL.RenderingMapTiles
( MapTile (..)
, RenderMTilesProgram ()
, initMapTilesProgram
, renderMapTiles
, addMapTile
, clearMapTiles
, ... | achirkin/qua-view | src/SmallGL/RenderingMapTiles.hs | mit | 5,481 | 0 | 14 | 1,255 | 1,134 | 555 | 579 | 129 | 1 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances #-}
{- |
Module : ./RelationalScheme/Logic_Rel.hs
Description : Instance of class Logic for Rel
Copyright : (c) Dominik Luecke, Uni Bremen 2008
License : GPLv2 or higher, see LICENSE.txt
Maintainer : luecke@informatik.uni-bremen.de
Stability :... | gnn/Hets | RelationalScheme/Logic_Rel.hs | gpl-2.0 | 3,396 | 0 | 9 | 1,071 | 554 | 299 | 255 | 68 | 0 |
module Web.Stegosaurus.Exceptions where
import Prelude
data PropNotFound = PropNotFound Text deriving (Typeable)
instance Show PropNotFound where
show (PropNotFound p') = let p = unpack p' in
"Property " ++ p ++ " was not found in the response"
instance Exception PropNotFound
data CouldNotDecode = CouldN... | glittershark/stegosaurus | Web/Stegosaurus/Exceptions.hs | gpl-3.0 | 618 | 0 | 10 | 114 | 163 | 84 | 79 | 15 | 0 |
{-# LANGUAGE RecordWildCards, OverloadedStrings #-}
module Bot.URLSpec where
import Bot.URL
import Test.Hspec
import Test.QuickCheck
import Bot.Types
import Data.ByteString hiding (any, concat)
import qualified Data.Text as T
import Data.Time.Clock
import Control.Auto
import Control.Auto.Blip.Internal
newtype TestBo... | urbanslug/nairobi-bot | tests/Bot/URLSpec.hs | gpl-3.0 | 2,258 | 0 | 18 | 497 | 681 | 356 | 325 | 57 | 2 |
{-# LANGUAGE CPP #-}
----------------------------------------------------------------------
-- |
-- Module : Text.TeX.Lexer.TokenParser.Execution
-- Copyright : 2015-2017 Mathias Schenner,
-- 2015-2016 Language Science Press.
-- License : GPL-3
--
-- Maintainer : mschenner.dev@gmail.com
-... | synsem/texhs | src/Text/TeX/Lexer/TokenParser/Execution.hs | gpl-3.0 | 19,177 | 0 | 19 | 3,937 | 4,692 | 2,447 | 2,245 | 330 | 4 |
-- |Vorple is a framework for serving a JSON application over HTTP via WAI.
module Web.Vorple (
-- * Types
Vorple()
-- * Running a Vorple application
, defaultOptions
, vorple
, vorpleIO
, vorpleT
-- * Options
, Options(..)
, LogLevel(..)
, MonadOptions(..)
-- * HTTP errors
, HttpStatus(..)... | ktvoelker/vorple | src/Web/Vorple.hs | gpl-3.0 | 5,073 | 0 | 23 | 1,336 | 1,281 | 686 | 595 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude, TupleSections #-}
module Graphics.UI.GLFW.Events
( KeyEvent(..), Event(..), Result(..)
, eventLoop
) where
import Prelude.Compat
import Data.IORef
import qualified Graphics.UI.GLFW as GLFW
-- this is the reification of the callback information:
data GLF... | rvion/lamdu | bottlelib/Graphics/UI/GLFW/Events.hs | gpl-3.0 | 3,300 | 0 | 17 | 870 | 900 | 461 | 439 | 76 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Main where
import NLP.Summarizer
import Control.Monad
import Data.Maybe (fromMaybe)
import qualified Data.Text.IO as TIO
import Options.Generic
data CliOptions = CliOptions
{ ratio ::... | rainbyte/summarizer | app/Main.hs | gpl-3.0 | 1,282 | 0 | 13 | 243 | 300 | 156 | 144 | 29 | 1 |
{-# LANGUAGE RankNTypes, KindSignatures #-}
data El :: * -> *
data Dl :: * -> *
data Bl :: * -> *
data B :: * -> *
data C :: * -> *
data Cl :: * -> *
data X :: * -> *
data Y :: * -> *
data D :: * -> *
data Al :: * -> *
f :: forall p0 c b d y . (forall p x . p (B (Bl x)) -> p (Bl (B x))) ->
(forall p x . p (... | Fermat/FCR | tests/cxt.hs | gpl-3.0 | 1,641 | 0 | 29 | 516 | 1,192 | 623 | 569 | -1 | -1 |
module Snorkels.Board ( Position
, Snorkel (..)
, Player
, Group (..)
, Piece (..)
, Board (..)
, isSnorkel
, getPlayer
, isBlocking
... | unaizalakain/snorkels-hs | src/Snorkels/Board.hs | gpl-3.0 | 9,019 | 0 | 12 | 2,586 | 2,004 | 1,090 | 914 | 129 | 2 |
-----------------------------------------------------------------------------
{- Copyright (C) 2004 Daan Leijen.
This is free software; you can redistribute it and/or modify it under the
terms described in the file "license.txt" at the root of the distribution.
-}
----------------------------------------------... | alvisespano/Lw | extras/hml-prototype/PPrint.hs | gpl-3.0 | 15,232 | 0 | 17 | 5,081 | 4,285 | 2,227 | 2,058 | 301 | 13 |
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
{-# LANGUAGE OverloadedStrings #-}
module Database.Redis.IO.Settings where
import Data.Time
import Data.Word
import... | twittner/redis-io | src/Database/Redis/IO/Settings.hs | mpl-2.0 | 2,083 | 0 | 10 | 463 | 406 | 233 | 173 | 50 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
{-# LANG... | rueshyna/gogol | gen/src/Gen/Tree.hs | mpl-2.0 | 4,879 | 0 | 15 | 1,701 | 1,491 | 767 | 724 | 114 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/Details/Patch.hs | mpl-2.0 | 5,480 | 0 | 21 | 1,387 | 866 | 503 | 363 | 129 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-games/gen/Network/Google/Resource/Games/Events/Record.hs | mpl-2.0 | 3,743 | 0 | 14 | 874 | 491 | 290 | 201 | 73 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-securitycenter/gen/Network/Google/Resource/SecurityCenter/Organizations/Operations/Cancel.hs | mpl-2.0 | 6,054 | 0 | 15 | 1,221 | 713 | 423 | 290 | 101 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-docs/gen/Network/Google/Resource/Docs/Documents/Create.hs | mpl-2.0 | 4,725 | 0 | 16 | 1,116 | 713 | 418 | 295 | 103 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Read where
import Text.Read (readPrec_to_S, readPrec, minPrec)
import qualified Text.ParserCombinators.ReadP as P
import Text.ParserCombinators.ReadPrec (lift)
import Numeric
-- This library (libraries/base) is derived from code from several
-- sources:
-- * Code ... | DanielG/kvm-in-a-box | src/Read.hs | agpl-3.0 | 4,980 | 0 | 11 | 924 | 378 | 228 | 150 | 23 | 3 |
-- Tracking down a problem with event merging
import Data.Monoid (mappend)
import Control.Applicative ((<$>))
import FRP.Reactive.Improving
import FRP.Reactive.Future
import FRP.Reactive.PrimReactive
import FRP.Reactive.Reactive
import FRP.Reactive.Internal.Future
import FRP.Reactive.Internal.Reactive
-- (Imp 1.0,1... | ekmett/reactive | src/Test/Merge.hs | agpl-3.0 | 2,581 | 0 | 10 | 416 | 587 | 353 | 234 | 34 | 1 |
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.Cairo.Internal
-- Copyright : (c) Paolo Martini 2005
-- License : BSD-style (see cairo/COPYRIGHT)
--
-- Maintainer : p.martini@neuralnoise.com
-- Stability : ... | thiagoarrais/gtk2hs | cairo/Graphics/Rendering/Cairo/Internal.hs | lgpl-2.1 | 2,713 | 0 | 13 | 298 | 455 | 320 | 135 | 42 | 1 |
import Test.HUnit
import Precedence
import Test
import System.Exit
import qualified WnegSum
import qualified WmulSum
import qualified WsumSub
import qualified WsumSum
import qualified WeqBand
import qualified WbandXor
import qualified WxorBor
allTests = (TestList . map (\(name, test) -> TestLabel name $ repeatedTest... | yjwen/hada | test/TestPrecedence.hs | lgpl-3.0 | 861 | 0 | 12 | 214 | 245 | 138 | 107 | 23 | 2 |
{-# LANGUAGE CPP, MagicHash, RankNTypes #-}
-- |
-- Module : GHC.Vacuum.Internal
-- Copyright : (c) Matt Morrow 2009, Austin Seipp 2011-2012
-- License : LGPLv3
--
-- Maintainer : mad.one@gmail.com
-- Stability : experimental
-- Portability : non-portable (GHC only)
--
-- Internal vacuum module. You pro... | thoughtpolice/vacuum | src/GHC/Vacuum/Internal.hs | lgpl-3.0 | 14,638 | 0 | 17 | 4,082 | 2,653 | 1,465 | 1,188 | 183 | 4 |
module Network.Haskoin.Crypto.ExtendedKeys
( XPubKey(..)
, XPrvKey(..)
, ChainCode
, makeXPrvKey
, deriveXPubKey
, prvSubKey
, pubSubKey
, primeSubKey
, prvSubKeys
, pubSubKeys
, primeSubKeys
, mulSigSubKey
, mulSigSubKeys
, xPrvIsPrime
, xPubIsPrime
, xPrvChild
, xPubChild
, xPubID
, xPrvID
, xPubFP
, xPrvFP
, xPubAdd... | nuttycom/haskoin | Network/Haskoin/Crypto/ExtendedKeys.hs | unlicense | 14,096 | 0 | 14 | 3,233 | 3,139 | 1,670 | 1,469 | 257 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.