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 -fno-warn-orphans #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE CPP #-}
module FibLoop where
import Prelude ()
import Prelude.Compat
import Ivory.Compile.C.CmdlineFrontend
import Ivory.Language
-- Recursive ... | GaloisInc/ivory | ivory-examples/examples/FibLoop.hs | bsd-3-clause | 1,931 | 0 | 17 | 429 | 688 | 349 | 339 | 51 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module Test.ZM.ADT.Msg.Kfb89a57cdc09 (Msg(..)) where
import qualified Prelude(Eq,Ord,Show)
import qualified GHC.Generics
import qualified Flat
import qualified Data.Model
import qualified Test.ZM.ADT.List.Kb8cd13187198
import qualified Test.ZM.ADT.Char.K06... | tittoassini/typed | test/Test/ZM/ADT/Msg/Kfb89a57cdc09.hs | bsd-3-clause | 795 | 0 | 10 | 101 | 185 | 125 | 60 | 16 | 0 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-
https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin%2Fcontext&tabs=HTTPS
-}
module IDP.Linkedin where
im... | freizl/hoauth2 | hoauth2-example/src/IDP/Linkedin.hs | bsd-3-clause | 1,494 | 0 | 8 | 226 | 258 | 160 | 98 | 38 | 1 |
{-# LANGUAGE OverloadedStrings, RecordWildCards, FlexibleContexts #-}
module Test.WebDriver.Config(
-- * WebDriver configuration
WDConfig(..), defaultConfig, mkSession
) where
import Test.WebDriver.Session
import Test.WebDriver.Capabilities
import Data.Default (Default, def)
import Data.String (fromString)... | plow-technologies/hs-webdriver | src/Test/WebDriver/Config.hs | bsd-3-clause | 2,646 | 0 | 10 | 680 | 393 | 240 | 153 | 43 | 1 |
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE ForeignFunctionInterface #-}
-- |
-- Module : Crypto.MAC.Siphash24
-- Copyright : (c) Austin Seipp 2013
-- License : BSD3
--
-- Maintainer : aseipp@pobox.com
-- Stability : experimental
-- Portability : portable
--
-- This module provides @siphash24@ ... | thoughtpolice/hs-nacl | src/Crypto/MAC/Siphash24.hs | bsd-3-clause | 4,610 | 0 | 16 | 1,122 | 563 | 337 | 226 | -1 | -1 |
{-# OPTIONS -Wall #-}
module Main (main) where
import Test.Framework (Test, defaultMain, testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Graphics.TextureSynthesis
----------------------------------------------------------------------
-- | Check that a tile of depth n is fully filled.
-... | kfish/texture-synthesis | tests/Properties.hs | bsd-3-clause | 1,134 | 0 | 10 | 243 | 314 | 168 | 146 | 24 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{- |
Use this set of combinators instead of ADP.Multi.Rewriting.Combinators to
use a constraint solver for constructing the subword ranges.
Note: This is experimental and slow.
-}
module ADP.Multi.Constrai... | adp-multi/adp-multi-monadiccp | src/ADP/Multi/Constraint/Combinators.hs | bsd-3-clause | 763 | 0 | 8 | 115 | 147 | 89 | 58 | 14 | 0 |
module Text.Document.Plugin where
import Control.Monad (liftM)
import Control.Applicative ((<$>))
import Text.ParserCombinators.Parsec (GenParser)
import qualified Text.XML.Light as XL
import Text.Xml.Xml (Node)
import Misc.Commons (branch, fmap2)
{-
List of formats currently supported for both the parser and the pr... | sebastiaanvisser/orchid-doc | src/Text/Document/Plugin.hs | bsd-3-clause | 3,867 | 0 | 16 | 779 | 740 | 397 | 343 | 60 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Graph.MST.Weight where
import Autolib.ToDoc
import Autolib.Reader
import Autolib.Graph.Type ( Kante (..) )
import Autolib.FiniteMap ( FiniteMap , lookupWithDefaultFM , listToFM )
import Data.Typeable
import Autolib.Hash ( Hash , hash )
import System.Random ( randomRIO )
imp... | florianpilz/autotool | src/Graph/MST/Weight.hs | gpl-2.0 | 1,547 | 6 | 13 | 349 | 667 | 356 | 311 | 38 | 2 |
module Vaultaire.Types.SourceDictCache
(
SourceDictCache,
emptySourceCache,
insertSourceCache,
memberSourceCache,
sizeOfSourceCache
) where
import Control.Applicative
import Data.Packer
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Word
import Vaultaire.Classes.WireFormat
new... | afcowie/vaultaire-common | lib/Vaultaire/Types/SourceDictCache.hs | bsd-3-clause | 1,112 | 0 | 11 | 176 | 294 | 157 | 137 | 28 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
-- | This module builds Docker (OpenContainer) images.
module Stack.... | MichielDerhaeg/stack | src/Stack/Image.hs | bsd-3-clause | 8,818 | 0 | 26 | 3,054 | 1,605 | 815 | 790 | 181 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module GameEngine.Loader.ShaderParser
( parseShaders
) where
import Control.Applicative hiding (many, some)
import Control.Monad
import Data.ByteString.Char8 (ByteString,pack)
import Text.Megaparsec hiding (count)
import Text.Megaparsec.Char hiding ()
import qualified Text.Megapa... | csabahruska/quake3 | game-engine/GameEngine/Loader/ShaderParser.hs | bsd-3-clause | 12,220 | 0 | 19 | 2,735 | 4,005 | 2,099 | 1,906 | 264 | 15 |
{-# LANGUAGE RecordWildCards, PatternGuards, FlexibleContexts #-}
-- | Check the coverage of the hints given a list of Isabelle theorems
module Test.Proof(proof) where
import Data.Tuple.Extra
import Control.Applicative
import Control.Monad
import Control.Monad.Trans.State
import Data.Char
import Data.List
import Data... | mpickering/hlint | src/Test/Proof.hs | bsd-3-clause | 8,864 | 0 | 21 | 2,532 | 3,461 | 1,746 | 1,715 | 140 | 22 |
{- $Id: AFRPTestsUtils.hs,v 1.2 2003/11/10 21:28:58 antony Exp $
******************************************************************************
* A F R P *
* *
* Module: ... | ony/Yampa-core | tests/AFRPTestsUtils.hs | bsd-3-clause | 12,982 | 14 | 15 | 3,709 | 4,476 | 2,695 | 1,781 | 255 | 3 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, MagicHash, UnboxedTuples, NoImplicitPrelude #-}
{-# OPTIONS_GHC -O2 #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Float.ConversionUtils
-- Copyright : (c) Daniel Fischer 2010
--... | alexander-at-github/eta | libraries/base/GHC/Float/ConversionUtils.hs | bsd-3-clause | 2,879 | 0 | 25 | 868 | 747 | 382 | 365 | 53 | 1 |
{-# LANGUAGE ParallelListComp #-}
module Layout.PArr where
blah xs ys = [ (x, y) | x <- xs | y <- ys ]
-- bar = [: 1, 2 .. 3 :]
-- entry point for desugaring a parallel array comprehension
-- parr = [:e | qss:] = <<[:e | qss:]>> () [:():]
{-
ary = let arr1 = toP [1..10]
arr2 = toP [1..10]
f =... | RefactoringTools/HaRe | test/testdata/Layout/PArr.hs | bsd-3-clause | 397 | 1 | 7 | 128 | 51 | 31 | 20 | 4 | 1 |
{-# LANGUAGE RankNTypes, GADTs #-}
module Foo where
g :: (Int, Int) -> Int
{-# NOINLINE g #-}
g (p,q) = p+q
f :: Int -> Int -> Int -> Int
f x p q
= g (let j y = (p,q)
{-# NOINLINE j #-}
in
case x of
2 -> j 3
_ -> j 4)
| ezyang/ghc | testsuite/tests/simplCore/should_compile/T13543.hs | bsd-3-clause | 279 | 0 | 12 | 119 | 117 | 63 | 54 | 12 | 2 |
module HaddockUtils where
import HsSyn
import SrcLoc
import Control.Monad
-- -----------------------------------------------------------------------------
-- Adding documentation to record fields (used in parsing).
addFieldDoc :: LConDeclField a -> Maybe LHsDocString -> LConDeclField a
addFieldDoc (L l fld) doc
... | urbanslug/ghc | compiler/parser/HaddockUtils.hs | bsd-3-clause | 1,011 | 0 | 10 | 179 | 382 | 196 | 186 | 20 | 1 |
{-# LANGUAGE CApiFFI #-}
module M where
import Foreign.C
foreign import capi "math.h value sqrt" f :: CInt -> CInt
| ghc-android/ghc | testsuite/tests/ffi/should_fail/capi_value_function.hs | bsd-3-clause | 120 | 0 | 6 | 25 | 26 | 16 | 10 | 4 | 0 |
module SFML.Window.WindowHandle
(
WindowHandle(..)
)
where
import Foreign.Ptr (Ptr)
newtype WindowHandle = WindowHandle (Ptr WindowHandle)
| SFML-haskell/SFML | src/SFML/Window/WindowHandle.hs | mit | 148 | 0 | 7 | 24 | 40 | 25 | 15 | 5 | 0 |
--------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
import Hakyll
import Data.Monoid
import Data.List (isInfixOf)
import System.FilePath.Posix (takeBaseName,takeDirectory,(</>),splitFileName)
import Text.Pandoc
--------... | fxfactorial/hblog | hblog.hs | mit | 10,465 | 0 | 23 | 2,520 | 1,914 | 929 | 985 | 188 | 2 |
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE TypeFamilies #-}
-----------------------------------------------------------------------------
-- |
-- Description : Bounded, dense, total map implemented as a vector.
-- License : MIT
-- Maintainer : ... | pawel-n/total-maps | src/Data/Total/Array.hs | mit | 4,643 | 0 | 12 | 988 | 1,438 | 771 | 667 | -1 | -1 |
import Parser
data ExprT = Lit Integer
| Add ExprT ExprT
| Mul ExprT ExprT
deriving (Show, Eq)
-- Exercise 1
eval :: ExprT -> Integer
eval (Lit a) = a
eval (Add a b) = (eval a) + (eval b)
eval (Mul a b) = (eval a) * (eval b)
--For example, eval (Mul (Add (Lit 2) (Lit 3)) (Lit 4)) ==... | diminishedprime/.org | reading-list/cis194/HW05.hs | mit | 1,637 | 0 | 11 | 493 | 665 | 341 | 324 | 41 | 2 |
module Data.Map.Utils where
import Data.Map
insertOr :: (Applicative f, Ord k) => k -> v -> (v -> f (Map k v)) -> Map k v -> f (Map k v)
insertOr k v onExisting m =
case insertLookupWithKey noReplace k v m of
(Nothing, m') -> pure m'
(Just existing, _) -> onExisting existing
where noReplace _ _ a... | sardonicpresence/glucose | src/Data/Map/Utils.hs | mit | 326 | 0 | 13 | 86 | 156 | 80 | 76 | 8 | 2 |
module Main where
import System.Environment
import Tests
import Types
import qualified Generic.FV as Generic
import qualified NoUnion.FV as NoUnion
import qualified NoUnionStrictTuple.FV as NoUnionStrictTuple
import qualified NoUnionForce.FV as NoUnionForce
import qualified NoUnionLazy.FV as NoUnionLazy
import qualifi... | niteria/deterministic-fvs | Main.hs | mit | 1,283 | 0 | 14 | 238 | 381 | 220 | 161 | 41 | 5 |
module Game.World.AI.Basic
(
)
where
import Game.World.Common
import Game.World.Objects
import Game.World.Lens
import Control.Monad.RWS
import Control.Lens
import Game.Input.Actions
import Linear
import Debug.Trace
data Reactive = Reactive
type MonsterId = PlayerId
followPlayer1AI :: MonsterId -> RWS (World, WorldD... | mfpi/q-inqu | Game/World/AI/Basic.hs | mit | 1,184 | 6 | 13 | 220 | 564 | 298 | 266 | 32 | 2 |
{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
module Hummingbird ( Hummingbird.Hummingbird (), Hummingbird.VendorSettings (..), runWithVendorSettings ) where
-----------------------... | lpeterse/haskell-hummingbird | src/Hummingbird.hs | mit | 3,179 | 0 | 13 | 746 | 617 | 341 | 276 | 63 | 2 |
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
euler_1 = sum [ i | i <- [1..999], (((mod i 5) == 0) || ((mod i 3) == 0)) ]
euler_2 = sum . filter even $ takeWhile (< 4000000) fibs | StoneCypher/fine_ill_learn_haskell_already | euler.hs | mit | 178 | 0 | 13 | 44 | 119 | 63 | 56 | 3 | 1 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, Rank2Types #-}
module Perl.HV
( readHV
, writeHV
, deleteHV
, deleteHV_
, HashKey (..)
, fetchHV
, globalHV
, peekGlobalHV
-- from Perl.MonadGlue
, G.newHVEmpty
, G.clearHV
, G.peekHV
, G.existsHV
, G.storeHV
) where
import Data.Array.... | CindyLinz/Haskell-Perl | src/Perl/HV.hs | mit | 2,615 | 0 | 13 | 590 | 1,093 | 554 | 539 | 80 | 2 |
import Control.Applicative
import Control.Monad
import Data.List
import Text.Printf
main = do
tests <- readLn
forM_ [1..tests] $ \caseNum -> do
b <- replicateM 4 getLine
_ <- getLine
let check c = any (all (\(i,j) -> good $ b!!i!!j)) ps where
good x = x == c || x == 'T'
ps = [[(i,... | marknsikora/codejam | 2270488/A.hs | mit | 735 | 0 | 23 | 263 | 375 | 196 | 179 | 21 | 1 |
{-# htermination notElem :: Ordering -> [Ordering] -> Bool #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_notElem_7.hs | mit | 63 | 0 | 2 | 10 | 3 | 2 | 1 | 1 | 0 |
module Development.Duplo.Static where
import Control.Applicative ((<$>))
import Control.Lens hiding (Action)
import Control.Monad (filterM, zipWithM_)
import Data.List (nub, transpose)
import Developmen... | pixbi/duplo | src/Development/Duplo/Static.hs | mit | 6,377 | 0 | 13 | 1,854 | 1,257 | 654 | 603 | 96 | 3 |
{-# LANGUAGE PatternSynonyms, TemplateHaskell, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-}
module Physics.TestWorld where
import Control.Monad
import Control.Lens
import EasySDL.Draw
import GHC.Word
import Linear.Epsilon
import Linear.V2
import Physics.Broadphase
import Physics.Constraint
import Ph... | ublubu/shapes-demo | src/Physics/TestWorld.hs | mit | 3,825 | 0 | 15 | 789 | 1,306 | 681 | 625 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iot-topicrule-cloudwatchalarmaction.html
module Stratosphere.ResourceProperties.IoTTopicRuleCloudwatchAlarmAc... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/IoTTopicRuleCloudwatchAlarmAction.hs | mit | 3,557 | 0 | 13 | 332 | 447 | 253 | 194 | 41 | 1 |
module Watcher.Filter (
Filter
, run
, applyFilters
, applyFilter
, customFilter
, noPoints
, excludeFiles
, onlyExtensions
, excludeDirectories
, filtersList
) where
import Watcher.Arquivo
import Help.Command
type Tag = String
newtype Filter = Filter {
value :: (Tag, Ar... | Miguel-Fontes/hs-file-watcher | src/Watcher/Filter.hs | mit | 2,537 | 0 | 18 | 693 | 683 | 378 | 305 | 50 | 1 |
module Development.CSSCSS.Rulesets where
import Data.Text (Text)
import Data.List
type RawDeclaration = (Text, Text)
type RawRuleset = (Text, [RawDeclaration])
data Declaration = Declaration {getProperty :: Text, getValue :: Text}
deriving (Show, Eq, Ord)
data Ruleset = Ruleset {getSelector... | zmoazeni/csscss-haskell | src/Development/CSSCSS/Rulesets.hs | mit | 861 | 0 | 9 | 157 | 275 | 157 | 118 | 19 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : CSVUsers
-- Copyright : (c) Domagoj Begusic
--
-----------------------------------------------------------------------------
module CSVUsers (User(..),
UserIdentifier,
Role... | dbfer/Project | CSVUsers.hs | gpl-2.0 | 2,318 | 0 | 11 | 645 | 628 | 342 | 286 | 45 | 2 |
module Yi.TextCompletion (
-- * Word completion
wordComplete,
wordCompleteString,
resetComplete,
completeWordB,
) where | codemac/yi-editor | tests/data/haskell/4.hs | gpl-2.0 | 159 | 0 | 4 | 52 | 22 | 15 | 7 | 5 | 0 |
module ATP.Intro
( simplify )
where
import Prelude
import ATP.IntroSyn
simplify :: Expr -> Expr
simplify [$expr| $e1 + $e2 |] = simplify1 [$expr| $e1' + $e2' |]
where e1' = simplify e1
e2' = simplify e2
simplify [$expr| $e1 * $e2 |] = simplify1 [$expr| $e1' * $e2' |]
where e1' = simplify e1
... | andre-artus/handbook-of-practical-logic-and-automated-reasoning-haskell | src/ATP/Intro.hs | gpl-3.0 | 718 | 34 | 11 | 181 | 404 | 196 | 208 | -1 | -1 |
main :: IO()
main = do
print "Hello World" | yumerov/haskell-study | learnyouahaskell/01-types-typeclasses/build.hs | gpl-3.0 | 43 | 0 | 7 | 9 | 22 | 10 | 12 | 3 | 1 |
--project euler problem 53
{--
There are exactly ten ways of selecting three from five, 12345:
123, 124, 125, 134, 135, 145, 234, 235, 245, and 345
It is not until n = 23, that a value exceeds one-million: ^(23)C_(10) = 1144066.
How many, not necessarily distinct, values of ^(n)C_(r), for 1 ≤ n ≤ 100, are greater tha... | goalieca/haskelling | 053.hs | gpl-3.0 | 530 | 0 | 11 | 104 | 151 | 81 | 70 | 4 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-androiddeviceprovisioning/gen/Network/Google/Resource/AndroidDeviceProvisioning/Partners/Devices/Unclaim.hs | mpl-2.0 | 5,349 | 0 | 18 | 1,221 | 804 | 467 | 337 | 115 | 1 |
{-# 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/Destroy.hs | mpl-2.0 | 7,661 | 0 | 16 | 1,471 | 793 | 468 | 325 | 127 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
module BlogTest
( blogSpecs
) where
import Prelude
import TestImport
import qualified Data.Map as M
import qualified Text.XML as XML
import qualified Text.HTML.DOM as HTML
import Data.Text.Encoding
blogSpecs :: Spec
blogSpecs = do
let ... | akegalj/snowdrift | tests/BlogTest.hs | agpl-3.0 | 3,552 | 0 | 11 | 1,285 | 171 | 105 | 66 | -1 | -1 |
{-# language ViewPatterns, ScopedTypeVariables #-}
module Base.Application.Music (
startGameBackgroundMusic,
stopGameBackgroundMusic,
pauseGameBackgroundMusic,
) where
import Data.Hashable
import Text.Logging
import Control.Monad.Reader (ask)
import System.FilePath
import System.Directory
import Sys... | nikki-and-the-robots/nikki | src/Base/Application/Music.hs | lgpl-3.0 | 2,018 | 0 | 16 | 428 | 508 | 265 | 243 | 50 | 2 |
module Main where
import DogsRule
import Hello
import System.IO
main :: IO ()
main = do
putStr "Please input your name: "
name <- getLine
sayHello name
dogs
| dmp1ce/Haskell-Programming-Exercises | Chapter 13/hello/exe/Main.hs | unlicense | 167 | 0 | 7 | 38 | 52 | 26 | 26 | 10 | 1 |
{-
Created : 2014 Mar 06 (Thu) 17:12:50 by Harold Carr.
Last Modified : 2014 May 17 (Sat) 14:45:46 by Harold Carr.
-}
{-# LANGUAGE TemplateHaskell #-}
module BitlyClientTHPlayground where
import BitlyClientCommon
import BitlyClientRequests
import BitlyClientTH
{-
cd ~/.sync/.esyn... | haroldcarr/bitly-client | src/BitlyClientTHPlayground.hs | apache-2.0 | 4,355 | 0 | 3 | 1,087 | 20 | 16 | 4 | 5 | 0 |
import Data.List
main = do
l <- getLine
let [i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,i12] = sort $ map read $ words l :: [Int]
j1 = i1 == i2 && i1 == i3 && i1 == i4
j2 = i5 == i6 && i5 == i7 && i5 == i8
j3 = i9 == i10&& i9 == i11&& i9 == i12
re = if j1 && j2 && j3
then "yes"
... | a143753/AOJ | 0346.hs | apache-2.0 | 346 | 0 | 14 | 124 | 186 | 100 | 86 | 11 | 2 |
module Queens where
import CLaSH.Prelude
import Data.Maybe
mem <~ (i,x) = replace i x mem
type Word3 = Unsigned 3
type MbWord3 = Maybe Word3
type Din = Vec 8 (MbWord3)
type Dout = Vec 8 Word3
din :: Din
din = $(v [ Nothing :: Maybe (Unsigned 3), Just 1, Nothing, Nothing, Just 4, Nothing, Just 6, Just 7 ]... | ggreif/clash-compiler | examples/Queens.hs | bsd-2-clause | 814 | 0 | 12 | 287 | 349 | 194 | 155 | -1 | -1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QPen.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:20
Warning : this file is machine generated - do not modi... | uduki/hsQt | Qtc/Gui/QPen.hs | bsd-2-clause | 10,470 | 0 | 16 | 1,958 | 3,831 | 1,975 | 1,856 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Text.Parsec.Prim
-- Copyright : (c) Daan Leijen 1999-2001, (c) Paolo Martini 2007
-- License : BSD-style (see the LICENSE file)
--
-- Maintainer : derek.a.elkins@gmail.com
-- Stability : provisional
-- Por... | kazu-yamamoto/parsec3 | Text/Parsec/Prim.hs | bsd-2-clause | 25,661 | 0 | 20 | 7,718 | 6,135 | 3,198 | 2,937 | -1 | -1 |
{-# OPTIONS_GHC -Wall -fno-warn-hi-shadowing -fno-warn-unused-do-bind -fno-warn-name-shadowing #-}
{-# LANGUAGE GADTs #-}
module Prim
( primitives
, primitiveBindings
) where
import Types
import Control.Monad.Error (throwError)
import IO
import Parser (readAsSyntax)
import Env
import Eval (eval)
import Eq ... | osa1/toylisp | src/Prim.hs | bsd-3-clause | 9,736 | 0 | 13 | 2,513 | 2,191 | 1,197 | 994 | 136 | 2 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
-- | The components of a price. Unlike a 'P.Price', no checking has
-- been performed to ensure that the '_priceFrom' and '_priceTo' are
-- not the same 'Commodity'.
module Penny.Copper.PriceParts where
import Control.L... | massysett/penny | penny/lib/Penny/Copper/PriceParts.hs | bsd-3-clause | 1,096 | 0 | 9 | 199 | 270 | 147 | 123 | 24 | 1 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# OPTIONS_GHC -Wall #-}---Werror #-} as we are not implementing full Num instance
module Data.PossiblyInfinite(PossiblyInfinite(..)) where
data PossiblyInfinite a=Finite a | Infinite deriving(Show)
deriving instance (Eq a)=> Eq (Po... | formrre/soft-heap-haskell | soft-heap/src/Data/PossiblyInfinite.hs | bsd-3-clause | 858 | 0 | 8 | 140 | 315 | 178 | 137 | 19 | 0 |
module Bead.View.Markdown (
markdownToHtml
, serveMarkdown
) where
{- A markdown to HTML conversion. -}
import Control.Monad.IO.Class
import qualified Data.ByteString.Char8 as BS
import Data.Either
import Data.String
import Data.String.Utils (replace)
import S... | andorp/bead | src/Bead/View/Markdown.hs | bsd-3-clause | 1,749 | 0 | 18 | 448 | 370 | 204 | 166 | 41 | 2 |
{-# LANGUAGE CPP #-}
module Nettle.OpenFlow.Switch (
SwitchFeatures (..)
, SwitchID
, SwitchCapability (..)
, maxNumberPorts
, QueueConfigRequest (..)
, QueueConfigReply (..)
, QueueConfig (..)
, QueueLength
, QueueProperty (..)
, QueueRate (..)
) where
import Data.Word
import Data.Generics
imp... | frenetic-lang/nettle-openflow | src/Nettle/OpenFlow/Switch.hs | bsd-3-clause | 2,571 | 0 | 9 | 891 | 367 | 231 | 136 | 47 | 1 |
{-# LANGUAGE Rank2Types #-}
module Toy.Util.Parsable
( Parser
, Parsable (..)
, parseData
, parseDataWith
) where
import Data.Proxy (Proxy (..))
import Data.Text (Text)
import Text.Megaparsec (Dec, Parsec, parse, parseErrorPretty)
import Universum... | Martoon-00/toy-compiler | src/Toy/Util/Parsable.hs | bsd-3-clause | 705 | 0 | 9 | 186 | 214 | 117 | 97 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses #-}
-- | Pseudo-metric spaces.
module Math.VectorSpaces.PseudoMetric where
import Math.Misc.PlusInfinity
import qualified Math.Algebra.AbelianMonoid as AbM
class (Eq a, AbM.AbelianAdditiveMonoid b, Ord b) => PseudoMetric a b where
distance :: a -> a -> PlusInfinity b
| michiexile/hplex | pershom/src/Math/VectorSpaces/PseudoMetric.hs | bsd-3-clause | 310 | 0 | 9 | 45 | 74 | 43 | 31 | 6 | 0 |
module GHostCPU where
import Data.Bits
import Data.Array.IArray
import Data.Array.IO
import Data.IORef
import Data.Word
-- 'A' to 'H' or 'P' for PC
type Reg = Char
data Arg
= ArgPC
| ArgReg {-# UNPACK #-} !Reg
| ArgInd {-# UNPACK #-} !Reg
| ArgConst {-# UNPACK #-} !Word8
| ArgLoc {-# UNPACK #-} !Word8
de... | msakai/icfpc2014 | GHostCPU.hs | bsd-3-clause | 12,022 | 0 | 14 | 3,315 | 4,698 | 2,399 | 2,299 | 266 | 15 |
{-|
Module : Werewolf.Command.Ping
Description : Handler for the ping subcommand.
Copyright : (c) Henry J. Wylde, 2016
License : BSD3
Maintainer : public@hjwylde.com
Handler for the ping subcommand.
-}
module Werewolf.Command.Ping (
-- * Handle
handle,
) where
import Control.Monad.Except
import ... | hjwylde/werewolf | app/Werewolf/Command/Ping.hs | bsd-3-clause | 1,042 | 0 | 12 | 212 | 235 | 127 | 108 | 21 | 2 |
{-# LANGUAGE FlexibleContexts #-}
module Parse (parseFile, ParseError) where
import AST
import qualified Text.Parsec as Parsec hiding (ParseError)
import Text.Parsec (ParseError, (<?>), (<|>))
import Text.Parsec.String (parseFromFile)
spaceChar :: Parsec.Parsec String () Char
spaceChar = Parsec.char ' ' <?> "space"... | EarthCitizen/baskell | src/Parse.hs | bsd-3-clause | 2,477 | 0 | 12 | 438 | 785 | 388 | 397 | 69 | 2 |
{-# LANGUAGE DeriveDataTypeable, FlexibleContexts, KindSignatures,
RankNTypes, TypeSynonymInstances #-}
module Bark.Buffer (
-- * Exported Types
Buffer(..)
, Unbounded
, Overflow
-- * Constructors
, newUnbounded
, newOverflow
-- * Conduits
, sourceBuffer
, sinkBuffer
... | brendanhay/amqp-bark | bark/src/Bark/Buffer.hs | bsd-3-clause | 2,380 | 0 | 14 | 751 | 707 | 365 | 342 | 67 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.Haskell.TH.Desugar.OMap
-- Copyright : (C) 2016-2018 Daniel Wagner, 2019 Ryan Scott
-- License : BSD-style (see LICENSE)
-- Maintainer : Ryan Scott
-- Stability ... | goldfirere/th-desugar | Language/Haskell/TH/Desugar/OMap/Strict.hs | bsd-3-clause | 4,217 | 0 | 10 | 912 | 1,621 | 875 | 746 | 60 | 1 |
-- | Module for RaskellDownload providing a collection of PathApis
module RaskellDownload.PathApis where
import RaskellDownload.Internal(PathApi(..), intercalate)
import Data.Maybe (fromMaybe)
-- | Path API for github server using the github API v3 (<https://developer.github.com/v3/>)
githubApiV3 = PathApi{ rawUrl = ... | jonathankochems/raskell-git-download | src/RaskellDownload/PathApis.hs | bsd-3-clause | 1,695 | 1 | 20 | 732 | 352 | 188 | 164 | 18 | 1 |
{-# LANGUAGE RecordWildCards #-}
module LibBladeRF.Pipes where
import Control.Monad
import Foreign.C.Types
import Foreign.ForeignPtr
import Data.ByteString hiding (putStrLn)
import Data.ByteString.Internal
import qualified Data.Vector.Storable as VS
import Control.Monad.Trans.Either
import Data.Either.Combinators
imp... | adamwalker/bladerf-pipes | LibBladeRF/Pipes.hs | bsd-3-clause | 4,104 | 0 | 16 | 1,005 | 1,129 | 559 | 570 | 103 | 2 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-- | This module provides all core data types that represent entities needed
-- for communication with an Inf... | factisresearch/influx | src/Database/Influx/Types/Core.hs | bsd-3-clause | 10,592 | 0 | 12 | 2,378 | 1,410 | 846 | 564 | 250 | 1 |
{-
Copyright 2016,2017 Markus Ongyerth
This file is part of Monky.
Monky 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 la... | Ongy/monky | Monky/Examples/Utility.hs | lgpl-3.0 | 3,547 | 0 | 12 | 815 | 1,042 | 529 | 513 | 50 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
import System.Environment
import Control.Monad
import Control.Applicative
import Control.Distributed.Process
import Control.Distributed.Process.Node
import Network.Transport.TCP (createTransport, defaultTCPParameters)
import Data.Binary
import qualified Data.ByteString.Lazy as BSL
im... | qnikst/distributed-process | benchmarks/Throughput.hs | bsd-3-clause | 1,863 | 0 | 16 | 436 | 737 | 371 | 366 | 57 | 2 |
{-# LANGUAGE Haskell2010 #-}
{-# LINE 1 "Network/HPACK/HeaderBlock/Integer.hs" #-}
{-# LANGUAGE BangPatterns, OverloadedStrings, CPP #-}
module Network.HPACK.HeaderBlock.Integer (
encode
, encodeInteger
, decode
, decodeInteger
) where
imp... | phischu/fragnix | tests/packages/scotty/Network.HPACK.HeaderBlock.Integer.hs | bsd-3-clause | 2,827 | 0 | 16 | 849 | 701 | 364 | 337 | 48 | 2 |
{-# LANGUAGE NamedFieldPuns, RecordWildCards, CPP, OverloadedStrings #-}
-- |
-- Module: Network.Riak.Request
-- Copyright: (c) 2011 MailRank, Inc.
-- License: Apache
-- Maintainer: Mark Hibberd <mark@hibberd.id.au>, Nathan Hunter <nhunter@janrain.com>
-- Stability: experimental
-- Portability: portable
... | k-bx/riak-haskell-client | src/Network/Riak/Response.hs | apache-2.0 | 3,405 | 0 | 11 | 584 | 694 | 422 | 272 | 65 | 1 |
{-| Module abstracting the peer map implementation.
This is abstracted separately since the speed of peermap updates can
be a significant part of the total runtime, and as such changing the
implementation should be easy in case it's needed.
-}
{-
Copyright (C) 2009, 2011 Google Inc.
All rights reserved.
Redistribu... | leshchevds/ganeti | src/Ganeti/HTools/PeerMap.hs | bsd-2-clause | 3,598 | 0 | 10 | 777 | 566 | 321 | 245 | 46 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Database.Persist.Zookeeper.Binary(
toValue
, fromValue
) where
import Control.Arrow((***))
import Data.Fixed
import Data.Time
import Data.Int (Int64)
import Data.Word (Word8)
import Control.Monad (liftM, liftM3)
import Data.Binary (Binary(..), getWord8, Get)
import qualified... | gbwey/persistent | persistent-zookeeper/Database/Persist/Zookeeper/Binary.hs | mit | 5,698 | 0 | 21 | 1,654 | 1,731 | 891 | 840 | 121 | 1 |
module T8514 where
type T a = (a, Maybe)
| ghc-android/ghc | testsuite/tests/typecheck/should_fail/T8514.hs | bsd-3-clause | 42 | 0 | 5 | 10 | 17 | 12 | 5 | 2 | 0 |
module Language.F2 (
exec, execPrelude, preludeEnv, version,
module Language.F2.DataType) where
import Language.F2.DataType
import Language.F2.Parser
import Language.F2.TypeInterface
import Language.F2.Eval
import Language.F2.Util
import Control.Applicative
import Control.Monad.Error
version = "0.1.3.4 20130718"... | kagamilove0707/F2 | src/Language/F2.hs | mit | 3,449 | 0 | 20 | 1,025 | 1,533 | 842 | 691 | 85 | 4 |
import Macros
import Recipes
target = tdee + (0.10 * tdee)
intake = [
Meal "Breakfast" 1 [sweetPotatoBurrito],
Meal "Lunch" 1 [lunchBurrito],
Meal "Pre-workout Shake" 1
[
(Ingredient "Rice Milk" 2.5 23 1 (Unit 1 "Cup")),
(Ingredient "Whey+ Protein Powder" 0 1 22 (Unit 1 "Scoop")),
(Ingredient... | ladinu/macros | bulk.hs | mit | 1,078 | 0 | 12 | 249 | 345 | 184 | 161 | 26 | 1 |
{-|
Module : Test
Description : Defines the Test datatype.
Copyright : (c) Christopher Wells, 2016
License : MIT
Maintainer : cwellsny@nycap.rr.com
-}
module Test.SystemTest.Test where
import Control.Monad (mzero)
import Data.Aeson
import Data.Text
import System.IO (hGetContents)
import System.Process (Cre... | ExcaliburZero/system-test-haskell | src/Test/SystemTest/Test.hs | mit | 3,040 | 0 | 14 | 615 | 477 | 257 | 220 | 30 | 2 |
{-|
Module : Bang.Experimental.SequentialDo
Description : Experimental module for sequential music composition with do-notation
Copyright : (c) Benjamin Kovach, 2014
License : MIT
Maintainer : bkovach13@gmail.com
Stability : experimental
Portability : Mac OSX
An experimental alternative to the base `Bang... | 5outh/Bang | src/Bang/Experimental/SequentialDo.hs | mit | 701 | 0 | 7 | 141 | 66 | 45 | 21 | 9 | 1 |
import Unsafe.Coerce (unsafeCoerce)
c g = \n -> if n == 0 then 1 else n * g (n - 1)
y f = (\x -> f (unsafeCoerce x x)) (\x -> f (unsafeCoerce x x))
fix f = f (fix f)
main =
putStr "y c 5 = " >>
putStrLn (show (y c 5)) >>
putStr "fix c 5 = " >>
putStrLn (show (fix c 5))
| harryxp/haskell-things | misc/ycomb.hs | mit | 283 | 0 | 12 | 82 | 173 | 87 | 86 | 9 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
module Handler.Blog
( getBlogHomeR
, getBlogPostR
, getBlogFeedR
) where
import Data.WebsiteContent
import Import
import Yesod.AtomFeed (atomLink)
import RIO.Time (getCurrentTime)
getAddPreview :: Handler (Route A... | fpco/stackage-server | src/Handler/Blog.hs | mit | 2,448 | 0 | 15 | 692 | 641 | 328 | 313 | 63 | 2 |
import Test.HUnit
import Q27
test1 = TestCase (assertEqual "group [] [1,2,3] should be [[]] ." ([[]] ) (group [] [1,2,3]))
test2 = TestCase (assertEqual "group [1] [1,2,3] should be [[[1]],[[2]],[[3]]] ." ([[[1]],[[2]],[[3]]] ... | cshung/MiscLab | Haskell99/q27.test.hs | mit | 570 | 0 | 11 | 165 | 241 | 144 | 97 | 6 | 1 |
module Cards.SOI where
import Action
import Cards.Common
import CardSelector
import Control.Lens
import Control.Monad.State
import Data.List
import Debug.Trace
import Mana
import State.Operations hiding (card)
import State.Types
cards :: [Card]
cards = [
makeCard $ do
cardName .= "Always Watchin... | mplamann/magic-spieler | src/Cards/SOI.hs | mit | 2,177 | 2 | 16 | 854 | 472 | 255 | 217 | 48 | 1 |
main = do
print ( sum ( filter (\x -> mod x 3 == 0 || mod x 5 == 0) [1..999] ) )
| ddeeff/sandbox | haskell/eular/1.hs | mit | 85 | 1 | 17 | 28 | 64 | 30 | 34 | 2 | 1 |
module Data.Base32String ( Base32String
, b32String
, b32String'
, fromBinary
, toBinary
, fromBytes
, toBytes
, toText
... | solatis/haskell-base32string | src/Data/Base32String.hs | mit | 6,145 | 0 | 11 | 1,762 | 1,399 | 753 | 646 | 113 | 2 |
{-# htermination fromDouble :: Fractional a => Double -> a #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_fromDouble_1.hs | mit | 63 | 0 | 2 | 11 | 3 | 2 | 1 | 1 | 0 |
module Hasql.Private.Commands
(
Commands,
asBytes,
setEncodersToUTF8,
setMinClientMessagesToWarning,
)
where
import Hasql.Private.Prelude
import qualified Data.ByteString as B
import qualified Data.ByteString.Builder as BB
import qualified Data.ByteString.Lazy as BL
newtype Commands =
Commands (DList BB.Bu... | nikita-volkov/hasql | library/Hasql/Private/Commands.hs | mit | 720 | 0 | 10 | 100 | 170 | 100 | 70 | 22 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE StandaloneDeriving #-}
module Example where
import Language.Haskell.TH
import Extra.Field.Optics
import Extra.Field.Optics.TH
import Extra.Field.Optics.Internal
data A = A1 | A2
data B = B
data P = P { -- Product
p1 :: A,
p2 :: B
}
data S -- Sum
= S1 { s1 :: A }
... | tempname11/field-optics | src/Example.hs | mit | 680 | 0 | 8 | 166 | 234 | 136 | 98 | 32 | 1 |
-- Main.hs
--
-- Triggs, Gabriel
-- CS 3515
-- 2014-5-1
-- Conatains run function and tests of complete program.
import Lexer
import Parser
import Interpreter
import Tests
import Types
main :: IO ()
main = do
testInterpreter
testParser
testLexer
testWhole
run :: String -> Store -> Store
run = interpret . mai... | gabrieltriggs/interpreter | Main.hs | mit | 1,662 | 0 | 13 | 422 | 558 | 263 | 295 | 43 | 1 |
module SplitOn
( splitOn
) where
splitOn :: Foldable t => Char -> t Char -> [[Char]]
splitOn t l =
foldr
(\x (n:ns) ->
if (x == t)
then ("" : n : ns)
else (x : n) : ns)
[""]
l
| mortum5/programming | haskell/ITMO-Course/hw1/src/SplitOn.hs | mit | 260 | 0 | 11 | 127 | 112 | 62 | 50 | 11 | 2 |
import Sound.Alsa
import Control.Concurrent
import System.Environment
import System.Exit
import System.IO
bufSize :: Int
bufSize = 4096
soundFormat :: SoundFmt
soundFormat = SoundFmt {
sampleFmt = SampleFmtLinear16BitSignedLE,
sampleFreq = 8000,
... | yav/alsa-haskell | examples/duplex.hs | mit | 1,175 | 0 | 12 | 400 | 307 | 151 | 156 | 35 | 2 |
module DataTypes where
import Data.Vector (Vector)
import Stats
data ColumnType = StringCol | DoubleCol
type StringOrDouble = Either String Double
type Row = Vector (Maybe StringOrDouble)
type Header = Vector ColumnType
| ublubu/streamstats | src/DataTypes.hs | mit | 222 | 0 | 7 | 33 | 62 | 36 | 26 | 7 | 0 |
-- | Server setting
module BackEnd.Settings
( basepath
, port
, monitorpath
, jsonpath
, monitoronly ) where
import Prelude
import System.FilePath
import BackEnd.Util
basepath :: IO String
basepath = readSetting "basepath"
port :: IO Int
port = readSettingInt "port"
monitorpath :: IO String
monitorpath =... | cosmo0920/FileDeliverServer | src/BackEnd/Settings.hs | mit | 543 | 0 | 9 | 96 | 147 | 78 | 69 | 22 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Transient.Logged
-- Copyright :
-- License : GPL-3
--
-- Maintainer : agocorona@gmail.com
-- Stability :
-- Portability :
--
-- |
--
-----------------------------------------------------------------------------... | geraldus/transient | src/Transient/Logged.hs | mit | 6,529 | 0 | 25 | 1,923 | 1,357 | 724 | 633 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ScopedTypeVariables#-}
{-# LANGUAGE TemplateHaskell #-}
module Yesod.Devel where
import Yesod.Devel.PortManager
import Yesod.Devel.ReverseProxy
import Yesod.Devel.Process
import Yesod.Devel.Builder
import Yesod.Devel.Runner
import Yeso... | snoyberg/yesod-devel-beta | Yesod/Devel.hs | mit | 1,107 | 0 | 10 | 200 | 252 | 132 | 120 | 31 | 1 |
module HJS.Parser.Lexer where
import Data.Char
import Data.Set
import Data.List
import Text.ParserCombinators.Parsec
import Text.ParserCombinators.Parsec.Pos
import qualified Text.ParserCombinators.Parsec.Token as P
import Text.ParserCombinators.Parsec.Language (javaStyle)
import HJS.Parser.Utils
jav... | nbrunt/JSHOP | res/hjs-0.2.1/src/HJS/Parser/Lexer.hs | mit | 5,840 | 34 | 18 | 1,838 | 2,277 | 1,243 | 1,034 | 105 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html
module Stratosphere.Resources.KinesisAnalyticsApplication where
import Strat... | frontrowed/stratosphere | library-gen/Stratosphere/Resources/KinesisAnalyticsApplication.hs | mit | 3,612 | 0 | 15 | 351 | 464 | 267 | 197 | 41 | 1 |
module Calico.ByteString
( ByteString.ByteString
, ByteStringL
) where
import Prelude ()
import qualified Data.ByteString as ByteString
import qualified Data.ByteString.Lazy as ByteStringL
-- | Lazy 'ByteStringL.ByteString'.
type ByteStringL = ByteStringL.ByteString
| Rufflewind/calico-hs | Calico/ByteString.hs | mit | 274 | 0 | 5 | 36 | 48 | 33 | 15 | 7 | 0 |
{-# LANGUAGE CPP #-}
module Darcs.Patch.Witnesses.Show
( ShowDict(..)
, showD
, showListD
, showsPrecD
, Show1(..)
, Show2(..)
, show1
, showsPrec1
, show2
, showsPrec2
, showOp2
, appPrec
) where
import Darcs.Util.Show ( appPrec )
data ShowDict a where
ShowDic... | DavidAlphaFox/darcs | src/Darcs/Patch/Witnesses/Show.hs | gpl-2.0 | 1,474 | 0 | 11 | 377 | 558 | 292 | 266 | -1 | -1 |
module Main where
import Minitel.Type.MNatural
a :: MNat
a = (232)
main = do
print a
| Zigazou/HaMinitel | test/testMNat.hs | gpl-3.0 | 92 | 0 | 7 | 23 | 34 | 20 | 14 | 6 | 1 |
{-# OPTIONS_GHC -XNoMonomorphismRestriction #-}
module Sound.Tidal.Strategies where
import Data.Ratio
import Control.Applicative
import qualified Data.Map as Map
import Data.Maybe
import Sound.Tidal.Dirt
import Sound.Tidal.Pattern
import Sound.Tidal.Stream
import Sound.Tidal.Time
import Sound.Tidal.Utils
import qual... | lennart/Tidal | Sound/Tidal/Strategies.hs | gpl-3.0 | 5,294 | 0 | 21 | 1,637 | 1,676 | 902 | 774 | 53 | 1 |
-- Module : Data.SemVer
-- Copyright : (c) 2014-2015 Brendan Hay <brendan.g.hay@gmail.com>
-- 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
-- you can obtain ... | brendanhay/semver | src/Data/SemVer.hs | mpl-2.0 | 8,738 | 0 | 10 | 1,905 | 1,275 | 758 | 517 | 124 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.