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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE RecordWildCards #-}
module Bce.Networking where
import qualified Bce.BlockChain as BlockChain
import qualified Bce.DbFs as Db
import qualified Bce.VerifiedDb as VerifiedDb
import qualified Bce.P2p as P2p
import Bce.Logger
import Bce.Verified
import Bce.Hash
import Bce.B... | dehun/bce | src/Bce/Networking.hs | mit | 8,763 | 0 | 25 | 2,715 | 2,124 | 1,049 | 1,075 | 169 | 10 |
import Text.ParserCombinators.Parsec hiding (spaces)
import System.Environment
import Control.Monad
data LispVal = Atom String
| List [LispVal]
| DottedList [LispVal] LispVal
| Number Integer
| String String
| Bool Bool
parseString :: Parser LispVal
parseString = do
char '"'
x <- many (non... | mmwtsn/write-yourself-a-scheme | 02-parsing/04-recursive-parsers.hs | mit | 1,621 | 20 | 11 | 423 | 589 | 276 | 313 | 59 | 3 |
#!/usr/bin/env runhaskell
module Main where
import Control.Monad
import Control.Lens
import Data.Function (on)
import Data.List (sortBy)
import qualified Data.Map as M
import qualified Data.Text as T
import qualified Data.Text.IO as T
import System.Environment
import Text.Printf
import SpaceWeather.FlareClass
import S... | nushio3/UFCORIN | exe-src/find-best-TSS.hs | mit | 1,050 | 0 | 18 | 193 | 337 | 174 | 163 | 35 | 2 |
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI, OverloadedStrings #-}
module Main where
import Foreign.Ptr
import GHCJS.Types
import GHCJS.Foreign
import qualified Data.JSString as JSS
import qualified Data.JSString.Text as JSS
import qualified Data.Text as T
import qualified Data.Text.Encoding as TE
import qua... | ghcjs/ghcjs | test/ffi/marshalString.hs | mit | 1,007 | 6 | 12 | 161 | 266 | 152 | 114 | 25 | 1 |
{-# Language TemplateHaskell #-}
module Kvs4.KvsMaster where
import qualified Data.Map.Strict as M
import Text.Printf
import Control.Monad
import Control.Concurrent hiding (newChan)
import Control.Distributed.Process hiding (handleMessage)
import Control.Distributed.Process.Internal.Closure.TH
import Kvs4.KvsTypes
i... | y-kamiya/parallel-concurrent-haskell | src/Server/Kvs4/KvsMaster.hs | gpl-2.0 | 1,775 | 0 | 16 | 333 | 647 | 335 | 312 | 49 | 2 |
module HEP.Automation.MadGraph.Dataset.Set20110716set3 where
import HEP.Storage.WebDAV.Type
import HEP.Automation.MadGraph.Model
import HEP.Automation.MadGraph.Machine
import HEP.Automation.MadGraph.UserCut
import HEP.Automation.MadGraph.SetupType
import HEP.Automation.MadGraph.Model.SChanC8Vschmaltz
import HEP.Aut... | wavewave/madgraph-auto-dataset | src/HEP/Automation/MadGraph/Dataset/Set20110716set3.hs | gpl-3.0 | 1,901 | 0 | 10 | 621 | 407 | 256 | 151 | 48 | 1 |
import SimplicialComplex
import System.Vacuum.Cairo
main = viewFile "/tmp/outvacuum" abstractTet
| DanielSchuessler/hstri | bin/vacuum.hs | gpl-3.0 | 98 | 1 | 5 | 10 | 23 | 11 | 12 | 3 | 1 |
import Control.Monad (forever)
import System.Posix.Process (forkProcess)
forkBomb = forever $ forkProcess forkBomb
main = forkBomb
| h31nr1ch/Sexy-Bitch | war_ssh/fork3.hs | gpl-3.0 | 133 | 2 | 6 | 17 | 45 | 22 | 23 | 4 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RecordWildCards #-}
-- | Build LXD images using lxdfiles.
module System.LXD.LXDFile.Build (
build
) where
import Prelude hiding (writeFile)
import Control.Monad.Except (MonadError)
import Control.Monad.IO.Class (MonadIO, liftIO)
impor... | hverr/lxdfile | src/System/LXD/LXDFile/Build.hs | gpl-3.0 | 3,356 | 0 | 18 | 761 | 1,025 | 560 | 465 | 65 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-youtube/gen/Network/Google/Resource/YouTube/Comments/Update.hs | mpl-2.0 | 3,113 | 0 | 13 | 716 | 391 | 236 | 155 | 59 | 1 |
{-# LANGUAGE TemplateHaskell #-}
import CLaSH.Prelude hiding ((++),undefined,take)
import Prelude
import MatrixMul
import System.RedPitaya.Bus.Tools
import System.RedPitaya.Bus
type MM = Matrix 3 3 (Signed 8)
mm = fmap $ Just . uncurry matrixMultiply :: Signal (MM,MM) -> Signal (Maybe MM)
core inp = busBind n ... | ra1u/lambdaya-bus | examples/Test-v1.0/Test.hs | lgpl-3.0 | 713 | 3 | 13 | 143 | 336 | 174 | 162 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
module Main where
import Control.Applicative
import Control.Monad
import Control.Monad.Reader
import Data.Monoid
import Data.String
import qualified Data.Text as T
import qualified Data.Te... | keitax/md2shower | Main.hs | lgpl-3.0 | 5,411 | 0 | 19 | 1,434 | 1,806 | 908 | 898 | 144 | 1 |
{-# LANGUAGE TypeFamilies, DataKinds, PolyKinds, TypeOperators, GADTs,
RankNTypes, ScopedTypeVariables,
UndecidableInstances, MultiParamTypeClasses, FlexibleInstances,
FunctionalDependencies, FlexibleContexts
#-}
module Foo where
import Data.Proxy
class QA a where
... | jstolarek/sandbox | haskell/Foo.hs | unlicense | 2,510 | 0 | 12 | 682 | 193 | 107 | 86 | 15 | 1 |
qsort :: Ord a => [a] -> [a]
qsort [] = []
qsort (h:hx) = [i | i <- hx1, i < h] ++ [h] ++ [i | i <- hx1, i > h]
where hx1 = qsort hx
main = do
print (qsort "Qiou Yang")
| sgfxq/Haskell | Demo.hs | apache-2.0 | 172 | 1 | 9 | 49 | 136 | 66 | 70 | 6 | 1 |
-- http://www.codewars.com/kata/5286b2e162056fd0cb000c20
module Collatz where
import Data.List
collatz :: Int -> String
collatz m = intercalate "->" $ map show (takeWhile (/= 1) (iterate f m) ++ [1]) where
f n = if n`mod`2==0 then n`div`2 else 3*n+1 | Bodigrim/katas | src/haskell/6-Collatz.hs | bsd-2-clause | 253 | 0 | 11 | 41 | 108 | 60 | 48 | 5 | 2 |
module Assets where
import Data.Map hiding (foldr)
import Graphics.UI.SDL.Image
import Control.Lens
import Control.Monad
import Animation
assetsPath :: String
assetsPath = "./assets/"
data Assets = Assets {
_bulletAnimations :: Map String Animation,
_shipAnimations :: Map String Animation,
_counterAnimations ... | alexisVallet/hachitai-haskell-shmup | Assets.hs | bsd-2-clause | 1,678 | 0 | 16 | 259 | 461 | 250 | 211 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LiberalTypeSynonyms #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ExtendedDefaultRules #-}
modul... | ekmett/ermine | tests/properties/Binary.hs | bsd-2-clause | 3,740 | 0 | 10 | 591 | 845 | 478 | 367 | 96 | 1 |
{-# LANGUAGE OverloadedStrings, CPP #-}
module Text.HTML.SanitizeXSS.Css (
sanitizeCSS
#ifdef TEST
, allowedCssAttributeValue
#endif
) where
import Data.Text (Text)
import qualified Data.Text as T
import Data.Attoparsec.Text
import Data.Text.Lazy.Builder (toLazyText)
import Data.Set (member, fromList, Set)
import ... | silkapp/haskell-xss-sanitize | Text/HTML/SanitizeXSS/Css.hs | bsd-2-clause | 4,876 | 0 | 15 | 1,058 | 1,331 | 744 | 587 | 105 | 5 |
module Atomo.Core where
import Control.Concurrent
import Control.Monad.State
import Atomo.Types
import Atomo.Environment
-- | Defines all primitive objects, including the Lobby.
initCore :: VM ()
initCore = do
-- the very root object
object <- newObject id
-- top scope is a proto delegating to the root... | Mathnerd314/atomo | src/Atomo/Core.hs | bsd-3-clause | 2,127 | 0 | 17 | 652 | 769 | 447 | 322 | 39 | 1 |
{-# LANGUAGE FlexibleContexts #-}
-- | relationship handling
-- <http://instagram.com/developer/endpoints/relationships/#>
module Instagram.Relationships (
getFollows
,getFollowedBy
,getFollowsParams
,getFollowedByParams
,getRequestedBy
,getRelationship
,setRelationShip
,RelationShipAction(..)
,Follow... | cdepillabout/ig | src/Instagram/Relationships.hs | bsd-3-clause | 2,966 | 0 | 13 | 469 | 793 | 435 | 358 | 65 | 1 |
module Data.List.Origami where
cata :: b -> (a -> b -> b) -> [a] -> b
cata b _ [] = b
cata b f (x:xs) = f x (cata b f xs)
ana :: (b -> Maybe (a,b)) -> b -> [a]
ana g b = case g b of
Nothing -> []
Just (a,b') -> a : ana g b'
hylo :: c -> (b -> c -> c) -> (a -> Maybe (b,a)) -> a -> c
hylo c f g a = case g ... | nobsun/simple-origami | src/Data/List/Origami.hs | bsd-3-clause | 528 | 0 | 11 | 179 | 366 | 193 | 173 | 15 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeSynonymInstances #-}
import Prelude
import qualified Control.Exception as E
import Control.Monad
imp... | jgm/pandoc-citeproc | tests/test-citeproc.hs | bsd-3-clause | 10,192 | 9 | 22 | 2,897 | 2,796 | 1,430 | 1,366 | 223 | 7 |
{-# LANGUAGE RecordWildCards, OverloadedStrings #-}
module Geordi.Request.Wai where
import Geordi.Request
import Geordi.FileInfo
import Geordi.FileBackend
import qualified Data.ByteString.Lazy as B
import qualified Network.Wai as W
import qualified Network.Wai.Parse as W
import qualified Net... | liamoc/geordi | Geordi/Request/Wai.hs | bsd-3-clause | 1,957 | 0 | 22 | 569 | 573 | 327 | 246 | -1 | -1 |
-- | This module should be qualified-imported.
module Sound.Sox
(
-- * Building command-line arguments
mkArgs
-- * Operands
, operand
, autodetect
, Operand
-- ** Special file paths
, stdin
, stdout
-- * Formats
, bits
, channels
, rate
, Format
-- ** Endianne... | edom/sound | src/Sound/Sox.hs | bsd-3-clause | 2,822 | 0 | 11 | 698 | 787 | 444 | 343 | 99 | 1 |
{-# LANGUAGE ViewPatterns #-}
--
-- Copyright © 2014-2015 Anchor Systems, Pty Ltd and Others
--
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms of
-- the 3-clause BSD licence.
--
... | anchor/synchronise | lib/Synchronise/Program/Once.hs | bsd-3-clause | 2,406 | 0 | 13 | 554 | 547 | 289 | 258 | 53 | 5 |
{-# OPTIONS_HADDOCK hide #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE ExistentialQuantification #-}
#include "inline.hs"
-- |
-- Module : Streamly.Internal.Data.Pipe.Types
-- Copyright : (c) 2019 Composewell Technologies
-- License : BSD3
-- Maintainer : streamly@composewell.c... | harendra-kumar/asyncly | src/Streamly/Internal/Data/Pipe/Types.hs | bsd-3-clause | 18,197 | 0 | 29 | 7,967 | 4,305 | 2,187 | 2,118 | 281 | 21 |
{-# LANGUAGE TemplateHaskell #-}
module Dipper.Jar
( dipperJar
, withDipperJar
) where
import Control.Exception (bracket, catch)
import Data.ByteString (ByteString)
import qualified Data.ByteString as B
import Data.FileEmbed (embedFile)
import System.Directory (getT... | jystic/dipper | src/Dipper/Jar.hs | bsd-3-clause | 1,247 | 0 | 13 | 229 | 311 | 171 | 140 | 21 | 1 |
--------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
module NumberSix.Handlers.Http
( handler
) where
--------------------------------------------------------------------------------
import Control.Exception (SomeException (..), catch... | itkovian/number-six | src/NumberSix/Handlers/Http.hs | bsd-3-clause | 2,134 | 0 | 17 | 522 | 500 | 269 | 231 | 37 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE... | agrafix/revenue-sample-app | src/Model.hs | bsd-3-clause | 841 | 0 | 7 | 265 | 56 | 38 | 18 | 14 | 0 |
{-# LANGUAGE RecordWildCards #-}
module SlitherBot.Ai.Circle
( CircleAiState
, circleAi
) where
import Data.Fixed
import SlitherBot.Ai
import SlitherBot.GameState
data CircleAiState = CircleAiState
{ casAngle :: !Double
} deriving (Eq, Show)
circleAi :: Ai CircleAiState
circl... | chpatrick/slither-bot | src/SlitherBot/Ai/Circle.hs | bsd-3-clause | 607 | 0 | 15 | 142 | 184 | 109 | 75 | 19 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# lANGUAGE ScopedTypeVariables #-}
-- ---------------------------------------------------------------------------
-- |
-- Module : Data.Vector.Algorithms.AmericanFlag
-- Copyright : (c) 2011 Dan Doel
-- Maintainer :... | tolysz/vector-algorithms | src/Data/Vector/Algorithms/AmericanFlag.hs | bsd-3-clause | 12,090 | 0 | 18 | 3,975 | 3,397 | 1,794 | 1,603 | 254 | 4 |
-----------------------------------------------------------------------------
-- |
-- Module : Control.Parallel
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : experimental
-- Porta... | OS2World/DEV-UTIL-HUGS | libraries/Control/Parallel.hs | bsd-3-clause | 662 | 0 | 5 | 124 | 43 | 32 | 11 | 4 | 1 |
-- | An internal module that copies a few select functions
-- from Control.Error.Util, as used in Snap.Snaplet.Auth.Handlers.
module Snap.Snaplet.Auth.Handlers.Errors
( hush
, hushT
, note
, noteT
, hoistMaybe
) where
import Control.Monad
import Control.Monad.Trans.Either
import Control.Monad.Trans.Maybe
... | 23Skidoo/snap | src/Snap/Snaplet/Auth/Handlers/Errors.hs | bsd-3-clause | 945 | 0 | 9 | 194 | 265 | 143 | 122 | 19 | 1 |
module ArbitraryTypeclass where
import Test.QuickCheck
import Test.QuickCheck.Gen (oneof)
import Control.Monad (liftM)
-- baby Arbitrary
data Trivial = Trivial deriving (Eq, Show)
trivialGen :: Gen Trivial
trivialGen = return Trivial
instance Arbitrary Trivial where
arbitrary = trivialGen
-- identity Crisis
data... | chengzh2008/hpffp | src/ch14-Testing/arbitrary/src/ArbitraryTypeclass.hs | bsd-3-clause | 1,722 | 0 | 11 | 342 | 550 | 291 | 259 | 42 | 1 |
module Statistics.Information.Utils.Random where
import Data.Matrix
import Statistics.Information.Utils.List
import System.Random
splitN :: RandomGen g => Int -> g -> [g]
splitN 0 _ = []
splitN 1 g = [g]
splitN n g = let (g', g'') = split g in
g' : splitN (n-1) g''
rands :: (RandomGen g, Random a) => g -> Int -> (... | eligottlieb/Shannon | src/Statistics/Information/Utils/Random.hs | bsd-3-clause | 636 | 0 | 14 | 150 | 321 | 169 | 152 | 18 | 1 |
{-# LANGUAGE OverloadedStrings, DeriveGeneric #-}
module BankStatement where
import qualified Data.Text as T
import Data.Text.Encoding as E
import qualified Data.ByteString.Lazy as BL
import qualified Data.ByteString as B
import qualified Data.Foldable as F
import Data.Csv.Streaming
import qualified Data.Map as Map
... | willsam100/bankStatement | src/BankStatement.hs | bsd-3-clause | 3,394 | 0 | 13 | 825 | 1,001 | 572 | 429 | 57 | 1 |
module Experiment (experiment, generators) where
import Data.Monoid
import Simulation.Aivika
import Simulation.Aivika.Experiment
import Simulation.Aivika.Experiment.Chart
specs = Specs { spcStartTime = 0,
spcStopTime = 13,
spcDT = 0.01,
spcMethod = RungeKutta4,
... | dsorokin/aivika-experiment-chart | examples/ChemicalReaction/Experiment.hs | bsd-3-clause | 1,723 | 0 | 11 | 434 | 371 | 223 | 148 | 49 | 1 |
-- | Ch04
module Ch04 where
gt100 :: Integer -> Bool
gt100 x = x > 100
greaterThan100 :: [Integer] -> [Integer]
greaterThan100 xs = filter gt100 xs
greaterThan100_2 :: [Integer] -> [Integer]
greaterThan100_2 = filter (\x -> x > 100)
greaterThan100_3 :: [Integer] -> [Integer]
greaterThan100_3 = filter (> 100)
foo ... | codingiam/sandbox-hs | src/Ch04.hs | bsd-3-clause | 1,014 | 0 | 9 | 236 | 559 | 298 | 261 | 34 | 1 |
--
--
--
-----------------
-- Exercise 8.14.
-----------------
--
--
--
module E'8'14 where
import Data.List ( words )
-- Note: This time I consider every character or consecutive appearance
-- of characters that are not whitespace a word.
wc :: IO ()
wc
= wc' (0 , 0 , 0)
where
wc' :: (Integer ,... | pascal-knodel/haskell-craft | _/links/E'8'14.hs | mit | 1,220 | 0 | 21 | 520 | 281 | 156 | 125 | 20 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module InnerEar.Database.SQLite where
import Database.SQLite.Simple
import Database.SQLite.Simple.FromRow
import Database.SQLite.Simple.ToRow
import Database.SQLite.Simple.FromField
import Database.SQLite.Simple.ToField
import Database.SQLite.Simple.Ok
import Data.Time.Clock
import... | d0kt0r0/InnerEar | src/InnerEar/Database/SQLite.hs | gpl-3.0 | 796 | 0 | 9 | 90 | 184 | 105 | 79 | 26 | 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-directconnect/gen/Network/AWS/DirectConnect/DescribeLocations.hs | mpl-2.0 | 3,864 | 0 | 13 | 827 | 501 | 299 | 202 | 69 | 1 |
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | orphan instances
module Commands.Frontends.Dragon13.Instances where
import Control.Monad.Catch (Exception)
import Data.Typeable (Typeable)
import qualified Language.P... | sboosali/commands-frontend-DragonNaturallySpeaking | sources/Commands/Frontends/Dragon13/Instances.hs | bsd-3-clause | 447 | 0 | 6 | 100 | 61 | 39 | 22 | 8 | 0 |
{-# LANGUAGE GADTs #-}
module DPH.War.Result
( Result(..)
, isResultUnexpectedFailure
, isResultUnexpectedSuccess
, takeResultTime
, takeResultDiff
, takeQuirks )
where
import BuildBox
import Data.Maybe
data Result
= ResultUnexpectedFailure
| ResultUnexpectedSuccess
| ResultAspect (WithUnits (Aspect Single)... | mainland/dph | dph-test/framework/DPH/War/Result.hs | bsd-3-clause | 1,091 | 26 | 15 | 183 | 349 | 191 | 158 | 37 | 2 |
module Interp (runInterp) where
import GenUtils
import DataTypes
import InterpUtils
import Parser (pgnLexer)
runInterp :: AbsGame -> RealGame
runInterp (Game tags toks) = Game tags (pgnInterp toks initParState)
initParState = (FirstBoard startBoard)
type Par a = StoreBoard -> a
thenP :: Par a -> (a ... | sdiehl/ghc | testsuite/tests/programs/andy_cherry/Interp.hs | bsd-3-clause | 8,295 | 0 | 20 | 2,203 | 3,298 | 1,700 | 1,598 | 180 | 5 |
{-# LANGUAGE Safe #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Functor.Classes
-- Copyright : (c) Ross Paterson 2013
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : experimental
-- Portabi... | rahulmutt/ghcvm | libraries/base/Data/Functor/Classes.hs | bsd-3-clause | 28,636 | 0 | 14 | 6,356 | 6,479 | 3,486 | 2,993 | 330 | 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="da-DK">
<title>Groovy Support</title>
<maps>
<homeID>top</homeID>
<mapref location="map... | kingthorin/zap-extensions | addOns/groovy/src/main/javahelp/org/zaproxy/zap/extension/groovy/resources/help_da_DK/helpset_da_DK.hs | apache-2.0 | 959 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
{-# LANGUAGE FlexibleContexts, PartialTypeSignatures, NamedWildCards #-}
module SomethingShowable where
somethingShowable :: Show _x => _x -> _
somethingShowable x = show (not x)
-- Inferred type: Bool -> String
| ezyang/ghc | testsuite/tests/partial-sigs/should_compile/SomethingShowable.hs | bsd-3-clause | 213 | 0 | 7 | 30 | 39 | 21 | 18 | 4 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeOperators #-}
module Sqarkov.Database
( withDatabase
, insertGram7s
, phraseChannel
, phraseChannelNicks
) where
import Control.DeepSeq
import Control.Exception
import Control.Monad
import Contro... | ion1/sqarkov | src/Sqarkov/Database.hs | isc | 5,648 | 0 | 18 | 1,670 | 1,100 | 598 | 502 | 88 | 1 |
module ProtoDB where
| MadSciGuys/protodb | src/ProtoDB.hs | mit | 21 | 0 | 2 | 3 | 4 | 3 | 1 | 1 | 0 |
{-# htermination mapAndUnzipM :: (a -> [] (b,c)) -> [a] -> [] ([b], [c]) #-}
import Monad
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Monad_mapAndUnzipM_2.hs | mit | 90 | 0 | 3 | 17 | 5 | 3 | 2 | 1 | 0 |
{--
- Problem 59
(**) Construct height-balanced binary trees
In a height-balanced binary tree, the following property holds for every node:
The height of its left subtree and the height of its right subtree are almost equal,
which means their difference is not greater than one.
Construct a ... | sighingnow/Functional-99-Problems | Haskell/59.hs | mit | 1,412 | 0 | 10 | 352 | 218 | 116 | 102 | 6 | 1 |
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
-- Ops.hs ---
--
-- Filename: Ops.hs
-- Description:
-- Author: Manuel Schneckenreither
-- Maintainer:
-- Created: Fri Sep 5 15:21:41 2014 (+0200)
-- Version:
-- Package-Requires: ()
-- Last-Updated: Su... | ComputationWithBoundedResources/ara-inference | src/Data/Rewriting/ARA/ByInferenceRules/Prove/Ops.hs | mit | 12,274 | 0 | 14 | 3,542 | 3,210 | 1,726 | 1,484 | 141 | 2 |
import Control.Monad
import Data.Char (isAlpha, toLower)
import System.Exit (exitSuccess)
normalize :: String -> String
normalize = map toLower . filter isAlpha
palindrome :: IO ()
palindrome = forever $ do
line <- getLine
let line' = normalize line
case (line' == reverse line') of
True -> putStrLn "It's a ... | candu/haskellbook | ch13/forever.hs | mit | 389 | 0 | 13 | 83 | 132 | 65 | 67 | 14 | 2 |
-- | Process Clang's JSON Compilation Database for centrinel's purposes.
{-# language NamedFieldPuns, OverloadedStrings #-}
module Centrinel.Util.CompilationDatabase (parseCompilationDatabase
, RunLikeCC (..)
, makeStandaloneRunLikeCC
... | lambdageek/use-c | src/Centrinel/Util/CompilationDatabase.hs | mit | 2,712 | 0 | 14 | 605 | 694 | 390 | 304 | 40 | 3 |
-- Pretty.hs ---
--
-- Filename: Pretty.hs
-- Description:
-- Author: Manuel Schneckenreither
-- Maintainer:
-- Created: Mon Oct 6 13:22:09 2014 (+0200)
-- Version:
-- Package-Requires: ()
-- Last-Updated: Mon Jul 23 10:24:45 2018 (+0200)
-- By: Manuel Schneckenreither
-- Update #: 155
-- URL:
-- Doc URL... | ComputationWithBoundedResources/ara-inference | src/Data/Rewriting/ARA/ByInferenceRules/InfTreeNode/Pretty.hs | mit | 3,922 | 0 | 20 | 1,149 | 1,005 | 545 | 460 | 53 | 4 |
module Graphics.Shader.Internal.Expression (
Expr, Expression,
getType,
addE, subtractE, varE,
) where
--------------------------------------------------------------------------------
import Graphics.Shader.Internal.Variable
--------------------------------------------------------------------------------
data ... | Mokosha/shaders | Graphics/Shader/Internal/Expression.hs | mit | 1,007 | 0 | 9 | 199 | 293 | 150 | 143 | 29 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Test.Week4 (week4) where
import Data.List (permutations)
import Test.Tasty
import Test.Tasty.HUnit
import Test.Tasty.QuickCheck
import Week4
week4 :: TestTree
week4 = testGroup "Week 4 - Higher-order programming and type inference"
[
exercise1
, exercise2
, exerc... | taylor1791/cis-194-spring | test/Test/Week4.hs | mit | 1,658 | 0 | 15 | 448 | 563 | 305 | 258 | -1 | -1 |
module NumberTheory.Main where
import Notes
import qualified Data.Text as T
import qualified Prelude as P (Int, map, mod, (+), (<),
(^))
import Functions.Basics.Macro
import Functions.Bi... | NorfairKing/the-notes | src/NumberTheory/Main.hs | gpl-2.0 | 32,005 | 27 | 57 | 10,859 | 13,150 | 6,790 | 6,360 | 688 | 2 |
{- |
Module : $Header$
Description : OWL signatures colimits
Copyright : (c) Mihai Codescu, and Uni Bremen 2009
License : GPLv2 or higher, see LICENSE.txt
Maintainer : mcodescu@informatik.uni-bremen.de
Stability : provisional
Portability : non-portable
OWL2 signature colimits, computed component-... | nevrenato/Hets_Fork | OWL2/ColimSign.hs | gpl-2.0 | 4,345 | 0 | 20 | 1,422 | 1,178 | 623 | 555 | 85 | 1 |
--
-- Copyright (c) 2013-2019 Nicola Bonelli <nicola@pfq.io>
--
-- 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.
--
-... | awgn/cgrep | src/CGrep/Distance.hs | gpl-2.0 | 2,361 | 0 | 15 | 677 | 632 | 339 | 293 | 28 | 9 |
module Test where
{
import PopGen;
import Probability;
get_observed_alleles file = map list_from_vector $ list_from_vector $ read_phase_file file;
filename = "/home/bredelings/Reports/Kmar/TwinCays2005a.phase1.infile";
n = 5;
note mean ~ iid(n, gamma(0.5,0.5) );
note sigmaOverMu ~ iid(n, gamma(1.05,0.1) );... | bredelings/BAli-Phy | tests/PartialSelfing/diploid.pure_herm.multi_theta.TC.hs | gpl-2.0 | 1,379 | 29 | 15 | 303 | 593 | 326 | 267 | -1 | -1 |
{- Piffle, Copyright (C) 2007, Jaap Weel. 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 distribut... | jaapweel/piffle | src/PiffleAst.hs | gpl-2.0 | 1,796 | 0 | 7 | 535 | 225 | 134 | 91 | 24 | 0 |
{-# OPTIONS -fglasgow-exts #-}
----------------------------------------------------------------------------
-- |
-- Module : Text.XML.Schema.Parser
-- Copyright : (c) Simon Foster 2004
-- License : GPL version 2 (see COPYING)
--
-- Maintainer : aca01sdf@shef.ac.uk
-- Stability : experimental
-- Port... | twopoint718/haifa | src/Text/XML/Schema/Parser.hs | gpl-2.0 | 23,094 | 0 | 22 | 8,213 | 6,326 | 3,276 | 3,050 | 362 | 13 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE IncoherentInstances #-}
{-# LANGUAGE DeriveGeneric #-}
module Test.QuickFuzz.Gen.Media.Wav where
import Data.Default
import qualified Data.Binary as B
import Sound.Wav
import Test.QuickCheck
import Test.QuickFuzz.Derive.Arbitrary
imp... | elopez/QuickFuzz | src/Test/QuickFuzz/Gen/Media/Wav.hs | gpl-3.0 | 584 | 0 | 7 | 85 | 110 | 72 | 38 | 19 | 1 |
module Main where
import System.Environment(getArgs)
import Data.List (delete)
import qualified Data.Map as M
type ChainMap = M.Map Char [Char]
splitBy :: Char -> String -> [String]
splitBy c s =
case dropWhile (== c) s of
"" -> []
s' -> w : splitBy c s''
where (w, s'') = break (== c)... | cryptica/CodeEval | Challenges/135_WordChain/main.hs | gpl-3.0 | 1,146 | 0 | 13 | 277 | 445 | 229 | 216 | 31 | 2 |
{-# LANGUAGE RankNTypes,
ExistentialQuantification,
FlexibleInstances,
MultiParamTypeClasses,
UndecidableInstances #-}
module Unfold ( Unfoldable(..)
, Step(..)
, Unfold
, UnfoldT(..)
, unfold
, unf... | svenkeidel/gnome-citadel | src/Unfold.hs | gpl-3.0 | 4,822 | 0 | 14 | 1,370 | 1,968 | 1,004 | 964 | 128 | 1 |
-- License: GPL v2 or later
module ArrayUtils (amapWithIxs, arraySize) where
import Data.Array.IArray
amapWithIxs :: (IArray a e, IArray a e', Ix i) => (i -> e -> e') -> a i e -> a i e'
amapWithIxs f arr = array (bounds arr) (map (\i -> (i, f i (arr ! i))) (indices arr))
arraySize :: (IArray a e) => a (Int,Int) e -... | idupree/Pollutocracy | ArrayUtils.hs | gpl-3.0 | 416 | 0 | 13 | 90 | 237 | 130 | 107 | 6 | 1 |
module TagFS (
Route, TagSet,
File(..),
Entry(..),
Dir(..),
buildBaseRoute,
route, route',
routeDir, routeDir',
split,
module TagFS.Tag,
module TagFS.File
) where
import TagFS.Tag (Tag(..), getName, getValue, parseTag, formatTag)
import TagFS.File (File(..))
import qualified TagFS.File as F
import Route hid... | ffwng/tagfs | TagFS.hs | gpl-3.0 | 8,351 | 42 | 15 | 1,684 | 2,856 | 1,467 | 1,389 | 169 | 10 |
{-# LANGUAGE TupleSections #-}
module Worlds.OrthogonalPlanes
( orthogonalPlanes
) where
import Linear
import Control.Lens
import Control.Monad.Random
import Worlds.RandomColorBox
import SceneTO
import Transformation
orthogonalPlanes :: (MonadRandom m, Floating a) =>
Int -> m (SceneTO V4 a, Transformation V4... | MatthiasHu/4d-labyrinth | src/Worlds/OrthogonalPlanes.hs | gpl-3.0 | 497 | 0 | 16 | 97 | 195 | 112 | 83 | 14 | 1 |
{-# LANGUAGE UnicodeSyntax, NoImplicitPrelude #-}
module Stream
( Stream(..)
, toFname
, readStream
, writeStream
, writeStream'
, writeFileStream
, writeFileStream'
) where
import BasePrelude hiding (readFile, writeFile, hGetContents)
import Prelude.Unicode
import Data.IOData (IOData... | 39aldo39/klfc | src/Stream.hs | gpl-3.0 | 1,951 | 0 | 15 | 395 | 628 | 321 | 307 | 49 | 1 |
{-# LANGUAGE TemplateHaskell #-}
-- | Command line options for tests
module TestOptions
( FullTestConfig (..)
, TestVar
, getOptions
, testTVar
, readTestConfig
) where
import Control.Concurrent.STM.TVar (TVar, newTVarIO)
import qualified Data.Aeson.TH ... | input-output-hk/rscoin-haskell | test/TestOptions.hs | gpl-3.0 | 2,911 | 0 | 16 | 952 | 657 | 354 | 303 | 92 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.DigitalAssetLinks.Types
-- Copyright : (c) 2015-2016 B... | brendanhay/gogol | gogol-digitalassetlinks/gen/Network/Google/DigitalAssetLinks/Types.hs | mpl-2.0 | 1,998 | 0 | 7 | 464 | 196 | 139 | 57 | 50 | 1 |
{-# LANGUAGE MultiWayIf #-}
module Deftype (moduleForDeftype, bindingsForRegisteredType) where
import qualified Data.Map as Map
import Data.Maybe
import Debug.Trace
import Obj
import Types
import Util
import Template
import ToTemplate
import Infer
import Concretize
import Polymorphism
import ArrayTemplates
import Lo... | eriksvedang/Carp | src/Deftype.hs | mpl-2.0 | 25,489 | 0 | 24 | 6,922 | 6,100 | 3,180 | 2,920 | 363 | 5 |
{-# 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/Zones/Get.hs | mpl-2.0 | 3,059 | 0 | 14 | 748 | 389 | 235 | 154 | 61 | 1 |
func = do
Foo { _lstate_indent = _lstate_indent lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd
, _lstate_foo = _lstate_foo lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd
}
| lspitzner/brittany | data/Test272.hs | agpl-3.0 | 177 | 0 | 9 | 32 | 29 | 15 | 14 | 3 | 1 |
{-# LANGUAGE ScopedTypeVariables, LambdaCase #-}
module Main where {
import Chess;
import System.Environment(getArgs);
import System.IO;
-- import Retrograde;
silly :: IO [String];
silly = getArgs;
main :: IO();
-- main = print $ and $ map (test_retro2 test_directory) $ all_positions test_directory;
-- boardsize 4 = ... | kenta2/retrograde | main.hs | agpl-3.0 | 2,012 | 0 | 16 | 348 | 314 | 183 | 131 | 22 | 8 |
{-
Copyright (C) 2009 Andrejs Sisojevs <andrejs.sisojevs@nextmail.ru>
All rights reserved.
For license and copyright information, see the file COPYRIGHT
-}
--------------------------------------------------------------------------
--------------------------------------------------------------------------
-- | Modul... | Andrey-Sisoyev/haskell-PCLT | Text/PCLT/MakeMessage.hs | lgpl-2.1 | 40,600 | 0 | 45 | 21,732 | 4,363 | 2,318 | 2,045 | 364 | 34 |
import Data.Int
import System.Environment (getArgs)
import Text.Printf
import Vision.Histogram
import Vision.Image
import Vision.Primitive
-- Compares two images by their HSV histograms.
--
-- usage: ./histogram input1.png input2.png
main :: IO ()
main = do
[input1, input2] <- getArgs
-- Loads the images. Au... | TomMD/friday | example/Histogram.hs | lgpl-3.0 | 1,562 | 0 | 16 | 528 | 292 | 153 | 139 | 25 | 2 |
{-# LANGUAGE InstanceSigs #-}
module MonadTrans where
import Control.Monad
import Control.Monad.IO.Class (MonadIO (liftIO))
import Control.Monad.Trans.Class (MonadTrans (lift))
instance MonadTrans IdentityT where
lift :: Monad m => m a -> IdentityT m a
lift = IdentityT
i... | dmvianna/haskellbook | src/Ch26-MonadTrans.hs | unlicense | 1,621 | 0 | 11 | 427 | 504 | 263 | 241 | 33 | 0 |
module Main where
import Control.Monad (forM_)
import Data.Char (toLower)
import Data.List (sort)
import qualified Data.Set as Set
import Data.Set (Set)
import System.Environment
import System.Exit
import System.IO
import BV
import Interaction
import Utility
main :: IO ()
main = do
hSetBuffering stdin LineBufferi... | msakai/icfpc2013 | GuessMania/Main.hs | bsd-2-clause | 2,159 | 0 | 22 | 606 | 721 | 359 | 362 | 61 | 5 |
{-# LANGUAGE BangPatterns, FlexibleContexts, OverloadedStrings #-}
import Text.Printf
import System.Event.Clock
import qualified Data.Attoparsec as A (parseWith)
import qualified Data.Attoparsec.Char8 as A
import RFC2616
import Control.Exception
import Control.Concurrent.QSemN
import Control.Monad
import Network.Socke... | tibbe/event | benchmarks/HttpClient.hs | bsd-2-clause | 5,419 | 0 | 30 | 1,673 | 1,742 | 909 | 833 | 128 | 9 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnicodeSyntax #-}
import Prelude hiding (catch)
import Control.Exception (SomeException,catch)
import Criterion.Main
import Data.Monoid
import System.Environment
import System.IO
import LogicGrowsOnTrees
import LogicGrowsOnTrees.Checkpoint
import LogicGrowsOnTrees.Ut... | gcross/LogicGrowsOnTrees-processes | benchmarks/benchmark.hs | bsd-2-clause | 2,100 | 0 | 14 | 437 | 470 | 260 | 210 | 47 | 2 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DatatypeContexts #-}
module Control.CP.FD.... | neothemachine/monadiccp | src/Control/CP/FD/Interface.hs | bsd-3-clause | 9,361 | 0 | 13 | 1,728 | 3,708 | 2,000 | 1,708 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleContexts #-}
module Bench where
import Criterion.Main
import Data.Attoparsec.Text as AP
import Data.Text as T
import Control.Applicative
import qualified Text.Syntax.Poly as S
import qualified Control.Isomorphism.Partial.Ext as S
import Control.Isomorphism.Partial... | schernichkin/exchange | bench/Bench.hs | bsd-3-clause | 2,286 | 0 | 17 | 451 | 760 | 393 | 367 | 53 | 2 |
module Cis194.Week2.LogAnalysisSpec (main, spec) where
import Test.Hspec
import Cis194.Week2.Log
import Cis194.Week2.LogAnalysis
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "LogAnalysis" $ do
it "should parse error lines" $ do
parseMessage "E 2 562 help help" `shouldBe` LogMessage (Er... | potatosalad/cis194 | test/Cis194/Week2/LogAnalysisSpec.hs | bsd-3-clause | 2,692 | 0 | 20 | 686 | 882 | 416 | 466 | 54 | 1 |
{-|
Module : Network.Spotify.Clinet
Description : Spotify Web API client library.
Stability : experimental
-}
module Network.Spotify.Client
( AuthorizeApi
, MeApi
, TokenApi
, authorizeApi
, authorizeLink
, userApi
, getMe
, getMePlaylists
, spotifyAccountsBaseUrl
, spotif... | chances/servant-spotify | src/Network/Spotify/Client.hs | bsd-3-clause | 591 | 0 | 5 | 151 | 73 | 50 | 23 | 16 | 0 |
module Module4.Task12 where
data Person = Person { firstName :: String, lastName :: String, age :: Int }
updateLastName :: Person -> Person -> Person
updateLastName p1 p2 = p2 { lastName = (lastName p1) }
| dstarcev/stepic-haskell | src/Module4/Task12.hs | bsd-3-clause | 213 | 0 | 8 | 44 | 70 | 41 | 29 | 4 | 1 |
module Problem686 where
req :: Int
req = 678910
main :: IO ()
main = print $ (!! (req - 1)) $ filter ((== 123) . first3) [1 ..]
first3 :: Int -> Int
first3 n = truncate res
where
frac :: Double -> Double
frac x = x - fromIntegral (floor x)
lb = logBase 10 2 :: Double
res = 100 * (10 ** frac (fromI... | adityagupta1089/Project-Euler-Haskell | src/problems/Problem686.hs | bsd-3-clause | 337 | 0 | 13 | 93 | 162 | 88 | 74 | 11 | 1 |
--------------------------------------------------------------------------------
-- Simulation of the flocking algorithm and the agents used, described in
-- "A Minimalist Flocking Algorithm for Swarm Robots" by
-- Christoph Moeslinger, Thomas Schmickl and Karl Crailsheim.
----------------------------------------------... | SRechenberger/flock | examples/msc2/Main.hs | bsd-3-clause | 4,091 | 0 | 16 | 1,061 | 1,634 | 840 | 794 | 141 | 2 |
{-# LANGUAGE JavaScriptFFI #-}
import Data.JSString (JSString, unpack)
import System.Timeout (timeout)
foreign import javascript interruptible
"setTimeout(function() { $c(\"finished\"); }, 1000*Math.random());"
js_timeout :: IO JSString
main :: IO ()
main = do
ret <- timeout (500*1000) js_timeout
case ret of... | syocy/ghcjs-game-example | app/timeout/Timeout.hs | bsd-3-clause | 398 | 3 | 11 | 70 | 109 | 55 | 54 | -1 | -1 |
{-# LANGUAGE CPP #-}
module GHC.Platform.SPARC where
import GhcPrelude
#define MACHREGS_NO_REGS 0
#define MACHREGS_sparc 1
#include "../../../includes/CodeGen.Platform.hs"
| sdiehl/ghc | compiler/GHC/Platform/SPARC.hs | bsd-3-clause | 176 | 0 | 3 | 21 | 14 | 11 | 3 | 3 | 0 |
module Main where
import Lib
main :: IO ()
main = test
| rubenmoor/cellstore | app/Main.hs | bsd-3-clause | 57 | 0 | 6 | 14 | 22 | 13 | 9 | 4 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NoRebindableSyntax #-}
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Ti... | facebookincubator/duckling | Duckling/Time/EN/NZ/Rules.hs | bsd-3-clause | 2,915 | 0 | 19 | 638 | 738 | 414 | 324 | 74 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Lib where
import Control.Monad.Logger (runStdoutLoggingT)
import Control.Monad.Trans.Reader (runReaderT)
import Database.Persist.Postgresql ... | bendiksolheim/listify-backend | src/Lib.hs | bsd-3-clause | 1,397 | 0 | 12 | 414 | 281 | 140 | 141 | 35 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Wai.Application.Classic.Lang (parseLang) where
import Control.Applicative hiding (optional)
import Data.Attoparsec.ByteString (Parser, takeWhile, parseOnly)
import Data.Attoparsec.ByteString.Char8 (char, string, count, space, digit, option, sepBy1)
import Data.ByteStr... | kazu-yamamoto/wai-app-file-cgi | Network/Wai/Application/Classic/Lang.hs | bsd-3-clause | 1,744 | 0 | 13 | 310 | 636 | 345 | 291 | 34 | 2 |
{-# OPTIONS_HADDOCK hide #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE Scoped... | harendra-kumar/asyncly | src/Streamly/Internal/Data/Fold.hs | bsd-3-clause | 36,711 | 0 | 18 | 9,280 | 7,096 | 3,920 | 3,176 | 420 | 4 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
module ClientGen.JS where
import Data.Proxy
import Data.Text
import Servant.JS
import API
-- jsCode :: Text
-- jsCode = jsForAPI (Proxy :: Proxy API1) vanillaJS
| CBMM/CBaaS | cbaas-lib/src/ClientGen/JS.hs | bsd-3-clause | 227 | 0 | 4 | 40 | 28 | 19 | 9 | 7 | 0 |
module HERMIT.Web.Renderer (webChannel) where
import Control.Concurrent.STM
import Data.Monoid
import HERMIT.Core
import HERMIT.Kure
import HERMIT.PrettyPrinter.Common
import HERMIT.Web.JSON
import System.IO
webChannel :: TChan (Either String [Glyph]) -> Handle -> PrettyOptions -> Either String DocH -> IO ()
webC... | ku-fpg/hermit-web | src/HERMIT/Web/Renderer.hs | bsd-3-clause | 2,711 | 0 | 12 | 873 | 1,111 | 561 | 550 | 55 | 6 |
module Mote.Types (Hole, FileData (..), MoteState (..),
HoleInfo (..), ErrorType (..), AugmentedHoleInfo(..), M, Ref, ScopeMap) where
import Control.Concurrent.MVar
import Control.Monad.Error
import Data.IntervalMap.FingerTree (IntervalMap)
import qualified Data.Map ... | imeckler/mote | Mote/Types.hs | bsd-3-clause | 3,525 | 0 | 11 | 1,030 | 574 | 347 | 227 | 65 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
-- |
-- Module: System.FilePath.Glob
-- Copyright: Bryan O'Sullivan
-- License: BSD3
-- Maintainer: Bryan O'Sullivan <bos@serpentine.com>
-- Stability: unstable
-- Portability: everywhere
module System.FilePath.Glob (
namesMatching
) where
import Control.Ex... | bos/filemanip | System/FilePath/Glob.hs | bsd-3-clause | 2,593 | 0 | 21 | 759 | 658 | 343 | 315 | 57 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.