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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-|
This module defines a generic web application interface. It is a common
protocol between web servers and web applications.
The overriding design principles here are performance and generality. To
address performance, this library uses a streaming interface for request and
response bodies, paired with bytestring's... | creichert/wai | wai/Network/Wai.hs | mit | 12,654 | 0 | 25 | 2,924 | 1,945 | 1,090 | 855 | 163 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Network.API.Mandrill.UrlsSpec where
import Test.Hspec
import Test.Hspec.Expectations.Contrib
import Network.API.Mandrill.Types
import Network.API.Mandrill.Utils
import qualified Data.Text as Text
import qualified Network.API.Mandrill.Urls as... | krgn/hamdrill | test/Network/API/Mandrill/UrlsSpec.hs | mit | 2,250 | 0 | 14 | 483 | 521 | 261 | 260 | 62 | 1 |
module Example11 where
import qualified WeightedLPA as WLPA
import Graph
import qualified Data.Map as M
import qualified Data.Set as S
weighted_example0 :: WeightedGraph String String
weighted_example0 = WeightedGraph (buildGraphFromEdges [("e",("v","v")),("f",("v","v"))]) (M.fromList [("e",1),("f",2)])
weighted_exa... | rzil/honours | LeavittPathAlgebras/Example11.hs | mit | 5,970 | 0 | 12 | 1,120 | 3,152 | 1,684 | 1,468 | 145 | 11 |
{-# htermination addToFM :: FiniteMap Bool b -> Bool -> b -> FiniteMap Bool b #-}
import FiniteMap
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/FiniteMap_addToFM_8.hs | mit | 100 | 0 | 3 | 19 | 5 | 3 | 2 | 1 | 0 |
-- Copyright 2014 Alvaro J. Genial (http://alva.ro) -- see LICENSE.md for more.
module Text.Neat.Input where
import Data.List (stripPrefix)
split :: Eq a => [a] -> [a] -> [[a]]
split [] l = fmap return l
split _ [] = [] : []
split d l = case stripPrefix d l of
Just rest -> [] : split d rest
... | ajg/neat | Text/Neat/Input.hs | mit | 503 | 0 | 15 | 208 | 199 | 103 | 96 | 11 | 3 |
module Main where
colors = [0, 1, 2]
possible = [(a, m, g, t, f) |
a<-colors,
m<-colors,
g<-colors,
t<-colors,
f<-colors,
m /= t,
m /= a,
a /= t,
a /= m,
a /= g,
a /= f,
g /= f,
g /= t
... | skywind3000/language | haskell/colormap.hs | mit | 402 | 0 | 7 | 227 | 162 | 86 | 76 | 19 | 1 |
import BinSearch
g :: Double
g = 9.8
data RimlessWheel = RimlessWheel {
gamma :: Double,
alpha :: Double,
len :: Double,
mass :: Double
}
canRollForward :: RimlessWheel -> Double -> Bool
canRollForward wheel postImpactW = let w0 = sqrt x
x = ( 2 * g / len wheel )... | Zomega/thesis | Wurm/RimlessWheel/sim.hs | mit | 1,750 | 45 | 14 | 435 | 684 | 361 | 323 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Yage.Geometry.D3.Cube where
import Yage.Prelude hiding (Index, toList)
i... | MaxDaten/yage-geometry | src/Yage/Geometry/D3/Cube.hs | mit | 3,065 | 0 | 13 | 1,250 | 1,052 | 568 | 484 | 65 | 1 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiParamT... | joshcough/L5-Haskell | src/L/Interpreter/Memory.hs | mit | 7,245 | 0 | 18 | 1,503 | 2,535 | 1,274 | 1,261 | 147 | 4 |
{-# LANGUAGE ScopedTypeVariables #-}
module Model where
import Control.Monad.Random
import Control.Monad
import Config
data Cell = Cell { xNumber :: Int,
yNumber :: Int,
isAlive :: Int } deriving Show
data Field = Field { cells :: [Cell],
xMax :: Int,
... | simonenkos/goliath | src/Model.hs | mit | 2,416 | 0 | 14 | 1,044 | 758 | 381 | 377 | 40 | 3 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TemplateHaskell #-}
module Yage.Rendering.Pipeline.Deferred.Types
(
-- * Primitives for Deferred Shading
DeferredEntity
, DeferredSky
, DeferredEnvironment
, DeferredScene
-- * Deferred Context
, DeferredMonad
, DeferredSettings(..)
, HasD... | MaxDaten/yage | src/Yage/Rendering/Pipeline/Deferred/Types.hs | mit | 1,930 | 0 | 9 | 306 | 334 | 203 | 131 | 36 | 0 |
module Common.Misc
( for
, divR
, clamp
, doNothing
, doNothing1
, mapMaybeM
, adapt
) where
import Control.Monad()
import Data.Maybe
----------------------------------------------------------------------------------------------------
for :: [a] -> (a -> b) -> [b]
for = flip map
divR... | Chatanga/kage | src/Common/Misc.hs | mit | 787 | 0 | 11 | 184 | 330 | 175 | 155 | 24 | 1 |
{-@ LIQUID "--no-termination" @-}
module Main (main) where
import Data.Maybe
import Text.Pandoc.JSON
-- import Text.Pandoc
-- import Data.Char (isSpace)
import Data.List
-- import Data.Monoid (mempty)
import Debug.Trace
-- import Text.Printf (printf)
-- import Text.Pandoc.Walk (walk)
main :: IO ()
main = toJSONFilte... | ucsd-progsys/liquidhaskell-tutorial | filters/Html.hs | mit | 2,734 | 0 | 11 | 745 | 929 | 492 | 437 | 74 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : ./Common/LibName.hs
Description : library names for DOL and development graphs
Copyright : (c) Christian Maeder, DFKI GmbH 2008
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : po... | spechub/Hets | Common/LibName.hs | gpl-2.0 | 4,241 | 0 | 12 | 850 | 1,189 | 632 | 557 | 111 | 2 |
{-# language DeriveDataTypeable #-}
module Resolution.Data where
import Autolib.ToDoc
import Autolib.Reader
import Autolib.Set
import Autolib.TES.Identifier
import Data.Typeable
import qualified Data.Set as S
data Literal = Literal
{ name :: Identifier
, parity :: Bool
}
... | marcellussiegburg/autotool | collection/src/Resolution/Data.hs | gpl-2.0 | 1,372 | 0 | 12 | 411 | 454 | 233 | 221 | 37 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-
# This file is part of matrix-arbitrary. #
# #
# matrix-arbitrary is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Gen... | weissi/matrix-arbitrary | src/Numeric/MatrixOperations.hs | gpl-3.0 | 4,965 | 0 | 18 | 2,460 | 1,410 | 775 | 635 | 63 | 3 |
module TestEncoding
(tests)
where
import Test.HUnit(Assertion,Test(..),assertFailure)
import Test.QuickCheck
(Args(..),Result(..),Testable,label,quickCheckWithResult,stdArgs)
import Encoding(fromString,toString)
tests :: Test
tests = TestList [
TestCase (testEncoding "testEncoding" (\s -> s == toString (... | qpliu/esolang | gbagbo/hs/TestEncoding.hs | gpl-3.0 | 628 | 0 | 15 | 111 | 224 | 123 | 101 | 15 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Risk where
import Control.Monad.Random (Random(..), StdGen, Rand, getRandom, randomR, evalRandIO)
import Control.Monad (replicateM)
import Data.List (sortBy)
------------------------------------------------------------
-- Die values
newtype DieValue = DV { unDV :: ... | martinvlk/cis194-homeworks | src/HW12/Risk.hs | gpl-3.0 | 1,997 | 0 | 12 | 449 | 736 | 401 | 335 | 41 | 2 |
{-----------------------------------------------------------------
(c) 2008-2009 Markus Dittrich
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License Version 3 as published by the Free Software Foundation.
This program is distribut... | markusle/husky | src/UnitConverter.hs | gpl-3.0 | 10,995 | 0 | 18 | 3,966 | 1,665 | 983 | 682 | 157 | 6 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
module Models.Fields where
import Control.Applicative ((<|>))
import Control.Monad (fail)
import Data.Aeson (To... | Southern-Exposure-Seed-Exchange/southernexposure.com | server/src/Models/Fields.hs | gpl-3.0 | 16,440 | 0 | 14 | 4,992 | 3,666 | 1,944 | 1,722 | 428 | 16 |
module Term where
import Syntax
--import Control.Applicative
import Data.List (intersect, (\\))
isSimple ts = all isAtomicResource (detensor ts)
isAtom (Atom _) = True
isAtom _ = False
isPersistentAtom (OfCourse (Atom _)) = True
isPersistentAtom _ = False
-- | isAtomicResource is used to determine if a resource ... | jff/TeLLer | src/Term.hs | gpl-3.0 | 2,067 | 0 | 15 | 385 | 577 | 303 | 274 | 34 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module PetaVision.Data.Pooling
( PoolingType(..)
, poolConduit
, poolVecConduit
, poolVecConduit1
, poolArrayConduit
, poolGrid
, poolGridList
, gridNum
) where
import Control.DeepSeq
import Control.Monad as M
import Contr... | XinhuaZhang/PetaVisionHaskell | PetaVision/Data/Pooling.hs | gpl-3.0 | 19,481 | 27 | 34 | 9,258 | 5,518 | 2,910 | 2,608 | 486 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-cloudkms/gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Create.hs | mpl-2.0 | 7,102 | 0 | 17 | 1,419 | 788 | 462 | 326 | 128 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/Firewalls/List.hs | mpl-2.0 | 6,411 | 0 | 18 | 1,405 | 676 | 407 | 269 | 92 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-composer/gen/Network/Google/Resource/Composer/Projects/Locations/Environments/Get.hs | mpl-2.0 | 5,044 | 0 | 15 | 1,087 | 697 | 408 | 289 | 104 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-apps-reseller/gen/Network/Google/Resource/Reseller/Customers/Patch.hs | mpl-2.0 | 3,223 | 0 | 14 | 734 | 388 | 234 | 154 | 61 | 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.AppState.Ty... | brendanhay/gogol | gogol-appstate/gen/Network/Google/AppState/Types/Product.hs | mpl-2.0 | 7,945 | 0 | 14 | 2,074 | 1,553 | 893 | 660 | 180 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Control.Concurrent.TBox.TSkipList.Internal
-- Copyright : Peter Robinson 2010-2013
-- License : LGPL
--
-- Maintainer : Peter Robinson <thaldyron@gmail.com>
-- Stability : experimental
-- Portability : no... | andrewthad/tskiplist | Control/Concurrent/STM/TSkipList/Internal.hs | lgpl-2.1 | 15,835 | 0 | 21 | 5,297 | 4,054 | 2,040 | 2,014 | 287 | 5 |
{-# LANGUAGE TemplateHaskell #-}
-- |
-- Module : Data.FixedWidth
-- Description : Template haskell functions to declare arbitrary fixed-width integer types.
-- Copyright : (c) Yujie Wen, 2016
-- License : LGPL-3
-- Maintainer : yjwen.ty@gmail.com
-- Stability : Experimental
-- Portability : POSIX
--
-- This module pr... | yjwen/hada | src/Data/FixedWidth.hs | lgpl-3.0 | 14,884 | 0 | 16 | 4,406 | 3,568 | 1,932 | 1,636 | 207 | 2 |
{-
- This file is part of Bilder.
-
- Bilder 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 version.
-
- Bilder i... | ingemaradahl/bilder | src/Compiler/Simple.hs | lgpl-3.0 | 2,757 | 0 | 12 | 490 | 611 | 332 | 279 | 44 | 1 |
module Nat where
data Nat = Zero | Succ Nat deriving (Eq, Show)
natToInteger :: Nat -> Integer
natToInteger Zero = 0
natToInteger (Succ x) = 1 + natToInteger x
integerToNat :: Integer -> Maybe Nat
integerToNat x
| x < 0 = Nothing
| otherwise = Just (countdown x)
where countdown 0 = Zero
countdown y... | aniketd/learn.haskell | haskellbook/nat.hs | unlicense | 346 | 0 | 11 | 82 | 147 | 74 | 73 | 11 | 2 |
import System.IO
import System.Directory
import Data.List
import Control.Exception
main = do
contents <- readFile "todo.txt"
let todoTasks = lines contents
numberedTasks = zipWith (\n line -> show n ++ " - " ++ line)
[0..]
todoTasks
putStrLn "Thes... | alexliew/learn_you_a_haskell | code/deletetodo.hs | unlicense | 876 | 1 | 15 | 262 | 233 | 109 | 124 | 25 | 1 |
module HelperSequences.A238689 (a238689, a238689_row) where
import HelperSequences.A000040 (a000040_list)
a238689 :: Int -> Integer
a238689 n = a238689_list !! (n - 1)
a238689_list :: [Integer]
a238689_list = concatMap a238689_row [1..]
a238689_row :: Integer -> [Integer]
a238689_row 1 = [1]
a238689_row n = a n [] a... | peterokagey/haskellOEIS | src/HelperSequences/A238689.hs | apache-2.0 | 519 | 0 | 11 | 132 | 221 | 118 | 103 | 14 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE JavaScriptFFI #-}
{-
Copyright 2015 Google Inc. All rights reserved.
Licensed un... | d191562687/codeworld | codeworld-base/src/Internal/CodeWorld.hs | apache-2.0 | 15,492 | 27 | 21 | 4,929 | 4,570 | 2,303 | 2,267 | 46 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QRegExp.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:32
Warning : this file is machine generated - do not m... | keera-studios/hsQt | Qtc/Core/QRegExp.hs | bsd-2-clause | 11,091 | 87 | 15 | 1,964 | 3,622 | 1,885 | 1,737 | -1 | -1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QFtp_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:31
Warning : this file is machine generated - do not mo... | uduki/hsQt | Qtc/Network/QFtp_h.hs | bsd-2-clause | 15,948 | 0 | 18 | 3,804 | 5,484 | 2,612 | 2,872 | -1 | -1 |
module Control.Error.Util.Extended.Internal
(
) where
| athanclark/errors-mtl | src/Control/Error/Util/Extended/Internal.hs | bsd-3-clause | 62 | 0 | 3 | 13 | 12 | 9 | 3 | 2 | 0 |
{-# OPTIONS_GHC -O0 #-}
module Network.BSD.ServiceDB(
ProtocolName
, ServiceName
, ServiceEntry(..)
, serviceDB
)
where
import Data.Typeable
import Data.Word
import Network.Socket.Internal(PortNumber(..))
type ProtocolName = String
type ServiceName = String
data ServiceEntry = S... | hackern/network-hans | src/Network/BSD/ServiceDB.hs | bsd-3-clause | 553,654 | 0 | 9 | 178,896 | 154,505 | 77,462 | 77,043 | 11,011 | 1 |
{-# OPTIONS -cpp #-}
-- OPTIONS required for ghc-6.4.x compat, and must appear first
{-# LANGUAGE CPP #-}
-- -fno-warn-deprecations for use of Map.foldWithKey
{-# OPTIONS_GHC -cpp -fno-warn-deprecations #-}
{-# OPTIONS_NHC98 -cpp #-}
{-# OPTIONS_JHC -fcpp #-}
------------------------------------------------------------... | alphaHeavy/cabal | Cabal/Distribution/PackageDescription/Configuration.hs | bsd-3-clause | 28,272 | 0 | 20 | 7,487 | 6,127 | 3,320 | 2,807 | 357 | 19 |
module Language.Haskell.GhcMod.Doc where
import DynFlags (DynFlags)
import GHC (Ghc)
import qualified GHC as G
import Language.Haskell.GhcMod.Gap (withStyle, showDocWith)
import Outputable (SDoc, PprStyle, mkUserStyle, Depth(AllTheWay), neverQualify)
import Pretty (Mode(..))
showPage :: DynFlags -> PprStyle -> SDoc -... | yuga/ghc-mod | Language/Haskell/GhcMod/Doc.hs | bsd-3-clause | 735 | 0 | 8 | 104 | 212 | 119 | 93 | 17 | 1 |
{-# LANGUAGE TupleSections #-}
module Main where
import AdventOfCode
import Data.List (partition, isInfixOf)
data Net
= Super
| Hyper
newtype IPAddress =
IPAddress [(Net, String)]
abba :: String -> Bool
abba (a:b:c:d:_)
| a /= b && a == d && b == c = True
abba (_:xs) = abba xs
abba _ = False
canTLS :: IPA... | purcell/adventofcode2016 | src/Day7.hs | bsd-3-clause | 1,243 | 0 | 14 | 329 | 593 | 315 | 278 | 46 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module HerokuBuild.JSONSpec (main, spec) where
import HerokuBuild.JSON
import Data.Aeson (encode, decode)
import qualified Data.ByteString.Lazy as BS
import Test.Hspec
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "Build" $ do
it "encodes correctly" $ ... | pbrisbin/heroku-build | test/HerokuBuild/JSONSpec.hs | bsd-3-clause | 1,979 | 0 | 19 | 829 | 321 | 172 | 149 | 46 | 1 |
module CType where
import qualified Data.ByteString.Char8 as BS
import Data.List.Extra as List
import qualified Language.C.Types as C
import Language.C.Types.Parse hiding ( Array
, Proto
... | expipiplus1/vulkan | generate-new/src/CType.hs | bsd-3-clause | 7,079 | 0 | 21 | 2,266 | 2,274 | 1,135 | 1,139 | -1 | -1 |
module Lab where
import Data.List (concatMap)
--------------------------------------------------------------------------------
-- Lab 2: Validating Credit Card Numbers
--------------------------------------------------------------------------------
-- ===================================
-- Ex. 0
-- =================... | paulkeene/FP101x | chapter05/Lab.hs | bsd-3-clause | 5,573 | 0 | 9 | 2,254 | 751 | 461 | 290 | 143 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Scotty where
import Web.Scotty
import Control.Monad.Trans.Class
main :: IO ()
main = scotty 3000 $
get "/:word" $ do
beam <- param "word"
(lift :: IO a -> ActionM a) (putStrLn "hello")
html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]
| actionshrimp/haskell-book | src/26/ScottyExample.hs | bsd-3-clause | 297 | 0 | 11 | 62 | 103 | 53 | 50 | 10 | 1 |
module CodeGen.Platform.X86_64 where
import CmmExpr
#define MACHREGS_NO_REGS 0
#define MACHREGS_x86_64 1
#include "../../../../includes/CodeGen.Platform.hs"
| nomeata/ghc | compiler/codeGen/CodeGen/Platform/X86_64.hs | bsd-3-clause | 161 | 0 | 3 | 17 | 13 | 10 | 3 | 2 | 0 |
{-# LANGUAGE GADTs #-}
module Network.Sock.Types.Request
( Request(..)
) where
------------------------------------------------------------------------------
import qualified Data.Conduit as C
------------------------------------------------------------------------------
import qualified Network.HTTP.Types.... | Palmik/wai-sockjs | src/Network/Sock/Types/Request.hs | bsd-3-clause | 813 | 0 | 11 | 126 | 105 | 71 | 34 | -1 | -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 OverloadedStrings #-}
module Duckling.Numeral.NE.Corpus
( corpus
) where
import Data.String
im... | facebookincubator/duckling | Duckling/Numeral/NE/Corpus.hs | bsd-3-clause | 2,032 | 0 | 9 | 770 | 423 | 235 | 188 | 52 | 1 |
module Render.SpecInfo where
import Algebra.Graph.Relation
import Algebra.Graph.ToGraph
import CType
import qualified Data.HashMap.Strict as Map
import qualified Data.HashSet as Set
import Error
import Polysemy
import Polysemy.Input... | expipiplus1/vulkan | generate-new/src/Render/SpecInfo.hs | bsd-3-clause | 7,512 | 0 | 19 | 2,577 | 2,213 | 1,164 | 1,049 | -1 | -1 |
-- |
-- Module : Database.Oracle.Enumerator
-- Copyright : (c) 2004 Oleg Kiselyov, Alistair Bayley
-- License : BSD-style
-- Maintainer : oleg@pobox.com, alistair@abayley.org
-- Stability : experimental
-- Portability : non-portable
-- Oracle OCI implementation of Database.Enumerator.
{-# LANGUA... | bagl/takusen-oracle | Database/Oracle/Enumerator.hs | bsd-3-clause | 39,292 | 0 | 20 | 7,478 | 9,806 | 4,972 | 4,834 | -1 | -1 |
module Lexer where
import Control.Monad (void)
import Data.Char (isAlphaNum)
import Text.Megaparsec
import qualified Text.Megaparsec.Lexer as L
import Text.Megaparsec.Text.Lazy (Parser)
sc :: Parser ()
sc = L.space (void spaceChar) lineCmnt bloc... | jeffreyrosenbluth/jackCompiler | src/Lexer.hs | bsd-3-clause | 2,326 | 0 | 10 | 607 | 834 | 437 | 397 | 89 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-| @feed-gipeda.yaml@ related stuff like decoding and syntax checking.
-}
module FeedGipeda.Config
( Config
, empty
, repos
, decodeFile
, checkFile
) where
import Control.Arrow (left)
import Control.Monad (forever)
import ... | sgraf812/feed-gipeda | src/FeedGipeda/Config.hs | bsd-3-clause | 2,054 | 0 | 11 | 557 | 456 | 254 | 202 | 45 | 1 |
-- (c) 2000-2005 by Martin Erwig [see file COPYRIGHT]
-- | Shortest path algorithms
module Data.Graph.Inductive.Query.SP(
spTree
, sp
, spLength
, dijkstra
) where
import qualified Data.Graph.Inductive.Internal.Heap as H
import Data.Graph.Inductive.Graph
import Data.Graph.Inductive.Internal.RootPat... | quchen/fgl | Data/Graph/Inductive/Query/SP.hs | bsd-3-clause | 1,624 | 0 | 14 | 403 | 591 | 320 | 271 | 37 | 2 |
module Pos.Chain.Security.Params
( SecurityParams(..)
, AttackType(..)
, AttackTarget(..)
, NodeAttackedError(..)
) where
import Universum
import Control.Lens (_Left)
import qualified Data.Aeson as A
import Data.Aeson.Options (defaultOptions)
import qua... | input-output-hk/pos-haskell-prototype | chain/src/Pos/Chain/Security/Params.hs | mit | 3,385 | 0 | 18 | 880 | 633 | 362 | 271 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/BundleInstance.hs | mpl-2.0 | 4,585 | 0 | 9 | 1,000 | 560 | 346 | 214 | 66 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- Module : Test.AWS.AutoScaling
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : This Source Code Form is subject to the terms of
-- the Mozilla Public License, v. 2.0.
-- A copy of the MPL can be found in the LICENSE file or
-- ... | olorin/amazonka | amazonka-autoscaling/test/Test/AWS/AutoScaling.hs | mpl-2.0 | 756 | 0 | 5 | 201 | 73 | 50 | 23 | 11 | 1 |
module Parse.Parse (program) where
import Control.Applicative ((<$>))
import qualified Data.List as List
import qualified Data.Map as Map
import Text.Parsec hiding (newline, spaces)
import qualified Text.PrettyPrint as P
import qualified AST.Declaration as D
import qualified AST.Module as M
import Parse.Helpers
impor... | JoeyEremondi/utrecht-apa-p1 | src/Parse/Parse.hs | bsd-3-clause | 2,434 | 0 | 17 | 630 | 735 | 376 | 359 | 58 | 2 |
-- | Basic types and functions.
--
-- This module re-exports everything.
--
-- WARNING (for Csound users): the maximum amplitude is 1.0. There is no way to alter it.
-- Don't define your amplitudes with 9000 or 11000. But the good news are: all signals
-- are clipped by 1 so that you can not damage your ears and your ... | FranklinChen/csound-expression | src/Csound/Base.hs | bsd-3-clause | 1,326 | 0 | 5 | 262 | 250 | 166 | 84 | 35 | 0 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances,
TypeFamilies, StandaloneDeriving, GeneralizedNewtypeDeriving,
GADTs, RankNTypes, InstanceSigs, DataKinds, TypeOperators, PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS -Wall #-}
module Language.Hakaru.Sample (Sample(..), Sample', runSampl... | bitemyapp/hakaru | Language/Hakaru/Sample.hs | bsd-3-clause | 10,107 | 25 | 32 | 2,872 | 4,674 | 2,396 | 2,278 | 198 | 1 |
-- |The Vectorisation monad.
module Vectorise.Monad.Base (
-- * The Vectorisation Monad
VResult(..),
VM(..),
-- * Lifting
liftDs,
-- * Error Handling
cantVectorise,
maybeCantVectorise,
maybeCantVectoriseM,
-- * Debugging
emitVt, traceVt, dumpOptVt, dumpVt,
-- * Control
noV, traceNoV,
... | mcmaniac/ghc | compiler/vectorise/Vectorise/Monad/Base.hs | bsd-3-clause | 6,839 | 0 | 17 | 1,889 | 1,788 | 925 | 863 | 124 | 2 |
-- | See "Control.Super.Monad.Constrained.Prelude".
module Control.Supermonad.Constrained.Prelude
( module Control.Super.Monad.Constrained.Prelude
) where
import Control.Super.Monad.Constrained.Prelude
| jbracker/supermonad-plugin | src/Control/Supermonad/Constrained/Prelude.hs | bsd-3-clause | 209 | 0 | 5 | 19 | 28 | 21 | 7 | 3 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module Ros.Sensor_msgs.ChannelFloat32 where
import qualified Prelude as P
import Prelude ((.), (+), (*))
import qualified Data.Typeable as T
import Control.Applicative
import Ros.Intern... | acowley/roshask | msgs/Sensor_msgs/Ros/Sensor_msgs/ChannelFloat32.hs | bsd-3-clause | 1,108 | 1 | 10 | 208 | 272 | 162 | 110 | 27 | 0 |
{-| GenOpCodes handles Python opcode generation.
GenOpCodes contains the helper functions that generate the Python
opcodes as strings from the Haskell opcode description.
-}
{-
Copyright (C) 2011, 2012, 2013 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the ... | ribag/ganeti-experiments | src/Ganeti/Hs2Py/GenOpCodes.hs | gpl-2.0 | 2,623 | 0 | 21 | 542 | 486 | 245 | 241 | 40 | 1 |
{-
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) any later version.
This program is distr... | 2ion/yst | Yst/Util.hs | gpl-2.0 | 3,170 | 0 | 16 | 633 | 707 | 370 | 337 | 53 | 5 |
<?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="hr-HR">
<title>Eval Villain Add-On</title>
<maps>
<homeID>evalvillain</homeID>
<mapref ... | kingthorin/zap-extensions | addOns/evalvillain/src/main/javahelp/org/zaproxy/addon/evalvillain/resources/help_hr_HR/helpset_hr_HR.hs | apache-2.0 | 972 | 77 | 67 | 157 | 413 | 209 | 204 | -1 | -1 |
{- $Id: AFRPTestsEvSrc.hs,v 1.3 2003/12/19 15:32:22 henrik Exp $
******************************************************************************
* A F R P *
* *
* Module: ... | ony/Yampa-core | tests/AFRPTestsEvSrc.hs | bsd-3-clause | 20,861 | 33 | 14 | 5,880 | 6,181 | 3,764 | 2,417 | 441 | 1 |
{-# LANGUAGE DeriveFunctor #-}
-- | Cabal-like file AST types: 'Field', 'Section' etc
--
-- These types are parametrized by an annotation.
module Distribution.Parsec.Types.Field (
-- * Cabal file
Field (..),
fieldAnn,
FieldLine (..),
SectionArg (..),
sectionArgAnn,
-- * Name
Name (..),
... | mydaum/cabal | Cabal/Distribution/Parsec/Types/Field.hs | bsd-3-clause | 2,584 | 0 | 9 | 545 | 538 | 301 | 237 | 72 | 1 |
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
{-# LANGUAGE EmptyCase #-}
{-# LANGUAGE GADTs, DataKinds #-}
module Test where
-- Non-exhaustive (missing True & False)
test :: Bool -> Int
test a = case a of
data Void
-- Exhaustive
absurd :: Void -> a
absurd a = case a of {}
data Nat = Zero | Succ Nat
data Fin n w... | shlevy/ghc | testsuite/tests/pmcheck/should_compile/T10746.hs | bsd-3-clause | 438 | 0 | 9 | 109 | 134 | 77 | 57 | -1 | -1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE RankNTypes, ScopedTypeVariables, PolyKinds, StandaloneDeriving,
TypeOperators, GADTs, FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- M... | urbanslug/ghc | libraries/base/Data/Data.hs | bsd-3-clause | 49,973 | 0 | 24 | 13,527 | 11,037 | 5,881 | 5,156 | 788 | 7 |
{-# LANGUAGE RankNTypes, GADTs, FlexibleContexts #-}
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
{-# OPTIONS_GHC -O2 #-}
-- This one make SpecConstr generate bogus code (hence -O2),
-- with a lint error, in GHC 6.4.1
-- C.f. http://ghc.haskell.org/trac/ghc/ticket/737
module ShouldCompile where
data IHandle... | ghc-android/ghc | testsuite/tests/simplCore/should_compile/simpl014.hs | bsd-3-clause | 910 | 5 | 10 | 196 | 259 | 137 | 122 | -1 | -1 |
module Main where
main :: IO ()
main = error "test main undefined"
| mlitchard/squanchy | src-test/Main.hs | isc | 69 | 0 | 6 | 15 | 22 | 12 | 10 | 3 | 1 |
-- | Cache store paths and their references
module Nix.ReferenceCache (
ReferenceCache(..),
newReferenceCache, initializeReferenceCache,
getReferences, getReferencesIncludeSelf, computeClosure,
addPath, recordReferences, getDeriver, recordDeriver,
getSignature, recordSignature
) where
import Database.SQLit... | adnelson/nix-binary-cache | src/Nix/ReferenceCache.hs | mit | 16,953 | 0 | 42 | 4,384 | 4,187 | 2,057 | 2,130 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module TestLanguage where
import Control.Applicative
import Control.Monad
import Data.List
import Data.Typeable
import Test.QuickCheck hiding (Failure, Success)
import Parser
import Language
arbVar :: Gen String
arbVar = elements $ ["a", "b", "c"]
arbMaybeVar :: Gen (Maybe Strin... | Ptival/ProofIDE | TestLanguage.hs | mit | 2,173 | 0 | 12 | 507 | 928 | 470 | 458 | 53 | 7 |
{-# Language OverloadedStrings #-}
module Unison.Test.Typechecker where
import EasyTest
import Unison.Symbol ( Symbol(..) )
import qualified Unison.Type as Type
import qualified Unison.Typechecker as Typechecker
import qualified Unison.Var as Var
test :: Test ()
test = scope ... | unisonweb/platform | parser-typechecker/tests/Unison/Test/Typechecker.hs | mit | 923 | 0 | 13 | 269 | 310 | 163 | 147 | 24 | 1 |
#!/usr/bin/env stack
-- stack --install-ghc runghc --package turtle
{-# LANGUAGE OverloadedStrings #-}
import Turtle
main = do
putStr ">> "
n <- readline
maybe (print "Invalid input") (view . ls . fromText) n
| JoshuaGross/haskell-learning-log | Code/turtle/interactive-ls.hs | mit | 228 | 0 | 10 | 52 | 52 | 26 | 26 | 6 | 1 |
module Network.BitFunctor.Node ( processBlock
, processTx
, getBlocks
, getTransactions
) where
import Network.BitFunctor.Blockchain
import Network.BitFunctor.MemoryPool
data NodeState = NodeSt... | BitFunctor/bitfunctor | src/Network/BitFunctor/Node.hs | mit | 1,277 | 24 | 10 | 392 | 274 | 149 | 125 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
module BlockChainVerificationSpec where
import qualified Bce.DbFs as Db
import Bce.InitialBlock
import qualified Bce.Miner as Miner
import Bce.Hash
import Bce.Crypto
import Bce.BlockChain
import Bce.Difficulity
import Bce.BlockChainHash
import Bce.TimeStamp
import Bce.Util
i... | dehun/bce | test/BlockChainVerificationSpec.hs | mit | 4,778 | 0 | 26 | 1,202 | 1,434 | 728 | 706 | 95 | 1 |
{-# htermination find :: (a -> Bool) -> [a] -> Maybe a #-}
import List
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/List_find_1.hs | mit | 71 | 0 | 3 | 15 | 5 | 3 | 2 | 1 | 0 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UndecidableInstances #-}
module Betfair.APING.Types.LimitOrder
( LimitOrder(... | joe9/betfair-api | src/Betfair/APING/Types/LimitOrder.hs | mit | 880 | 0 | 9 | 250 | 134 | 85 | 49 | 21 | 0 |
module Main where
import qualified AG.DataTypes as AGD
import qualified AG.HelperFuncs as AHF
import qualified AG.Attributes as AA
-- | Example of an Expression
-- The data definition in the AG file acts like any other ADT.
-- As such, the example can be created by using the constructors
-- defined in the AG.
-- In ... | FPtje/UUAGC-Examples | examples/01-pure/src/Main.hs | mit | 1,033 | 0 | 12 | 279 | 198 | 103 | 95 | 24 | 1 |
uniform vec3 Cam_eyePos;
uniform float specularIntensity;
uniform float specularPower;
uniform sampler2D lightMap;
struct BaseLight
{
vec3 color;
float intensity;
};
struct Attenuation
{
float constant;
float linear;
float exponent;
};
struct PointLight
{
BaseLight base;
Attenuation atten... | jglrxavpok/jglrEngine | src/main/resources/shaders/lighting.hs | mit | 2,689 | 44 | 15 | 587 | 809 | 444 | 365 | -1 | -1 |
module Pong.Rect where
import Graphics.Rendering.OpenGL hiding (Rect, Size)
type Rects = [Rect]
type Rect = (Pos,Size)
type Pos = (X,Y)
type Size = (W,H)
type X = Int
type Y = Int
type W = Int
type H = Int
renderRects :: Rects -> IO ()
renderRects rects = do
currentColor $= Color4 0.9 0.9 0.9 1.0
let vtx :... | shangaslammi/frp-pong | Pong/Rect.hs | mit | 638 | 0 | 15 | 187 | 292 | 158 | 134 | 21 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Lastfm.ResponseSpec (spec) where
import Control.Exception (ArithException(..), throwIO, try)
import Control.Exception.Lens
import Control.Lens
import Data.Aeson (Value)
import Data.Byt... | supki/liblastfm | test/spec/Lastfm/ResponseSpec.hs | mit | 2,861 | 0 | 19 | 707 | 668 | 332 | 336 | -1 | -1 |
module Main where
import Preproc
main :: IO()
main = do
preprocParser realWorld "testSmallIn3.cpp"
return () | Spawek/HCPParse | src/Main.hs | mit | 118 | 0 | 8 | 25 | 38 | 19 | 19 | 6 | 1 |
module Main where
import Monad
import System.Environment
import Text.ParserCombinators.Parsec hiding (spaces)
main :: IO ()
main = getArgs >>= putStrLn . show . eval . readExpr . (!! 0)
symbol :: Parser Char
symbol = oneOf "!$%&|*+-/:<=>?@^_~#"
readExpr :: String -> LispVal
readExpr input = case parse parseExpr "lis... | tismith/tlisp | write-yourself-a-scheme/listings/listing4.2.hs | mit | 2,453 | 0 | 11 | 728 | 838 | 416 | 422 | 72 | 3 |
import RL.AI
import RL.Player
import RL.Game
import RL.Generator.Dungeon
import RL.Generator.Mobs
import RL.Generator.Features
import RL.UI
import RL.UI.Sprite
import RL.Random
import Control.Monad.State
import Data.List (isInfixOf)
import Data.Maybe (fromMaybe)
import Data.Ratio
import System.Environment
import Syste... | MichaelMackus/hsrl | roguelike.hs | mit | 6,920 | 0 | 29 | 2,396 | 1,783 | 947 | 836 | -1 | -1 |
import Helpers (takeEvery)
numberSpiralDiagonals :: Int
numberSpiralDiagonals = sum $ fn [1,3..1001] 1
where
fn [] _ = []
fn (x:xs) start = let end = x * x
in (sum $ takeEvery (x-1) [start .. end]) : fn xs (end+1)
-- numberSpiralDiagonals == 669171001
| samidarko/euler | problem028.hs | mit | 289 | 0 | 14 | 82 | 126 | 67 | 59 | 6 | 2 |
{-# LANGUAGE RecordWildCards #-}
module Test.Hspec.Core.QuickCheckUtil where
import Prelude ()
import Test.Hspec.Core.Compat
import Control.Exception
import Data.Maybe
import Data.Int
import System.Random
import Test.QuickCheck
import Te... | hspec/hspec | hspec-core/src/Test/Hspec/Core/QuickCheckUtil.hs | mit | 5,159 | 0 | 16 | 1,329 | 1,450 | 774 | 676 | 114 | 7 |
module Main where
import Test.Tasty
import Test.Tasty.SmallCheck as SC
import Test.Tasty.QuickCheck as QC
import Test.Tasty.HUnit
import Data.List
import Data.Ord
import NinetyNineProbs
main = defaultMain tests
testSort :: [Int] -> Bool
testSort list = sort (list :: [Int]) == sort (reverse list)
... | toddmohney/NinetyNineProbs | tests/Tests.hs | mit | 1,703 | 0 | 10 | 358 | 462 | 258 | 204 | 34 | 1 |
import Probability
import Tree
import Tree.Newick
model = do
tree <- uniform_topology 5
return ["tree" %=% write_newick tree]
main = do
mcmc model
| bredelings/BAli-Phy | tests/prob_prog/sample_tree/1/sample.hs | gpl-2.0 | 190 | 0 | 10 | 66 | 54 | 26 | 28 | 8 | 1 |
-- Funciones necesarias para la salida de datos
import Data.Aeson -- (encode)
import Data.ByteString.Lazy.Char8(unpack) -- (unpack)
import VizHaskell.TreeRepresentation -- (tree contract)
import VizHaskell.StringRepresentation -- (simple string)
import VizHaskell.RawRepresentation ... | Abandos/tutoride | doc/files/hs/includes.hs | gpl-3.0 | 402 | 0 | 5 | 94 | 45 | 30 | 15 | 6 | 0 |
module Wpl where
import Control.Monad
import Data.Maybe
import System.Directory
import System.FilePath as F
import System.IO
import Text.XML.Light
import Playlist
parseWpl :: String -> IO [Song]
parseWpl file = let cQName n = QName n Nothing Nothing
contents = parseXML file
me... | fcostantini/PlEb | src/Wpl.hs | gpl-3.0 | 1,363 | 0 | 12 | 471 | 354 | 177 | 177 | 35 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-healthcare/gen/Network/Google/Resource/Healthcare/Projects/Locations/DataSets/SetIAMPolicy.hs | mpl-2.0 | 6,270 | 0 | 16 | 1,300 | 783 | 459 | 324 | 122 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
--------------------------------------------------------------------------------
-- See end of this file for licence information.
--------------------------------------------------------------------------------
-- |
-- Module : N3
-- Copyright : (c) 2... | DougBurke/swish | src/Swish/RDF/Parser/N3.hs | lgpl-2.1 | 37,172 | 239 | 18 | 8,098 | 6,410 | 3,506 | 2,904 | -1 | -1 |
{-
Copyright (C) 2009 Andrejs Sisojevs <andrejs.sisojevs@nextmail.ru>
All rights reserved.
For license and copyright information, see the file COPYRIGHT
-}
--------------------------------------------------------------------------
--------------------------------------------------------------------------
{-# OPTION... | Andrey-Sisoyev/haskell-PCLT | Text/PCLT/ShowAsPCSI__.hs | lgpl-2.1 | 11,561 | 0 | 15 | 2,839 | 1,943 | 1,069 | 874 | 87 | 0 |
{-# LANGUAGE FlexibleContexts, TypeOperators #-}
module Codec.FFMpeg.Demux (
StreamIndex, findBestStream, withStream,
AVPacket, packetStreamIndex
) where
import Control.Eff
import Control.Eff.Coroutine
import Control.Eff.Exception
import Control.Eff.Lift
import Control.Eff.Reader.Strict
import Control.... | waldheinz/ffmpeg-effects | src/Codec/FFMpeg/Demux.hs | apache-2.0 | 1,916 | 0 | 17 | 409 | 554 | 302 | 252 | 43 | 3 |
allEven :: [Integer] -> [Integer]
allEven [] = []
allEven (h:t) = if even h then h:allEven t else allEven t | fbartnitzek/notes | 7_languages/Haskell/all_even.hs | apache-2.0 | 107 | 0 | 7 | 20 | 64 | 33 | 31 | 3 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module GameState where
import Control.Monad.Random (RandT, runRandT, MonadRandom)
import Control.Monad.Writer (WriterT, runWriterT, MonadWriter)
import Control.Monad.State (StateT, runStateT, MonadState)
import Control.Monad (MonadPlus)
import Control.Applicative (Alternati... | mmachenry/final-fortune | src/GameState.hs | bsd-2-clause | 4,206 | 0 | 17 | 911 | 1,274 | 746 | 528 | 127 | 2 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, RecordWildCards, ScopedTypeVariables #-}
module Arithmetic where
import Control.Applicative
import Data.Char (isDigit)
import Data.Functor.Compose (Compose(..))
import Data.Monoid ((<>))
import Text.Parser.Token (symbol)
import Text.Grampa
import Text.Grampa.ContextFr... | blamario/grampa | grammatical-parsers/examples/Arithmetic.hs | bsd-2-clause | 3,976 | 0 | 21 | 1,316 | 1,388 | 732 | 656 | 93 | 1 |
module Handler.Blog where
import Data.Time
import Import
import Control.Monad
import Yesod.Auth
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import qualified Data.Text.Lazy as LT
import qualified Data.Text.Lazy.Encoding as LT
import qualified Data.ByteString as BS
import qualified Data.ByteS... | konn/Yablog | Handler/Blog.hs | bsd-2-clause | 15,694 | 0 | 28 | 4,362 | 4,701 | 2,306 | 2,395 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.