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 Tree.RBT where
import Data.List (foldl')
data Color = R | B deriving (Eq, Show)
data Tree a = Empty | Node Color (Tree a) a (Tree a) deriving (Eq, Show)
-- All empty nodes considered to be black (so no color field for Empty)
-- Every RBT satisfy the following two balance invariants:
-- - No red no... | ardumont/haskell-lab | src/Tree/RBT.hs | gpl-2.0 | 4,879 | 0 | 14 | 1,569 | 2,015 | 1,029 | 986 | 91 | 4 |
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable, TemplateHaskell, NoImplicitPrelude, RecordWildCards, GeneralizedNewtypeDeriving #-}
module Lamdu.Eval.Results
( Body(..), _RRecExtend, _RInject, _RFunc, _RRecEmpty, _RPrimVal, _RError
, Val(..), payload, body
, ScopeId(..), scopeIdInt, topLevelS... | da-x/lamdu | Lamdu/Eval/Results.hs | gpl-3.0 | 2,260 | 0 | 15 | 502 | 688 | 389 | 299 | 65 | 1 |
-- Ripple Balances
-- Copyright (C) 2015 Jonathan Lamothe <[email protected]>
-- 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 3 of the License, or
-- (at your option) any ... | jlamothe/ripple-balances | tests.hs | gpl-3.0 | 1,446 | 0 | 10 | 311 | 224 | 132 | 92 | 19 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
module Type where
import Control.Monad.Reader (ReaderT)
import Data.Int (Int)
import Data.Maybe (Maybe)
import Data.String (String)
import System.IO (IO)
import Text.Show (Show)
data Config = Config
{ url :: !String
, credentials :: !(Maybe (String, String))
, refreshDe... | FPBrno/jenkins-dashboard | src/Type.hs | gpl-3.0 | 411 | 0 | 12 | 80 | 132 | 79 | 53 | 23 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Progress
-- Copyright : (c) Duncan Coutts 2008
-- License : BSD-like
--
-- Portability : portable
--
-- Common types for dependency resolution.
------------------------------------------------------------------... | Heather/hackport | Progress.hs | gpl-3.0 | 1,844 | 0 | 12 | 475 | 517 | 276 | 241 | 29 | 3 |
module While.Domain.Sign.DomainSpec (spec) where
import Test.Hspec
import Test.QuickCheck
import Test.Hspec.QuickCheck
import Data.Maybe()
import Data.Ord()
import Abstat.Interface.PosetProp
import Abstat.Interface.LatticeProp
import Abstat.Interface.AbstractDomain()
import Abstat.Common.AbstractState
import Abstat.C... | fpoli/abstat | test/While/Domain/Sign/DomainSpec.hs | gpl-3.0 | 861 | 0 | 15 | 149 | 241 | 133 | 108 | 25 | 1 |
module Lamdu.GUI.Scroll
( focusAreaIntoWindow
) where
import Control.Lens (Lens')
import qualified Control.Lens as Lens
import Control.Lens.Operators
import Control.Lens.Tuple
import Data.Maybe (fromMaybe)
import Data.Vector.Vector2 (Vector2(..))
import qualifi... | da-x/lamdu | Lamdu/GUI/Scroll.hs | gpl-3.0 | 1,251 | 0 | 14 | 397 | 335 | 186 | 149 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeSynonymInstances #-}
-- | This module defines data type and some helpers to facilitate
-- properties creation.
m... | input-output-hk/rscoin-haskell | test/Test/RSCoin/Full/Property.hs | gpl-3.0 | 4,875 | 0 | 12 | 1,704 | 1,118 | 605 | 513 | 107 | 1 |
module Idme.Util (condA, constF, pairOf, (>>-)) where
import Control.Applicative (Applicative, pure)
import Data.Functor ((<$))
-- | inject into function, apply effect, and return itself operator
(>>-) :: (Functor m, Monad m) => m a -> (a -> m b) -> m a
(>>-) x f = x >>= constF f
infixl 8 >>-
-- | const for Functor... | awagner83/IdMe | src/Idme/Util.hs | gpl-3.0 | 646 | 0 | 11 | 149 | 275 | 150 | 125 | 12 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Workspaces/Variables/List.hs | mpl-2.0 | 6,098 | 0 | 18 | 1,350 | 789 | 460 | 329 | 123 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-youtube/gen/Network/Google/Resource/YouTube/LiveBroadcasts/Delete.hs | mpl-2.0 | 7,369 | 0 | 19 | 1,559 | 899 | 530 | 369 | 125 | 1 |
module BlockchainState
( initialBlockchainState
)
where
import Blockchain (Blockchain, genesisBlock)
import Control.Concurrent.MVar (MVar, newMVar)
initialBlockchainState :: IO (MVar Blockchain)
initialBlockchainState = newMVar [genesisBlock]
| haroldcarr/learn-haskell-coq-ml-etc | haskell/playpen/blockchain/blockchain-framework-DELETE/src/BlockchainState.hs | unlicense | 283 | 0 | 7 | 63 | 59 | 35 | 24 | 6 | 1 |
module JDBC.Types.Clob
( freeClob,
getAsciiStreamClob,
getCharacterStreamClob,
getCharacterStreamClob2,
getSubStringClob,
lengthClob,
positionClob,
positionClob2,
setAsciiStreamClob,
setCharacterStreamClob,
setStringClob,
setStringClob2,
truncateClob)
where
import Java... | Jyothsnasrinivas/eta-jdbc | src/JDBC/Types/Clob.hs | apache-2.0 | 1,840 | 38 | 8 | 299 | 453 | 238 | 215 | -1 | -1 |
module Problem006 where
main =
print $ sum [2 * x * y | x <- [1..100], y <- [(x + 1)..100]]
| vasily-kartashov/playground | euler/problem-006.hs | apache-2.0 | 95 | 0 | 12 | 25 | 60 | 33 | 27 | 3 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
module HERMIT.Dictionary.WorkerWrapper.Fix
( -- * The Worker/Wrapper Transformation
-- | Note that many of these operations require 'Data.Function.fix' to be in scope.
HERMIT.Dictionary.WorkerWrapper.Fix.externals
, wwFacBR
, wwSplitR
, wwSplitStaticArg
... | beni55/hermit | src/HERMIT/Dictionary/WorkerWrapper/Fix.hs | bsd-2-clause | 25,995 | 0 | 24 | 8,928 | 4,566 | 2,328 | 2,238 | 355 | 3 |
import NLP.LTAG.V1
import qualified Data.Set as S
-- | The set of initial trees.
ltag :: LTAG String String
ltag = LTAG
{ startSym = "S"
, iniTrees = S.fromList
[ INode "S"
[ FNode (Right "e") ] ]
, auxTrees = S.fromList
[ AuxTree (INode "S"
[ FNode (Righ... | kawu/ltag | examples/v1/example2.hs | bsd-2-clause | 608 | 0 | 17 | 264 | 213 | 114 | 99 | 19 | 1 |
module Process.Peer.Sender
( start )
where
import Control.Concurrent
import Control.Concurrent.STM
import Control.Monad.Reader
import qualified Data.ByteString.Lazy as L
import Network.Socket hiding (send, sendTo, recv, recvFrom)
import Network.Socket.ByteString.Lazy
import Prelude hiding (getContents)
import Pr... | jlouis/combinatorrent | src/Process/Peer/Sender.hs | bsd-2-clause | 1,039 | 0 | 13 | 319 | 284 | 154 | 130 | 28 | 1 |
import Text.JSON.String (readJSTopType, runGetJSON)
import Text.PrettyPrint.HughesPJ (render)
import Text.JSON.Pretty (pp_value)
main = do
s <- getContents
case runGetJSON readJSTopType s of
Left e -> error e
Right j -> putStrLn . render $ pp_value j
| polux/json-pprint | Main.hs | bsd-3-clause | 265 | 0 | 11 | 49 | 93 | 48 | 45 | 8 | 2 |
{-# LANGUAGE TemplateHaskell #-}
module Main where
-- The imports bring functions and datatypes into the namespace
import Network.Remote.RPC
import GuessTheNumberSupport
import System.Environment
-- Note 1: Haskell is not a scripting language.
-- Like Java, the order of top level declaration does not matter.
-- No... | mmirman/cmu-skillswap-2012 | GuessTheNumber.hs | bsd-3-clause | 4,041 | 0 | 15 | 900 | 363 | 191 | 172 | 39 | 4 |
{-# LANGUAGE
FlexibleContexts
, FlexibleInstances
, MultiParamTypeClasses
, StandaloneDeriving
, UndecidableInstances #-}
{- |
Copyright : (c) Andy Sonnenburg 2013
License : BSD3
Maintainer : [email protected]
-}
module Control.Monad.Unify.Bool
( module Control.Monad.Unify
, Term
... | sonyandy/unvar | src/Control/Monad/Unify/Bool.hs | bsd-3-clause | 5,114 | 0 | 21 | 1,569 | 2,636 | 1,318 | 1,318 | 197 | 9 |
module Test.FFmpeg.H264 where
import Test.Hspec (hspec, specify, describe, shouldBe)
import FFmpeg.Config as X
import Data.SL
import FFmpeg.Data.H264 as X
test :: IO ()
test = hspec $
describe "save/load" $ do
let c = defaultCfg :: H264
specify "save" $
save c "test/tmp/测试.h264"
specify... | YLiLarry/compress-video | test/Test/FFmpeg/H264.hs | bsd-3-clause | 408 | 0 | 12 | 106 | 128 | 69 | 59 | 14 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
-------------------------------------------------------------------------------
-- |
-- Module : Bart.Departure.Proc
-- Copyright : (c) 2012 Paulo Tanimoto
-- License : BSD3
--
-- Maintainer : Paulo Tanimot... | tanimoto/bart | src/Bart/Departure/Proc.hs | bsd-3-clause | 2,739 | 0 | 17 | 761 | 535 | 304 | 231 | 51 | 2 |
module Scheme.Evaluator.IO where
import DeepControl.MonadTrans (liftIO)
import Scheme.Parser (readSchemeCode)
import Scheme.Evaluator.Micro
import Scheme.DataType.Error.Eval
import Scheme.LISP as L
import qualified Prelude as P (foldr, foldl, length, mapM, zip)
import Prelude hiding (foldr, foldl, length, mapM, zip)... | ocean0yohsuke/Scheme | src/Scheme/Evaluator/IO.hs | bsd-3-clause | 9,123 | 30 | 27 | 2,535 | 2,968 | 1,526 | 1,442 | 177 | 10 |
{-# LANGUAGE TemplateHaskell, PackageImports, TypeFamilies, FlexibleContexts,
FlexibleInstances, TupleSections #-}
module Text.Papillon.Core (
-- * For Text.Papillon library
papillonCore,
Source(..),
SourceList(..),
-- ** For parse error message
ParseError,
mkParseError,
peDerivs,
peReading,
peMessage,
p... | YoshikuniJujo/papillon | src/Text/Papillon/Core.hs | bsd-3-clause | 15,470 | 293 | 22 | 3,351 | 7,481 | 3,845 | 3,636 | 395 | 8 |
{-
Copyright 2014 Google Inc. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file or at
https://developers.google.com/open-source/licenses/bsd
-}
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad
import Control.Monad.IO.Class
import qualified ... | google/pull-request-mailer | executables/pull-request-mailer-server/Main.hs | bsd-3-clause | 5,410 | 0 | 19 | 1,789 | 888 | 480 | 408 | 99 | 5 |
--------------------------------------------------------------------------------
-- Copyright © 2011 National Institute of Aerospace / Galois, Inc.
--------------------------------------------------------------------------------
-- | Stream construction.
{-# LANGUAGE Trustworthy #-}
module Copilot.Language.Operators... | leepike/copilot-language | src/Copilot/Language/Operators/Temporal.hs | bsd-3-clause | 844 | 0 | 8 | 152 | 210 | 118 | 92 | 16 | 1 |
module Phone where
import Data.Char
import Data.List
data DaPhone = DaPhone [(Digit, [Char])]
type Digit = Char
type Presses = Int
getCharDigitPresses :: Char -> [(Digit, [Char])] -> (Digit, Presses)
getCharDigitPresses c ((digit, chars) : digitsChars) =
case charElemIndex of
Nothing -> getCharDigitPresses c ... | abhean/phffp-examples | src/Phone.hs | bsd-3-clause | 1,587 | 0 | 13 | 300 | 543 | 312 | 231 | 49 | 2 |
module Plunge.Parsers.PreprocessorOutput
( runCppParser
, Section(..)
) where
import Text.Parsec
import Plunge.Types.PreprocessorOutput
type CppParser = ParsecT String LineNumber IO
--------------------------------------------------------------------------------
manyTillWithEnd :: (Stream s m t) => ParsecT s ... | sw17ch/plunge | src/Plunge/Parsers/PreprocessorOutput.hs | bsd-3-clause | 3,955 | 0 | 13 | 989 | 1,263 | 630 | 633 | 105 | 4 |
{-# LANGUAGE OverloadedStrings #-}
-- | Intero page.
module HL.Controller.Intero where
import HL.Controller
import HL.Controller.Html
import HL.View
-- | Intero page.
getInteroR :: C (Html ())
getInteroR =
htmlPage "Intero for Emacs" "intero.html"
| haskell-lang/haskell-lang | src/HL/Controller/Intero.hs | bsd-3-clause | 254 | 0 | 8 | 39 | 52 | 31 | 21 | 8 | 1 |
module System.TPFS.SuperBlock (
module System.TPFS.SolidArray,
SuperBlockState(..),
bitsToSBStates,
sbStatesToBits
) where
import Control.Applicative
import qualified Data.ByteString.Lazy as B
import System.TPFS.Bitmap
import System.TPFS.SolidArray
-- | Describes the th... | devyn/TPFS | System/TPFS/SuperBlock.hs | bsd-3-clause | 1,569 | 0 | 10 | 410 | 383 | 211 | 172 | 26 | 1 |
{-# LANGUAGE TemplateHaskell, QuasiQuotes, OverloadedStrings #-}
module Language.Elm.TH.BaseDecs where
--import AST.Annotation
import qualified AST.Module as Module
import qualified Data.Map as Map
import qualified Parse.Parse as Parse
import qualified Data.Text as Text
import qualified Text.PrettyPrint as Pretty
im... | JoeyEremondi/haskelm | src/Language/Elm/TH/BaseDecs.hs | bsd-3-clause | 7,336 | 0 | 12 | 1,428 | 260 | 150 | 110 | 18 | 2 |
module Evolution
( EvolutionRules (..)
, evolution
) where
import Evolution.Internal | satai/FrozenBeagle | Simulation/Lib/src/Evolution.hs | bsd-3-clause | 107 | 0 | 5 | 33 | 21 | 14 | 7 | 4 | 0 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
module Guesswork.Estimate.KNN where
import Data.List
import Data.Ord
import Data.Serialize
import Control.Arrow
import System.IO.Unsafe
--import GHC.Generics
import Guesswork.T... | deggis/guesswork | src/Guesswork/Estimate/KNN.hs | bsd-3-clause | 4,008 | 0 | 15 | 981 | 1,306 | 673 | 633 | 85 | 1 |
module Main where
import qualified Data.Map as M
import Morse
import WordNumber (digitToWord, digits, wordNumber)
import Test.Hspec
import Test.QuickCheck
allowedChars :: [Char]
allowedChars = M.keys letterToMorse
allowedMorse :: [String]
allowedMorse = M.elems letterToMorse
charGen :: Gen Char
charGen = elements ... | dmvianna/morse | tests/tests.hs | bsd-3-clause | 1,289 | 0 | 15 | 277 | 366 | 184 | 182 | 38 | 1 |
{-# LANGUAGE BangPatterns #-}
module Tree.Load (mkBigTree, mkBigTrees) where
import Tree.Types
import Tree.ReadShow ()
mkBigTrees :: Int -> Int -> [Tree]
mkBigTrees n depth =
let !tree = mkBigTree depth
in replicate n tree
mkBigTree :: Int -> Tree
mkBigTree 0 = Leaf
mkBigTree depth =
let !subtree = mkB... | thoughtpolice/binary-serialise-cbor | bench/Tree/Load.hs | bsd-3-clause | 365 | 0 | 11 | 76 | 128 | 65 | 63 | 13 | 1 |
{-# LANGUAGE LambdaCase #-}
module TcTypeNats
( typeNatTyCons
, typeNatCoAxiomRules
, BuiltInSynFamily(..)
, typeNatAddTyCon
, typeNatMulTyCon
, typeNatExpTyCon
, typeNatLeqTyCon
, typeNatSubTyCon
, typeNatCmpTyCon
, typeSymbolCmpTyCon
, typeSymbolAppendTyCon
) where
import GhcPrelude
import... | ezyang/ghc | compiler/typecheck/TcTypeNats.hs | bsd-3-clause | 28,306 | 3 | 17 | 7,539 | 9,083 | 4,763 | 4,320 | 645 | 3 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
module Narradar.Constraints.Syntactic where
import Data.Foldable (Foldable)
import Data.Maybe (catMaybes, maybeToList)
import Narradar.Types
import qualified Data.Set as Set
isLeftLinear :: (Ord v, Foldable t, Functor t, HasRules t v trs) => trs -> Bo... | pepeiborra/narradar | src/Narradar/Constraints/Syntactic.hs | bsd-3-clause | 2,826 | 0 | 14 | 1,010 | 1,021 | 528 | 493 | 50 | 2 |
import Criterion.Main
import Criterion.Types
import SortBenchmarks
-- | This script runs the benchmarks, updating the HTML report on the
-- website.
main :: IO ()
main = sortBenchmarks
defaultConfig
{ reportFile = Just "../regex-uk/sort/sort-benchmarks.html"
}
| cdornan/sort | benchmarks/src/update-sort-benchmarks.hs | bsd-3-clause | 304 | 0 | 8 | 78 | 45 | 25 | 20 | 7 | 1 |
import System.Random
import Control.Monad.Identity
import Control.Monad.Random
import Control.Monad.Reader
import PIMC
main :: IO ()
main = do
let
params = testParams 1500 1.0 1.0
seed <- getStdGen
runMCSim params 100 1000
return ()
| mstksg/pi-monte-carlo | src/Main.hs | bsd-3-clause | 246 | 0 | 10 | 46 | 83 | 42 | 41 | 12 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-storagegateway/gen/Network/AWS/StorageGateway/UpdateChapCredentials.hs | mpl-2.0 | 6,519 | 0 | 11 | 1,359 | 745 | 450 | 295 | 87 | 1 |
module Main where
import Test.DocTest
main :: IO ()
main = doctest [
"-package"
, "ghc"
, "-XConstraintKinds", "-XFlexibleContexts"
, "-idist/build/autogen/"
, "-optP-include"
, "-optPdist/build/autogen/cabal_macros.h"
, "Language/Haskell/GhcMod.hs"
]
| cabrera/ghc-mod | test/doctests.hs | bsd-3-clause | 272 | 0 | 6 | 48 | 51 | 31 | 20 | 11 | 1 |
module Bead.Daemon.LDAP (
LDAPDaemon(..)
, LDAPDaemonConfig(..)
, startLDAPDaemon
, module Bead.Daemon.LDAP.Result
) where
import Prelude hiding (log)
import Control.Concurrent (forkIO)
import Control.Concurrent.Async
import Control.Concurrent.STM
import C... | andorp/bead | src/Bead/Daemon/LDAP.hs | bsd-3-clause | 3,541 | 0 | 23 | 1,077 | 905 | 466 | 439 | 77 | 2 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns #-}
-- Create a source distribution tarball
module Stack.SDist
( getSDistTarball
)... | lukexi/stack | src/Stack/SDist.hs | bsd-3-clause | 10,849 | 0 | 21 | 2,925 | 2,624 | 1,391 | 1,233 | 197 | 10 |
{-# LANGUAGE MagicHash #-}
module Stack.Types.StringError where
import Control.Exception
import Control.Monad.Catch
import Data.Typeable
import GHC.Prim
newtype StringError = StringError String
deriving (Typeable)
instance Exception StringError
instance Show StringError where show (StringError str) = str
throw... | mrkkrp/stack | src/Stack/Types/StringError.hs | bsd-3-clause | 472 | 0 | 8 | 70 | 123 | 68 | 55 | 14 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module BenchmarkUtils where
import Feldspar.Compiler.Plugin (pack)
import Control.Exception (evaluate)
import Criterion.Main
import Criterion.Types
import Data.List (intercalate)
mkConfig report = defaultConfig { forceGC = True
, reportFile = Just ... | emwap/feldspar-compiler | benchs/BenchmarkUtils.hs | bsd-3-clause | 801 | 0 | 13 | 212 | 246 | 128 | 118 | 15 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Snap.Internal.Http.Parser.Tests
( tests ) where
import qualified Control.Exception as E
import Control.Exception hiding (try, assert)
import Control.Monad
import Control.Paralle... | beni55/snap-server | test/suite/Snap/Internal/Http/Parser/Tests.hs | bsd-3-clause | 4,977 | 0 | 17 | 1,309 | 1,441 | 751 | 690 | 119 | 2 |
{-# LANGUAGE CPP #-}
#if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE Trustworthy #-}
#endif
{-# LANGUAGE Rank2Types #-}
#ifndef MIN_VERSION_template_haskell
#define MIN_VERSION_template_haskell(x,y,z) 1
#endif
-----------------------------------------------------------------------------
-- ... | rpglover64/lens | src/Language/Haskell/TH/Lens.hs | bsd-3-clause | 42,470 | 0 | 12 | 11,693 | 14,492 | 7,552 | 6,940 | 1,253 | 2 |
{-# LANGUAGE BangPatterns #-}
-----------------------------------------------------------------------------
-- | Separate module for HTTP actions, using a proxy server if one exists.
-----------------------------------------------------------------------------
module Distribution.Client.HttpUtils (
DownloadResult(.... | themoritz/cabal | cabal-install/Distribution/Client/HttpUtils.hs | bsd-3-clause | 31,004 | 0 | 22 | 9,397 | 6,595 | 3,435 | 3,160 | 570 | 5 |
{-# LANGUAGE DuplicateRecordFields, TemplateHaskell, NoMonomorphismRestriction #-}
data S = MkS { x :: Int }
data T = MkT { x :: Int }
-- This tests what happens when an ambiguous record update is used in
-- a splice: since it can't be represented in TH, it should error
-- cleanly, rather than panicking or silently u... | sdiehl/ghc | testsuite/tests/overloadedrecflds/should_fail/overloadedrecfldsfail09.hs | bsd-3-clause | 385 | 0 | 8 | 78 | 54 | 34 | 20 | 5 | 1 |
module SubPatternIn2 where
-- allow the user to select 'x' on the LHS of
-- g. Should introduce 2 new equations for f:
-- g z (C1 x b c@[]) = x
-- g z (C1 x b c@(b_1 : b_2)) = x
data T = C1 [Int] Int [Float]| C2 Int
g :: Int -> T -> Int
g z (C1 x b c)
= case x of
x@[] -> b
x@(b_1 : b_2... | kmate/HaRe | old/testing/introCase/SubPatternIn2_TokOut.hs | bsd-3-clause | 468 | 0 | 10 | 163 | 229 | 121 | 108 | 14 | 2 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Lazyfoo.Lesson20 (main) where
import Prelude hiding (any, mapM_)
import Control.Applicative
import Control.Monad hiding (mapM_)
import Data.Foldable
import Data.Maybe
import Data.Monoid
im... | dalaing/sdl2 | examples/lazyfoo/Lesson20.hs | bsd-3-clause | 4,329 | 12 | 20 | 1,281 | 1,181 | 591 | 590 | 108 | 9 |
import Numeric
import GHC.Natural
main = do
-- test that GHC correctly compiles big Natural literals
let x = 0xffffffffffffffffffffffff :: Natural
print (showHex x "" == "ffffffffffffffffffffffff")
| sdiehl/ghc | testsuite/tests/numeric/should_run/T15301.hs | bsd-3-clause | 208 | 1 | 10 | 38 | 48 | 23 | 25 | 5 | 1 |
{-# LANGUAGE CPP #-}
module Options.Applicative.Help.Chunk
( mappendWith
, Chunk(..)
, chunked
, listToChunk
, (<<+>>)
, (<</>>)
, vcatChunks
, vsepChunks
, isEmpty
, stringChunk
, paragraph
, extractChunk
, tabulate
) where
import Control.Applicative
import Control.Monad
import Data.Maybe
... | begriffs/optparse-applicative | Options/Applicative/Help/Chunk.hs | bsd-3-clause | 4,045 | 6 | 12 | 833 | 1,022 | 554 | 468 | 75 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, NoImplicitPrelude
, MagicHash
, GeneralizedNewtypeDeriving
#-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
#ifdef __GLASGOW_HASKELL__
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
#endif
-- XXX -fno-warn-unused-binds stops us wa... | beni55/haste-compiler | libraries/ghc-7.8/base/Foreign/C/Types.hs | bsd-3-clause | 13,342 | 0 | 6 | 2,455 | 899 | 583 | 316 | -1 | -1 |
module C5 where
import D5
instance SameOrNot Double
where
isSame a b = a == b
isNotSame a b = a /= b
myFringe :: (Tree a) -> [a]
myFringe (Leaf x) = [x]
myFringe (Branch left right) = myFringe left
mySumSq = D5.sum
| kmate/HaRe | old/testing/renaming/C5_AstOut.hs | bsd-3-clause | 236 | 1 | 8 | 65 | 105 | 55 | 50 | 9 | 1 |
module ShouldSucceed where
x = 'a'
(y:ys) = ['a','b','c'] where p = x
| siddhanathan/ghc | testsuite/tests/typecheck/should_compile/tc069.hs | bsd-3-clause | 71 | 0 | 6 | 14 | 38 | 23 | 15 | 3 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RecursiveDo #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Haarss.Main where
import Control.Concurrent
import Control.Exception
import Control.Lens
import ... | stevana/haarss | src/Haarss/Main.hs | isc | 8,262 | 2 | 26 | 3,153 | 2,604 | 1,253 | 1,351 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TupleSections #-}
module Main where
import Control.Applicative (liftA2)
import Control.Logging (log', withStderrLogging)
import Control.Monad
impor... | dbp/shed | app/Main.hs | isc | 10,086 | 0 | 29 | 3,672 | 2,931 | 1,514 | 1,417 | 216 | 4 |
{-
Module : Reopt.Semantics.Implementation
Copyright : (c) Galois, Inc 2015-2016
This defines a template haskell function for creating storable records.
-}
{-# OPTIONS_GHC -Werror #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE TemplateHaskell #-}
module System.Linux.Ptrace.GenStruct where
import Control.Monad... | GaloisInc/linux-ptrace | System/Linux/Ptrace/GenStruct.hs | mit | 3,146 | 9 | 15 | 899 | 347 | 215 | 132 | 28 | 1 |
module Main where
import Data.Bits
import Data.Word
import ZMachine
import ZMachine.ZTypes
word :: Word16
word = 0xBEEF
main :: IO ()
main = do
print . show $ (word `shiftR` 12) .&. complement (-1 `shiftL` 4)
print . show $ fetchBits bit15 size4 word
| RaphMad/ZMachine | src/main/Main.hs | mit | 260 | 0 | 11 | 53 | 103 | 57 | 46 | 11 | 1 |
module Zeno.Flags (
ZenoFlags (..), readFlags, defaultFlags
) where
import Prelude ()
import Zeno.Prelude
import System.Console.GetOpt
defaultIsabelleDir :: String
defaultIsabelleDir = "isa"
data ZenoFlags
= ZenoFlags { flagVerboseProof :: !Bool,
flagPrintCore :: !Bool,
flagKeepMo... | Gurmeet-Singh/Zeno | src/Zeno/Flags.hs | mit | 6,227 | 0 | 19 | 1,622 | 1,078 | 601 | 477 | 135 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.GDAX.Implicit.MarketData where
import Control.Lens
import Control.Monad.Catch
import Control.Monad.IO.Class
import Control.Monad.Reader
import Data.Time
import Data.... | AndrewRademacher/gdax | lib/Network/GDAX/Implicit/MarketData.hs | mit | 2,450 | 0 | 12 | 517 | 844 | 437 | 407 | 53 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE LambdaCase #-}
module Data.Apiary.Method
( Method(..)
, renderMethod
, dispatchMethod
, parseMethod
) where
import Data.Hashable(Hashable(..))
import Data.String(IsString(..))
import qualified Data.ByteString.Char8 as S
import qualified Data.ByteStri... | philopon/apiary | src/Data/Apiary/Method.hs | mit | 2,714 | 0 | 18 | 967 | 1,088 | 546 | 542 | 69 | 20 |
-- |
-- This module provides
-- Template Haskell based derivers for typical newtype instances,
-- which the @GeneralizedNewtypeDeriving@ extension refuses to handle.
--
-- Here is what it allows you to do:
--
-- >{-# LANGUAGE UndecidableInstances, TypeFamilies, FlexibleInstances,
-- > TemplateHaskell, G... | nikita-volkov/newtype-deriving | library/NewtypeDeriving.hs | mit | 3,160 | 0 | 14 | 546 | 455 | 247 | 208 | 41 | 1 |
import System.Environment -- access to arguments etc.
import Data.Bits
import Data.List
import Debug.Trace
import System.IO.Unsafe -- be careful!
import System.Random
import Helpers
------------------------------------
--- Scan Inclusive and Exclusive ---
--- and Segmented Scan Inclusive ---
-----------------------... | martinnj/PMPH2015 | Assignment2/src/matrixmul/PrimesQuicksort.hs | mit | 14,305 | 0 | 24 | 5,435 | 4,008 | 2,228 | 1,780 | 193 | 7 |
{-# LANGUAGE OverloadedStrings #-}
module View.User where
import CMark
import Data.Monoid
import Data.Time.Clock ()
import Lucid
import Model
import Static
import View.Utils
userPage :: SessionInfo -> SUser -> [Snippet] -> Html ()
userPage u u' s... | winterland1989/jsmServer | src/View/User.hs | mit | 868 | 0 | 21 | 323 | 263 | 126 | 137 | 24 | 1 |
{-# LANGUAGE RankNTypes #-}
module Universe.Worker where
import Control.Lens hiding (universe)
import Data.Map
import Data.Maybe
import Universe
import Player
import Worker
import Workplace
getWorkers :: Universe -> PlayerId -> [WorkerId]
getWorkers universe player = toListOf (players . ix player . workers . folding... | martin-kolinek/some-board-game-rules | src/Universe/Worker.hs | mit | 1,250 | 0 | 13 | 188 | 375 | 194 | 181 | 23 | 1 |
module GHCJS.DOM.SVGGlyphRefElement (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/SVGGlyphRefElement.hs | mit | 48 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
module SemanticSpec where
import Text.Parsec.Pos
import Test.Hspec
import Data.List hiding(find)
import qualified Data.Map as M
import Control.Monad.State.Strict
import Control.Exception
import AST
import Parser
import Environment
import AnalyzedAST
import Semantic
u :: SourcePos
u = newPos "test" 0 0
run :: String... | yu-i9/HaSC | test/SemanticSpec.hs | mit | 1,439 | 0 | 14 | 284 | 395 | 204 | 191 | 41 | 1 |
{-# LANGUAGE CPP, NoImplicitPrelude, PackageImports #-}
module Foreign.Compat (
module Base
) where
import "base-compat" Foreign.Compat as Base
| haskell-compat/base-compat | base-compat-batteries/src/Foreign/Compat.hs | mit | 147 | 0 | 4 | 21 | 21 | 15 | 6 | 4 | 0 |
{-# LANGUAGE
OverloadedStrings
, LambdaCase
#-}
module Main
( main
) where
import Data.List
import System.Environment
import System.Exit
import qualified Data.Map.Strict as M
import CommandClean
import CommandInstall
import CommandSwitch
-- succeed as long as the given key matches exactly one result (by... | Javran/misc | kernel-tool/src/Main.hs | mit | 1,064 | 0 | 16 | 225 | 286 | 156 | 130 | 27 | 2 |
module P003 where
import Euler
solution :: EulerType
solution = Left . last $ factors 600851475143
main = printEuler solution
| Undeterminant/euler-haskell | P003.hs | cc0-1.0 | 126 | 0 | 6 | 20 | 36 | 20 | 16 | 5 | 1 |
module Stl.StlFileWriter(writeStlToFile, writeStlDebugToFile)
where
import Stl.StlBase(stlShapeToText, StlShape(..))
import CornerPoints.Debug((+++^?), (++^?), CubeName(..), CubeDebug(..), CubeDebugs(..), showDebugMsg)
import System.IO
{-
Writes the temp.stl file to /src/Data/temp.stl folder when run from emacs repl... | heathweiss/Tricad | src/Stl/StlFileWriter.hs | gpl-2.0 | 1,499 | 0 | 7 | 245 | 146 | 86 | 60 | 8 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
{- |
Module : ./GUI/HTkUtils.hs
Copyright : (c) K. Luettich, Rene Wagner, Uni Bremen 2002-2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : [email protected]
Stability : provisional
Portability : non-portable (imports HTk)
Utiliti... | gnn/Hets | GUI/HTkUtils.hs | gpl-2.0 | 8,693 | 0 | 20 | 2,509 | 1,947 | 995 | 952 | 172 | 7 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE ScopedTypeVariables, RankNTypes, FlexibleInstances #-}
module UnfoldSpec(main, spec) where
import Test.Hspec
import Test.QuickCheck
import Control.Applicative
import Data.Monoid
import Data.Functor.Identity
import Data.Function(on)
import Unfold
main :: IO ()
main =... | svenkeidel/gnome-citadel | test/UnfoldSpec.hs | gpl-3.0 | 4,887 | 0 | 19 | 1,417 | 2,173 | 1,119 | 1,054 | 115 | 1 |
{-
Author: Ka Wai
License: GPL 3.0
File: OutputModel.hs
Description: outputs a graph representing the given model
-}
module OutputModel where
import Data.List
import qualified Data.Map as Map
import System.Cmd
import System.Directory
import Signature
import Model
import ProofSearch
-- Creates visual g... | j5b/ps-pc | OutputModel.hs | gpl-3.0 | 3,710 | 0 | 13 | 863 | 1,165 | 617 | 548 | 68 | 1 |
fmap f ma = ma >>= \a -> return (f a) | hmemcpy/milewski-ctfp-pdf | src/content/3.4/code/haskell/snippet15.hs | gpl-3.0 | 37 | 0 | 9 | 10 | 29 | 14 | 15 | 1 | 1 |
module Response.Loading
(loadingResponse) where
import qualified Data.Text as T
import Happstack.Server
import MasterTemplate
import Text.Blaze ((!))
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
loadingResponse :: T.Text -> ServerPart Response
loadingResponse size =
... | Courseography/courseography | app/Response/Loading.hs | gpl-3.0 | 1,251 | 0 | 12 | 356 | 289 | 151 | 138 | 27 | 2 |
{-# LANGUAGE DeriveGeneric #-}
module Estuary.Tidal.Types where
import Data.List as List (intercalate, zip)
import Data.Map.Strict as Map
import Data.Ratio
import GHC.Generics
import Data.Aeson
import Estuary.Types.Live
data RepOrDiv = Once | Rep Int | Div Int deriving (Eq,Generic)
instance ToJSON RepOrDiv where
... | d0kt0r0/estuary | common/src/Estuary/Tidal/Types.hs | gpl-3.0 | 8,625 | 0 | 12 | 1,588 | 3,534 | 1,832 | 1,702 | 182 | 3 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module Language.Slicer.Primitives
( -- * Built-in primitive operators and functions
Primitive(..), isInfixOp, acceptsExns
) where
import Control.DeepSeq ( NFData )
import GHC.Generics ( Generic )
import ... | jstolarek/slicer | lib/Language/Slicer/Primitives.hs | gpl-3.0 | 2,298 | 0 | 8 | 746 | 471 | 261 | 210 | 55 | 1 |
{- ============================================================================
| Copyright 2011 Matthew D. Steele <[email protected]> |
| |
| This file is part of Fallback. |
... | mdsteele/fallback | src/Fallback/Test/Pathfind.hs | gpl-3.0 | 5,386 | 0 | 25 | 1,999 | 982 | 521 | 461 | 72 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralisedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE Standalon... | merijn/GPU-benchmarks | benchmark-analysis/src/Schema/UnknownPredictions/V0.hs | gpl-3.0 | 953 | 0 | 8 | 127 | 92 | 61 | 31 | 19 | 0 |
module Colors where
import Clay hiding (header)
colors :: (Color, Color) -> Css
colors (bg, fg) = backgroundColor bg >> color fg
darkMain :: Color
darkMain = "#282828"
midDarkMain :: Color
midDarkMain = "#555555"
midMain :: Color
midMain = "#777777"
midLightMain :: Color
midLightMain = "#DDDDDD"
lightMain :: Co... | ktvoelker/KB | clay/Colors.hs | gpl-3.0 | 734 | 0 | 6 | 110 | 233 | 135 | 98 | 24 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-youtube/gen/Network/Google/Resource/YouTube/LiveBroadcasts/Update.hs | mpl-2.0 | 8,857 | 0 | 20 | 1,868 | 999 | 594 | 405 | 138 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/Delete.hs | mpl-2.0 | 5,812 | 0 | 18 | 1,322 | 789 | 464 | 325 | 114 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/URLMaps/Patch.hs | mpl-2.0 | 3,593 | 0 | 16 | 869 | 470 | 281 | 189 | 74 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/Proposals/Search.hs | mpl-2.0 | 2,801 | 0 | 13 | 640 | 304 | 186 | 118 | 49 | 1 |
module Types.Agent.Dummy where
import Types.World
-- |A mind that always does the same thing and can optionally storage messages
-- sent to it.
data DummyMind = DummyMind {
-- |The action which the mind will always perform.
_dummyMindAction :: Action,
-- |Indicates whether the agent should store incoming me... | jtapolczai/wumpus | Types/Agent/Dummy.hs | apache-2.0 | 442 | 0 | 9 | 85 | 47 | 32 | 15 | 6 | 0 |
module ListsAndTuples where
sorted :: [Integer] -> Bool
sorted [] = True
sorted [_] = True
sorted (x:r@(y:_)) = x < y && sorted r
| zer/BeginningHaskell | src/Chapter2/ListsAndTuples.hs | apache-2.0 | 148 | 0 | 10 | 43 | 73 | 40 | 33 | 5 | 1 |
module Main where
import Prelude (IO)
import Yesod.Default.Config (fromArgs)
import Yesod.Default.Main (defaultMain)
import Settings (parseExtra)
import Application (makeApplication)
main :: IO ()
main = defaultMain (fromArgs parseExtra) makeApplication
| dtekcth/DtekPortalen | src/main.hs | bsd-2-clause | 293 | 0 | 7 | 67 | 76 | 45 | 31 | 8 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QStyleOptionToolBoxV2.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:16
Warning : this file is machine genera... | keera-studios/hsQt | Qtc/Gui/QStyleOptionToolBoxV2.hs | bsd-2-clause | 4,367 | 0 | 12 | 553 | 943 | 494 | 449 | -1 | -1 |
import Data.List
import qualified Data.Map as M
import Data.Maybe
import System.IO
import Text.ParserCombinators.ReadP
import System.IO.Unsafe
data Arg = Reg String | IReg String | Const Int | Addr Int | Lbl String deriving (Show, Eq, Ord)
data Op = Op (Maybe String) String [Arg] deriving (Show, Eq, Ord)
p_oneof = c... | pbl64k/icfpc2014 | code/ghc80.hs | bsd-2-clause | 6,348 | 0 | 16 | 1,897 | 2,509 | 1,211 | 1,298 | 256 | 3 |
module Life.Scenes where
import Life.Types
-- Pre-plotted Scenes
glider :: [Pos]
glider = [(2,3),(3,4),(4,2),(4,3),(4,4)]
gliderGun :: [Pos]
gliderGun = [(2,6), (2,7), (3,6), (3,7), (12,6),
(12,7), (12,8), (13,5), (13,9), (14,4),
(14,10), (15,4), (15,10), (16,7), (17,5),
(17,9), (18,6), (18,7), (18,8), (19,7)... | ku-fpg/better-life | Life/Scenes.hs | bsd-2-clause | 548 | 12 | 6 | 88 | 495 | 326 | 169 | 14 | 1 |
{-# OPTIONS -XCPP #-}
module Radio ( radio) where
-- #define ALONE -- to execute it alone, uncomment this
#ifdef ALONE
import MFlow.Wai.Blaze.Html.All
main= runNavigation "" $ transientNav grid
#else
import MFlow.Wai.Blaze.Html.All hiding(retry, page)
import Menu
#endif
radio = do
r <- page $ p << b << "Radio ... | agocorona/MFlow | Demos/Radio.hs | bsd-3-clause | 604 | 0 | 13 | 129 | 145 | 79 | 66 | 8 | 1 |
{-# LANGUAGE CPP #-}
#if WITH_TEMPLATE_HASKELL
{-# LANGUAGE TemplateHaskell #-}
#endif
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTION... | Philonous/pontarius-xmpp | source/Network/Xmpp/Types.hs | bsd-3-clause | 59,691 | 0 | 18 | 23,554 | 6,662 | 3,956 | 2,706 | 773 | 4 |
{-# LANGUAGE TemplateHaskell #-}
import Test.Framework (defaultMain, testGroup, Test)
import Test.Framework.Providers.HUnit
import Test.QuickCheck
import Test.HUnit hiding (Test)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Draughts
import Game.Board.BasicTurnGame
import Control.Monad
import Data.L... | Raf0/draughts | test/Tests.hs | bsd-3-clause | 2,978 | 0 | 20 | 548 | 902 | 496 | 406 | 56 | 4 |
module Haskell99Pointfree.P47
(
) where
import Haskell99Pointfree.P46
and_1' = and_1
or_1' = or_1
equ_1' = equ_1
nand_1' = nand_1
xor_1' = xor_1
impl_1' = impl_1
--I just declared the fixity to show how it is done, the values are not correct.
infixl 4 `and_1'`
infixl 6 `or_1'`
infixl 4 `equ_1'`
infixl 3 `... | SvenWille/Haskell99Pointfree | src/Haskell99Pointfree/P47.hs | bsd-3-clause | 365 | 0 | 4 | 73 | 87 | 58 | 29 | 15 | 1 |
module Article.Router
(
module X
) where
import Article.Router.Handler as X
import Article.Router.Helper as X (requireArticle, requireTag,
requireTagAndArticle)
| Lupino/dispatch-article | src/Article/Router.hs | bsd-3-clause | 237 | 0 | 5 | 94 | 39 | 27 | 12 | 6 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Formats where
import qualified Data.ByteString.Lazy as B hiding (putStrLn)
import Data.Monoid ((<>))
import Control.Monad (when, forM_)
import Control.Lens
import Zeppelin as Z
import Databricks as D
import Notebook as N
import Pandoc as P
import Utils
type SourceFormat = S... | TiloWiklund/pinot | src/Formats.hs | bsd-3-clause | 1,982 | 0 | 10 | 287 | 643 | 361 | 282 | 42 | 1 |
{-# OPTIONS_GHC -Wno-partial-type-signatures #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE TemplateHaskell #-}
{-|
Module : Numeric.MixedType.Power
Description : Bottom-up typed exponentiation
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : [email protected]... | michalkonecny/mixed-types-num | src/Numeric/MixedTypes/Power.hs | bsd-3-clause | 8,392 | 0 | 20 | 2,017 | 2,642 | 1,381 | 1,261 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.