code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
import Test.QuickCheck
myButLast :: [a] -> a
myButLast [x, y] = x
myButLast (x:y:xs) = myButLast (y:xs)
prop_myButLast :: [Int] -> Int -> Property
prop_myButLast xs y = (length xs > 1) ==>
myButLast (xs ++ [y]) == last xs
prop_myButLastRev :: [Int] -> Property
prop_myButLastRev xs = (length ... | SandeepTuniki/99-Haskell-Problems | src/problem2.hs | bsd-3-clause | 475 | 0 | 10 | 130 | 196 | 101 | 95 | 13 | 1 |
{-# LANGUAGE TransformListComp #-}
module Numeric.LinearProgramming.Easy
( -- * The Simplex monad
Simplex
, runSimplex
, maximize
, minimize
-- ** Values & variables
, SimplexValue
, SimplexVar
, newVar
, newVars
-- ** Constraints
, (.<=)
, (.==)
, (.>=)
... | mcmaniac/simplex | src/Numeric/LinearProgramming/Easy.hs | bsd-3-clause | 4,501 | 1 | 14 | 1,249 | 1,826 | 937 | 889 | 104 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : [email protected]
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE KindSi... | dalaing/type-systems | src/Context/Type/Error.hs | bsd-3-clause | 1,279 | 0 | 10 | 178 | 223 | 127 | 96 | 25 | 0 |
module Text.Highlighter.Lexers.RagelEmbedded (lexer) where
import qualified Text.Highlighter.Lexers.Ragel as Ragel
import qualified Text.Highlighter.Lexers.Ragel as Ragel
import Text.Regex.PCRE.Light
import Text.Highlighter.Types
lexer :: Lexer
lexer = Lexer
{ lName = "Embedded Ragel"
, lAliases = ["ragel-em"]... | chemist/highlighter | src/Text/Highlighter/Lexers/RagelEmbedded.hs | bsd-3-clause | 1,264 | 0 | 12 | 157 | 245 | 146 | 99 | 22 | 1 |
{-|
Module : Main
Description : MRT Export Information Format parser
License : BSD3
Stability : Experimental
MRT is a library for parsing Multi-Threaded Routing Toolkit (MRT) export
files, of the kind you might find on the RouteViews archive.
-}
module Main where
import Data.Maybe (listToMaybe)
import qual... | codebje/hask-mrt | test/Main.hs | bsd-3-clause | 1,205 | 0 | 12 | 284 | 322 | 169 | 153 | 22 | 2 |
{- |
Running a transducer with some input
-}
module FST.RunTransducer (
-- * Run functions
applyUp, applyDown
) where
import FST.Transducer
import Data.Maybe (catMaybes)
-- | A transition betwee states in a transducer
type TransitionFunction a = (Transducer a -> (StateTy,Symbol a) ->
... | johnjcamilleri/fst | FST/RunTransducer.hs | bsd-3-clause | 2,096 | 0 | 15 | 548 | 798 | 412 | 386 | 43 | 3 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE... | cdornan/idiot | Text/RE/PCRE/RE.hs | bsd-3-clause | 6,807 | 0 | 12 | 1,834 | 1,527 | 842 | 685 | 201 | 5 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE Gen... | pgj/bead | src/Bead/Persistence/SQL/Entities.hs | bsd-3-clause | 8,017 | 0 | 12 | 1,561 | 461 | 259 | 202 | 37 | 1 |
{-# LANGUAGE GADTs, KindSignatures,
TypeOperators, TemplateHaskell, QuasiQuotes #-}
module Language.PiEtaEpsilon.BNFMeta.Term where
--from bnfc-meta
import Language.LBNF(lbnf, dumpCode, bnfc)
import Language.LBNF.Compiletime
import qualified Language.LBNF.Grammar
bnfc [lbnf|
-- This is a new pragma. The rest of... | dmwit/pi-eta-epsilon | src/Language/PiEtaEpsilon/BNFMeta/Term.hs | bsd-3-clause | 2,294 | 0 | 5 | 980 | 49 | 33 | 16 | 7 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-|
Module : Main
Description : Token Server
Copyright : (c) Traderwave Ltd, 2016
License : All Rights Reserved
Maintainer : [email protected]
Stability : experimental
Portability : POSIX, WINDOWS
Token server can be used to tempora... | yogeshsajanikar/token-service | app/Main.hs | bsd-3-clause | 2,520 | 0 | 16 | 609 | 574 | 284 | 290 | 57 | 2 |
{-|
Module : Idris.IdrisDoc
Description : Generation of HTML documentation for Idris code
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE OverloadedStrings, PatternGuards #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Idris.IdrisDoc (generateDocs) where
import Idris.... | uuhan/Idris-dev | src/Idris/IdrisDoc.hs | bsd-3-clause | 30,163 | 0 | 23 | 9,558 | 8,699 | 4,430 | 4,269 | 521 | 19 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.SBV.Examples.Polynomials.Polynomials
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : [email protected]
-- Stability : experimental
--
-- Simple usage of polynomials over GF(2^n), using... | josefs/sbv | Data/SBV/Examples/Polynomials/Polynomials.hs | bsd-3-clause | 2,900 | 0 | 10 | 507 | 429 | 267 | 162 | 21 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
--
-- Copyright (c) 2009-2011, ERICSSON AB
-- All rights... | emwap/feldspar-language | src/Feldspar/Core/Constructs/Array.hs | bsd-3-clause | 11,302 | 0 | 16 | 3,256 | 3,384 | 1,701 | 1,683 | 188 | 0 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module Language.Rsc.Typecheck.Environment (
... | UCSD-PL/RefScript | src/Language/Rsc/Typecheck/Environment.hs | bsd-3-clause | 7,476 | 0 | 15 | 1,859 | 1,953 | 1,028 | 925 | 124 | 2 |
{-# LANGUAGE QuasiQuotes #-}
{-@ LIQUID "--no-termination "@-}
import LiquidHaskell
import Language.Haskell.Liquid.Prelude
---------------------------------------------------------------------
----------------------- Datatype Definition -------------------------
------------------------------------------... | spinda/liquidhaskell | tests/gsoc15/unknown/pos/LambdaEvalMini.hs | bsd-3-clause | 2,491 | 0 | 19 | 558 | 548 | 300 | 248 | 44 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module TemplateSpec where
import Data.Morgue.Agenda.Render
import Data.Morgue.Agenda.Types
import Test.Hspec
import Text.Mustache
spec :: Spec
spec = describe "Data.Morgue.Agenda.Render" $ do
elementTemplateSpec
treeTemplateSpec
elementTemplate :: Template
elementTemplate... | ibabushkin/morgue | tests/TemplateSpec.hs | bsd-3-clause | 3,002 | 0 | 17 | 978 | 219 | 119 | 100 | 24 | 1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Lens.Internal
-- Copyright : (C) 2012-14 Edward Kmett
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Edward Kmett <[email protected]>
-- Stability : experimental
-... | hvr/lens | src/Control/Lens/Internal.hs | bsd-3-clause | 1,752 | 0 | 5 | 207 | 232 | 174 | 58 | 29 | 0 |
-- |
-- Module: Math.NumberTheory.MoebiusInversion
-- Copyright: (c) 2012 Daniel Fischer
-- Licence: MIT
-- Maintainer: Daniel Fischer <[email protected]>
--
-- Generalised Möbius inversion
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVaria... | Bodigrim/arithmoi | Math/NumberTheory/MoebiusInversion.hs | mit | 6,279 | 0 | 28 | 2,144 | 1,587 | 824 | 763 | 95 | 5 |
module Handler.Info where
import Import
import Text.Shakespeare.Text
--import Text.Hamlet
getInfoR :: Handler Html
getInfoR = do
defaultLayout $ do
addScript $ StaticR js_proof_js
addScript $ StaticR js_popper_min_js
addScript $ StaticR ghcjs_rts_js
addScript $ StaticR ghcjs_allact... | opentower/carnap | Carnap-Server/Handler/Info.hs | gpl-3.0 | 12,641 | 0 | 12 | 6,562 | 404 | 232 | 172 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- |
-- Module : Network.Google.Env
-- Copyright : (c) 2015-2016 Brendan... | brendanhay/gogol | gogol/src/Network/Google/Env.hs | mpl-2.0 | 5,391 | 0 | 13 | 1,206 | 948 | 548 | 400 | 66 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/UpdateMyUserProfile.hs | mpl-2.0 | 3,399 | 0 | 9 | 652 | 357 | 219 | 138 | 47 | 1 |
{-# LANGUAGE CPP, BangPatterns, MagicHash, NondecreasingIndentation, OverloadedStrings #-}
-------------------------------------------------------------------------------
--
-- | Main API for compiling plain Haskell source code.
--
-- This module implements compilation of a Haskell source. It is
-- /not/ concerned wit... | rahulmutt/ghcvm | compiler/Eta/Main/HscMain.hs | bsd-3-clause | 73,497 | 0 | 28 | 21,764 | 12,449 | 6,404 | 6,045 | 822 | 9 |
module Language.StreamIt.Filter
( Statement (..)
, FilterT (..)
, Rate (..)
, Filter
, FilterDecl
, evalStmt
, execStmt
, rate
, push
, peek
, pop
, println
, work
, init'
) where
import Data.Char
import Data.List
import Data.Typeable
import Control.Monad.Trans
import Language.StreamIt.C... | adk9/haskell-streamit | Language/StreamIt/Filter.hs | bsd-3-clause | 5,342 | 0 | 14 | 1,471 | 2,376 | 1,234 | 1,142 | -1 | -1 |
-- {-# LANGUAGE #-}
{-# OPTIONS_GHC -Wall #-}
-- {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- TEMP
-- {-# OPTIONS_GHC -fno-warn-unused-binds #-} -- TEMP
----------------------------------------------------------------------
-- |
-- Module : Circat.ShowUtils
-- Copyright : (c) 2014 Tabula, Inc.
--
-- Ma... | capn-freako/circat | src/Circat/ShowUtils.hs | bsd-3-clause | 723 | 0 | 9 | 145 | 101 | 59 | 42 | 7 | 0 |
module Zipper (
BinTree(..),
Zipper,
fromTree,
toTree,
value,
left,
right,
up,
setValue,
setLeft,
setRight
) where
-- | A binary tree.
data BinTree a = BT {
btValue :: a -- ^ Value
, btLeft :: Maybe (BinTree a) -- ^ Left child
, btRight :: Maybe ... | pminten/xhaskell | zipper/Zipper.hs | mit | 1,350 | 0 | 11 | 346 | 344 | 191 | 153 | -1 | -1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TemplateHaskell #-}
{- |
Module : Data.ML.Scalar
Description : Scalar models.
Copyright : (c) Paweł Nowak
License : MIT
... | bitemyapp/machine-learning | src/Data/ML/Scalar.hs | mit | 2,286 | 0 | 12 | 500 | 695 | 401 | 294 | 63 | 1 |
{-# LANGUAGE CPP #-}
-- -----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 1993-2004
--
-- The native code generator's monad.
--
-- -----------------------------------------------------------------------------
module NCGMonad (
NatM_State(..), mkN... | holzensp/ghc | compiler/nativeGen/NCGMonad.hs | bsd-3-clause | 4,288 | 0 | 18 | 1,246 | 1,304 | 707 | 597 | 119 | 2 |
f = À
| forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/parser/unicode/T2302.hs | bsd-3-clause | 7 | 0 | 4 | 3 | 6 | 3 | 3 | 1 | 1 |
-- !!! Default export list isn't the same as (module M)
-- This should succeed, exporting only the local 'sort',
-- and not being confused by the 'sort' from 'List'.
-- (Hugs gets this wrong)
module M where
import Data.List as M
sort = "foo"
| urbanslug/ghc | testsuite/tests/module/mod154.hs | bsd-3-clause | 245 | 0 | 4 | 48 | 20 | 15 | 5 | 3 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE CPP #-}
-- | Various utilities used in the scaffolded site.
module Yesod.Default.Util
( addStaticContentExternal
, globFile
, widgetFileNoReload
, widgetFileReload
, TemplateLanguage (..)
, defaultTemplateLanguages
... | piyush-kurur/yesod | yesod-default/Yesod/Default/Util.hs | mit | 5,317 | 0 | 19 | 1,255 | 1,259 | 672 | 587 | 107 | 3 |
module StateFileProcessing where
import Control.Monad.State
import Data.ByteString.Char8 as BS
import Prelude hiding (lines)
import Text.Regex.Posix
{-is file will attempt to abstract the idea of filtering a file using the state monad.
The general pattern of a file search is if a set of lines match some predicate then... | SAdams601/ParRegexSearch | src/StateFileProcessing.hs | mit | 2,734 | 0 | 17 | 804 | 769 | 426 | 343 | 47 | 5 |
not False = True
not _ = False
| scravy/nodash | doc/Boolean/not.hs | mit | 35 | 0 | 4 | 12 | 19 | 8 | 11 | 2 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- SDL2
import qualified SDL
-- 定義 2D vector 用
-- 例如, (V2 x y) 在 cairo 中被用來表示座標
import Linear.V2 (V2(..))
-- 用來橋接 SDL 和 cairo 用的
import SDL.Cairo (createCairoTexture)
-- 畫圖用的小工具都是定義在這
-- 包括一個用來表示"維度"的資料結構: Dim
-- Dim 的 constructor 是 D
-- D 後面要給四個參數分別表示: X Y W H
import SDL.Cairo.Can... | jaiyalas/creepy-waffle | src/Waffle.hs | mit | 5,727 | 11 | 17 | 1,251 | 1,358 | 703 | 655 | 80 | 2 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables, ViewPatterns #-}
{-# LANGUAGE PatternGuards, RankNTypes #-}
{-# LANGUAGE ImpredicativeTypes #-}
module Network.Wai.Handler.Warp.Settings where
import Control.Exception
import Control.Monad (when, void)
import Control.Concurrent (forkIOWithUnmask)
import qualified D... | jberryman/wai | warp/Network/Wai/Handler/Warp/Settings.hs | mit | 7,256 | 0 | 15 | 1,446 | 934 | 563 | 371 | 89 | 1 |
-- |
-- Utilities, which execute the parser.
module HTMLEntities.Decoder where
import HTMLEntities.Prelude
import qualified Data.Text.Lazy.Builder as TLB
import qualified Data.Attoparsec.Text as P
import qualified HTMLEntities.Parser as P
-- |
-- A decoder of a single entity.
--
-- >>> mapM_ Data.Text.IO.putStrLn $... | nikita-volkov/html-entities | library/HTMLEntities/Decoder.hs | mit | 1,311 | 0 | 14 | 205 | 202 | 121 | 81 | 20 | 1 |
module Joy.Documentation (
LineNumber(..),
Located(..),
trim,
numberWidth,
leftPadToWidth,
rightPadToWidth,
englishList,
... | IreneKnapp/Joy | Joy/Documentation.hs | mit | 1,641 | 0 | 14 | 566 | 481 | 251 | 230 | 40 | 2 |
module GHCJS.DOM.Gamepad (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/Gamepad.hs | mit | 37 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
{-# OPTIONS_GHC -fno-warn-implicit-prelude #-}
module Paths_gomoku (
version,
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
impor... | 8Gitbrix/gomoku | .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/autogen/Paths_gomoku.hs | mit | 2,228 | 0 | 10 | 239 | 410 | 238 | 172 | 33 | 1 |
import HarmLang.Types
import HarmLang.InitialBasis
import HarmLang.ChordProgressionDatabase
import HarmLang.HarmonyDistributionModel
import HarmLang.Priors
import HarmLang.Utility
import Data.List
import Data.Maybe
-- groups progressions in a CPD by artist, denoting the artist with a string
getByArtist :: ChordProgr... | cyruscousins/HarmLang | examples/stylisticinference.hs | mit | 3,705 | 0 | 25 | 599 | 1,018 | 548 | 470 | 48 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Auth0.API.Authentification
( login
, logout
, passwordlessEmail
, passwordlessSMS
, passwordlessTouch
, userInfo
, tokenInfo
, linkAccounts
, unlinkAccounts
) where
import qualified Data.ByteString.Char... | kelecorix/api-auth0 | src/Auth0/API/Authentification.hs | mit | 4,330 | 0 | 13 | 1,054 | 1,206 | 654 | 552 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-gamelift-fleet-ec2inboundpermission.html
module Stratosphere.ResourceProperties.GameLiftFleetIpPermission whe... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/GameLiftFleetIpPermission.hs | mit | 3,171 | 0 | 13 | 332 | 447 | 253 | 194 | 41 | 1 |
module Parse where
import Prelude hiding (error)
import Control.Arrow hiding (loop)
import qualified Data.Set as S
import Data.List.Split
import Data.Char
import Data.Maybe
import Types
import ChanBoards
import Utility
{--
End options
/4 (st=4&to=4) Only one post
/4- (st=4) Starting a... | Cipherwraith/Rokka | Parse.hs | gpl-2.0 | 9,392 | 0 | 14 | 3,224 | 1,641 | 861 | 780 | -1 | -1 |
{-# language TemplateHaskell #-}
{-# language DeriveDataTypeable #-}
{-# language FlexibleInstances #-}
{-# language MultiParamTypeClasses #-}
module PL.Split.Term.Fixed where
import PL.Data
import PL.Reader
import PL.Tree
import PL.Signatur hiding ( signatur )
import qualified PL.Signatur
import PL.Struktur
import q... | marcellussiegburg/autotool | collection/src/PL/Split/Term/Fixed.hs | gpl-2.0 | 3,862 | 0 | 15 | 1,420 | 944 | 491 | 453 | 93 | 1 |
--
-- Copyright (c) 2013 Bonelli Nicola <[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 2 of the License, or
-- (at your option) any later version.
--... | beni55/cgrep | src/Config.hs | gpl-2.0 | 1,717 | 0 | 13 | 368 | 303 | 176 | 127 | 27 | 2 |
{-
Copyright (c) 2011-2012, Sergey Astanin
All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program i... | nickbart1980/pandoc | src/Text/Pandoc/Writers/FB2.hs | gpl-2.0 | 23,982 | 0 | 19 | 6,589 | 8,040 | 4,156 | 3,884 | 491 | 10 |
----------------------------------------------------------------------------
-- |
-- Module : Text.XML.Schema.Structure
-- Copyright : (c) Simon Foster 2004
-- License : GPL version 2 (see COPYING)
--
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : non-portable (ghc... | twopoint718/haifa | src/Text/XML/Schema/Structure.hs | gpl-2.0 | 9,032 | 0 | 11 | 2,371 | 1,771 | 1,054 | 717 | 91 | 0 |
-- |
-- Module : Network.ScrapeChanges
-- Copyright : (C) 2015-16 Matthias Herrmann
-- License : GPL-3
-- Maintainer : [email protected]
--
-- Main module, reexports everything you need to use "scrape-changes". Full working example:
--
-- @
--
-- {-\# LANGUAGE OverloadedStrings \#-}
--
-- imp... | 2chilled/scrape-changes | scrape-changes/src/Network/ScrapeChanges.hs | gpl-3.0 | 8,768 | 0 | 19 | 1,931 | 1,097 | 641 | 456 | 73 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
module HLinear.Hook.LeftTransformation.Basic
where
import qualified Prelude as P
import HLinear.Utility.Prelude hiding ( one )
import qualified Data.Vector as V
import qualified Math.Structure as MS
import HLinear.Matrix.Definition ( Matrix(..), IsMatrix(..) )
import qualified ... | martinra/hlinear | src/HLinear/Hook/LeftTransformation/Basic.hs | gpl-3.0 | 6,584 | 0 | 20 | 1,255 | 1,914 | 970 | 944 | -1 | -1 |
{-# LANGUAGE QuasiQuotes, OverloadedStrings #-}
module FunctionalSpec (spec) where
import Test.Hspec
import Language.Mulang.Parsers.Haskell
import Language.Mulang.Inspector.Generic
import Language.Mulang.Inspector.Functional
spec :: Spec
spec = do
describe "usesGuards" $ do
... | mumuki/mulang | spec/FunctionalSpec.hs | gpl-3.0 | 2,834 | 0 | 19 | 747 | 665 | 315 | 350 | 55 | 1 |
module Hadolint.Rule.DL3028 (rule) where
import qualified Data.Text as Text
import Hadolint.Rule
import Hadolint.Shell (ParsedShell)
import qualified Hadolint.Shell as Shell
import Language.Docker.Syntax (Instruction (..), RunArgs (..))
rule :: Rule ParsedShell
rule = simpleRule code severity message check
where
... | lukasmartinelli/hadolint | src/Hadolint/Rule/DL3028.hs | gpl-3.0 | 1,088 | 0 | 11 | 234 | 325 | 177 | 148 | 27 | 2 |
{-# 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/InstanceGroupManagers/RecreateInstances.hs | mpl-2.0 | 5,929 | 0 | 18 | 1,303 | 557 | 334 | 223 | 95 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.CloudKMS.Ty... | brendanhay/gogol | gogol-cloudkms/gen/Network/Google/CloudKMS/Types/Product.hs | mpl-2.0 | 114,554 | 0 | 23 | 24,642 | 16,712 | 9,711 | 7,001 | 1,874 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Metros/List.hs | mpl-2.0 | 2,748 | 0 | 13 | 638 | 320 | 194 | 126 | 50 | 1 |
{-# Language CPP #-}
-- | 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 th... | sajith/betty-web | Settings.hs | agpl-3.0 | 6,212 | 0 | 12 | 1,899 | 752 | 429 | 323 | -1 | -1 |
module Blockchain.Node.AccountSpec where
import Control.Concurrent.STM.TVar (readTVarIO)
import qualified Data.Map.Strict as Map
import Data.Text (Text)
import Data.Time (getCurrentTime)
import Test.Hspec
import Blockchain.Node.Account ((<+|), Account)
import qualifie... | carbolymer/blockchain | blockchain-node/test/Blockchain/Node/AccountSpec.hs | apache-2.0 | 3,524 | 0 | 19 | 731 | 824 | 433 | 391 | 66 | 1 |
main = do
putStrLn "What's your name?"
name <- getLine
putStrLn ("Nice to meet you, " ++ name ++ ".")
| Oscarzhao/haskell | learnyouahaskell/hello.hs | apache-2.0 | 108 | 0 | 10 | 26 | 36 | 16 | 20 | 4 | 1 |
module Import
( module Import
) where
import Prelude as Import hiding (head, init, last,
readFile, tail, writeFile)
import Yesod as Import hiding (Route (..))
import Control.Applicative as Import (pure,... | burz/sonada | Import.hs | apache-2.0 | 1,180 | 0 | 6 | 550 | 167 | 121 | 46 | -1 | -1 |
module Staircase.A282574 (a282574) where
import Helpers.Stairs (finalStaircaseState)
a282574 n = position where
(_, position, _) = finalStaircaseState n
| peterokagey/haskellOEIS | src/Staircase/A282574.hs | apache-2.0 | 156 | 0 | 7 | 21 | 49 | 28 | 21 | 4 | 1 |
-----------------------------------------------------------------------------
-- |
-- module : Graphics.UI.MainUI
-- copyright :
-- license :
--
-- maintainer :
-- stability : unstable
-- portability : portable
--
-----------------------------------------------------------------------------
module Grap... | creichert/hsgui | src/Graphics/UI/MainUI.hs | bsd-2-clause | 933 | 0 | 8 | 212 | 172 | 91 | 81 | 19 | 1 |
module Model where
import Prelude
import Yesod
import Data.Text (Text)
import Data.Time
import Database.Persist.Quasi
-- 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:
-- http://www.yesodweb.com/book/persistent/
sha... | seizans/ppl | Model.hs | bsd-2-clause | 428 | 0 | 8 | 59 | 64 | 37 | 27 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, FlexibleContexts #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE UndecidableInstances #-} -- Why?
-----------------------------------------------------------------------------
-- |
-- Module : Parsimony.Char
-- Copyright : (c) Iavor S.... | yav/parsimony | src/Parsimony/Stream.hs | bsd-2-clause | 2,614 | 0 | 13 | 660 | 564 | 314 | 250 | 45 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TupleSections #-}
module Language.Haskell.Liquid.Bare.OfType (
ofBareType
, ofMeaSort
, ofBSort
, ofBPVar
, mkSpecType
, mkSpecType'
) where
import Prelude hiding (error)
import BasicTypes
import Name
import TyCon hiding (synTyConRhs_maybe)
impo... | ssaavedra/liquidhaskell | src/Language/Haskell/Liquid/Bare/OfType.hs | bsd-3-clause | 8,063 | 0 | 16 | 2,008 | 3,081 | 1,547 | 1,534 | 179 | 16 |
{-# LANGUAGE ScopedTypeVariables #-}
module Language.Haskell.Refact.HaRe
(
-- * Data Structures
RefactSettings(..)
, VerboseLevel (..)
, defaultSettings
, SimpPos
-- * Refactorings
-- |Note: the 'Cradle' in the type signatures is the one from ghc-mod
, ifToCase
{-
, duplicateDef
, liftToTopLevel
, liftOn... | mpickering/HaRe | src/Language/Haskell/Refact/HaRe.hs | bsd-3-clause | 792 | 0 | 5 | 99 | 77 | 58 | 19 | 13 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.System
-- Copyright : Duncan Coutts 2007-2008
--
-- Maintainer : [email protected]
-- Portability : portable
--
-- Cabal often needs to do slightly different ... | fpco/cabal | Cabal/Distribution/System.hs | bsd-3-clause | 6,920 | 0 | 13 | 1,616 | 1,444 | 816 | 628 | 112 | 1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
{-|
Module : Numeric.AERN.Misc.QuickCheck
Description : miscellaneous utilities for QuickCheck
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : [email protected]
Stability : experimental
Portability... | michalkonecny/aern | aern-order/src/Numeric/AERN/Misc/QuickCheck.hs | bsd-3-clause | 2,881 | 0 | 13 | 779 | 681 | 361 | 320 | 54 | 1 |
module System.Build.Access.Bottom where
class Bottom r where
bottom ::
Maybe String
-> r
-> r
getBottom ::
r
-> Maybe String
| tonymorris/lastik | System/Build/Access/Bottom.hs | bsd-3-clause | 156 | 0 | 8 | 52 | 45 | 24 | 21 | 9 | 0 |
-- | Grover is a simple example program that shows how to write a
-- parser for commands with multiple modes. You build such parsers
-- using "Multiarg.Mode". It provides an example for the
-- documentation, and it also provides fodder for the QuickCheck
-- tests. You will want to look at the source code.
--
-- Grov... | massysett/multiarg | lib/Multiarg/Examples/Grover.hs | bsd-3-clause | 3,871 | 0 | 12 | 820 | 818 | 441 | 377 | 56 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Generics.EMGM.Data.Maybe
-- Copyright : (c) 2008, 2009 Universiteit Utrecht
-- License : BSD3
--
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : non-portable
--
-- Summary... | spl/emgm | src/Generics/EMGM/Data/Maybe.hs | bsd-3-clause | 3,842 | 0 | 15 | 705 | 919 | 499 | 420 | 76 | 3 |
module Sigym4.Geometry.QuadTree (
QuadTree
, Box
, Quadrant (..)
, QtError (..)
, Node (..)
, Level (Level)
, generate
, grow
, growToInclude
, empty
, lookupByPoint
, traceRay
, traceRay2
, qtExtent
, qtLevel
, qtMinBox
) where
import Sigym4.Geometry.QuadTree.Internal.Types
import... | meteogrid/sigym4-geometry | src/Sigym4/Geometry/QuadTree.hs | bsd-3-clause | 366 | 0 | 5 | 82 | 89 | 62 | 27 | 21 | 0 |
----------------------------------------------------------------------------
-- |
-- Module : Text.RawString.QQ.Text
-- Copyright : (c) Sergey Vinokurov 2016
-- License : BSD3-style (see LICENSE)
-- Maintainer : [email protected]
-- Created : Friday, 23 September 2016
-----------------------------... | sergv/tags-server | tests/Text/RawString/QQ/Text.hs | bsd-3-clause | 1,285 | 0 | 11 | 228 | 277 | 168 | 109 | 20 | 1 |
--------------------------------------------------------------------------------
-- Copyright © 2011 National Institute of Aerospace / Galois, Inc.
--------------------------------------------------------------------------------
-- | Let expressions.
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE ExistentialQuantification... | leepike/copilot-core | src/Copilot/Core/Locals.hs | bsd-3-clause | 2,797 | 0 | 12 | 686 | 668 | 355 | 313 | 51 | 10 |
module ETests.Pretty.Type
( testPrettyTypeSignature
, testPrettyType
, prettyTypeSignatureSpecs
, prettyTypeSpecs
) where
import Control.Applicative
import Text.Parsec
import Text.PrettyPrint.HughesPJ
import Language.TheExperiment.Parser
import Language.TheExperiment.Parser.Type
import Language.TheExper... | jvranish/TheExperiment | test/ETests/Pretty/Type.hs | bsd-3-clause | 3,010 | 0 | 13 | 764 | 548 | 296 | 252 | 65 | 2 |
{-# LANGUAGE QuasiQuotes #-}
import LiquidHaskell
[lq| type Range Lo Hi = {v:Int | Lo <= v && v < Hi} |]
[lq| bow :: Range 0 100 |]
bow :: Int
bow = 12
| spinda/liquidhaskell | tests/gsoc15/unknown/pos/tyExpr.hs | bsd-3-clause | 158 | 0 | 4 | 41 | 29 | 19 | 10 | 6 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Prelude
import CompareForm
import Web.Scotty.Trans
import qualified Arch
import Common
import Control.Monad.Trans.Reader
import System.Environment (getArgs)
import System.Directory (getCurrentDirectory)
import Routes
getBaseUrl... | chrissound/ArchPackageCompareStats | src/Main.hs | bsd-3-clause | 1,062 | 0 | 18 | 225 | 273 | 136 | 137 | 31 | 2 |
markup = <div>
<h1>Songs</h1>
<table>
<% do ss <- getViewDataValue_u "songs" :: View [String]
mapM genRow ss %>
</table>
</div>
genRow s = <tr>
<td>
<% show s %>
</td>
</tr>
| alsonkemp/turbinado-website | App/Views/Test/Index.hs | bsd-3-clause | 301 | 22 | 17 | 158 | 118 | 58 | 60 | -1 | -1 |
module BowlingKata.Day3Spec (spec) where
import Test.Hspec
import BowlingKata.Day3 (score)
spec :: Spec
spec = do
it "is a gutter game"
((score . replicate 20 $ 0) == 0)
it "rolls all ones"
((score . replicate 20 $ 1) == 20)
it "rolls one spare"
... | Alex-Diez/haskell-tdd-kata | old-katas/test/BowlingKata/Day3Spec.hs | bsd-3-clause | 537 | 0 | 14 | 199 | 211 | 108 | 103 | 15 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Diagrams.Backend.OpenSCad where
import... | bergey/diagrams-openscad | src/Diagrams/Backend/OpenSCad.hs | bsd-3-clause | 3,185 | 0 | 12 | 830 | 1,136 | 591 | 545 | 67 | 2 |
-- |
{-# LANGUAGE TemplateHaskell,
FlexibleContexts, FlexibleInstances, TypeSynonymInstances
#-}
module Insomnia.ToF.Env (
Insomnia.Common.FreshName.withFreshName
, Insomnia.Common.FreshName.withFreshNames
, Env(..)
, tyConEnv
, sigEnv
, modEnv
, toplevelEnv
, tyVarEnv
, valConEnv
, valEnv
... | lambdageek/insomnia | src/Insomnia/ToF/Env.hs | bsd-3-clause | 4,136 | 0 | 20 | 1,086 | 1,265 | 682 | 583 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Syncthing.Types.UsageReport
( UsageReport(..)
) where
import Control.Applicative ((<$>), (<*>))
import Control.Monad (MonadPlus (mzero))
import Data.Aeson (FromJSON, Value (..... | jetho/syncthing-hs | Network/Syncthing/Types/UsageReport.hs | bsd-3-clause | 1,681 | 0 | 20 | 725 | 356 | 214 | 142 | 38 | 0 |
{-|
Module : Pipes.KeyValueCsv
Copyright : (c) Marcin Mrotek, 2015
License : BSD3
Maintainer : [email protected]
Stability : experimental
Parse CSV files with key-value headers.
-}
{-# LANGUAGE
DataKinds
, ExplicitForAll
, PolyKinds
, TypeOperators
#-}
module Pipes.KeyValueCsv
... | marcinmrotek/pipes-key-value-csv | src/Pipes/KeyValueCsv.hs | bsd-3-clause | 1,832 | 0 | 15 | 373 | 447 | 257 | 190 | 46 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Buildsome.BuildMaps
( TargetRep(..), computeTargetRep
, TargetDesc(..), descOfTarget
, DirectoryBuildMap(..)
, BuildMaps(..)
, make
, TargetKind(..)
, find
, findDirectory
) where
import qualif... | da-x/buildsome-tst | app/Buildsome/BuildMaps.hs | bsd-3-clause | 4,788 | 0 | 16 | 1,158 | 1,184 | 664 | 520 | 106 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
module Main where
import IsInstance
import Data.Proxy
writeTryCxt ''Show
f x = if... | aavogt/IsInstance | test/test2.hs | bsd-3-clause | 438 | 0 | 11 | 71 | 98 | 55 | 43 | 15 | 1 |
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.PackageIndex
-- Copyright : (c) David Himmelstrup 2005,
-- Bjorn Bringert 2007,
-- Duncan Coutts 2008-2009
--
-- Maintainer :... | sopvop/cabal | Cabal/Distribution/Simple/PackageIndex.hs | bsd-3-clause | 24,614 | 0 | 19 | 6,000 | 4,586 | 2,488 | 2,098 | 328 | 5 |
module Tests where
import AST
import Render
-- t0 = Config { cTypes = [ MTApp (MTyCon "PING") [PVar (V "x")]
-- , MTApp (MTyCon "PONG") [PVar (V "x")]
-- ]
-- , cSets = []
-- , cProcs = [(PConc 0,
-- [ Choose (V "pi") (S "ps")
-- ... | abakst/symmetry | checker/src/tests.hs | mit | 10,128 | 0 | 21 | 4,563 | 3,919 | 2,122 | 1,797 | 191 | 1 |
{-# LANGUAGE CPP #-}
{- |
Module : ./GUI/GraphMenu.hs
Description : Menu creation functions for the Graphdisplay
Copyright : (c) Thiemo Wiedemeyer, Uni Bremen 2002-2008
License : GPLv2 or higher, see LICENSE.txt
Maintainer : [email protected]
Stability : provisional
Portability : non... | spechub/Hets | GUI/GraphMenu.hs | gpl-2.0 | 18,461 | 0 | 28 | 4,812 | 5,038 | 2,588 | 2,450 | 345 | 21 |
module HyLoRes.Core.SMP.Dispatcher(
DispatcherChans(..), runDispatcher,
DispatchAlgorithm (..), fromDispatchAlgString
)
where
import Prelude hiding ( log )
import Control.Monad.State
import Control.Monad.Reader
import Control.Concurrent.Chan
import Control.Applicative ( (<$>) )
import Data.Map ( Map )
imp... | nevrenato/HyLoRes_Source | src/HyLoRes/Core/SMP/Dispatcher.hs | gpl-2.0 | 13,723 | 10 | 22 | 5,309 | 4,023 | 2,088 | 1,935 | -1 | -1 |
--
--
-- (C) 2011-14 Nicola Bonelli <[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 2 of the License, or
-- (at your option) any later version.
--
-- T... | pandaychen/PFQ | user/pfqd/src/Options.hs | gpl-2.0 | 1,409 | 0 | 12 | 308 | 141 | 87 | 54 | 12 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module SpecHelper ( module X
, valueOf
) where
import Test.Hspec as X
import Text.ParserCombinators.Parsec as X
import Text.ParserCombinators.Parsec.Error as X (ParseError,
... | aar-lang/aar | test/SpecHelper.hs | gpl-3.0 | 571 | 0 | 9 | 237 | 110 | 66 | 44 | 12 | 1 |
module Carnap.Core.ModelChecking.Parser() where
import Carnap.Core.ModelChecking.ModelFinder
import Carnap.Languages.Util.LanguageClasses (BooleanLanguage)
import Carnap.Languages.Util.GenericParsers
import Text.Parsec
import Text.Parsec.Expr
import Text.Parsec.Char
| opentower/carnap | Carnap/src/Carnap/Core/ModelChecking/Parser.hs | gpl-3.0 | 268 | 0 | 5 | 17 | 54 | 37 | 17 | 7 | 0 |
{-# 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-s3/gen/Network/AWS/S3/CreateBucket.hs | mpl-2.0 | 6,358 | 0 | 13 | 1,435 | 1,086 | 639 | 447 | 131 | 1 |
{-# Language CPP #-}
-- Copyright 2009-2010 Corey O'Connor
-- | Xterm output driver. This uses the Terminfo driver with some
-- extensions for Xterm.
module Graphics.Vty.Output.XTermColor
( reserveTerminal
)
where
import Graphics.Vty.Output.Interface
import Graphics.Vty.Input.Mouse
import Graphics.Vty.Input.Focus
... | jtdaugherty/vty | src/Graphics/Vty/Output/XTermColor.hs | bsd-3-clause | 4,409 | 0 | 23 | 1,234 | 946 | 490 | 456 | 86 | 11 |
{-# LANGUAGE RankNTypes, FlexibleContexts #-}
{-
This module is not meant primarily for instructive and pedagogical purposes.
As such, it is not fully featured, and sacrifices performance and generality
for clarity of code.
-}
module Data.Iteratee.Codecs.Wave {-# DEPRECATED "This will be moved to a separate package... | iteloo/tsuru-sample | iteratee-0.8.9.6/Examples/Wave.hs | bsd-3-clause | 11,330 | 0 | 24 | 2,634 | 3,452 | 1,768 | 1,684 | 237 | 3 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Snap.Util.GZip.Tests
( tests ) where
------------------------------------------------------------------------------
import qu... | sopvop/snap-core | test/Snap/Util/GZip/Tests.hs | bsd-3-clause | 15,159 | 0 | 16 | 3,674 | 3,410 | 1,731 | 1,679 | 258 | 1 |
-- | Internal pretty-printing helpers for Nix expressions.
module Internal.PrettyPrinting
( onlyIf
, setattr, toAscList
, listattr
, boolattr
, attr
, string
, funargs
-- * Re-exports from other modules
, module Text.PrettyPrint.HughesPJClass
, Text, disp
)
where
import Data.Char
import Data.F... | psibi/cabal2nix | src/Internal/PrettyPrinting.hs | bsd-3-clause | 1,598 | 0 | 14 | 437 | 583 | 314 | 269 | 44 | 2 |
{-# LANGUAGE CPP
, GADTs
, DataKinds
, KindSignatures
, MultiParamTypeClasses
, FunctionalDependencies
, ScopedTypeVariables
, FlexibleContexts
, Rank2Types
, TypeSynonymInstances
, FlexibleInstances
... | zaxtax/hakaru | haskell/Language/Hakaru/Evaluation/Lazy.hs | bsd-3-clause | 28,398 | 14 | 31 | 9,833 | 7,609 | 3,821 | 3,788 | -1 | -1 |
module Program.List.Roll where
import qualified Program.List.Expression as X
import qualified Program.List.Semantics as S
import qualified Program.List.Operation as O
import qualified Program.List.Value as V
import qualified Program.General.Environment as E
import qualified Program.General.Program as P
import qualifie... | Erdwolf/autotool-bonn | src/Program/List/Roll.hs | gpl-2.0 | 4,577 | 1 | 19 | 1,656 | 1,412 | 721 | 691 | 96 | 2 |
-- | Contains comment-related actions, like editing comments
-- and performing moderator actions on posts.
module Reddit.Actions.Comment
( getNewComments
, getNewComments'
, getMoreChildren
, getCommentInfo
, getCommentsInfo
, editComment
, deleteComment
, removeComment ) where
import Reddit.Types.Co... | intolerable/reddit | src/Reddit/Actions/Comment.hs | bsd-2-clause | 3,796 | 0 | 14 | 770 | 747 | 389 | 358 | 65 | 5 |
module Main where
import Compiler.Resolve
import Compiler.Parser
import Compiler.OptimiseLp
import Compiler.CodeGen
import Compiler.OptimiseHs
main = do
src <- readFile "tagsoup2.txt"
pre <- readFile "Prefix.hs"
let code = show $ optimiseHs $ codeGen $ optimiseLp $ resolve $ parse src
writeFile "../T... | ndmitchell/tagsoup | dead/parser/Main.hs | bsd-3-clause | 372 | 0 | 14 | 63 | 101 | 51 | 50 | 11 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
module Stack.PackageDump
( Line
, eachSe... | meiersi-11ce/stack | src/Stack/PackageDump.hs | bsd-3-clause | 15,806 | 0 | 27 | 5,207 | 4,065 | 2,079 | 1,986 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
module Data.OrdPSQ.Benchmark
( benchmark
) where
import Data.List (foldl')
import qualified Data.OrdPSQ as OrdPSQ
import Criterion.Main
import Prelude hiding (lookup)
import BenchmarkTypes
benchmark :: String -> [BElem] -> BenchmarkSet
benc... | meiersi/psqueues-old | benchmarks/Data/OrdPSQ/Benchmark.hs | bsd-3-clause | 1,966 | 0 | 13 | 514 | 620 | 335 | 285 | 33 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.