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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
class P a where
foo :: a
instance P () where
foo = ()
data (P a, Q a) => X a = B [a]
a = B[()]
(a,b) = B[()]
[C a b, A (b,B c), c,b] = B[()]
f x y = x + y
x + y = x * y
(x+y) = 4
| forste/haReFork | tools/base/tests/pTest1.hs | bsd-3-clause | 195 | 1 | 8 | 73 | 180 | 94 | 86 | -1 | -1 |
module ListOrgRepos where
import qualified Github.Repos as Github
import Data.List
import Data.Maybe
main = do
possibleRepos <- Github.organizationRepos "thoughtbot"
case possibleRepos of
(Left error) -> putStrLn $ "Error: " ++ (show error)
(Right repos) -> putStrLn $ intercalate "\n\n" $ map forma... | mavenraven/github | samples/Repos/ListOrgRepos.hs | bsd-3-clause | 886 | 0 | 22 | 170 | 295 | 149 | 146 | 21 | 2 |
{-# LANGUAGE CPP, RankNTypes #-}
{-# OPTIONS_GHC -funbox-strict-fields #-}
-- -----------------------------------------------------------------------------
--
-- (c) The University of Glasgow, 2010
--
-- The Session type and related functionality
--
-- -------------------------------------------------------------------... | urbanslug/ghc | compiler/main/GhcMonad.hs | bsd-3-clause | 7,086 | 0 | 18 | 1,651 | 1,729 | 912 | 817 | 106 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-
Copyright (C) 2008-2015 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)... | mindriot101/pandoc | src/Text/Pandoc/Writers/ODT.hs | gpl-2.0 | 8,274 | 0 | 21 | 2,414 | 1,778 | 926 | 852 | 138 | 6 |
-- !!! THIS TEST IS FOR TYPE SYNONYMS AND FACTORISATION IN THEIR PRESENCE.
module Test where
data M a = A | B a (M a)
data L a = N | C a (Syn a)
type Syn b = L b
idL :: L (Syn c) -> L (Syn c)
idL N = N
idL (C x l) = C x (idL l)
idM:: M (L (Syn x)) -> M (L (Syn x))
idM A = A
idM (B x l) = B (idL x) (idM ... | ezyang/ghc | testsuite/tests/stranal/should_compile/syn.hs | bsd-3-clause | 325 | 0 | 10 | 106 | 199 | 103 | 96 | 10 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Webbing.Database (Database, postgresql, sqlite) where
import Control.Monad.Logger (NoLoggingT, runNoLoggingT)
import Control.Monad.Trans.Resource (runResourceT, ResourceT)
import Data.ByteString (ByteString)
import Data.Monoid ((<>))
import Data.Text (pack)
import Data.Text.... | ejconlon/webbing | src/Webbing/Database.hs | mit | 1,073 | 0 | 16 | 146 | 340 | 190 | 150 | 23 | 1 |
{-# LANGUAGE BangPatterns, DataKinds, DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Hadoop.Protos.ClientNamenodeProtocolProtos.GetCurrentEditLogTxidRequestProto (GetCurrentEditLogTxidRequestProto(..)) where
import Prelude ((+), (/))
import qualified... | alexbiehl/hoop | hadoop-protos/src/Hadoop/Protos/ClientNamenodeProtocolProtos/GetCurrentEditLogTxidRequestProto.hs | mit | 3,137 | 1 | 16 | 543 | 554 | 291 | 263 | 53 | 0 |
{-# htermination group :: (Eq a, Eq k) => [(a, k)] -> [[(a, k)]] #-}
import List
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/List_group_12.hs | mit | 81 | 0 | 3 | 17 | 5 | 3 | 2 | 1 | 0 |
import System.IO
import System.Environment
import Data.List
import Data.List.Split
import Data.Bits
import Data.Function
import Data.Time.Clock.POSIX
import Data.Time.Format
import Data.Time
import System.Posix.Files
import System.Posix.Directory
import System.Locale
main = do
args <- getArgs
let f = getFlags ... | Liniarc/rshell | src/ls.hs | mit | 3,941 | 0 | 16 | 1,147 | 1,583 | 768 | 815 | 119 | 10 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-... | nshepperd/funn | AI/Funn/CL/Layers/Misc.hs | mit | 4,285 | 0 | 25 | 1,220 | 1,582 | 869 | 713 | 100 | 1 |
module Main where
main:: IO ()
main = do
check
putStrLn $ show "Hello??"
checkNum :: Num a => [a] -> Int -> Bool
checkNum [] _ = False
checkNum xs limit = let x = length $ filter (\ x -> x >= 0) xs in x > limit | funfunStudy/algorithm | haskell/src/main/haskell/angryProfessor/Main.hs | mit | 216 | 0 | 13 | 55 | 113 | 57 | 56 | 8 | 1 |
{-# LANGUAGE DeriveGeneric #-}
module GitIssues.Types
where
import Data.Aeson (FromJSON, ToJSON, decode, encode)
import Data.Aeson.Encode.Pretty
import qualified Data.ByteString.Lazy as ByteStringL
import GHC.Generics (Generic)
import System.Direc... | yamadapc/git-issues | src/GitIssues/Types.hs | mit | 2,022 | 0 | 12 | 603 | 455 | 244 | 211 | 47 | 2 |
module Main where
import System.Exit
import EndOfCentralDirectoryRecord
import LocalFileHeader
import Util
import qualified Data.Vector.Unboxed as Vec
main = do
print $ intToBytes (256*256+2) 4
print $ bytesToInt $ Vec.fromList [2,0,1,0]
exitFailure
| kaisellgren/zip.hs | src/Main.hs | mit | 264 | 0 | 11 | 45 | 86 | 49 | 37 | 10 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Helper (
module Test.Hspec
, module Control.Applicative
, module Network.HTTP.Types
, Req (..)
, withHttpServer
) where
import Test.Hspec
import Control.Applicative
import Control.Exception
import Control.Concurrent
import Da... | sol/rest-client | test/Helper.hs | mit | 1,705 | 0 | 14 | 403 | 514 | 270 | 244 | 47 | 1 |
{-|
Module : CodeGen.LLVM.Prep
Description : Map a module to a syntax more amenable to LLVM translation.
Copyright : (c) Michael Lopez, 2017
License : MIT
Maintainer : m-lopez (github)
Stability : unstable
Portability : non-portable
LLVM IR is a simple language containing functions, declarations, and
sim... | m-lopez/jack | src/CodeGen/LLVM/Prep.hs | mit | 5,917 | 0 | 14 | 1,410 | 1,835 | 922 | 913 | 117 | 12 |
module BadMonad where
import Test.QuickCheck
import Test.QuickCheck.Checkers
import Test.QuickCheck.Classes
data CountMe a =
CountMe Integer a
deriving (Eq, Show)
instance Functor CountMe where
fmap f (CountMe i a) = CountMe i (f a)
instance Applicative CountMe where
pure = CountMe 0
(<*>) (CountMe n f) (... | andrewMacmurray/haskell-book-solutions | src/ch18/BadMonad.hs | mit | 820 | 0 | 11 | 178 | 339 | 174 | 165 | 27 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module: Network.SIP.Type.Message
-- Description: Core type of SIP parser.
-- Copyright: Copyright (c) 2015-2016 Jan Sipr
-- License: ... | Siprj/ragnarok | src/Network/SIP/Type/Message.hs | mit | 1,311 | 0 | 9 | 267 | 267 | 169 | 98 | 31 | 0 |
{-|
Module : Database.Orville.PostgreSQL.Internal.RelationalMap
Copyright : Flipstone Technology Partners 2016-2018
License : MIT
-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RecordWildCards #-}
module Database.Orville.PostgreSQL.Internal.RelationalMap
( mkTableDefinition
, TablePa... | flipstone/orville | orville-postgresql/src/Database/Orville/PostgreSQL/Internal/RelationalMap.hs | mit | 8,768 | 0 | 16 | 1,963 | 2,179 | 1,123 | 1,056 | 149 | 10 |
{-# LANGUAGE FlexibleInstances #-}
module JavaScript.Cocos2d.Types where
import Data.Time
import qualified Data.Aeson as A
import qualified Data.JSString as JS
import qualified Data.Text as T
import Data.Word
import Data.Colour as C
import Data.Colour.SRGB
import Diagrams
import GHCJS.Types
import GHCJS.Marshal
import... | lynnard/ghcjs-cocos2d | JavaScript/Cocos2d/Types.hs | mit | 3,085 | 24 | 13 | 683 | 998 | 511 | 487 | 63 | 1 |
-- | This module provides a function for converting a full URL into an IP address.
module YesWeScan.IpAddress (ipAddress) where
import YesWeScan.DomainName (domainName)
import Data.IP (IP(IPv4))
import System.Process (readProcess)
-- | Return the `IP` address associated with a URL.
ipAddress :: String -> IO IP
ipAddr... | kmein/yes-we-scan | YesWeScan/IpAddress.hs | mit | 459 | 0 | 9 | 83 | 113 | 63 | 50 | 9 | 1 |
prepend :: [a]->a->[a]
prepend xs a = a:xs
revList xs = foldl prepend [] xs
main=print(revList [2,3,4,2,1,8])
| manuchandel/Academics | Principles-Of-Programming-Languages/revListFoldl.hs | mit | 112 | 2 | 8 | 19 | 85 | 46 | 39 | 4 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Concurrent (forkIO, threadDelay)
import Control.Concurrent.MVar
import Control.Exception (catch)
import Control.Monad
import Data.Unique
import System.IO
import Control.Lens
import qualified Data.ByteString.Char8 ... | dmalikov/loh | src/Loh/Server.hs | mit | 2,111 | 0 | 22 | 511 | 758 | 388 | 370 | 62 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Text.LambdaPass.Argument.Parser where
import Text.LambdaPass.Types
import Text.LambdaPass.Config
import Control.Monad (join)
import qualified Data.Text as T
import qualified Data.Text.IO as TIO
import Options.Applicative
import System.Directory
import System.FilePath
import S... | flounders/lambdaPass | src/Text/LambdaPass/Argument/Parser.hs | gpl-2.0 | 7,062 | 0 | 18 | 1,978 | 1,717 | 855 | 862 | 155 | 5 |
import Probability
import Data.Frame
import qualified Data.Map as M
-- When we get polymorphism, maybe we can create an temporary array as a view on xs'
-- I presume that using n directly is more efficient that using [length xs']
orderedSample n dist = do
xs' <- iid n dist
let xs = sort xs'
return $ listArray n ... | bredelings/BAli-Phy | tests/prob_prog/coal_mining/Coal.hs | gpl-2.0 | 1,076 | 0 | 15 | 232 | 444 | 231 | 213 | 22 | 1 |
{-
Copyright (C) 2005 John Goerzen <jgoerzen@complete.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is di... | jgoerzen/gopherbot | gopherbot.hs | gpl-2.0 | 9,396 | 0 | 20 | 3,358 | 1,740 | 871 | 869 | 135 | 4 |
-- Copyright (c) 2015, Sven Thiele <sthiele78@gmail.com>
--
-- -- This file is part of hasple.
--
-- -- hasple is free software: you can redistribute it and/or modify
-- -- it under the terms of the GNU General Public License as published by
-- -- the Free Software Foundation, either version 3 of the License, or
-- -- ... | sthiele/hasple | SPVar.hs | gpl-3.0 | 4,526 | 0 | 12 | 1,087 | 1,354 | 753 | 601 | 87 | 1 |
-- Copyright 2017 John F. Miller
{-# LANGUAGE OverloadedStrings #-}
-- | Functions for working with "Parameters".
module Eval.Parameters
( match, arity, checkArity
, module Parameters
)
where
import Control.Monad.Except
import Data.String
import Data.List
import Parameters
import Object hiding (arity)
import ... | antarestrader/sapphire | Eval/Parameters.hs | gpl-3.0 | 3,200 | 0 | 13 | 779 | 1,234 | 635 | 599 | 55 | 12 |
{-# LANGUAGE GADTs, BangPatterns #-}
-- (C) Copyright Collin J. Doering 2014
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any la... | rekahsoft/HS-FSM | src/NFA.hs | gpl-3.0 | 2,246 | 0 | 13 | 496 | 428 | 249 | 179 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Ch_GeomCut_Opts where
import System.Console.CmdArgs
import Algebra
data Ch_GeomCut_Opts = Ch_GeomCut_Opts
{ input :: FilePath
, output :: FilePath
, shape :: String
, geomparam :: Float
, centre :: String
, verbose :: Bool
}
deriving (Show,Data,Typeable)
ch_G... | sheepforce/Haskell-Tools | ch_geomcut/Ch_GeomCut_Opts.hs | gpl-3.0 | 736 | 0 | 9 | 147 | 181 | 103 | 78 | 20 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-shopping-content/gen/Network/Google/Resource/Content/Products/List.hs | mpl-2.0 | 4,439 | 0 | 15 | 1,049 | 586 | 343 | 243 | 86 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Settings/SendAs/Create.hs | mpl-2.0 | 6,549 | 0 | 20 | 1,456 | 802 | 474 | 328 | 117 | 1 |
-- Hoff -- A gatekeeper for your commits
-- Copyright 2016 Ruud van Asseldonk
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- A copy of the License has been included in the root of the repository.
{-# LANGUAGE OverloadedString... | ruuda/hoff | tests/Spec.hs | apache-2.0 | 27,376 | 0 | 22 | 6,967 | 6,078 | 3,106 | 2,972 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
module Openshift.V1.DeploymentTriggerPolicy where
import GHC.Generics
import Data.Text
import Openshift.V1.Deployment... | minhdoboi/deprecated-openshift-haskell-api | openshift/lib/Openshift/V1/DeploymentTriggerPolicy.hs | apache-2.0 | 839 | 0 | 18 | 113 | 160 | 94 | 66 | 16 | 0 |
module Main where
import Crypto.Classes
import Crypto.Hash.MD4 (MD4)
import qualified Data.ByteString as B
import Data.Word (Word8)
import System.Exit
testHash :: [Word8]
testHash = [191,149,85,7,66,43,39,195,223,16,218,220,213,120,39,11]
main :: IO ()
main = do
testData <- B.readFile "testData.bin"
let testHash... | nullref/haskell-hash-ed2k | Benchmark/StrictMD4.hs | bsd-2-clause | 468 | 0 | 14 | 85 | 185 | 107 | 78 | 17 | 2 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : Script.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:14
Warning : this file is machine generated - do not mo... | keera-studios/hsQt | Qtc/Script.hs | bsd-2-clause | 582 | 0 | 5 | 100 | 44 | 31 | 13 | 7 | 0 |
-- http://www.codewars.com/kata/53da6a7e112bd15cbc000012
module Dictionaries where
import Data.List
import Data.Ord
sortDict :: Ord v => [(k,v)] -> [(k,v)]
sortDict = sortBy (flip $ comparing snd) | Bodigrim/katas | src/haskell/7-Sorting-Dictionaries.hs | bsd-2-clause | 198 | 0 | 8 | 25 | 67 | 39 | 28 | 5 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Numeric.Interval.Exception
( EmptyInterval(..)
, AmbiguousComparison(..)
) where
import Control.Exception
import Data.Data
data EmptyInterval = EmptyInterval
deriving (Eq,Ord,Typeable,Data)
instance Show EmptyInterval where
show EmptyInterval = "empty interval"
i... | ekmett/intervals | src/Numeric/Interval/Exception.hs | bsd-2-clause | 567 | 0 | 6 | 73 | 132 | 73 | 59 | 16 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module : Application.HXournal.Coroutine.Window
-- Copyright : (c) 2011, 2012 Ian-Woo Kim
--
-- License : BSD3
-- Maintainer : Ian-Woo Kim <ianwookim@gmail.com>
-- Stability : experi... | wavewave/hxournal | lib/Application/HXournal/Coroutine/Window.hs | bsd-2-clause | 6,382 | 0 | 23 | 1,833 | 1,475 | 733 | 742 | 138 | 4 |
module Language.Drasil.Code.Imperative.Descriptions (
modDesc, inputParametersDesc, inputConstructorDesc, inputFormatDesc,
derivedValuesDesc, inputConstraintsDesc, constModDesc, outputFormatDesc,
inputClassDesc, constClassDesc, inFmtFuncDesc, inConsFuncDesc, dvFuncDesc,
woFuncDesc
) where
import Utils.Drasi... | JacquesCarette/literate-scientific-software | code/drasil-code/Language/Drasil/Code/Imperative/Descriptions.hs | bsd-2-clause | 5,197 | 0 | 22 | 1,128 | 1,632 | 832 | 800 | 134 | 5 |
module Core.DrawInterval where
import Core.Interval
import Core.CommonData
import Core.Replace
-- base
import Numeric (showFFloat)
-- SVGFonts
import Graphics.SVGFonts
-- diagrams-svg
import Diagrams.Prelude hiding (Duration, interval)
import Diagrams.Backend.SVG
import Diagrams.Core.Points
show2Digit d = showFFl... | wkoiking/fieldequip | src/Core/DrawInterval.hs | bsd-3-clause | 1,767 | 0 | 14 | 422 | 856 | 440 | 416 | 35 | 1 |
module BowlingGame.KataSpec (spec) where
import Test.Hspec
import BowlingGame.Kata(score, roll, startGame, Game)
spec :: Spec
spec =
describe "Bowling Game" $ do
it "processes gutter game" $
score (rollMany 20 0 startGame) `shouldBe` 0
it "processes all ones" $
score (rollMany... | Alex-Diez/haskell-tdd-kata | BowlingGameKata/BowlingGameDay08/test/BowlingGame/KataSpec.hs | bsd-3-clause | 939 | 0 | 15 | 259 | 337 | 169 | 168 | 24 | 1 |
{-# LANGUAGE RankNTypes, PolyKinds, DataKinds, ConstraintKinds, ScopedTypeVariables, KindSignatures, TypeFamilies, MultiParamTypeClasses, UndecidableInstances, UndecidableSuperClasses, GADTs, AllowAmbiguousTypes, FlexibleInstances, NoImplicitPrelude #-}
module Hask.Category.Polynomial
(
-- * Product Category
Pr... | ekmett/hask | src/Hask/Category/Polynomial.hs | bsd-3-clause | 5,102 | 42 | 16 | 1,131 | 1,908 | 1,030 | 878 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
#if !MIN_VERSION_base(4,8,0)
import Control.Applicative ((<$>), (<*>))
#endif
import Data.Attoparsec.Text (parseOnly)
import qualified Data.Text.IO as Text
import Test.Tasty (defaultMain)
import Test.Tasty.HUnit
import qualified Data.GraphQL.P... | timmytofu/graphql-haskell | tests/tasty.hs | bsd-3-clause | 787 | 0 | 11 | 145 | 174 | 105 | 69 | 19 | 1 |
-- | This module provides flags for the problem type.
module Tct.Trs.Data.ProblemKind
(
StartTerms (..)
, isStartTerm
, mapStartTerms
, Strategy (..)
) where
import Data.Monoid
import qualified Data.Set as S
import qualified Data.Rewriting.Term as R
import qualified Tct.Core... | ComputationWithBoundedResources/tct-trs | src/Tct/Trs/Data/ProblemKind.hs | bsd-3-clause | 2,491 | 0 | 12 | 542 | 902 | 482 | 420 | 49 | 3 |
{-# LANGUAGE PackageImports #-}
module Control.Monad.Fix (module M) where
import "base" Control.Monad.Fix as M
| silkapp/base-noprelude | src/Control/Monad/Fix.hs | bsd-3-clause | 116 | 0 | 4 | 18 | 23 | 17 | 6 | 3 | 0 |
{-# LANGUAGE OverloadedStrings #-}
import System.Keeper
import Database.Persist
import Data.Int
import qualified Data.ByteString.Char8 as BS
import Options.Applicative
import System.Posix.Env.ByteString
data Command = CmdCreate
| CmdAdd String String
| CmdClear String
| Cmd... | NicolasDP/keeper | Keeper/KeeperDB.hs | bsd-3-clause | 3,690 | 0 | 18 | 1,041 | 1,070 | 530 | 540 | 82 | 2 |
{-# LANGUAGE OverloadedStrings #-}
-- | Bootstrap layout elements. See
-- <http://getbootstrap.com/2.3.2/scaffolding.html> for more
-- information.
module Blaze.Bootstrap
(
-- * Containers
container
,containerFluid
-- * Rows
,row
,rowFluid
-- * Spans
,span1
,span2
,span3
,span4
,span5
,span6
,span7
... | chrisdone/blaze | src/Blaze/Bootstrap.hs | bsd-3-clause | 1,713 | 0 | 6 | 410 | 493 | 277 | 216 | 53 | 1 |
module Rubik.Key where
class Ord k => Key k where
universe :: [k]
instance Key Bool where
universe = [False,True]
instance (Key a, Key b) => Key (a,b) where
universe = [ (a,b) | a <- universe, b <- universe ]
elems :: Key k => (k -> a) -> [a]
elems f = map f universe
toList :: Key k => (k -> a) -> [(k,a)]
t... | andygill/rubik-solver | src/Rubik/Key.hs | bsd-3-clause | 591 | 0 | 9 | 155 | 338 | 182 | 156 | 16 | 1 |
--
-- EnglishTokenizer.hs
-- Copyright (C) 2017 jragonfyre <jragonfyre@jragonfyre>
--
-- Distributed under terms of the MIT license.
--
module English.Tokenizer where
-- (
-- ) where
import Text.Megaparsec
import Text.Megaparsec.String
import Text.Megaparsec.Char
import qualified Data.List.NonEmpty as NE
import C... | jragonfyre/TRPG | src/English/Tokenizer.hs | bsd-3-clause | 2,636 | 0 | 14 | 539 | 941 | 495 | 446 | -1 | -1 |
module T296 where
import Data.Kind
import Data.Singletons.TH
$(singletons [d|
data MyProxy (a :: Type) = MyProxy
f :: forall a. MyProxy a -> MyProxy a
f MyProxy =
let x = let z :: MyProxy a
z = MyProxy in z
in x
|])
| goldfirere/singletons | singletons-base/tests/compile-and-dump/Singletons/T296.hs | bsd-3-clause | 251 | 0 | 7 | 79 | 29 | 18 | 11 | -1 | -1 |
-- | The Unparse type class and its 'ParseTree' instance, as well as some text manipulation.
module Language.GroteTrap.Unparse (
-- * Class Unparse
Unparse(..),
-- * Text utility functions
merge, over
) where
import Language.GroteTrap.Range
import Language.GroteTrap.ParseTree
-------------------------... | MedeaMelana/GroteTrap | Language/GroteTrap/Unparse.hs | bsd-3-clause | 2,450 | 0 | 11 | 474 | 542 | 297 | 245 | 36 | 2 |
module Network.HTTP.Types.Request
( IsRequest(..)
, requestBodyConsumed
) where
------------------------------------------------------------------------------
import Control.Applicative
------------------------------------------------------------------------------
import qualified Data.ByteString as BS ... | Palmik/wai-sockjs | src/Network/HTTP/Types/Request.hs | bsd-3-clause | 1,137 | 0 | 11 | 175 | 224 | 134 | 90 | 18 | 1 |
{-# LANGUAGE FlexibleContexts #-}
-- | Variation of "Futhark.CodeGen.ImpCode" that contains the notion
-- of a kernel invocation.
module Futhark.CodeGen.ImpCode.Kernels
( Program
, Function
, FunctionT (Function)
, Code
, KernelCode
, HostOp (..)
, KernelOp (..)
, CallKernel (..)
, MapKernel (..)
, ... | mrakgr/futhark | src/Futhark/CodeGen/ImpCode/Kernels.hs | bsd-3-clause | 6,568 | 0 | 23 | 2,078 | 1,732 | 898 | 834 | 155 | 3 |
-- | = Introduction
--
-- <<https://api.travis-ci.org/rzetterberg/orgmode-sql.svg Travis CI status>>
--
-- A library that facilitates import\/export orgmode data into\/out of SQL
-- databases, provide common queries and specialized summaries of the data.
--
-- Supports using MySQL, PostgreSQL or SQLite as storage backe... | rzetterberg/orgmode-sql | lib/Database/OrgMode.hs | bsd-3-clause | 1,681 | 0 | 5 | 316 | 73 | 60 | 13 | 5 | 0 |
{-# LANGUAGE NoImplicitPrelude #-}
{-|
Module: Graphics.Blank.Style
Copyright: (C) 2014-2015, The University of Kansas
License: BSD-style (see the file LICENSE)
Maintainer: Andy Gill
Stability: Beta
Portability: GHC
This module exposes overloaded versions of @blank-canvas@ functions that take a
style or... | ku-fpg/blank-canvas | Graphics/Blank/Style.hs | bsd-3-clause | 23,250 | 0 | 9 | 4,276 | 3,368 | 1,952 | 1,416 | 492 | 1 |
module Main where
import Divisors (isPrime)
import Data.List (inits,tails)
primes = filter isPrime [10..]
isFunnyPrime p = all isPrime $ map read $ filter (/="") $ inits (show p) ++ tails (show p)
main :: IO ()
main = print $ sum $ take 11 $ filter isFunnyPrime [10..]
| stulli/projectEuler | eu37.hs | bsd-3-clause | 273 | 0 | 9 | 53 | 131 | 68 | 63 | 7 | 1 |
-- | Some utility functions for using hxt picklers.
module Text.Xml.Pickle
( toXML
, fromXML
, maybeFromXML
, eitherFromXML
) where
import Control.Monad.Identity
import Control.Category
import Prelude hiding ((.))
import Text.XML.HXT.Core
-- | Convert a value to an XML string.
toXML :: XmlPickler p => p -> ... | silkapp/hxt-pickle-utils | src/Text/Xml/Pickle.hs | bsd-3-clause | 1,302 | 0 | 9 | 261 | 320 | 172 | 148 | 26 | 3 |
{-# LANGUAGE LambdaCase #-}
module Cardano.Wallet.WalletLayer.Kernel.Transactions (
getTransactions
, toTransaction
) where
import Universum
import Control.Monad.Except
import Formatting (build, sformat)
import GHC.TypeLits (symbolVal)
import Pos.Chain.Txp... | input-output-hk/pos-haskell-prototype | wallet/src/Cardano/Wallet/WalletLayer/Kernel/Transactions.hs | mit | 10,953 | 0 | 34 | 3,090 | 2,630 | 1,381 | 1,249 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
-- Module : FuncTorrent.Peer
--
-- Module to handle operations with one peer.
--
-- Peer talks peer protocol with one remote peer and reports the availability of
-- blocks to the control thread via... | bangalore-haskell-user-group/functorrent | src/FuncTorrent/Peer.hs | gpl-3.0 | 9,324 | 0 | 17 | 3,005 | 2,065 | 1,054 | 1,011 | 168 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
-- from https://ocharles.org.uk/blog/guest-posts/2014-12-20-scoped-type-variables.html
import qualified Data.Map as Map
insertMany :: forall k v . Ord k => (v -> v -> v) -> [(k,v)] -> Map.Map k v -> Map.Map k v
insertMany f vs m = foldr f1 m vs
where
f1 :: (k, v) -> Map.Map... | mpickering/ghc-exactprint | tests/examples/ghc710/ScopedTypeVariables.hs | bsd-3-clause | 380 | 0 | 11 | 80 | 156 | 83 | 73 | 6 | 1 |
{-
(c) Bartosz Nitka, Facebook, 2015
UniqDFM: Specialised deterministic finite maps, for things with @Uniques@.
Basically, the things need to be in class @Uniquable@, and we use the
@getUnique@ method to grab their @Uniques@.
This is very similar to @UniqFM@, the major difference being that the order of
folding is n... | pparkkin/eta | compiler/ETA/Utils/UniqDFM.hs | bsd-3-clause | 15,206 | 0 | 13 | 3,391 | 3,677 | 1,931 | 1,746 | 202 | 3 |
-- | module Differential provides functions for finding the derivatives of standard one variable functions
-- functions implemented currently are constant, polynomial, sin, cos, tan, cosec, sec, cot, log, exponential and their compositions.
-- Also, the functions formed by addition, subtraction, product and division of... | ankeshs/numerikell | tmp/Differential.hs | bsd-3-clause | 6,131 | 3 | 15 | 1,515 | 2,871 | 1,481 | 1,390 | 109 | 1 |
{-# LANGUAGE CPP, MagicHash, NondecreasingIndentation, TupleSections #-}
{-# OPTIONS -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
-----------------------------------------------------------------------------
--
-- GHC Interactive User Interface
--
-- (c) The GHC Team 2005-2006
--
------------... | nathyong/microghc-ghc | ghc/InteractiveUI.hs | bsd-3-clause | 127,497 | 1,946 | 101 | 36,887 | 28,383 | 15,086 | 13,297 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Bead.View.Content.SetUserPassword.Page (
setUserPassword
) where
import Data.String (fromString)
import Text.Blaze.Html5 as H hiding (id)
import qualified Bead.Controller.Pages as Pages
import Bead.Controller.UserStories (isStudentOfMine)
i... | andorp/bead | src/Bead/View/Content/SetUserPassword/Page.hs | bsd-3-clause | 1,912 | 0 | 16 | 353 | 424 | 223 | 201 | 38 | 2 |
<?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="tr-TR">
<title>SVN Digger Files</title>
<maps>
<homeID>svndigger</homeID>
<mapref locat... | thc202/zap-extensions | addOns/svndigger/src/main/javahelp/help_tr_TR/helpset_tr_TR.hs | apache-2.0 | 967 | 77 | 66 | 157 | 409 | 207 | 202 | -1 | -1 |
{-# LANGUAGE PartialTypeSignatures #-}
module PartialClassMethodSignature where
class Foo a where
foo :: a -> _
| urbanslug/ghc | testsuite/tests/partial-sigs/should_fail/PartialClassMethodSignature.hs | bsd-3-clause | 116 | 0 | 7 | 20 | 23 | 13 | 10 | 4 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Main where
import SafeLang11_A
import SafeLang11_B
$(mkSimpleClass ''A)
main = do
let b = c :: A
putStrLn $ "I have a value of A :: " ++ show b
| forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/safeHaskell/safeLanguage/SafeLang11.hs | bsd-3-clause | 196 | 0 | 9 | 47 | 54 | 28 | 26 | 8 | 1 |
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Applicative (pure)
import Control.Monad
import Control.Monad.Loops
import Control.Monad.Trans.Maybe
import Data.Bits hiding (rotate)
import Data.IORe... | cocreature/nanovg-hs | example/Example.hs | isc | 20,515 | 25 | 31 | 7,070 | 9,932 | 4,819 | 5,113 | 551 | 5 |
module LilRender.Shader.Library (
GouraudShader, gouraudShader
, PhongShader, phongShader
) where
import LilRender.Color
import qualified LilRender.Color.Named as NC
import LilRender.Math.Geometry
import LilRender.Math.Transform
import LilRender.Math.Vector
impo... | SASinestro/lil-render | src/LilRender/Shader/Library.hs | isc | 3,288 | 0 | 20 | 753 | 988 | 498 | 490 | 57 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Snap.Core
import Snap.Http.Server
import Data.Monoid (mempty)
import qualified Data.ByteString.Char8 as B8
import Data.String.Conversions (convertString)
import Control.Monad (liftM)
import Text.Read (readMaybe)
import System.Environment (getArgs)
import Trace
jsResponse :... | heyLu/tracing-js | TraceServer.hs | mit | 965 | 10 | 12 | 204 | 311 | 146 | 165 | 27 | 1 |
module Rebase.Control.Category
(
module Control.Category
)
where
import Control.Category
| nikita-volkov/rebase | library/Rebase/Control/Category.hs | mit | 92 | 0 | 5 | 12 | 20 | 13 | 7 | 4 | 0 |
------------------------- State
type Variable = String
type State = [(Variable,Integer)]
empty :: State
empty = []
get :: State -> Variable -> Integer
get [] _ = 0
get ((x,n):xs) y | x == y = n
| otherwise = get xs y
set :: Variable -> Integer -> State -> State
set x n s = (x,n) : del x s
... | We220/Haskell_Coursework_1 | coursework_1.hs | mit | 3,981 | 31 | 14 | 1,617 | 1,336 | 665 | 671 | 60 | 2 |
module Rebase.Foreign.ForeignPtr.Safe
(
module Foreign.ForeignPtr.Safe
)
where
import Foreign.ForeignPtr.Safe
| nikita-volkov/rebase | library/Rebase/Foreign/ForeignPtr/Safe.hs | mit | 113 | 0 | 5 | 12 | 23 | 16 | 7 | 4 | 0 |
-- file 1.hs
import Control.Exception (evaluate)
import Test.Hspec
-- Problem 1
-- Find the last element of a list.
last' :: [a] -> a
last' [] = error "Please provide a list with at least one element"
last' [x] = x
last' (_:xs) = last' xs
main :: IO()
main = hspec $
describe "99-exercises.1 = La... | baldore/haskell-99-exercises | 1.hs | mit | 586 | 2 | 13 | 149 | 185 | 91 | 94 | 14 | 1 |
module Utils(
fst',
snd',
span',
extract,
lastN,
race,
isValidIdentifier,
Stack,
top,
pop,
push,
singleton,
updateTop,
while,
(<>>),
getString
)where
import Control.Applicative
import Data.Char
-- Apply a function to the fst element of a pair
fst' :: (a -> b) -> (a, c) -> (b, c)
fst' f (a, b) = (f a, b)
-- Apply a f... | sqd/haskell-C89-interpreter | Utils.hs | mit | 1,681 | 0 | 12 | 408 | 735 | 411 | 324 | 52 | 4 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Utils where
import Control.Monad (when)
import Data.List (isInfixOf)
import qualified System.Directory as D (createDirectoryIfMissing)
import System.Exit (exitFailure)
import Syst... | badi/super-user-spark | src/Utils.hs | mit | 1,346 | 0 | 9 | 325 | 497 | 261 | 236 | 33 | 2 |
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RecordWildCards ... | goens/rand-code-graph | src/Backend/Language/Haskell.hs | mit | 5,116 | 0 | 17 | 1,283 | 1,943 | 967 | 976 | 126 | 7 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Control.Concurrent (forkFinally)
import Control.Concurrent.STM
import Control.Exception (bracketOnError)
import... | kRITZCREEK/psc-ide | server/Main.hs | mit | 5,295 | 0 | 20 | 1,455 | 1,451 | 731 | 720 | 132 | 3 |
--------------------------------------------------------------------------------
-- | String-like data structure utilities
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Web.SocketIO.Types.String (
S.IsString(..)
, IsByteString(..)
, IsLazyByteString(..)
, IsT... | banacorn/socket.io-haskell | Web/SocketIO/Types/String.hs | mit | 6,067 | 0 | 9 | 1,297 | 1,078 | 617 | 461 | 109 | 0 |
{-# LANGUAGE TemplateHaskell, QuasiQuotes, MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances, GeneralizedNewtypeDeriving, OverloadedStrings, FlexibleContexts #-}
module DigitalOcean where
import qualified API
import Control.Applicative
import Control.Lens
import Control.Lens.TH
import Control.Monad.Reade... | iand675/digital-ocean | src/DigitalOcean.hs | mit | 13,738 | 0 | 10 | 1,978 | 3,448 | 1,851 | 1,597 | 324 | 1 |
module Cook.Catalog.Git (
gitClone
) where
import Cook.Recipe
gitClone :: String -> Recipe f ()
gitClone repo = withRecipeName "Git.Clone" $ runProc "git" ["clone", repo]
| jimenezrick/cook.hs | src/Cook/Catalog/Git.hs | mit | 179 | 0 | 7 | 33 | 59 | 32 | 27 | 5 | 1 |
module Magento.Layout.XML (
generateLayout
) where
import Data.Functor ((<$>))
import Data.List (intersect)
import System.FilePath.Posix (makeRelative, pathSeparator)
import System.FilePath.Glob (globDir, compile)
import System.FilePath.Posix (
joinPath,
dropExtension,
splitDirectories)
import Template... | prasmussen/magmod | Magento/Layout/XML.hs | mit | 4,498 | 0 | 14 | 806 | 1,419 | 733 | 686 | 112 | 1 |
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE... | mratkovic/PUH_project | src/Review.hs | mit | 6,971 | 0 | 13 | 1,511 | 1,266 | 669 | 597 | 92 | 1 |
module SMCDEL.Examples.CoinFlip where
import Data.Map.Strict (fromList)
import Data.List ((\\))
import SMCDEL.Language
import SMCDEL.Symbolic.S5 (boolBddOf)
import SMCDEL.Symbolic.K
coinStart :: BelScene
coinStart = (BlS [P 0] law obs, actual) where
law = boolBddOf (PrpF $ P 0)
obs = fromList [ ("a", allsa... | jrclogic/SMCDEL | src/SMCDEL/Examples/CoinFlip.hs | gpl-2.0 | 826 | 0 | 12 | 160 | 345 | 196 | 149 | 23 | 1 |
module Bio.Alignment (module Bio.Alignment,
module Bio.Sequence,
module Bio.Alignment.Matrix,
module Bio.Alignment.Pairwise) where
import Tree
import Data.BitVector
import Parameters
import Foreign.Vector
import Bio.Sequence
import Bio.Alignment.Matrix
... | bredelings/BAli-Phy | haskell/Bio/Alignment.hs | gpl-2.0 | 4,100 | 0 | 13 | 1,036 | 971 | 501 | 470 | -1 | -1 |
--
-- Copyright (c) 2013 Citrix Systems, Inc.
--
-- 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 progra... | OpenXT/manager | xec/DBusArgo.hs | gpl-2.0 | 2,974 | 0 | 17 | 926 | 604 | 320 | 284 | 48 | 5 |
{-# LANGUAGE Arrows #-}
module FRP.Chimera.Agent.Interface
(
AgentId
, AgentData
, DataFilter
, AgentObservable
, Agent
, AgentRandom
, AgentConversationSender
, AgentPureBehaviour
, AgentPureBehaviourReadEnv
, AgentPureBehaviourNoEnv
, AgentDef (..)
, AgentIn (..)
, AgentOut (..)
... | thalerjonathan/phd | coding/libraries/chimera/src/FRP/Chimera/Agent/Interface.hs | gpl-3.0 | 11,141 | 3 | 14 | 3,035 | 3,095 | 1,651 | 1,444 | 270 | 1 |
module ParserTest where
import Test.HUnit
import SubsParser
introAST :: String
introAST = "Right (Prog [VarDecl \"xs\" (Just (Array [Number 0,Number 1,Number 2,Number 3,Number 4,Number 5,Number 6,Number 7,Number 8,Number 9])),VarDecl \"squares\" (Just (Compr (\"x\",Var \"xs\",Nothing) (Call \"*\" [Var \"x\",Var \"x\"... | Rathcke/uni | ap/exam/src/subs/ParserTest.hs | gpl-3.0 | 4,466 | 0 | 10 | 1,199 | 557 | 277 | 280 | 67 | 1 |
module Text.Lox.Readers.Document (constituents, parse) where
import Control.Applicative ((<$>), (<*>), (*>), (<*))
import Text.ParserCombinators.Parsec
import Text.Lox.Parsing
constituents :: Char -> GenParser Char st [Either String String]
constituents sep = many1 (try (plain sep) <|> (loxStatement sep)) <* eof
pl... | knuton/lox | Text/Lox/Readers/Document.hs | gpl-3.0 | 792 | 0 | 14 | 144 | 353 | 191 | 162 | 14 | 1 |
import Control.Exception
import System.IO
main = do
withFile' "girlfriend.txt" ReadMode (\handle -> do
contents <- hGetContents handle
putStr contents)
withFile' :: FilePath -> IOMode -> (Handle -> IO r) -> IO r
withFile' name mode f... | medik/lang-hack | Haskell/LearnYouAHaskell/c09/withFileImpl.hs | gpl-3.0 | 401 | 0 | 13 | 136 | 129 | 64 | 65 | 8 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeGroups/List.hs | mpl-2.0 | 7,042 | 0 | 21 | 1,698 | 1,061 | 609 | 452 | 144 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.Drive
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla Public... | brendanhay/gogol | gogol-drive/gen/Network/Google/Drive.hs | mpl-2.0 | 20,568 | 0 | 49 | 4,601 | 2,611 | 1,859 | 752 | 615 | 0 |
{-# LANGUAGE TypeOperators, TypeFamilies, ScopedTypeVariables #-}
{-# OPTIONS_GHC -Wall #-}
----------------------------------------------------------------------
-- |
-- Module : Shady.Run
-- Copyright : (c) Conal Elliott 2009
-- License : AGPLv3
--
-- Maintainer : conal@conal.net
-- Stability : ex... | conal/shady-render | src/Shady/Run.hs | agpl-3.0 | 2,723 | 0 | 11 | 517 | 699 | 408 | 291 | 36 | 1 |
module GuardDuty where
myAbs :: Integer -> Integer
myAbs x
| x < 0 = (-x)
| otherwise = x
bloodNa :: Integer -> String
bloodNa x
| x < 135 = "too low"
| x > 145 = "too high"
| otherwise = "just right"
avgGrade :: (Fractional a, Ord a) => a -> Char
avgGrade x
| y >= 0.9 = 'A'
| y >= 0.8 =... | thewoolleyman/haskellbook | 07/05/maor/guardDuty.hs | unlicense | 478 | 0 | 8 | 178 | 241 | 116 | 125 | 22 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- !! WARNING: SPOILERS AHEAD !! --
-- CIS 194: Homework 5
module Calc where
import Provided.ExprT
import Provided.Parser
import qualified Provided.StackVM as S
import Data.Composition ( (.:) )
import qual... | nilthehuman/cis194 | Homework5.hs | unlicense | 2,664 | 0 | 10 | 683 | 791 | 450 | 341 | 68 | 1 |
module Units (tests) where
import Test.HUnit
import Test.Framework
import Test.Framework.Providers.HUnit
import Control.Monad.Trans
import Data.Maybe
import Data.Binary
import Data.Binary.Get
import Data.Binary.Put
import qualified Data.ByteString as BS
import Haskoin.Script
import Haskoin.Protocol
import Haskoin.C... | OttoAllmendinger/haskoin-script | testsuite/Units.hs | unlicense | 6,241 | 0 | 10 | 878 | 858 | 433 | 425 | 96 | 1 |
import Graphics.Rendering.OpenGL
import Graphics
import Data.Char
import Material
import System.Environment
import qualified Data.Map as Map
-- Parses the arguments. Not the most elegant of command line options, but
-- it works and I'm lazy.
--
-- args -> ((pitch, yaw, roll), iterations, init string, color map,
-- ... | tkerber/-abandoned-3dlsystem- | 3DLSystem.hs | apache-2.0 | 3,957 | 0 | 14 | 1,165 | 963 | 508 | 455 | 97 | 3 |
module Handler.About where
-- friends
import Foundation
getAboutR :: Handler RepHtml
getAboutR = error "not implemented"
| sseefried/play-space-online | Handler/About.hs | bsd-2-clause | 123 | 0 | 5 | 18 | 26 | 15 | 11 | 4 | 1 |
{-# LANGUAGE ForeignFunctionInterface, EmptyDataDecls #-}
module Foreign.Crypt ( newCipher
, closeCipher
, decrypt
, Cipher
) where
import Data.ByteString (ByteString)
import qualified Data.ByteString as BS
import Foreign
import Fore... | Xandaros/MinecraftCLI | src/Foreign/Crypt.hs | bsd-2-clause | 1,090 | 0 | 11 | 255 | 305 | 166 | 139 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
module Web.Socdiff.LinkedIn.DataSource where
import... | relrod/socdiff | src/Web/Socdiff/LinkedIn/DataSource.hs | bsd-2-clause | 2,462 | 1 | 14 | 497 | 659 | 339 | 320 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.