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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Data.List.CompatSpec (main, spec) where
import Test.Hspec
import Data.List.Compat
data Asymmetric = A | B deriving Show
instance Eq Asymmetric where
A == _ = True
B == _ = False
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "dropWhileEnd" $ do
it "drops the la... | beni55/base-compat | test/Data/List/CompatSpec.hs | mit | 1,585 | 0 | 15 | 398 | 435 | 219 | 216 | 38 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Run
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- Implementation of the 'run' command.
-----------------------------------------------------------------------------
modu... | jwiegley/ghc-release | libraries/Cabal/cabal-install/Distribution/Client/Run.hs | gpl-3.0 | 2,643 | 0 | 16 | 726 | 591 | 327 | 264 | 42 | 6 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-elasticbeanstalk/gen/Network/AWS/ElasticBeanstalk/DescribeEnvironments.hs | mpl-2.0 | 6,784 | 0 | 10 | 1,346 | 859 | 514 | 345 | 95 | 1 |
{-# LANGUAGE TupleSections #-}
{-| Implementation of the Ganeti Query2 functionality.
-}
{-
Copyright (C) 2012, 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions o... | apyrgio/ganeti | src/Ganeti/Query/Query.hs | bsd-2-clause | 18,839 | 0 | 24 | 4,547 | 3,894 | 2,053 | 1,841 | 277 | 4 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
module Aws.ElasticTranscoder.Commands.DeletePipeline
( DeletePipeline(..)
, DeletePipelineResponse(..)
) where
import ... | cdornan/aws-elastic-transcoder | Aws/ElasticTranscoder/Commands/DeletePipeline.hs | bsd-3-clause | 1,642 | 0 | 10 | 495 | 271 | 155 | 116 | 37 | 0 |
module SafePartialFunctions (gotail, gohead) where
{-@ LIQUID "--totality" @-}
import Prelude hiding (fromJust, tail, head)
{-@ fromJust :: {v:Maybe a | (isJust v)} -> a @-}
fromJust :: Maybe a -> a
fromJust (Just a) = a
{-@ tail :: {v:[a] | ((len v) > 0)}-> [a] @-}
tail :: [a] -> [a]
tail (x:xs) = xs
{-@ head :: {... | mightymoose/liquidhaskell | tests/pos/SafePartialFunctions.hs | bsd-3-clause | 572 | 0 | 8 | 152 | 182 | 103 | 79 | 13 | 2 |
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
module T5514 where
class Foo a where
foo :: a -> a
instance (Foo a, Foo b) => Foo (a, b) where
foo = foo' ()
-- foo' :: () -> b -> b
foo' es = const id (unitId es)
unitId :: () -> ()
unitId = id
| ezyang/ghc | testsuite/tests/typecheck/should_compile/T5514.hs | bsd-3-clause | 267 | 0 | 7 | 73 | 100 | 54 | 46 | 9 | 1 |
module Morse where
import Data.Char
import Data.Map (Map)
import Data.Tuple
import qualified Data.Map as Map
codes = [ ('A', ".-")
, ('B', "-...")
, ('C', "-.-.")
, ('D', "-..")
, ('E', ".")
, ('F', "..-.")
, ('G', "--.")
, ('H', "....")
, ('I', "..")
... | bhamrick/puzzlib | Morse.hs | mit | 1,511 | 0 | 10 | 529 | 574 | 348 | 226 | 53 | 2 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
module Nauva.Product.Playground.Shared
( playgroundApp
) where
import Data.Text (Text)
import qualified ... | wereHamster/nauva | product/playground/shared/src/Nauva/Product/Playground/Shared.hs | mit | 8,100 | 0 | 24 | 2,648 | 2,630 | 1,407 | 1,223 | 191 | 5 |
module Main where
import qualified Data.ByteString.Lazy as Bl
xsize = 12
ysize = 12
rs = read . show
cfold = foldr (++) []
fileHead = cfold [[66,77],[rs (length file), 00 , 00 , 00],[00,00],[00,00],[rs ((length fileHead)+(length infoHeader)+(length colorPallet)),00,00,00]]
infoHeader = cfold [[40,00,00,00],[xsize,... | HSU-MilitaryLogisticsClub/Free-Test | src/bmphask/bmp1.hs | mit | 834 | 0 | 13 | 86 | 599 | 373 | 226 | 14 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
module Main
( main
, yohohoScenario
-- , rpcScenario
, transferScenari... | serokell/time-warp | examples/playground/Main.hs | mit | 12,374 | 0 | 21 | 4,659 | 3,199 | 1,636 | 1,563 | -1 | -1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGAnimatedInteger
(js_setBaseVal, setBaseVal, js_getBaseVal, getBaseVal,
js_getAnimVal, getAnimVal, SVGAnimatedInteger,
castToSVGAnimatedInteger, gTypeSVGAnimatedInteger)
where
impor... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGAnimatedInteger.hs | mit | 2,126 | 20 | 8 | 255 | 508 | 308 | 200 | 31 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
module SimpleBool.Value where
import Data.Monoid
import Data.Info
import Data.Display (toDisplay)
import SimpleBool.Type
import SimpleBool.Context
import SimpleBool.Syntax
data Val
= ValTrue ... | VoQn/tapl-hs | src/SimpleBool/Value.hs | mit | 826 | 0 | 13 | 183 | 230 | 119 | 111 | 25 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE LambdaCase #-}
module WykopLink (
indexLink
, digLink
, cancelDigLink
, buryLink
, commentsLink
, reportsLink
, digsLink
, relatedLinksLink
, buryReasons
, observeLink
, favoriteLink
, BuryReason(..)
, Action(..)
... | mikusp/hwykop | WykopLink.hs | mit | 2,712 | 0 | 11 | 724 | 988 | 514 | 474 | 74 | 1 |
module Problem32 where
{--
Task description:
We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once;
for example, the 5-digit number, 15234, is 1 through 5 pandigital.
The product 7254 is unusual, as the identity, 39 × 186 = 7254,
containing multiplicand, mult... | runjak/projectEuler | src/Problem32.hs | mit | 2,599 | 0 | 14 | 606 | 532 | 275 | 257 | 38 | 1 |
module Main where
import Control.Lens ((^?), ix)
import qualified Data.Attoparsec.Text as P
import Data.Maybe (mapMaybe)
import qualified Data.Text.IO as T
part1 :: P.Parser Int
part1 = do
numKids <- P.decimal <* P.skipSpace
numMeta <- P.decimal <* P.skipSpace
kids ... | genos/online_problems | advent_of_code_2018/day08/src/Main.hs | mit | 912 | 0 | 17 | 242 | 361 | 184 | 177 | 26 | 2 |
-- | Buffer objects.
--
-- These are chunks of memory (typically) kept on the GPU.
--
-- <https://www.opengl.org/wiki/Buffer_Object>
--
{-# LANGUAGE DeriveDataTypeable, NoImplicitPrelude #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE RankNTypes #-}
module Graphics.Caramia.Buffer
( -- * Creation
newBuffer
... | Noeda/caramia | src/Graphics/Caramia/Buffer.hs | mit | 20,753 | 0 | 20 | 6,265 | 3,582 | 1,908 | 1,674 | 357 | 3 |
--euler problem 6 in progres
main = print euler6
euler6 = (sum[1..100])^2-sum (map (^2) [1..100])
| dmitry106/projecteulerimsa | haskell/euler0006.hs | mit | 101 | 0 | 9 | 18 | 54 | 29 | 25 | 2 | 1 |
-- |
-- This library provides facilities to get a representation data of a type,
-- while traversing all the types it refers to down to the primitives.
-- Thus it transitively captures all the types involved,
-- which may even come from different libraries.
--
-- The produced data structure is a graph, which has a... | nikita-volkov/type-structure | src/TypeStructure.hs | mit | 3,815 | 0 | 7 | 692 | 757 | 369 | 388 | -1 | -1 |
{-
Copyright (C) 2012 Kacper Bak <http://gsd.uwaterloo.ca>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, m... | juodaspaulius/bclafer_old | src/Language/Clafer/Generator/Stats.hs | mit | 2,420 | 0 | 15 | 494 | 508 | 274 | 234 | 33 | 3 |
module Main where
import RSA
import ArgumentParser
main :: IO ()
main = parseInput
| gjasinski/rsa-haskell | app/Main.hs | mit | 85 | 0 | 6 | 16 | 25 | 15 | 10 | 5 | 1 |
-- |Non-primitive wire utilities, including useful testing and debugging tools.
module Control.FRP.Wire.Utils(viewWire, runWire, runWireTerminal,
accumulate, wsum, wproduct,
wdecisive, wlatch,
differentiate, derivative,
... | prophile/trivial-wire | Control/FRP/Wire/Utils.hs | mit | 3,222 | 0 | 13 | 793 | 849 | 463 | 386 | 43 | 2 |
{- |
Module : Summoner.Settings
Copyright : (c) 2017-2022 Kowainik
SPDX-License-Identifier : MPL-2.0
Maintainer : Kowainik <xrom.xkov@gmail.com>
Stability : Stable
Portability : Portable
Complete settings required for the project creation.
-}
modul... | vrom911/hs-init | summoner-cli/src/Summoner/Settings.hs | mit | 2,692 | 0 | 11 | 816 | 408 | 248 | 160 | -1 | -1 |
module Main where
main :: IO ()
main = print $ solution 1000 3 5
solution :: Integer -> Integer -> Integer -> Integer
solution x y z = sum factors where
factors = filter factorYZ numbers
factorYZ n = isFactor y n || isFactor z n
isFactor n m = mod m n == 0
numbers = [1..(x - 1)]
| jBugman/euler | part1/p001.hs | mit | 290 | 0 | 9 | 71 | 132 | 67 | 65 | 9 | 1 |
module Twitch.Util where
import Text.JSON
import Data.ByteString.Lazy.Char8 (unpack)
import Data.ByteString.Lazy.Internal (ByteString)
unpackJSON :: JSON a => Data.ByteString.Lazy.Internal.ByteString -> Result a
unpackJSON = decode . unpack
-- helper function to extract a key from a dictionary
(.!) :: (JSON a) => J... | bhamrick/htwitch | Twitch/Util.hs | mit | 592 | 0 | 8 | 101 | 190 | 101 | 89 | 12 | 1 |
{-# LANGUAGE BangPatterns #-}
-- MapCfg.hs; Mun Hon Cheong (mhch295@cse.unsw.edu.au) 2005
{-
reads the level configuration files and map media files
-}
module MapCfg where
import BSP
import Camera
import Control.Exception ( bracket )
import Data.HashTable.IO as H hiding (mapM_)
import Data.IORef
import Data.List... | pushkinma/frag | src/MapCfg.hs | gpl-2.0 | 4,218 | 0 | 16 | 954 | 1,313 | 677 | 636 | 106 | 2 |
module PoolCheck (tester) where
import Control.Exception (finally)
import Control.Monad (zipWithM_)
import Data.List (nub, sort)
import Data.Maybe (catMaybes)
import Errors
import GenWords
import Test.HUnit
import TmpDir
import System.Directory (createDirectory, getDirectoryContents)
import System.FilePath ((</>))
im... | d3zd3z/harchive | test/PoolCheck.hs | gpl-2.0 | 3,598 | 0 | 16 | 781 | 1,231 | 614 | 617 | 90 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module HEP.Text.UFO.ProgType where
import System.Console.CmdArgs
data Ufomaker = Test
deriving (Show,Data,Typeable)
test :: Ufomaker
test = Test
mode = modes [test]
| wavewave/ufomaker | lib/HEP/Text/UFO/ProgType.hs | gpl-3.0 | 224 | 0 | 6 | 48 | 58 | 35 | 23 | 8 | 1 |
module Lib
( someFunc
) where
someFunc :: IO ()
someFunc = putStrLn "A Haskell program says hello from a snap!"
| capitanbatata/sandbox | hello-haskell-stack/src/Lib.hs | gpl-3.0 | 121 | 0 | 6 | 30 | 27 | 15 | 12 | 4 | 1 |
-- Build: ghc --make pointless
-- Usage: ./pointless SRC-FILE
import Data.Char(chr,isSpace,ord)
import System.Environment(getArgs)
import System.IO(char8,hSetEncoding,stdin,stdout)
tokenize :: String -> [String]
tokenize "" = []
tokenize ('=':'=':rest) = tokenize (dropWhile (/= '\n') rest)
tokenize (c:rest)
| isSpa... | qpliu/esolang | pointless/pointless.hs | gpl-3.0 | 4,948 | 0 | 17 | 1,106 | 2,122 | 1,113 | 1,009 | 111 | 7 |
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
module WildFire.WildFireModelStatic where
import System.Random
import Control.DeepSeq
import GHC.Generics (Generic)
import qualified PureAgentsPar as PA
type WFCell = (Int, Int)
data WFState = Living | Burning | Dead deriving (Eq, Show, Generic, NFData)
data WFMsg = Ig... | thalerjonathan/phd | coding/prototyping/haskell/PureAgentsPar/src/WildFire/WildFireModelStatic.hs | gpl-3.0 | 4,056 | 0 | 12 | 1,011 | 1,436 | 800 | 636 | 87 | 2 |
module Graphics.Blobs.Common (module Graphics.Blobs.Common {-, module IOExts-}, module Graphics.Blobs.Colors) where
import Graphics.Blobs.Colors
import Debug.Trace (trace)
import qualified Data.IntMap as IntMap
import Data.Char(isSpace)
import GHC.Float(formatRealFloat, FFFormat(FFFixed))
import Data.List
-- | return... | alanz/Blobs | src/Graphics/Blobs/Common.hs | lgpl-2.1 | 5,228 | 0 | 12 | 1,215 | 1,807 | 960 | 847 | 103 | 3 |
module Data.Transit.Cache
( Cache ()
, empty
, insert
, lookup
) where
import Data.Char (chr)
import qualified Data.HashMap.Strict as HM
import qualified Data.Text as T
import Prelude hiding (lookup)
type Cache = HM.HashMap T.Text T.Text
empty :: Cache
empty = H... | bamboo/sneerkell | src/Data/Transit/Cache.hs | lgpl-3.0 | 973 | 0 | 11 | 273 | 325 | 181 | 144 | 34 | 2 |
module HepMC.WeightNames where
import Data.Text (Text, pack)
import HepMC.Parse
type WeightNames = Vector Text
parserWeightNames :: Parser WeightNames
parserWeightNames =
vector (fmap pack $ many1 (satisfy $ not . isSpace) <* skipSpace)
| cspollard/HHepMC | src/HepMC/WeightNames.hs | apache-2.0 | 264 | 0 | 12 | 59 | 77 | 42 | 35 | 7 | 1 |
#!/usr/bin/env runhaskell
{-| Simple DSL to describe contracts
Example 2: Evaluation
-}
data Contract = Contract { name :: Name, terms :: Terms } deriving Show
type Name = String
data Terms =
Zero
| One
| Give Terms
| And Terms Terms
| Scale Int Terms
deriving Show
toAmount :: Terms ... | AlexanderAA/haskell-dsl-tutorial | M2.hs | bsd-2-clause | 651 | 0 | 10 | 169 | 266 | 143 | 123 | 18 | 1 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables, GADTs #-}
module OmniConfig (
OptionsSource(..), allProgramOpts, commandLine, environment, homeOptFile
, checkNegatedOpt
) where
import Prelude hiding (FilePath)
import System.Environment
import Control.Exception (SomeException, handle)
import qualified Data.Text ... | yesodweb/cabal-meta | OmniConfig.hs | bsd-2-clause | 1,808 | 0 | 18 | 390 | 555 | 303 | 252 | 43 | 3 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QGLPixelBuffer.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 - d... | uduki/hsQt | Qtc/Opengl/QGLPixelBuffer.hs | bsd-2-clause | 16,737 | 0 | 15 | 2,626 | 5,020 | 2,568 | 2,452 | -1 | -1 |
module Data.Property where
import Language.Haskell.Exts.Syntax
import Text.Regex.Posix (makeRegex, match, Regex)
import Data.Char
data Property = Property { line :: Int, func :: String }
instance Read Property where
readsPrec _ s =
let (first, second) = span (/= ':') s in
[(Property (read first :: Int) (... | jfeltz/tasty-integrate | src/Data/Property.hs | bsd-2-clause | 1,301 | 0 | 15 | 440 | 495 | 259 | 236 | 36 | 5 |
--------------------------------------------------------------------
-- |
-- Module : Codec.MIME.Type
-- Copyright : (c) 2006-2009, Galois, Inc.
-- License : BSD3
--
-- Maintainer: Sigbjorn Finne <sof@galois.com>
-- Stability : provisional
-- Portability: portable
--
--
-- Representing MIME types and values.
--
--... | np/mime-bytestring | Codec/MIME/Type.hs | bsd-3-clause | 4,831 | 0 | 12 | 1,194 | 1,330 | 734 | 596 | 146 | 11 |
{-# Language RankNTypes, LambdaCase, DeriveDataTypeable #-}
{- |
Decode @pipes@ byte streams with @cereal@ parsers.
In this module, the following type synonym compatible with the @lens@,
@lens-family@ and @lens-family-core@ libraries is used but not exported:
@
type Lens' a b = forall f . 'Functor' f => (b -> f b) ->... | yinguanhao/pipes-cereal | src/Pipes/Cereal.hs | bsd-3-clause | 4,907 | 0 | 18 | 1,046 | 1,549 | 797 | 752 | 98 | 3 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
module SBVExts
( constrain'
, SatSpace, Val
, SatVar (..)
, allSat', allSatWith'
) where
import Data.SBV
constrain' :: SBool -> Pr... | notae/haskell-exercise | cp/SBVExts.hs | bsd-3-clause | 3,011 | 0 | 10 | 780 | 333 | 178 | 155 | 27 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-|
Module : AERN2.WithGlobalParam.Field
Description : field operations
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portable
Field operations on WithGlobalPa... | michalkonecny/aern2 | aern2-net/src/AERN2/WithGlobalParam/Field.hs | bsd-3-clause | 3,564 | 0 | 10 | 728 | 777 | 412 | 365 | -1 | -1 |
--
-- | <http://okmij.org/ftp/gengo/NASSLLI10/>
--
module Lambda.CFG1Sem where
-- | Semantic interpretation of a CFG derivation
--
-- In conventional notation:
--
-- > D_e = {John, Mary}
--
data Entity = John | Mary
deriving (Eq, Show)
john = John
mary = Mary
like o s = (o == John && s == Mary ) ||
... | suhailshergill/liboleg | Lambda/CFG1Sem.hs | bsd-3-clause | 620 | 0 | 9 | 159 | 168 | 94 | 74 | 13 | 1 |
-- ref.) https://stackoverflow.com/questions/3208258/memoization-in-haskell
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE NPlusKPatterns #-}
module Fiblike where
import Data.Function (fix)
naive_f :: Int -> Int
naive_f 0 = 0
naive_f n = max n (naive_f (n `div` 2) + naive_f (n `div` 3) + naive_f (n `div` 4))
-- f :: (In... | cutsea110/aop | src/Fiblike.hs | bsd-3-clause | 1,134 | 1 | 11 | 296 | 571 | 301 | 270 | 33 | 2 |
{-# LANGUAGE OverloadedStrings, ExistentialQuantification #-}
{-# LANGUAGE CPP #-}
module Bead.View.TemplateAndComponentNames where
-- This module contains information about templates and
-- fields in the type safe manner.
import Control.Monad (join)
import qualified Data.Set as Set
import Data.St... | pgj/bead | src/Bead/View/TemplateAndComponentNames.hs | bsd-3-clause | 15,747 | 0 | 9 | 2,234 | 3,347 | 1,781 | 1,566 | 263 | 1 |
module Spec_2_3_1 where
import Test.Hspec
import Section_2_3_1 (and')
spec :: Spec
spec = do
describe "and'" $ do
it "and' 0 0 == 0" $ do
and' 0 0 `shouldBe` 0
it "and' 1 0 == 0" $ do
and' 1 0 `shouldBe` 0
it "and' 0 1 == 0" $ do
and' 0 1 `shouldBe` 0
it "and' 1 1 == 1" $ do
... | lotz84/deep-learning-from-scratch | test/Spec_2_3_1.hs | bsd-3-clause | 342 | 0 | 14 | 114 | 133 | 65 | 68 | 14 | 1 |
-- Copyright 2019 Google LLC
--
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file or at
-- https://developers.google.com/open-source/licenses/bsd
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE Rank2Types #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module JIT (impToLL... | google-research/dex-lang | src/lib/JIT.hs | bsd-3-clause | 48,338 | 0 | 23 | 11,271 | 16,322 | 8,063 | 8,259 | -1 | -1 |
module Lambda where
import qualified Data.Map.Strict as M
-- import qualified Text.Parsec as P
import Control.Applicative ((<*>))
import Data.Maybe (fromMaybe,fromJust)
import Data.List (find,findIndex)
import Control.Monad.State.Strict
data Lambda = Ap Lambda Lambda | Lam String Lambda | Name String
de... | Ginto8/Lambda | src/Lambda.hs | bsd-3-clause | 6,009 | 0 | 17 | 2,313 | 2,290 | 1,147 | 1,143 | 138 | 4 |
markup= <div class="page-listing">
<h1>
Pages
</h1>
<% do l <- getViewDataValue_u "component-pages-list" :: View [(String, String)]
mapM indexItem l
%>
</div>
indexItem (t,i) = return $ cdata $ unlines $
["<div style='paddi... | alsonkemp/turbinado-website | App/Components/Page/Views/List.hs | bsd-3-clause | 490 | 10 | 16 | 240 | 131 | 68 | 63 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Pages.BuildErrorPage where
import Aria.Types
import Aria.Routes
import HtmlTemplates
import Web.Routes.PathInfo (toPathInfo)
import Control.Lens
import Data.Text
impor... | theNerd247/ariaRacer | arweb/app/Pages/BuildErrorPage.hs | bsd-3-clause | 1,085 | 0 | 17 | 220 | 281 | 155 | 126 | 29 | 1 |
module MacLearning
( rule
, macLearning
, PacketOutChan
) where
import Base
import qualified Flows
import qualified Nettle.OpenFlow as OF
import HFT
import qualified Data.HashTable as Ht
import qualified Data.HList as HList
import qualified Data.Set as Set
import System.Log.Logger.TH (deriveLoggers)
import qu... | brownsys/pane | src/MacLearning.hs | bsd-3-clause | 5,395 | 1 | 32 | 1,698 | 1,250 | 652 | 598 | -1 | -1 |
-- more specific
incIfJust :: Num a => Maybe a -> Maybe a
incIfJust (Just n) = Just $ n + 1
incIfJust Nothing = Nothing
showIfJust :: Show a => Maybe a -> Maybe String
showIfJust (Just s) = Just $ show s
showIfJust Nothing = Nothing
-- using fmap
incMaybe :: Num a => Maybe a -> Maybe a
incMaybe m = fmap (+1) m
show... | chengzh2008/hpffp | src/ch16-Functor/howToAbstract.hs | bsd-3-clause | 1,293 | 0 | 10 | 294 | 581 | 293 | 288 | 30 | 1 |
{-# LANGUAGE CPP #-}
module Language.Java.Parser (
parser,
compilationUnit, packageDecl, importDecl, typeDecl,
classDecl, interfaceDecl,
memberDecl, fieldDecl, methodDecl, constrDecl,
interfaceMemberDecl, absMethodDecl,
formalParams, formalParam,
modifier,
varDecls, varDecl,
b... | alosich/language-java | Language/Java/Parser.hs | bsd-3-clause | 30,538 | 0 | 28 | 9,325 | 9,695 | 4,691 | 5,004 | 863 | 9 |
module Diagrams.Backend.HsQML.DiagramObj (
module Diagrams.Backend.HsQML.DiagramObj.Commands
, module Diagrams.Backend.HsQML.DiagramObj.Type
) where
import Diagrams.Backend.HsQML.DiagramObj.Commands
import Diagrams.Backend.HsQML.DiagramObj.Type
| marcinmrotek/diagrams-hsqml | src/Diagrams/Backend/HsQML/DiagramObj.hs | bsd-3-clause | 253 | 0 | 5 | 22 | 44 | 33 | 11 | 5 | 0 |
{-# language TypeSynonymInstances, MultiParamTypeClasses #-}
-- | Grammatik als Akzeptor, d. h. aus dem Wort wird das Startsymbol abgeleitet
-- mit umgekehrten Pfeilen.
module Grammatik.Machine where
import Grammatik.Type
import Grammatik.Property
import Grammatik.Ableitung
import Machine.Class
import Machine.Akze... | florianpilz/autotool | src/Grammatik/Machine.hs | gpl-2.0 | 1,015 | 0 | 14 | 275 | 306 | 155 | 151 | 28 | 0 |
data A = A
data B = B deriving Show | roberth/uu-helium | test/make/DerivingShow1.hs | gpl-3.0 | 35 | 0 | 5 | 9 | 18 | 10 | 8 | 2 | 0 |
module PatNegatePat where
f (- "schaap") = 42
| roberth/uu-helium | test/typeerrors/Examples/PatNegatePat.hs | gpl-3.0 | 47 | 0 | 7 | 9 | 17 | 10 | 7 | -1 | -1 |
module Bead.View.Translation
( module Bead.View.Translation.Base
, module Bead.View.Translation.Entries
, module Bead.View.Translation.I18N
) where
import Bead.View.Translation.Base
import Bead.View.Translation.Entries
import Bead.View.Translation.I18N
| andorp/bead | src/Bead/View/Translation.hs | bsd-3-clause | 262 | 0 | 5 | 28 | 54 | 39 | 15 | 7 | 0 |
{-# LANGUAGE TypeFamilies, ScopedTypeVariables, NoMonomorphismRestriction, Rank2Types #-}
module Hardware.KansasLava.RS232 (rs232out, rs232in, liftWithUART) where
import Data.Ratio
import Data.Sized.Unsigned
import Data.Sized.Signed
import Data.Sized.Ix
import Data.Sized.Matrix as M
import Language.KansasLava
impor... | ku-fpg/lambda-bridge | hardware/Hardware/KansasLava/RS232.hs | bsd-3-clause | 8,417 | 235 | 21 | 2,533 | 3,142 | 1,661 | 1,481 | 174 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-autoscaling/gen/Network/AWS/AutoScaling/CreateAutoScalingGroup.hs | mpl-2.0 | 13,484 | 0 | 10 | 2,726 | 1,413 | 856 | 557 | 149 | 1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Setup
-- Copyright : (c) David Himmelstrup 2005
-- License : BSD-like
--
-- Maintainer : lemmih@gmail.com
-- Stability : provisional
-- Portability : portable
--
--... | enolan/cabal | cabal-install/Distribution/Client/Setup.hs | bsd-3-clause | 92,859 | 0 | 40 | 25,992 | 18,847 | 10,614 | 8,233 | 1,800 | 5 |
{-# LANGUAGE OverloadedStrings, Rank2Types, TupleSections,
GeneralizedNewtypeDeriving, TypeFamilies, LiberalTypeSynonyms #-}
module Easing (easingClass) where
import Control.Applicative hiding (empty)
import Control.Monad
import Data.Map hiding (map)
import Data.String (fromString)
import Prelude hiding (lookup)
im... | joelburget/react-haskell | example/animation/Easing.hs | mit | 4,655 | 0 | 20 | 1,473 | 1,366 | 715 | 651 | 124 | 3 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# OPTIONS_GHC -fno-warn-deprecations #-}
module Network.Wai.Handler.Warp.Run where
#if __GLASGOW_HASKELL__ < 709
import Control.Applicative ((<$>))
#endif
import Control.Arrow (first)
import C... | dylex/wai | warp/Network/Wai/Handler/Warp/Run.hs | mit | 22,979 | 13 | 29 | 6,727 | 4,223 | 2,191 | 2,032 | 350 | 18 |
--------------------------------------------------------------------
-- |
-- Module : MediaWiki.API.Action.ParamInfo
-- Description : Representing ParamInfo requests.
-- Copyright : (c) Sigbjorn Finne, 2008
-- License : BSD3
--
-- Maintainer: Sigbjorn Finne <sof@forkIO.com>
-- Stability : provisional
-- Port... | HyperGainZ/neobot | mediawiki/MediaWiki/API/Action/ParamInfo.hs | bsd-3-clause | 1,335 | 0 | 9 | 300 | 199 | 131 | 68 | 32 | 1 |
{-# LANGUAGE BangPatterns #-}
-- modified from Control.Monad.RWS by John Meacham to be strict
module Util.RWS (
RWS,
runRWS,
-- evalRWS,
-- execRWS,
-- mapRWS,
-- withRWS,
-- RWST(..),
-- evalRWST,
-- execRWST,
-- mapRWST,
-- withRWST,
module Control.Monad.Reader,
module Control.Monad.Writer,
module Contr... | m-alvarez/jhc | src/Util/RWS.hs | mit | 4,577 | 11 | 19 | 1,374 | 888 | 493 | 395 | -1 | -1 |
import JIT
import Codegen
import qualified LLVM.General.AST as AST
import qualified LLVM.General.AST.Float as F
import qualified LLVM.General.AST.Constant as C
{-
; ModuleID = 'my cool jit'
define double @main() {
entry:
%1 = fadd double 1.000000e+01, 2.000000e+01
ret double %1
}
-}
initModule :: AST.Module
in... | yupferris/write-you-a-haskell | chapter27/dsl/Main.hs | mit | 588 | 0 | 17 | 131 | 174 | 90 | 84 | 17 | 1 |
-- test for #1131
import Control.Monad.ST
import Data.Array.ST
import Data.Array
import System.Mem
tickle :: Int
tickle = runST (do {
x <- newArray_ (0,100) ;
(readArray :: STUArray s Int Int -> Int -> ST s Int) x 3
})
main :: IO ()
main = do print $ length (replicate 100000 'a')
performGC
... | urbanslug/ghc | testsuite/tests/array/should_run/arr018.hs | bsd-3-clause | 339 | 0 | 13 | 91 | 135 | 70 | 65 | 12 | 1 |
module Lexer where
import Text.Parsec.String (Parser)
import Text.Parsec.Language (emptyDef)
import Text.Parsec.Prim (many)
import qualified Text.Parsec.Token as Tok
lexer :: Tok.TokenParser ()
lexer = Tok.makeTokenParser style
where
ops = ["+","*","-","/",";",",","<"]
names = ["def","extern"]
style = ... | TorosFanny/kaleidoscope | src/chapter4/Lexer.hs | mit | 753 | 0 | 8 | 175 | 228 | 131 | 97 | 22 | 1 |
module Data.Map.DiskBacked where
import Control.Applicative
import Control.Concurrent.MVar as MVar
import qualified Data.Cache.LRU as LRU
import qualified Data.Cache.LRU.Extensions as LRUExt
import Data.Generics.Aliases as Generics
import qualified Data.List as List
import Data.Maybe as Maybe
import Data.Tuple.Extensio... | stevedonnelly/haskell | code/Data/Map/DiskBacked.hs | mit | 7,367 | 5 | 25 | 1,670 | 3,169 | 1,646 | 1,523 | -1 | -1 |
module ProjectEuler.Problem1
( problem
) where
import ProjectEuler.Types
problem :: Problem
problem = pureProblem 1 Solved result
result :: Int
result = sum [ x | x <- [1 .. 999] , x `rem` 3 == 0 || x `rem` 5 == 0 ]
| Javran/Project-Euler | src/ProjectEuler/Problem1.hs | mit | 223 | 0 | 12 | 51 | 91 | 52 | 39 | 7 | 1 |
{-# LANGUAGE TemplateHaskell #-}
----------------------------------------------------------------------------------------------------
-- | The Geometry module provides types and utilities for basic rectangle geometry.
module RectBinPacker.Geometry where
-----------------------------------------------------------------... | jochu/image-bin-packing | src/RectBinPacker/Geometry.hs | mit | 3,056 | 0 | 9 | 413 | 427 | 238 | 189 | 43 | 1 |
-- Unique Sum
-- http://www.codewars.com/kata/56b1eb19247c01493a000065/
module Codewars.Arrays where
import Data.List (nub)
uniqueSum :: [Int] -> Int
uniqueSum = sum . nub
| gafiatulin/codewars | src/Beta/Arrays.hs | mit | 175 | 0 | 6 | 24 | 39 | 24 | 15 | 4 | 1 |
main :: IO()
main = do
print (sum multiples)
where
multiples = [x | x <- [3..999], (mod x 3 == 0) || (mod x 5 == 0)]
| HackspaceJena/project-euler | e0001/euler0001.hs | mit | 125 | 1 | 10 | 36 | 87 | 42 | 45 | 4 | 1 |
{-# LANGUAGE CPP, LambdaCase, JavaScriptFFI, UnliftedFFITypes, BangPatterns,
DeriveGeneric, StandaloneDeriving, MagicHash, TupleSections
#-}
{- | Code used by the RTS
-}
module GHCJS.Prim.Internal ( blockedIndefinitelyOnMVar
, blockedIndefinitelyOnSTM
... | ghcjs/ghcjs-prim | GHCJS/Prim/Internal.hs | mit | 769 | 0 | 5 | 197 | 79 | 47 | 32 | 14 | 1 |
import Primes
import Misc
import Data.List
import qualified Data.Set as Set
isPandigit n = let ds = digits n
len = fromIntegral $ length ds
in Set.fromList [1 .. len] == Set.fromList ds
filter isPandigit (takeWhile ((< 8) . length . digits) primes)
| farrellm/euler | src/p41.hs | mit | 286 | 0 | 11 | 80 | 105 | 55 | 50 | -1 | -1 |
{-# language NoImplicitPrelude, DoAndIfThenElse, OverloadedStrings, ExtendedDefaultRules #-}
module IHaskell.Publish
( publishResult
) where
import IHaskellPrelude
import qualified Data.Text as T
import qualified Data.Time as Time
import IHaskell.Display
import IHaskell.Types
import... | gibiansky/IHaskell | src/IHaskell/Publish.hs | mit | 4,052 | 0 | 18 | 1,113 | 847 | 426 | 421 | 70 | 8 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
module Authenticake.PurePassword (
PurePassword
, purePassword
) where
import qualified Data.Text as T
import qualified Data.Map as M
import Control.Applicative
import Control.Monad.Trans.State
import Authenticake.Authenticate
import Authentica... | avieth/Authenticake | Authenticake/PurePassword.hs | mit | 1,283 | 0 | 13 | 328 | 394 | 206 | 188 | 35 | 2 |
-- Copyright (c) 1999 Chris Okasaki.
-- See COPYRIGHT file for terms and conditions.
module Data.Edison.Test.Seq where
import Prelude hiding (concat,reverse,map,concatMap,foldr,foldl,foldr1,foldl1,
filter,takeWhile,dropWhile,lookup,take,drop,splitAt,
zip,zip3,zipWith,zip... | robdockins/edison | test/src/Data/Edison/Test/Seq.hs | mit | 14,375 | 0 | 16 | 3,687 | 5,967 | 3,019 | 2,948 | -1 | -1 |
-- Spy games - rebuild your decoder
-- https://www.codewars.com/kata/586988b82e8d9cdc520003ac
module Kata (decrypt) where
import Data.Maybe (mapMaybe)
import Data.Char (digitToInt, isDigit)
decrypt :: String -> String
decrypt = mapMaybe ( (`lookup` zip [0 ..] (' ' : ['a' .. 'z'])) . (`mod` 27) . sum . map digitToInt... | gafiatulin/codewars | src/6 kyu/Decoder.hs | mit | 347 | 0 | 16 | 55 | 114 | 68 | 46 | 5 | 1 |
module Language.LexerSpec where
import Test.Hspec
import Language.Lexer
spec :: Spec
spec = do
describe "lexer" $ do
context "expressions" $ do
it "should allow operators between strings" $ do
let input = "\"asd\" + \"asd\""
scanTokens input `shouldBe` [MonoQuo... | dpzmick/io2js | test/Language/LexerSpec.hs | mit | 2,925 | 0 | 19 | 1,120 | 738 | 347 | 391 | 62 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiP... | serokell/time-warp | src/Control/TimeWarp/Rpc/MonadDialog.hs | mit | 13,841 | 0 | 26 | 4,343 | 3,245 | 1,762 | 1,483 | 206 | 2 |
module ExTen where
f :: (a, b) -> (c, d) -> ((b,d), (a, c))
f x y = ((snd x, snd y), (fst x, fst y))
| rasheedja/HaskellFromFirstPrinciples | Chapter4/ex10.hs | mit | 102 | 0 | 8 | 27 | 87 | 51 | 36 | 3 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-route.html
module Stratosphere.Resources.EC2Route where
import Stratosphere.ResourceImports
-- | Full da... | frontrowed/stratosphere | library-gen/Stratosphere/Resources/EC2Route.hs | mit | 4,985 | 0 | 15 | 612 | 915 | 516 | 399 | 65 | 1 |
module Tests.CornerPointsCreateTest(cornerPointsCreateTestDo ) where
import Test.HUnit
import CornerPoints.Create(
slopeAdjustedForVerticalAngle,
adjustRadiusForSlope,
createCornerPoint,
Slope(..),
flatXSlope,
flatYSlope,
Origin(..),
Angle(..),
createCornerPointSquaredOff,
getQuadrantAngle
)
impo... | heathweiss/Tricad | src/Tests/CornerPointsCreateTest.hs | gpl-2.0 | 2,819 | 0 | 18 | 556 | 882 | 504 | 378 | 65 | 1 |
module Types (Time, Preset,
Frequency, Duration, Volume, FrameNr, Sample, DiscreteSample,
SampleFunc, VolumeFunc,
FrameStream, FrameStreamData, DiscreteFrameStream,
Instrument(..), Tone(..),
maxVolume, samplingRate, realSamplingRate) where
import Codec.Midi
import Data.Int
import Data.Vector.Unboxed
type Frequen... | garncarz/synth-haskell | Types.hs | gpl-2.0 | 1,088 | 26 | 9 | 168 | 336 | 206 | 130 | 33 | 1 |
import Text.ParserCombinators.Parsek.Position
import System.Environment
import Data.DList hiding (foldr, map)
import MarXupParser
import qualified Literate as Lit
import Output
import Config
rHaskells :: [Haskell] -> Doc
rHaskells xs = mconcat $ map rHaskell xs
rHaskell :: Haskell -> DList Char
rHaskell (HaskChunk s... | jyp/MarXup | Main.hs | gpl-2.0 | 1,152 | 1 | 14 | 214 | 492 | 245 | 247 | 30 | 1 |
{-
Copyright (C) 2017 WATANABE Yuki <magicant@wonderwand.net>
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 ... | magicant/flesh | hspec-src/Flesh/Language/Parser/Syntax_ListSpec.hs | gpl-2.0 | 7,794 | 0 | 26 | 2,046 | 1,798 | 806 | 992 | 142 | 3 |
import NBClassifier
main = do
classifier <- buildNBClassifier "train_csv.csv"
classes <- predictClasses classifier "predict_classes.csv"
print classes
return ()
| anirudhhkumarr/ml-lib | src/test/predict_classes.hs | gpl-2.0 | 167 | 0 | 8 | 24 | 45 | 19 | 26 | 6 | 1 |
-- Cyclic nand embedded in a non-constructive and irrelevant context.
-- Demonstrates the difference between /strong/ and /weak/ constructivity.
module T where
import Tests.Basis
c = combLoop (andA >>> notA >>> arr dupA) >>> arr (const ()) >>> falseA
prop_correct = property (\xs -> simulate c xs == take (length xs)... | peteg/ADHOC | Tests/01_CyclicCircuits/018_nand_embedded_irrelevant.hs | gpl-2.0 | 387 | 0 | 11 | 63 | 108 | 56 | 52 | 5 | 1 |
{-# LANGUAGE DeriveDataTypeable, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses, TypeSynonymInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : Layout.Hide
-- Copyright : (c) 2018 Omar Polo
-- License : BSD3-style
--
-- Maintainer : omar.p... | omar-polo/dotfiles | Xorg/xmonad/app/Layout/Hide.hs | gpl-3.0 | 1,812 | 0 | 12 | 357 | 300 | 179 | 121 | 21 | 1 |
module Sim.AI
( play
, triangle
) where
import Data.List
import Sim.Types
play playerA playerB status = case curMoves playerA of [] -> case validMoves playerA of (x:xs) -> x
(z:zs) -> case cas of [y] -> y
... | vikraman/Sim | src/Sim/AI.hs | gpl-3.0 | 4,673 | 0 | 17 | 2,330 | 1,917 | 1,013 | 904 | 76 | 4 |
module Statement where
import qualified Formula as THF
data Statement = Include String [String]
| AnnotatedFormula String Role THF.Formula
| Comment String
deriving (Show)
data Role = Role String
deriving (Show)
| dselsam/thf | src/Statement.hs | gpl-3.0 | 270 | 0 | 7 | 89 | 63 | 38 | 25 | 8 | 0 |
module Template where
import Language
import Utils
-- type MultState = (Int,Int,Int,Int) -- (n,m,d,t)
-- evalMult :: MultState -> [MultState]
-- evalMult state =
-- if multFinal state
-- then [state]
-- else state :
-- evalMult (stepMult state)
-- stepMult :: MultState -> MultState
-- stepMult... | bixuanzju/SCore | src/Template.hs | gpl-3.0 | 15,930 | 0 | 15 | 4,469 | 5,962 | 3,205 | 2,757 | 428 | 6 |
data StreamF e a = StreamF e a
deriving Functor | hmemcpy/milewski-ctfp-pdf | src/content/3.8/code/haskell/snippet26.hs | gpl-3.0 | 49 | 0 | 6 | 11 | 17 | 10 | 7 | 2 | 0 |
import Data.Function (on)
import Data.List
collatz :: Int -> Int
collatz n
| (rem n 2) == 0 = 1 + (collatz (quot n 2))
| n == 1 = 1
| otherwise = 1 + (collatz (3 * n + 1))
solution = maximumBy (compare `on` snd) $ map (\x -> (x, (collatz) x)) [1..1000000]
main :: IO ()
main = putStrLn $ show solution
| peri4n/projecteuler | haskell/problem14.hs | gpl-3.0 | 312 | 0 | 11 | 76 | 185 | 96 | 89 | 10 | 1 |
module LiName.Result (
putResult
) where
import LiName.Types
import LiName.Utils
import Control.Monad (forM_, unless)
import Data.Either (lefts, rights)
import System.IO (hPutStrLn, stderr)
import Text.Printf (printf)
putResult :: String -> Int -> [LiNameResult] -> IO ()
putResult src target rs = do
let fail... | anekos/liname-hs | src/LiName/Result.hs | gpl-3.0 | 787 | 0 | 16 | 185 | 301 | 149 | 152 | 19 | 1 |
module Data.RoadGraph.Datatypes
where
import Data.Int
import Data.Word
import Foreign.Storable
import qualified Data.ByteString as BS
invalidId :: Word32
invalidId = maxBound
data Point = Point {
pointLat :: Int32
, pointLon :: Int32
}
data Node = Node {
nodeCoord :: Point
, nodeLinksEndI... | nikmikov/hpbf | app/Data/RoadGraph/Datatypes.hs | gpl-3.0 | 3,348 | 0 | 11 | 901 | 790 | 457 | 333 | 78 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.Mirror
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla Publi... | brendanhay/gogol | gogol-mirror/gen/Network/Google/Mirror.hs | mpl-2.0 | 8,656 | 0 | 27 | 1,851 | 1,094 | 796 | 298 | 227 | 0 |
module Main where
import Debug.Trace (trace)
import Data.List (intercalate)
import Data.Monoid
import System.Environment (getArgs)
import qualified System.IO as I
import Development.Fex
import Tests.PDB
test :: Experiment String
test = do
setName "test"
cached ["cauchy"] (do
setName "inside-test"
liftIO... | BurntSushi/fex | Tests/A.hs | unlicense | 1,338 | 0 | 13 | 328 | 220 | 124 | 96 | 22 | 2 |
{-
Created : 2015 Apr 23 (Thu) 11:44:31 by Harold Carr.
Last Modified : 2015 Apr 23 (Thu) 11:44:53 by Harold Carr.
-}
import Test.HUnit as T
import Test.HUnit.Util as U
-- 13.9 Exercises
-- TODO
------------------------------------------------------------------------------
-- 1
doubl... | haroldcarr/learn-haskell-coq-ml-etc | haskell/book/2007-Programming_in_Haskell-1st_Edition-Graham_Hutton/ch_13_9.hs | unlicense | 1,845 | 0 | 11 | 472 | 695 | 386 | 309 | 47 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.