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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# OPTIONS_GHC -O2 -Wall #-}
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
-------------------------------------------------------------------------------
-- Maze.hs: Functions and types for processing the maze.
--
-- Author: Jeremy Nuttall
-----------------------------------------------------------------------------... | jtnuttall/bfs-haskell | Proc/Maze.hs | gpl-2.0 | 3,882 | 0 | 14 | 1,010 | 1,047 | 570 | 477 | -1 | -1 |
module T where
import Prelude hiding ( id )
import Tests.ModelCheckerBasis
-- One initial state.
c = proc () ->
do rec x <- (| unsafeNonDetAC (\x -> notA -< x) (idB -< x) |)
returnA -< x
Just (m, out) = isConstructive c
ctlM = mkCTLModel m
test_model = ctlM `seq` True
test_nondet_init = isOK (mc ctlM (neg (p... | peteg/ADHOC | Tests/07_Nondeterminism/025_init_nondet_one_state.hs | gpl-2.0 | 331 | 3 | 15 | 72 | 146 | 78 | 68 | -1 | -1 |
module CSP.STS.Bisi.Report where
import CSP.STS.Type
import CSP.STS.Bisi.Refine ( domain, codomain, images )
import Autolib.Reporter
import Autolib.ToDoc
import Autolib.Reader
import qualified Autolib.Relation as R
import qualified Data.Set as S
import Autolib.Set ( cross )
import Control.Monad ( guard, void, forM )... | marcellussiegburg/autotool | collection/src/CSP/STS/Bisi/Report.hs | gpl-2.0 | 1,937 | 0 | 22 | 630 | 720 | 368 | 352 | 35 | 1 |
{-# OPTIONS -Wall #-}
module GenFunctions (genModule) where
-- import System.IO
import Data.List
genModule :: Int -> IO ()
genModule arity = writeFile "Generated.hs" (genModule' arity)
genModule' :: Int -> String
genModule' n = unlines . map pwc $ [1..n]
pwc :: Int -> String
pwc n = unlines [pwcdoc n, sigTot n,defT... | jplLloyd/pointwise-composition | src/Data/GenFunctions.hs | gpl-3.0 | 1,858 | 1 | 12 | 480 | 782 | 417 | 365 | 45 | 1 |
{-
This file is part of The Simple Nice Manual Generator.
The Simple Nice Manual Generator 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 any later version.
... | elginer/snm | Text/Syntax/Test.hs | gpl-3.0 | 1,282 | 0 | 10 | 242 | 124 | 77 | 47 | 13 | 1 |
-- Copyright (c) 2015 Taylor Fausak <taylor@fausak.me>
-- Copyright (c) 2015 Stian Ellingsen <stian@plaimi.net>
--
-- See COPYING.Haskeleton.md for the licence covering this file.
module Main (main) where
import Control.Monad (guard)
import Data.Functor ((<$>))
import Data.Maybe (fromMaybe)
import Data.Monoid ((<>))
... | stiell/phec | test-suite/HPC.hs | gpl-3.0 | 2,045 | 0 | 19 | 445 | 678 | 354 | 324 | 46 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Data.Typeable
import Transient.Base
import Transient.Backtrack
import Transient.Indeterminism
import Transient.Logged
import Transient.Move
import Transient.EVars
import Con... | haskellGardener/transient | Main.hs | gpl-3.0 | 10,528 | 0 | 16 | 3,404 | 2,926 | 1,386 | 1,540 | 263 | 4 |
{-# 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/Placements/Get.hs | mpl-2.0 | 3,085 | 0 | 14 | 727 | 421 | 249 | 172 | 61 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListPresets.hs | mpl-2.0 | 4,754 | 0 | 12 | 1,033 | 665 | 392 | 273 | 72 | 1 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
--------------------------------------------------------------------------------
{-| Module : Dialogs
Copyright : (c) Daan Leijen 2003
License : wxWindows
Maintainer : wxhaskell-devel@lists.sourceforge.net
Stability : provisional
Portabil... | thielema/wxhaskell | wx/src/Graphics/UI/WX/Dialogs.hs | lgpl-2.1 | 2,707 | 0 | 12 | 573 | 463 | 258 | 205 | 42 | 1 |
{-# LANGUAGE OverloadedStrings, UnicodeSyntax #-}
module DevelMain where
import Sweetroll.Prelude
import System.Environment
import Text.Read (readMaybe)
import Rapid
import Network.Wai.Handler.Warp
import Network.Wai.Middleware.RequestLogger
import ... | myfreeweb/sweetroll | sweetroll-be/executable/DevelMain.hs | unlicense | 723 | 0 | 14 | 175 | 181 | 98 | 83 | 18 | 1 |
{-# LANGUAGE QuasiQuotes, FlexibleInstances #-}
module View where
import Str(str)
import Acl
import Util
import Console
import Diff
tblList = [str|
SELECT n.nspname AS "Schema", c.relname AS "Name", d.description AS "Comment",
relacl AS "ACLs"
FROM pg_catalog.pg_namespace n
JOIN pg_catalog.pg_class c ON c.relna... | sourcewave/pg-schema-diff | Table.hs | unlicense | 10,334 | 0 | 14 | 1,761 | 854 | 461 | 393 | 45 | 3 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Options where
import Options.Generic
import Data.Maybe (fromMaybe)
import Type (Config(..), Role(..), defaultConfig)
data TunnelOptions = TunnelOptions
{
role :: Maybe Text
, localHost :: Maybe Text
, localPort :: Maybe Integer
, r... | nfjinjing/neko-obfs | src/Options.hs | apache-2.0 | 1,427 | 0 | 12 | 347 | 433 | 236 | 197 | 41 | 4 |
module Apply where
apply :: (Eq a, Num a) => a -> (b -> b) -> b -> b
apply 0 f = id
apply n f = f . apply (n - 1) f
| OCExercise/haskellbook-solutions | chapters/chapter08/scratch/apply.hs | bsd-2-clause | 118 | 0 | 9 | 37 | 79 | 42 | 37 | 4 | 1 |
{- |
Module Mewa.Protocol
Copyright : Copyright (C) 2014 Krzysztof Langner
License : BSD3
Maintainer : Krzysztof Langner <klangner@gmail.com>
Stability : alpha
Portability : portable
Mewa protocol implementation
-}
module Mewa.Protocol where
type Device = String
type Channel = String
type Password = String
data Pac... | AnthillTech/mewa-sim | src/Mewa/Protocol.hs | bsd-2-clause | 415 | 0 | 7 | 83 | 49 | 31 | 18 | 7 | 0 |
-- | Wrap a function's return value with another function.
module Data.Function.Wrap where
-- | Wrap the result of a function applied to 1 argument.
wrap1
:: (r -> s) -- ^ The final result wrapper.
-> (a1 -> r) -- ^ The function to wrap.
-> (a1 -> s) -- ^ The wrapped up function.
wrap1 = (.)
-- | Wrap the res... | chrisdone/wrap | src/Data/Function/Wrap.hs | bsd-3-clause | 4,488 | 0 | 19 | 1,592 | 1,527 | 815 | 712 | 83 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module WildBind.ExecSpec (main, spec) where
import Control.Applicative ((<$>))
import Control.Concurrent (forkIOWithUnmask, killThread, threadDelay)
import Control.Concurrent.STM (atomically, TChan, readTChan, tryReadTChan, writeTChan, newTChanIO)
import Control.Exception (bracket, t... | debug-ito/wild-bind | wild-bind/test/WildBind/ExecSpec.hs | bsd-3-clause | 10,527 | 0 | 28 | 2,782 | 3,860 | 1,948 | 1,912 | 206 | 2 |
{-# LANGUAGE QuasiQuotes #-}
import LiquidHaskell
import Language.Haskell.Liquid.Prelude
[lq|
data List [llen] a <p :: x0:a -> x1:a -> Prop>
= Nil
| Cons (h :: a) (t :: List <p> (a <p h>))
|]
[lq| measure llen :: (List a) -> Int
llen(Nil) = 0
llen(Cons x xs) = 1 + (llen xs)
|]
[lq| inva... | spinda/liquidhaskell | tests/gsoc15/unknown/pos/ListLen-LType.hs | bsd-3-clause | 1,182 | 0 | 14 | 334 | 430 | 225 | 205 | 34 | 2 |
module TestReadDirectoryInfo (tests) where
import DirectoryInfo
import Fixtures
import System.Directory
import System.FilePath
import Test.Hspec.HUnit()
import Test.Hspec.Monadic
import Test.HUnit
tests = describe "read directory info" $ do
it "can read directory info from file system" $ withTemporaryDirectory $... | rickardlindberg/orgapp | tests/TestReadDirectoryInfo.hs | bsd-3-clause | 1,150 | 0 | 17 | 323 | 271 | 138 | 133 | 22 | 1 |
{-# LANGUAGE EmptyDataDecls, TypeSynonymInstances #-}
{-# OPTIONS_GHC -fcontext-stack49 #-}
module Games.Chaos2010.Database.Monster_spells where
import Games.Chaos2010.Database.Fields
import Database.HaskellDB.DBLayout
type Monster_spells =
Record
(HCons (LVPair Spell_name (Expr (Maybe String)))
... | JakeWheat/Chaos-2010 | Games/Chaos2010/Database/Monster_spells.hs | bsd-3-clause | 954 | 0 | 29 | 263 | 300 | 156 | 144 | 18 | 1 |
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE GADTs #-}
module Language.GroundExpr(GroundExpr(..),Floor(..),floor,Two(..)) where
import Prelude hiding (floor)
import Data.Sequence (Seq,(<|),(|>))
import qualified Data.Sequence as S
import Data.Text (Text)
import qualified Data.Text as T
... | svenkeidel/hsynth | src/Language/GroundExpr.hs | bsd-3-clause | 3,095 | 0 | 17 | 875 | 1,264 | 636 | 628 | 81 | 10 |
module Main where
import Prelude hiding (catch)
import Control.Exception (catch)
import Control.Monad
( forM_
, when
)
import Data.Maybe
( listToMaybe
)
import System.Environment
( getArgs
)
import System.Exit
( exitFailure
)
import Ak.Commands
( Command(..)
, CommandError(... | elliottt/ak | src/Main.hs | bsd-3-clause | 1,397 | 0 | 15 | 418 | 410 | 216 | 194 | 44 | 2 |
module LogMsg (initLog,
FacilityString, LevelString, LogSystem(..),
errorMsg, warnMsg, noticeMsg,
infoMsg, debugMsg) where
import System.Log.Logger
import System.Log.Handler.Syslog
errorMsg :: String -> IO ()
errorMsg = errorM rootLoggerName
warnMsg :: String -> IO ()
war... | mwotton/sofadb | LogMsg.hs | bsd-3-clause | 2,026 | 0 | 11 | 476 | 711 | 410 | 301 | 70 | 1 |
module System.Build.Access.Nodeprecatedlist where
class Nodeprecatedlist r where
setNodeprecatedlist ::
r
-> r
unsetNodeprecatedlist ::
r
-> r
| tonymorris/lastik | System/Build/Access/Nodeprecatedlist.hs | bsd-3-clause | 169 | 0 | 7 | 43 | 35 | 20 | 15 | 8 | 0 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.QueryBufferObject
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portab... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/QueryBufferObject.hs | bsd-3-clause | 751 | 0 | 4 | 87 | 46 | 37 | 9 | 6 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE Typ... | Garygunn94/DFS | DirectoryServer/.stack-work/intero/intero27005gYj.hs | bsd-3-clause | 9,850 | 176 | 15 | 2,517 | 2,263 | 1,225 | 1,038 | 208 | 3 |
{-------------------------------------------------------------------------------
MorphGrammar.Hofm.Language.German.Derivation
HOFM German Derivation Grammar
(c) 2012
Britta Zeller <zeller@cl.uni-heidelberg.de>
Jan Snajder <jan.snajder@fer.hr>
----------------------------------------------------------------------... | jsnajder/hofm | src/MorphGrammar/Hofm/Language/German/Derivation.hs | bsd-3-clause | 1,995 | 0 | 8 | 210 | 199 | 124 | 75 | 18 | 1 |
-- {-# LANGUAGE #-}
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-} -- TEMP
{-# OPTIONS_GHC -fno-warn-unused-binds #-} -- TEMP
----------------------------------------------------------------------
-- |
-- Module : Test
-- Copyright : (c) 2014 Tabula, Inc.
--
-- Maintainer : conal... | conal/type-encode | test/Test.hs | bsd-3-clause | 1,564 | 0 | 8 | 375 | 553 | 321 | 232 | 49 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Text.Hyphenation.Hyphenator
-- Copyright : (C) 2012-2015 Edward Kmett
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : provisional
-- Portabili... | DNNX/hyphenation | src/Text/Hyphenation/Hyphenator.hs | bsd-3-clause | 2,907 | 0 | 11 | 571 | 468 | 263 | 205 | 32 | 2 |
module Main where
import Control.Monad (void, unless, when, forever)
import Data.Maybe (isNothing)
import Control.Concurrent.Async (async)
import qualified Data.ByteString.Char8 as B
import Pipes
import Pipes.Network.TCP
import System.Console.CmdArgs.Explicit
arguments :: Mode [(Stri... | mhitza/inspection-proxy | Main.hs | bsd-3-clause | 2,201 | 0 | 20 | 634 | 686 | 360 | 326 | 39 | 2 |
module Syntax(
Expr, FDef, RecordDef, ProgramDefs,
ilRecordDef, fdef, ap, var, num, bool, ite,
programDefs, toRPN, builtinMap,
numFields, accessors, constructor) where
import Control.Monad.State.Lazy hiding (ap)
import Data.Map as M
import RPN
type RecordField = String
data RecordDef = RecordDef String [Rec... | dillonhuff/IntLang | src/Syntax.hs | bsd-3-clause | 3,607 | 0 | 20 | 1,017 | 1,314 | 705 | 609 | 82 | 5 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TemplateHaskell #-}
import Control.Applicative
import Control.Exception as E
import Control.Monad
import Control.Monad.Trans
import Data.... | alphaHeavy/influxdb-haskell | examples/random-points.hs | bsd-3-clause | 3,802 | 15 | 26 | 879 | 1,218 | 611 | 607 | 115 | 3 |
module Engine.Monad
where
import Control.Monad
import Control.Monad.Random
import Control.Monad.State
import Control.Monad.Writer
import qualified Data.DList as D
import System.IO.Unsafe
----------------------------------------
data MessageType
= All
| Game
| Turn
| None
deriving (Read,Show,... | mikeizbicki/dominion | src/Engine/Monad.hs | bsd-3-clause | 1,036 | 0 | 12 | 328 | 346 | 184 | 162 | 34 | 3 |
module GeneratedTest where
import Haskore.Basic.Duration((%+))
import Haskore.Music
import Haskore.Melody.Standard
import Haskore.Music.GeneralMIDI as MidiMusic
import Haskore.Interface.MIDI.Render as Render
main = Render.fileFromGeneralMIDIMusic "hello.midi" song
song = MidiMusic.fromStdMelody MidiMusic.AcousticGran... | nfjinjing/haskore-guide | src/hello.hs | bsd-3-clause | 577 | 0 | 14 | 95 | 245 | 136 | 109 | 13 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns #-}
module Ivory.ModelCheck where
import qualified Ivory.Language.Proc as I
import qualified Ivory.Language.Syntax as I
import Ivory.Language.Syntax.Concrete.Location
import Text.Printf
import Ivory.ModelChec... | Hodapp87/ivory | ivory-model-check/src/Ivory/ModelCheck.hs | bsd-3-clause | 5,907 | 0 | 18 | 1,397 | 1,644 | 854 | 790 | 153 | 3 |
-------------------------------------------------------------------------------
-- |
-- Copyright : (C) 2015 Michael Carpenter
-- License : GPL3
-- Maintainer : Michael Carpenter <oldmanmike.dev@gmail.com>
-- Stability : experimental
-- Portability : GHC
--
------------------------------------------------... | oldmanmike/catan | src/Catan/Internal/Settlement.hs | bsd-3-clause | 2,164 | 0 | 17 | 996 | 140 | 82 | 58 | 9 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TupleSections #-}
-- | Names for packages.
module Stack.Types.PackageName
(PackageName
,Pack... | martin-kolinek/stack | src/Stack/Types/PackageName.hs | bsd-3-clause | 5,515 | 0 | 14 | 1,276 | 1,222 | 640 | 582 | 124 | 3 |
{-# LINE 1 "Control.Monad.ST.Lazy.Unsafe.hs" #-}
{-# LANGUAGE Unsafe #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.ST.Lazy.Unsafe
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENS... | phischu/fragnix | builtins/base/Control.Monad.ST.Lazy.Unsafe.hs | bsd-3-clause | 922 | 0 | 4 | 151 | 45 | 38 | 7 | 5 | 0 |
-- | <http://strava.github.io/api/v3/athlete/>
module Strive.Actions.Athletes
( getCurrentAthlete
, getAthlete
, updateCurrentAthlete
, getAthleteStats
, getAthleteCrs
) where
import Network.HTTP.Types (Query, toQuery)
import Strive.Aliases (AthleteId, Result)
import Strive.Client (Client)
import Strive.In... | liskin/strive | library/Strive/Actions/Athletes.hs | mit | 1,873 | 0 | 11 | 262 | 421 | 230 | 191 | 33 | 1 |
{-# LANGUAGE ScopedTypeVariables, CPP #-}
{-
Copyright (C) 2009 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option)... | 2ion/yst | Yst/Build.hs | gpl-2.0 | 4,673 | 0 | 16 | 1,006 | 1,192 | 584 | 608 | 83 | 5 |
-- This file is part of HamSql
--
-- Copyright 2014-2016 by it's authors.
-- Some rights reserved. See COPYING, AUTHORS.
module Database.HamSql.Internal.Utils
( module Data.Maybe
, module Database.HamSql.Internal.Utils
, module Database.YamSql.Internal.Utils
, traverseOf
, _Just
, each
) where
import Con... | qua-bla/hamsql | src/Database/HamSql/Internal/Utils.hs | gpl-3.0 | 2,528 | 0 | 10 | 549 | 1,000 | 530 | 470 | 80 | 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-rds/gen/Network/AWS/RDS/ModifyDBClusterParameterGroup.hs | mpl-2.0 | 5,284 | 0 | 10 | 1,011 | 446 | 280 | 166 | 63 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
-----------------------------------------------------------------------------
-- |
-- Copyright : (C) 2013-15 Edward Kme... | ekmett/succinct | src/Succinct/Tree/LOUDS.hs | bsd-2-clause | 5,018 | 0 | 13 | 1,121 | 1,473 | 787 | 686 | 117 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : System.Info
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : experimental
-- Portabilit... | FranklinChen/hugs98-plus-Sep2006 | packages/base/System/Info.hs | bsd-3-clause | 1,695 | 0 | 7 | 300 | 138 | 96 | 42 | -1 | -1 |
{-# LANGUAGE FlexibleInstances, FunctionalDependencies,
MultiParamTypeClasses, TypeFamilies, UndecidableInstances #-}
{-# OPTIONS -Wall #-}
-- successful
import Prelude hiding (Eq(..), not, (&&), (||))
import qualified Prelude (Eq(..), not, (&&), (||))
infix 4 ==, /=
infixr 3 &&
infixr 2 ||
class Boolean b w... | nushio3/Paraiso | attic/Ord/2.hs | bsd-3-clause | 1,095 | 5 | 10 | 294 | 478 | 267 | 211 | 39 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
The @TyCon@ datatype
-}
{-# LANGUAGE CPP, DeriveDataTypeable #-}
module TyCon(
-- * Main TyCon data types
TyCon, FieldLabel,
AlgTyConRhs(..), visibleDataCons,
TyConParent(..), isNoParent,... | fmthoma/ghc | compiler/types/TyCon.hs | bsd-3-clause | 71,358 | 0 | 16 | 21,373 | 8,172 | 4,671 | 3,501 | 721 | 7 |
module Turbinado.Layout.Helpers.Tags (
styleSheetTag
) where
import Turbinado.View
styleSheetTag :: String -> String -> VHtml
styleSheetTag s m =
itag "link" ! [strAttr "media" m, strAttr "type" "text/css", strAttr "rel" "stylesheet", strAttr "href" ("/css/" ++ s ++".css")]
| alsonkemp/turbinado-website | Turbinado/Layout/Helpers/Tags.hs | bsd-3-clause | 288 | 0 | 10 | 50 | 91 | 49 | 42 | 6 | 1 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="hi-IN">
<title>Port Scan | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref lo... | thc202/zap-extensions | addOns/zest/src/main/javahelp/org/zaproxy/zap/extension/zest/resources/help_hi_IN/helpset_hi_IN.hs | apache-2.0 | 970 | 90 | 29 | 159 | 399 | 212 | 187 | -1 | -1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Bitraversable
-- Copyright : (C) 2011-2016 Edward Kmett
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : libraries@haskel... | ezyang/ghc | libraries/base/Data/Bitraversable.hs | bsd-3-clause | 8,142 | 0 | 13 | 1,744 | 1,847 | 1,055 | 792 | 76 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Lib (
main
, Db.Config(..)
) where
import qualified TFB.Types as Types
import qualified TFB.Db as Db
import qualified Data.Either as Either
import Data.List (sortOn)
import Control.Monad (replicateM, join)
import qualified Data.ByteString.Lazy a... | sumeetchhetri/FrameworkBenchmarks | frameworks/Haskell/warp/warp-shared/src/Lib.hs | bsd-3-clause | 5,158 | 0 | 23 | 996 | 1,501 | 781 | 720 | 122 | 7 |
-- This file contains my first attempt to represent hypergraphs in
-- Haskell and use the Haskell compiler to type check them
---------------------------------------------
-- Attempt using 'data' to represent atoms --
---------------------------------------------
data TV = NullTV
| SimpleTV Float Float
... | kinoc/opencog | opencog/haskell/hypergraph_type_checking/experiment_with_data.hs | agpl-3.0 | 1,907 | 21 | 13 | 440 | 513 | 253 | 260 | 40 | 1 |
main = do
let sumOfSq = sum [x^2 | x <- [1..100]]
let sqOfSum = (sum [1..100]) ^ 2
print sumOfSq
print sqOfSum
print (sqOfSum - sumOfSq)
| ddeeff/sandbox | haskell/eular/6.hs | mit | 148 | 1 | 14 | 38 | 90 | 41 | 49 | 6 | 1 |
module Remotion.Server.Connection where
import Remotion.Util.Prelude hiding (State, listen, interact)
import qualified Remotion.Protocol as P
import qualified Remotion.Session as S
runConnection ::
(MonadIO m, Applicative m, Serializable IO i, Serializable IO o) =>
S.Socket ->
ServerIsAvailable ->
Authentic... | nikita-volkov/remotion | library/Remotion/Server/Connection.hs | mit | 3,755 | 0 | 22 | 896 | 1,049 | 526 | 523 | -1 | -1 |
{-# LANGUAGE CPP #-}
module Stackage.Config where
import Control.Monad (when, unless)
import Control.Monad.Trans.Writer (Writer, execWriter, tell)
import Data.Char (toLower)
import qualified Data.Map as Map
import Data.Maybe ... | Tarrasch/stackage | Stackage/Config.hs | mit | 26,537 | 0 | 16 | 6,248 | 4,018 | 1,867 | 2,151 | 416 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE RecordWildCards #-}
module Language.F2JS.Saturate where
import Data.List
import qualified Data.Map as M
import Language.F2JS.AST
import Language.F2JS.Util
type JSMap =... | jozefg/f2js | src/Language/F2JS/Saturate.hs | mit | 2,634 | 0 | 14 | 702 | 966 | 486 | 480 | 52 | 13 |
{- |
Description : Compiler Correctness from Graham Hutton’s
Programming in Haskell first edition,
Section 13.7.
Revised & more efficient compiler, called comp'
-}
module CompilerRev where
data Expr = Val Int | Add Expr Expr
eval :: Expr -> Int
eval (Val n) = n
eval (Add x y) = eval x... | antalsz/hs-to-coq | examples/compiler/CompilerRev.hs | mit | 729 | 0 | 9 | 210 | 318 | 166 | 152 | 19 | 1 |
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving, RecordWildCards, TemplateHaskell
, TypeFamilies, OverloadedStrings, ScopedTypeVariables #-}
module Main where
import Control.Exception (bracket)
import Data.Acid (AcidState, openLocalState)
import Data.Acid.Local (createCheckpointAndClos... | TheFrameworkGame/blog-haskell-happstack-attempt | Main.hs | mit | 1,177 | 0 | 12 | 315 | 283 | 152 | 131 | 31 | 1 |
import Prelude hiding (replicate)
replicate :: Int -> a -> [a]
replicate 0 _ = []
replicate n x = x : replicate (n - 1) x
test = replicate 3 'x'
| calebgregory/fp101x | wk3/replicate_recur.hs | mit | 147 | 0 | 8 | 34 | 74 | 39 | 35 | 5 | 1 |
{-# OPTIONS #-}
-- ------------------------------------------------------------
module Holumbus.Crawler.Html
where
import Data.Function.Selector
import Data.List
import Data.Maybe
import Holumbus.Crawler.Types
import Holumbus.Crawler.URIs
import System.F... | ichistmeinname/holumbus | src/Holumbus/Crawler/Html.hs | mit | 8,764 | 0 | 15 | 4,596 | 1,227 | 653 | 574 | 120 | 1 |
{- | Translation from Concrete to Abstract and back -}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances, UndecidableInstances #-}
{-# LANGUAGE NondecreasingIndentation #-}
module Scoping (Scope(..),Parse(..),ParseError,Print(..)) where
import Prelude hiding (mapM,print)
import Control.App... | andreasabel/helf | src/Scoping.hs | mit | 9,200 | 0 | 21 | 2,606 | 2,630 | 1,296 | 1,334 | 174 | 7 |
-----------------------------------------------------------------------------
-- |
-- Module : ComponentModel.Types
-- Copyright : (c) Rodrigo Bonifacio 2008, 2009
-- License : LGPL
--
-- Maintainer : rba2@cin.ufpe.br
-- Stability : provisional
-- Portability : portable
--
-- A generic (and simple) ... | hephaestus-pl/hephaestus | willian/hephaestus-integrated/asset-base/component-model/src/ComponentModel/Types.hs | mit | 954 | 0 | 9 | 149 | 104 | 72 | 32 | 12 | 0 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.WebGPUCommandQueue
(createCommandBuffer, createCommandBuffer_,
createCommandBufferUnsafe, createCommandBu... | ghcjs/jsaddle-dom | src/JSDOM/Generated/WebGPUCommandQueue.hs | mit | 3,282 | 0 | 13 | 470 | 678 | 397 | 281 | -1 | -1 |
module Models.Record where
import Import
import Yesod.Form.Bootstrap3
import Helpers.Common
recordPagesTotal :: Record -> Int
recordPagesTotal r = _recordPageEnd r - _recordPageStart r
recordForm :: ReadableId -> UserId -> Maybe Record -> Form Record
recordForm readableId userId mrecord = renderBootstrap3 BootstrapB... | darthdeus/reedink | Models/Record.hs | mit | 744 | 0 | 12 | 171 | 204 | 101 | 103 | 18 | 2 |
{-# htermination (map :: (a -> b) -> (List a) -> (List b)) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
map :: (b -> a) -> (List b) -> (List a);
map f Nil = Nil;
map f (Cons x xs) = Cons (f x) (map f xs);
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/map_1.hs | mit | 273 | 0 | 8 | 78 | 119 | 65 | 54 | 6 | 1 |
module Solidran.ListSpec (spec) where
import Test.Hspec
import Solidran.List
import Data.Map (Map)
import qualified Data.Map as Map
spec :: Spec
spec = do
describe "Solidran.Dna.List" $ do
describe "splitBy" $ do
it "should do nothing on an empty list" $ do
splitBy (==',') "" `... | Jefffrey/Solidran | test/Solidran/ListSpec.hs | mit | 2,445 | 0 | 19 | 1,047 | 681 | 372 | 309 | 50 | 1 |
euler1:: Int
euler1 = sum[ x | x <-[1..999], mod x 3 == 0 || mod x 5 == 0]
main = print euler1 | neutronest/eulerproject-douby | e1/e1.hs | mit | 95 | 0 | 11 | 24 | 64 | 32 | 32 | 3 | 1 |
module Test_Ch_09 (ch_09Suite_Props,ch_09Suite_Units) where
import Test.Tasty
import Test.Tasty.SmallCheck as SC
--import Test.Tasty.QuickCheck as SC
import Test.Tasty.HUnit
import Ch_09 (boundedMin)
ch_09Suite_Props = testGroup "CH 9 Properties" []
ch_09Suite_Units = testGroup "Ch 9 Units" [boundedMinUnits]
-- bou... | Marcus-Rosti/numerical-methods | test/Test_Ch_09.hs | gpl-2.0 | 1,707 | 0 | 14 | 393 | 598 | 332 | 266 | 27 | 1 |
{-
Copyright (C) 2005 John Goerzen <jgoerzen@complete.org>
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 is di... | jgoerzen/media-index | Utils.hs | gpl-2.0 | 1,172 | 0 | 12 | 300 | 148 | 76 | 72 | 14 | 2 |
-- |
-- Copyright : (c) 2010-2012 Benedikt Schmidt
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Benedikt Schmidt <beschmi@gmail.com>
--
-- Convenience abbreviations, mostly used for testing and debugging.
module Term.Builtin.Convenience where
import Term.Term
import Term.LTerm
import Term.Builtin.Signat... | tamarin-prover/tamarin-prover | lib/term/src/Term/Builtin/Convenience.hs | gpl-3.0 | 4,724 | 0 | 8 | 1,013 | 2,107 | 1,199 | 908 | 152 | 1 |
{-
This file is part of the Haskell Term Rewriting Library.
The Haskell Term Rewriting Library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later... | mzini/termlib | Termlib/Repl.hs | gpl-3.0 | 10,151 | 0 | 11 | 3,343 | 1,149 | 702 | 447 | 124 | 2 |
module Main where
import System.Environment(getArgs)
processLine :: String -> Maybe String
processLine line =
let (ms:list) = reverse $ words line
m = read ms - 1
in if m < length list then Just (list !! m) else Nothing
maybeIO :: (a -> IO ()) -> Maybe a -> IO ()
maybeIO _ Nothing = return ()
maybe... | cryptica/CodeEval | Challenges/10_MthToLastElement/main.hs | gpl-3.0 | 486 | 0 | 11 | 123 | 225 | 110 | 115 | 15 | 2 |
-- Haskell Music Player, client for the MPD (Music Player Daemon)
-- Copyright (C) 2011 Ivan Vitjuk <v@iv.id.au>
-- 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 Licen... | ivitjuk/Haskell-Music-Player | src/Main.hs | gpl-3.0 | 3,908 | 0 | 12 | 839 | 994 | 483 | 511 | 82 | 1 |
module Lamdu.CharClassification
( operatorChars, alphaNumericChars
) where
operatorChars :: [Char]
operatorChars = "\\+-*/^=><&|%$:."
alphaNumericChars :: [Char]
alphaNumericChars = ['a'..'z'] ++ ['0'..'9']
| Mathnerd314/lamdu | src/Lamdu/CharClassification.hs | gpl-3.0 | 213 | 0 | 6 | 27 | 54 | 33 | 21 | 6 | 1 |
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE PatternSynonyms #-}
module GraphAlgorithms(
ParentType(..),
annotateGraph,
collapseAnnotatedGraph
) where
import qualified Data.Graph.Inductive as ING
import Data.List(foldl', find)
import qualified Data.Set as Set
import Data.Tuple(swap)
import GHC.Stack(HasCallStack)
... | rgleichman/glance | app/GraphAlgorithms.hs | gpl-3.0 | 9,788 | 0 | 18 | 2,435 | 2,455 | 1,278 | 1,177 | -1 | -1 |
module Utils (
runAcceptLoop, bindPort, readRequestUri
) where
import Control.Monad ( forever )
import Control.Concurrent ( forkIO )
import Control.Exception ( bracketOnError, finally )
import Network.Socket ( Socket, socket, sClose
, Family(..), SocketType(..)
,... | scvalex/dissemina2 | Utils.hs | gpl-3.0 | 2,018 | 0 | 14 | 596 | 456 | 245 | 211 | 36 | 1 |
{-#LANGUAGE OverloadedStrings#-}
module Math.Matrix.IO where
import Control.Monad
import Data.Text hiding (map)
import Data.Text.IO
import Math.Matrix
import Prelude hiding (lines, words, putStrLn, getContents, getLine, readFile)
-- | Reads from a file
-- Returns single Text of contents
open :: FilePath -> IO Text
op... | Jiggins/Matrix | Math/Matrix/IO.hs | gpl-3.0 | 701 | 0 | 10 | 124 | 223 | 123 | 100 | 15 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Controller.Permission
( checkPermissionOld
, checkPermission
, userCanReadData
, authAccount
, checkMemberADMIN
, checkVerfHeader
, guardVerfHeader
) where
import Control.Monad (void, unless, liftM2)
import Has (Has, view, peek, peeks)
import Model.Permission ... | databrary/databrary | src/Controller/Permission.hs | agpl-3.0 | 3,659 | 0 | 11 | 643 | 566 | 299 | 267 | -1 | -1 |
-- brittany {lconfig_indentPolicy: IndentPolicyFree }
data EnterpriseGrantsForCompanyResponse = EnterpriseGrantsForCompanyResponse
Types.Company
[EnterpriseGrantResponse]
| lspitzner/brittany | data/Test71.hs | agpl-3.0 | 259 | 0 | 7 | 99 | 18 | 10 | 8 | 3 | 0 |
-- GSoC 2015 - Haskell bindings for OpenCog.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE Cons... | printedheart/atomspace | opencog/haskell/OpenCog/AtomSpace/Types.hs | agpl-3.0 | 6,314 | 0 | 10 | 2,259 | 1,226 | 677 | 549 | -1 | -1 |
-- types and typeclasses
removeNonUpperCase st = [c | c <- st, c `elem` ['A'..'Z']]
-- now, we can call removeNonUpperCase "AaBb"
addThree x y z = x + y + z
factorial n = product[1..n]
circumference r = 2 * pi * r
-- :t head
-- head is generic tipe (takes list of any type and returns element of that type)
-- type... | pwittchen/learning-haskell | tasks/03_types_and_typeclasses.hs | apache-2.0 | 392 | 0 | 9 | 80 | 123 | 68 | 55 | 5 | 1 |
-- Knight's quest
-- example from chapter 12 of LYAH
-- ex: runhaskell --ghc-arg="-package sort" haskell/knights_quest.hs
import Control.Monad ((<=<))
import Data.Sort (sort)
import Data.List (nub)
type KnightPos = (Int,Int)
valid :: KnightPos -> Bool
valid (c,r) = c `elem` [1..8] && r `elem` [1..8]
generateMov... | cbare/Etudes | haskell/knights_quest.hs | apache-2.0 | 1,754 | 0 | 15 | 389 | 733 | 388 | 345 | 35 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Parsimony.IO
-- Copyright : (c) Iavor S. Diatchki 2009
-- License : BSD3
--
-- Maintainer : iavor.diatchki@gmail.com
-- Stability : provisional
--
-- Utilities for parsing content from files.
--
... | yav/parsimony | src/Parsimony/IO.hs | bsd-2-clause | 3,237 | 0 | 10 | 826 | 630 | 347 | 283 | 40 | 1 |
module Main (main) where
import Saturnin.Server
main :: IO ()
main = runYBServer
| yaccz/saturnin | executable/main.hs | bsd-3-clause | 82 | 0 | 6 | 14 | 29 | 17 | 12 | 4 | 1 |
module PgRecorder.Config ( prettyVersion
, minimumPgVersion
, readOptions
, AppConfig (..)
) where
import PgRecorder.Prelude
import qualified Data.Text as T
import Data.Version ... | diogob/pg-recorder | src/PgRecorder/Config.hs | bsd-3-clause | 1,947 | 0 | 12 | 630 | 320 | 175 | 145 | 31 | 1 |
{-# LANGUAGE
FlexibleContexts
, OverloadedStrings
#-}
module Application where
import Imports hiding ((</>))
import Routes
import System.Directory
import Path.Extended
import qualified Data.Text as T
import Network.Wai.Session
data AuthRole = NeedsLogin
authorize :: ( MonadApp m
) =>... | athanclark/nested-routes-website | src/Application.hs | bsd-3-clause | 1,334 | 0 | 13 | 274 | 383 | 196 | 187 | 37 | 2 |
{-# LANGUAGE TypeOperators, MultiParamTypeClasses #-}
-- | In most cases, point-free programming is quite lovely. However,
-- when I find mysefl expressing deep structural manipulations, such
-- as `(bfirst . bsecond . bfirst . bfirst . bsecond) action`, it
-- can feel verbose. Use of local `where` clauses will help,... | dmbarbour/Sirea | src/Sirea/BDeep.hs | bsd-3-clause | 16,395 | 0 | 15 | 4,148 | 8,430 | 4,721 | 3,709 | 256 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Maybe (fromMaybe)
import qualified Data.Text as T
import qualified Data.Text.IO as T
import Network
import Options.Applicative
data Options = Options
{ optionsPort :: Maybe Int
}
main :: I... | passy/psc-ide | src/Main.hs | bsd-3-clause | 711 | 0 | 13 | 197 | 228 | 117 | 111 | 21 | 1 |
module ResultWorthy.Tests.SwiftParsers where
import ResultWorthy.SwiftParsers
import ResultWorthy.Parsers
import Test.HUnit
import Data.Either
import Text.Parsec.String
assertDidParse :: Parser a -> String -> Assertion
assertDidParse p s = assertBool ("Did Not Parse " ++ s) (isRight (parseString p s))
assertDidNotP... | lawrencelomax/ResultWorthy | ResultWorthy/Tests/SwiftParsers.hs | bsd-3-clause | 715 | 0 | 9 | 122 | 184 | 96 | 88 | 15 | 1 |
module Database.HongoDB.Base (
DB(..),
Action(..),
) where
import qualified Data.ByteString.Char8 as B
import qualified Data.Enumerator as E
import Data.Maybe
data Action
= Replace B.ByteString
| Remove
| Nop
class (Monad m) => DB m where
accept :: B.ByteString
-> (Maybe B.ByteString -> m (... | tanakh/HongoDB | Database/HongoDB/Base.hs | bsd-3-clause | 1,009 | 0 | 12 | 259 | 401 | 216 | 185 | 27 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE RecordWildCards #-}
module Web.UAParser
(
-- * Readying parser
UAConfig
, loadUAParser
-- * Parsing browser (user agent)
, parseUA
, UAResult (..)
, uarVersion
-- * Parsing OS
, parseOS... | ozataman/ua-parser-standalone | src/Web/UAParser.hs | bsd-3-clause | 1,527 | 0 | 9 | 337 | 179 | 119 | 60 | 30 | 1 |
module Singletons.Sections where
import Data.Singletons
import Data.Singletons.Prelude.List
import Data.Singletons.SuppressUnusedWarnings
import Data.Singletons.TH
import Singletons.Nat
$(singletons [d|
(+) :: Nat -> Nat -> Nat
Zero + m = m
(Succ n) + m = Succ (n + m)
foo1 :: [Nat]
foo1 = map ((Succ Zero)+... | int-index/singletons | tests/compile-and-dump/Singletons/Sections.hs | bsd-3-clause | 772 | 0 | 9 | 157 | 181 | 100 | 81 | -1 | -1 |
module ACO where
import Data.Graph.Inductive as G
import Control.Applicative ((<$>))
import Text.Printf
import Data.Maybe
import Data.Map as M
import Prelude as P
import Data.List as L
import System.Random as R
import System.Environment (getArgs)
import Control.Parallel
import Control.DeepSeq
import Control.Monad.Par
... | istehem/ACO-for-vasttrafik | ACO.hs | bsd-3-clause | 9,603 | 0 | 20 | 2,427 | 4,305 | 2,322 | 1,983 | 166 | 2 |
-- | An Applicative functor encapsulating a monadic computation that doesn't carry its parameter.
module Control.Applicative.Effect (
Effect (..),
effect
) where
-- | An Applicative that encapsulates some monadic effect and doesn't
-- care about its argument. (It's not 'Data.Functor.Const.Const'
-- because that... | lambdageek/small | src/Control/Applicative/Effect.hs | bsd-3-clause | 898 | 0 | 10 | 173 | 176 | 97 | 79 | 11 | 1 |
module Stats.HammingDistance
( bytestrings
, strings
) where
import qualified Data.ByteString as B
import Data.Word (Word8)
import Utils.Bytes (c2w)
import Utils.Elmify ((|>))
import qualified Data.Bits as BB
bytestrings :: (B.ByteString, B.ByteString) -> Int
bytestrings (bs1, bs2) =
B.zip bs1 bs2
|> hammin... | eelcoh/cryptochallenge | src/Stats/HammingDistance.hs | bsd-3-clause | 534 | 0 | 10 | 104 | 212 | 120 | 92 | 21 | 1 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ExistentialQuantification #-}
module Channel where
import Control.Applicative
import Control.Monad.IO.Class (MonadIO, liftIO)
import Control.Monad.Trans.Free
import Data.Foldable (forM_)
import ... | boothead/free-channels | Channel.hs | bsd-3-clause | 2,833 | 0 | 16 | 741 | 1,094 | 546 | 548 | 77 | 4 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSect... | sjakobi/stack | src/Stack/Types/Config.hs | bsd-3-clause | 71,171 | 0 | 24 | 17,039 | 13,721 | 7,389 | 6,332 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell #-}
import Web.Scotty
import Control.Applicative ((<|>))
import Data.Maybe (fromJust)
import Control.Monad (liftM)
import Control.Monad.Trans (liftIO)
import Data.List (find)
import Data.Monoid (mconcat)
import Data.Text.Lazy (pack)
import System.Environment (getEnviron... | domenkozar/howoldis | Main.hs | bsd-3-clause | 1,097 | 0 | 17 | 260 | 322 | 170 | 152 | 28 | 1 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
--
-- Quasiquote Ivory areas.
--
-- Copyright (C) 2014, Galois, Inc.
-- All rights reserved.
--
module Ivory.Language.Syntax.Concrete.QQ.AreaQQ
( fromArea
, fromAreaImport
) where
import Language.Haskell.TH hiding ... | GaloisInc/ivory | ivory/src/Ivory/Language/Syntax/Concrete/QQ/AreaQQ.hs | bsd-3-clause | 2,966 | 0 | 25 | 1,037 | 1,092 | 578 | 514 | 60 | 13 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module FPNLA.Matrix.Instances.RepaMatrix (RepaMatrix, RepaVector) where
import Control.DeepSeq (NFData (rnf))
import FPNLA.Matrix (Matrix (generate_m, fromList_m, transpose_m, dim_m, elem_m, ... | mauroblanco/fpnla-examples | src/FPNLA/Matrix/Instances/RepaMatrix.hs | bsd-3-clause | 3,173 | 0 | 14 | 1,080 | 947 | 549 | 398 | 49 | 0 |
{-# LANGUAGE RecordWildCards #-}
module Inspection.Data.TaskQueue
( TaskQueue(..)
, addTask
, selectTasks
, singleTask
, completedTasks
, difference
) where
import Prelude ()
import MyLittlePrelude
import qualified Data.Set as Set
import Data.Aeson.Extra (ToJSON, FromJSON)
import Inspection.Data
... | zudov/purescript-inspection | src/Inspection/Data/TaskQueue.hs | bsd-3-clause | 2,034 | 0 | 12 | 520 | 544 | 287 | 257 | 48 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.