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 Web.Lyeit.Config
( runConfigM
, readConfig
, config
) where
import Control.Monad.Reader (asks, runReaderT)
import Data.Aeson (decode)
import qualified Data.ByteString.Lazy as BSL
import Data.Maybe (fromMaybe)
import Prelude ... | daimatz/Lyeit | src/Web/Lyeit/Config.hs | bsd-3-clause | 1,579 | 0 | 13 | 458 | 456 | 241 | 215 | 38 | 3 |
-- | Maximum Flow algorithm
--
-- We are given a flow network @G=(V,E)@ with source @s@ and sink @t@
-- where each edge @(u,v)@ in @E@ has a nonnegative capacity
-- @c(u,v)>=0@, and we wish to find a flow of maximum value from @s@
-- to @t@.
--
-- A flow in @G=(V,E)@ is a real-valued function @f:VxV->R@ that
-- satisfi... | scolobb/fgl | Data/Graph/Inductive/Query/MaxFlow.hs | bsd-3-clause | 5,867 | 0 | 14 | 1,552 | 1,258 | 718 | 540 | 44 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.SetupWrapper
-- Copyright : (c) The University of Glasgow 2006,
-- Duncan Coutts 2008
--
-- Maintainer : [email protected]
-- Stability : alpha
-- Portability : port... | fpco/cabal | cabal-install/Distribution/Client/SetupWrapper.hs | bsd-3-clause | 23,082 | 7 | 22 | 6,565 | 4,126 | 2,208 | 1,918 | 380 | 27 |
{-# LANGUAGE CPP, DeriveDataTypeable, FlexibleContexts, FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses, NoImplicitPrelude, OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables, TemplateHaskell #-}
-- | Extensions to ClassyPrelude that are useful to most modules & plugins in Dash
-... | jeremyjh/free-agent | core/src/FreeAgent/AgentPrelude.hs | bsd-3-clause | 6,773 | 0 | 13 | 1,992 | 1,403 | 821 | 582 | 125 | 2 |
{-# LANGUAGE ExistentialQuantification, Rank2Types, PatternGuards #-}
module Util where
import Control.Arrow
import Control.Monad
import Control.Monad.Trans.State
import Control.Exception
import Data.Char
import Data.Function
import Data.List
import Data.Ord
import System.Directory
import System.Exit
import System.Fi... | bergmark/hlint | src/Util.hs | bsd-3-clause | 8,198 | 0 | 19 | 1,950 | 2,855 | 1,510 | 1,345 | -1 | -1 |
----------------------------------------------------------------------------
-- |
-- Module : Data.Filesystem
-- Copyright : (c) Sergey Vinokurov 2018
-- License : BSD3-style (see LICENSE)
-- Maintainer : [email protected]
----------------------------------------------------------------------------
{-... | sergv/tags-server | src/Data/Filesystem.hs | bsd-3-clause | 7,703 | 10 | 37 | 2,739 | 1,543 | 809 | 734 | -1 | -1 |
{- |
Definitions of the PlotWithGnuplot class.
-}
{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleInstances, ExistentialQuantification #-}
{-# LANGUAGE TypeOperators, FlexibleContexts, GADTs, ScopedTypeVariables, DeriveDataTypeable #-}
module Graphics.Gnewplot.Types where
import Control.Monad
import Data.List
... | glutamate/gnewplot | Graphics/Gnewplot/Types.hs | bsd-3-clause | 4,489 | 0 | 13 | 1,348 | 1,489 | 783 | 706 | 83 | 3 |
module HSlippyMap (
Tile (..),
Lat, Long,
X, Y, ZLevel,
tilesFromBBox,
tileFromLatLong,
tileFromXY
) where
type Lat = Float
type Long = Float
type X = Integer
type Y = Integer
type ZLevel = Integer
data Tile = Tile {
tlat :: Lat,
tlong :: Long,
tx :: X,
ty :: Y,
tz :: ZLevel }
instance Show Til... | j4/HSlippyMap | HSlippyMap.hs | bsd-3-clause | 1,688 | 0 | 19 | 465 | 803 | 429 | 374 | 42 | 1 |
{-# LANGUAGE UnliftedFFITypes #-}
{-# LANGUAGE BangPatterns #-}
module Slogger where
import Control.Monad.Logger
import qualified Data.IntMap as IM
import GHC.Conc.Sync (ThreadId(..), myThreadId)
import System.IO.Unsafe (unsafePerformIO)
type ThreadInt = Int
data ThreadLogInfo = Thread... | mgsloan/slogger | deadcode/OldSlogger.hs | bsd-3-clause | 2,112 | 1 | 21 | 486 | 415 | 230 | 185 | -1 | -1 |
{-
(c) Galois, 2006
(c) University of Glasgow, 2007
-}
{-# LANGUAGE CPP, NondecreasingIndentation, RecordWildCards #-}
module Coverage (addTicksToBinds, hpcInitCode) where
#ifdef GHCI
import qualified GHCi
import GHCi.RemoteTypes
import Data.Array
import ByteCodeTypes
import GHC.Stack.CCS
#endif
import Type
import H... | tjakway/ghcjvm | compiler/deSugar/Coverage.hs | bsd-3-clause | 51,909 | 0 | 25 | 15,476 | 13,575 | 6,864 | 6,711 | 954 | 8 |
module Main where
import Graphics.Formats.OFF.Simple
import Control.Arrow
import Data.Vector ( Vector )
import qualified Data.Vector as V
import Test.HUnit ( assertFailure, (@?=) )
import Test.Framework
import Test.Framework.Providers.HUnit
import System.FilePath
import TestData
samplePrefix = "samples"
fileMat... | acfoltzer/off-simple | tests/Main.hs | bsd-3-clause | 1,385 | 0 | 14 | 322 | 476 | 268 | 208 | 36 | 2 |
{-# LANGUAGE FlexibleContexts, RankNTypes #-}
module EC2Tests.AddressTests
( runAddressTests
)
where
import Data.Text (Text)
import Test.Hspec
import Cloud.AWS.EC2
import Cloud.AWS.EC2.Types
import Util
import EC2Tests.Util
region :: Text
region = "ap-northeast-1"
runAddressTests :: IO ()
runAddressTes... | worksap-ate/aws-sdk | test/EC2Tests/AddressTests.hs | bsd-3-clause | 3,003 | 0 | 32 | 1,065 | 567 | 284 | 283 | 54 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- | HTTP\/2 server library.
--
-- Example:
--
-- > {-# LANGUAGE OverloadedStrings #-}
-- > module Main (main) where
-- >
-- > import qualified Control.Exception as E
-- > import Data.ByteString.Builder (byteString)
-- > import Network.HTTP.Types (ok200)
-- > import Network.Run.TCP ... | kazu-yamamoto/http2 | Network/HTTP2/Server.hs | bsd-3-clause | 5,738 | 0 | 13 | 1,135 | 1,026 | 583 | 443 | 96 | 1 |
{-# LANGUAGE TypeFamilies #-}
module Data.Hot.Pidgin.Base where
import GHC.Exts (IsList, Item, fromList, toList)
data PHot2 a = PHot2 !a !a
deriving (Eq, Ord, Show)
data PHot3 a = PHot3 !a !a !a
deriving (Eq, Ord, Show)
data PHot5 a = PHot5 !a !a !a !a !a
deriving (Eq, Ord, Show)
data PHot10 a = PHot10 !a ... | tserduke/hot | lib/classy/Data/Hot/Pidgin/Base.hs | bsd-3-clause | 1,221 | 0 | 12 | 311 | 681 | 347 | 334 | 72 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
module Language.Haskell.Refact.Utils.ExactPrint
(
resequenceAnnotations
, uniqueSrcSpan
, addAnnKeywords
, setOffsets
, setOffset
, setLoc... | mpickering/HaRe | src/Language/Haskell/Refact/Utils/ExactPrint.hs | bsd-3-clause | 12,748 | 0 | 15 | 3,155 | 2,318 | 1,241 | 1,077 | 149 | 2 |
{-# LANGUAGE DeriveDataTypeable, NamedFieldPuns #-}
module Args where
import Paths_activehs
import System.Directory (createDirectoryIfMissing)
import System.Console.CmdArgs.Implicit
import System.FilePath
import Data.Version
------------------
data Args
= Args
{ sourcedir :: String
, includ... | pgj/ActiveHs | Args.hs | bsd-3-clause | 3,936 | 0 | 12 | 1,301 | 769 | 414 | 355 | 69 | 2 |
{-# LANGUAGE OverlappingInstances #-} -- TLM: required by client code
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS -fno-warn-missing-methods #-}
{-# OPTIONS -fno-warn-orphans #-}
-- |
-- Module : Data.Array.Accelerate.Language
-- Copyright : [2008..2014] Manuel M T Chakravarty, Gabriele Keller
-- ... | kumasento/accelerate | Data/Array/Accelerate/Language.hs | bsd-3-clause | 28,887 | 0 | 14 | 7,224 | 6,769 | 3,741 | 3,028 | -1 | -1 |
module Joust (
module Joust.Joust.Types,
module Joust.Joust.Simulator
) where
import Joust.Joust.Types
import Joust.Joust.Simulator
| jfischoff/joust | src/Joust.hs | bsd-3-clause | 140 | 0 | 5 | 21 | 32 | 22 | 10 | 5 | 0 |
-- |
-- Module: Elaboration
-- Description: -
-- Copyright: (c) 2013 Tom Hawkins & Lee Pike
module Language.Atom.Elaboration
(
-- UeStateT
-- * Atom monad and container.
Atom
, AtomDB (..)
, Global (..)
, Rule (..)
, StateHierarchy (..)
, buildAtom
-- * Type Aliases and Utilities
... | Copilot-Language/atom_for_copilot | Language/Atom/Elaboration.hs | bsd-3-clause | 14,093 | 0 | 18 | 4,917 | 3,999 | 2,142 | 1,857 | 309 | 4 |
module Data.Graph.Inductive.Query.ArtPoint(
ap
) where
import Data.Graph.Inductive.Graph
------------------------------------------------------------------------------
-- Tree for storing the DFS numbers and back edges for each node in the graph.
-- Each node in this tree is of the form (v,n,b) where v is the ve... | antalsz/hs-to-coq | examples/graph/graph/Data/Graph/Inductive/Query/ArtPoint.hs | mit | 6,167 | 0 | 14 | 1,410 | 1,391 | 768 | 623 | 52 | 2 |
{-# LANGUAGE RecordWildCards #-}
-- | Statsd reporting.
module Pos.Infra.Reporting.Statsd
( withStatsd
) where
import Universum
import Control.Concurrent (killThread)
import Pos.Infra.Statistics (StatsdParams (..))
import qualified System.Metrics as Metrics
import qualified Sy... | input-output-hk/pos-haskell-prototype | infra/src/Pos/Infra/Reporting/Statsd.hs | mit | 978 | 0 | 9 | 228 | 207 | 122 | 85 | 23 | 1 |
module Sieve where
main = take 3000 (sieve [2..])
sieve (x:xs)
= x
: sieve (filter (nietVeelvoud x) xs)
nietVeelvoud x y = y `mod` x /= 0
{-
[/cygdrive/c/docs/helium/helium/demo] time heliumc Sieve.hs
Compiling Sieve.hs
(3,1): Missing type signature: main :: [Int]
(5,1): Missing type signature: sieve ::... | roberth/uu-helium | demo/Sieve.hs | gpl-3.0 | 1,404 | 0 | 10 | 265 | 80 | 43 | 37 | 6 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-codedeploy/gen/Network/AWS/CodeDeploy/UpdateDeploymentGroup.hs | mpl-2.0 | 8,816 | 0 | 13 | 1,828 | 1,193 | 712 | 481 | 144 | 1 |
{-
Copyright 2016 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 later v... | monky-hs/monky | Monky/Examples/Plain.hs | lgpl-3.0 | 1,289 | 0 | 8 | 256 | 115 | 65 | 50 | 11 | 1 |
module Futhark.Optimise.AlgSimplifyTests ( tests )
where
import Test.HUnit hiding (Test)
import Test.Framework
import Test.Framework.Providers.HUnit
import Data.List
import qualified Data.HashMap.Lazy as HM
import qualified Data.Map as M
import Futhark.Representation.AST
import Futhark.Analysis.ScalExp
import Futhar... | CulpaBS/wbBach | tests/Futhark/Optimise/AlgSimplifyTests.hs | bsd-3-clause | 3,055 | 0 | 12 | 790 | 965 | 529 | 436 | 79 | 2 |
class Functor (BackendScore) => HasBackend where
type BackendMusic :: *
type BackendNote :: *
type BackendScore :: * -> *
type BackendContext :: * -> *
finalizeExport :: -> BackendScore (BackendNote) -> BackendMusic
class (HasBackend) => HasBackendScore s where
type BackendScoreEvent s :: *
-- Backend... | FranklinChen/music-score | sketch/old/NewExport.hs | bsd-3-clause | 1,099 | 5 | 12 | 207 | 231 | 125 | 106 | -1 | -1 |
#include "../Prelude.hs"
safer x d q = x /= q && x /= q+d && x /= q-d
| osa1/chsc | examples/imaginary/Queens-Safer.hs | bsd-3-clause | 71 | 0 | 11 | 19 | 42 | 21 | 21 | 1 | 1 |
module Text.HTML.TagSoup.Development.ParserUtils
(PState, Parser, Pick, runParser
,(&), (|->), cons, nil, pick
,nullS, headS, tailS
,dropS, spanS, dropWhileS
,spanEndS
) where
import Data.List
infix 2 |->
infix 3 &
---------------------------------------------------------------------
-- DAT... | silkapp/tagsoup | dead/Old/Development/ParserUtils.hs | bsd-3-clause | 2,542 | 0 | 13 | 647 | 1,156 | 613 | 543 | 64 | 3 |
module Main where
import Text.ParserCombinators.Parsec
import Text.ParserCombinators.Parsec.Language
import Text.ParserCombinators.Parsec.Pos
import qualified Text.ParserCombinators.Parsec.Token as T
import Data.Char
import Data.List
import Data.Maybe
import System.IO.Unsafe
main = do s <- getContents
... | abuiles/turbinado-blog | Turbinado/View/HAML/trhaml.hs | bsd-3-clause | 6,065 | 0 | 29 | 2,571 | 1,645 | 824 | 821 | 114 | 3 |
--command line parsing, i.e. here the executable loop should be defined
| eugenkiss/loopgotowhile | src/Language/LoopGotoWhile/While/CLTool.hs | bsd-3-clause | 72 | 0 | 2 | 11 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoMonoLocalBinds #-}
{-# LANGUAGE NondecreasingIndentation #-}
-- | See <https://github.com/ezyang/ghc-p... | themoritz/cabal | Cabal/Distribution/Backpack/Configure.hs | bsd-3-clause | 15,617 | 0 | 22 | 4,619 | 2,650 | 1,423 | 1,227 | 275 | 10 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[TcMonoType]{Typechecking user-specified @MonoTypes@}
-}
{-# LANGUAGE CPP #-}
module TcHsType (
tcHsSigType, tcHsDeriv, tcHsVectInst,
tcHsInstHead,
UserTypeCtxt(..),
-- Typ... | acowley/ghc | compiler/typecheck/TcHsType.hs | bsd-3-clause | 69,518 | 105 | 26 | 20,667 | 12,299 | 6,296 | 6,003 | 822 | 8 |
{-
Utility for generating GHCJS.Prim.Internal.Build:
Helpers for constructing objects and arrays that
can be efficiently inlined as literals.
Template Haskell is not available in ghcjs-prim, therefore
this module is generated with this external generator.
-}
module Main where
import Con... | seereason/ghcjs | utils/genBuildObject.hs | mit | 4,893 | 0 | 19 | 1,392 | 1,423 | 769 | 654 | 100 | 1 |
-- | Formats on this architecture
-- A Format is a combination of width and class
--
-- TODO: Signed vs unsigned?
--
-- TODO: This module is currenly shared by all architectures because
-- NCGMonad need to know about it to make a VReg. It would be better
-- to have architect... | shlevy/ghc | compiler/nativeGen/Format.hs | bsd-3-clause | 2,833 | 0 | 11 | 954 | 408 | 228 | 180 | 60 | 7 |
{-# LANGUAGE TemplateHaskell #-}
module T7667a where
import Language.Haskell.TH
-- to be correct, this should be ConE, not VarE!
false = $( return $ VarE (mkName "False") ) | urbanslug/ghc | testsuite/tests/th/T7667a.hs | bsd-3-clause | 178 | 0 | 10 | 33 | 34 | 20 | 14 | 4 | 1 |
-- test for bug #1067
import Control.Concurrent
import Control.Exception
main = do
master <- myThreadId
test master 10
-- make sure we catch a final NonTermination exception to get
-- a consistent result.
threadDelay (10 * one_second)
test tid 0 = return ()
test tid n = d... | hferreiro/replay | testsuite/tests/concurrent/should_run/conc064.hs | bsd-3-clause | 938 | 3 | 12 | 407 | 211 | 95 | 116 | 19 | 2 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE ParallelListComp #-}
-- On GHC 6.0 and earlier, this parallel list comprehension generated
-- an incorrect unused-binding warning.
module ShouldCompile where
t :: [(Char,Char)]
t = [ (a,b) | a <- "foo" | b <- "bar" ]
| wxwxwwxxx/ghc | testsuite/tests/rename/should_compile/rn045.hs | bsd-3-clause | 258 | 1 | 7 | 45 | 52 | 33 | 19 | 5 | 1 |
dist :: Double -> Double -> Double -> Double -> Double
dist x1 y1 x2 y2 = ((x1 - x2)**2+(y1 - y2)**2)**0.5
myif :: Bool -> a -> a -> a
myif b f s | b = f | otherwise = s
mysgn :: Int -> Int
mysgn x | x > 0 = 1 | x < 0 = -1 | otherwise = 0
comp :: (b -> c) -> (a -> b) -> (a -> c)
--comp f1 f2 = \x -> f1(f2(x))
comp f... | SergeyKrivohatskiy/fp_haskell | class/class1.hs | mit | 674 | 2 | 11 | 208 | 535 | 262 | 273 | 17 | 1 |
{-|
Module : RTorrent
Copyright : (c) Kai Lindholm, 2014
License : MIT
Maintainer : [email protected]
Stability : experimental
A module that re-exports "Network.RTorrent.RPC" for convenience.
-}
module Network.RTorrent (
module Network.RTorrent.RPC
) where
import Network.RTorrent.RPC
| megantti/rtorrent-rpc | Network/RTorrent.hs | mit | 308 | 0 | 5 | 58 | 22 | 15 | 7 | 3 | 0 |
module Graphics.Render.Layered(
renderLayeredModel
) where
import Prelude as P
import Graphics.Layered.Layer
import Graphics.Layered.Model
import Graphics.GPipe
import Graphics.Camera2D
import Graphics.Light
import Control.Applicative
import GHC.Float
import Data.Vec as Vec
renderLayeredModel ::
-- | Mod... | NCrashed/sinister | src/client/Graphics/Render/Layered.hs | mit | 1,721 | 0 | 18 | 391 | 445 | 237 | 208 | 36 | 1 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.HTMLTableColElement (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.HTMLTableColElement
#else
module Graphics.UI.Gtk.WebKit.DOM.HTMLTableColElement
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/HTMLTableColElement.hs | mit | 480 | 0 | 5 | 39 | 33 | 26 | 7 | 4 | 0 |
module Text.LevenshteinDistance (levenshteinDistance) where
import Data.Array
-- |
-- Levenshtein Distance
-- Measure similarity between two lists.
--
-- >>> levenshteinDistance "hoge" "hoge"
-- 0
-- >>> levenshteinDistance [1, 2, 3] [2, 2, 3]
-- 1
levenshteinDistance :: Eq a => [a] -> [a] -> Int
levenshteinDistanc... | ayachigin/LevenshteinDistance | src/Text/LevenshteinDistance.hs | mit | 1,218 | 0 | 11 | 415 | 481 | 262 | 219 | 27 | 3 |
{-# LANGUAGE DeriveDataTypeable #-}
module SphereHelloApi.Products (getProducts, ProductResponse (..), Product (..)) where
import Network.Curl
import SphereHelloApi.ApiAccess
import SphereHelloApi.Tokens
import Text.JSON.Generic
getProductsOpts t =
-- CurlVerbose True :
CurlHttpHeaders ["Authorization: Bearer "... | sphereio/sphere-hello-api | haskell/src/SphereHelloApi/Products.hs | mit | 1,001 | 0 | 10 | 176 | 256 | 144 | 112 | 24 | 1 |
module Hate.Graphics.Backend.Modern.Types where
import Hate.Graphics.Types
import Hate.Graphics.Backend.Common.Pipeline
-- supposedly needs more vertex streams and pipelines in the future
data BackendModern = BackendModern {
solidColorPipeline :: Pipeline,
texturingPipeline :: Pipeline,
globalVe... | bananu7/Hate | src/Hate/Graphics/Backend/Modern/Types.hs | mit | 380 | 0 | 9 | 66 | 63 | 43 | 20 | 8 | 0 |
{-
Haskell:
map :: (a -> b) -> [a] -> [b]
map _ [] = []
map f (x:xs) = f x : map f xs
-or-
map f xs = [ f x | x <- xs ]
"Any" language:
var ys = new List<T>();
for (var x in xs) {
ys.Append(f(x));
}
C# LINQ:
var ys = from x in xs select f(x);
Python:
var ys = [ f(x) for x in xs ]
Haskell:
filter p xs = [x | x <... | feliposz/learning-stuff | haskell/c9lectures-ch7.hs | mit | 1,943 | 9 | 10 | 501 | 550 | 273 | 277 | 24 | 2 |
module Options where
import Options.Applicative ((<>), Parser)
import qualified Options.Applicative as P
data Options = Opts
{ inFileOpt :: FilePath
, outDirOpt :: FilePath
, maxSizeOpt :: Int
, cmdOpt :: Command
}
deriving (Eq, Show)
data Command =
Roads
| RoadLinks
| RoadNodes... | mietek/gml-explorer | src/Options.hs | mit | 1,928 | 0 | 12 | 508 | 506 | 260 | 246 | 64 | 1 |
module Workouts_Test where
import qualified Workouts as W
import Data.Time.Calendar (fromGregorian)
import Test.Framework (testGroup, Test)
import Test.Framework.Providers.HUnit
import Test.HUnit hiding (Test)
kDefaultLookback = 36500
workoutsSuite :: Test
workoutsSuite =
testGroup "Workouts"
[ testCase "" $ te... | mrjones/workouts | test/Workouts_Test.hs | mit | 1,491 | 0 | 11 | 313 | 473 | 254 | 219 | 36 | 1 |
-----------------------------------------------------------------------------
-- Copyright : (c) Hanzhong Xu, Meng Meng 2016,
-- License : MIT License
--
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : portable
---------------------------------------------------------------... | PseudoPower/AFSM | examples/SF/Clock.hs | mit | 4,455 | 1 | 28 | 1,072 | 1,747 | 909 | 838 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
module Common where
import Web.Twitter.Conduit
import Web.Authenticate.OAuth as OA
import qualified Network.URI as URI
import Network.HTTP.Conduit
import qualified Data.Map as M
import qualified Data.ByteString.Char... | DanielTomlinson/Twitter-Stream-Haskell | Common.hs | mit | 2,091 | 0 | 15 | 456 | 600 | 323 | 277 | 51 | 3 |
{-# OPTIONS_GHC -fno-warn-unused-binds #-} --TODO
module Il.Analyzer (analyzeIl) where
import Defs.Structures
import Defs.Common
import Il.AST
import Analyzer hiding (getFunName, getFunArgs, getFunType)
import Data.Monoid
import Control.Monad.State
-- | Runs everything that is needed to analyze a program
analyzeIl... | alistra/data-structure-inferrer | Il/Analyzer.hs | mit | 3,183 | 0 | 17 | 893 | 1,000 | 489 | 511 | 69 | 16 |
module Parser (runTerm) where
import Syntax
import Eval
import Control.Arrow ((+++))
import Unbound.Generics.LocallyNameless (bind, string2Name)
import Text.Parsec
import Text.Parsec.String (Parser)
import qualified Text.Parsec.Token as Tok
import Text.Parsec.Language (haskellDef)
lexer :: Tok.TokenParser ()
lexer ... | kellino/TypeSystems | simpleUntyped/Parser.hs | mit | 1,018 | 0 | 12 | 214 | 346 | 182 | 164 | 37 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafregional-sizeconstraintset-sizeconstraint.html
module Stratosphere.ResourceProperties.WAFRegionalSizeConst... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/WAFRegionalSizeConstraintSetSizeConstraint.hs | mit | 4,351 | 0 | 13 | 331 | 442 | 253 | 189 | 42 | 1 |
module Fresh.Unify where
import Control.Monad (forM_, when, void, unless)
import Control.Monad.Error.Class (MonadError(..))
import qualified Data.Map as Map
import Data.STRef
import qualified Fresh.OrderedSet as OrderedSet
import Fresh.Pretty (Pretty(..))
import Fresh.Types
import Fresh.InferMonad
unchain :: SType... | sinelaw/fresh | src/Fresh/Unify.hs | gpl-2.0 | 6,186 | 0 | 24 | 2,032 | 2,283 | 1,095 | 1,188 | 133 | 7 |
--
-- Web redirector
--
-- Copyright © 2011-2018 Operational Dynamics Consulting, Pty Ltd
--
-- The code in this file, and the program it is a part of, is made available
-- to you by its authors as open source software: you can redistribute it
-- and/or modify it under the terms of the GNU General Public License versio... | oprdyn/redirector | src/Lookup.hs | gpl-2.0 | 3,873 | 0 | 13 | 833 | 778 | 413 | 365 | 69 | 2 |
{- Chapter 8.9 Exercises -}
{- 1. -}
data Nat = Zero | Succ Nat deriving Show
add :: Nat -> Nat -> Nat
add Zero n = n
add (Succ m) n = Succ (add m n)
{-
add (Succ (Succ Zero)) (Succ Zero)
= Succ (add (Succ Zero) (Succ Zero))
= Succ (Succ (add Zero (Succ Zero)))
= Succ (Succ (Succ Zero))
-}
mult :: Nat -> Nat -> N... | rad1al/hutton_exercises | ch08.hs | gpl-2.0 | 8,593 | 30 | 12 | 2,414 | 2,803 | 1,344 | 1,459 | 121 | 3 |
module Lamdu.Formatting
( Format(..)
, formatTextContents
) where
import qualified Control.Lens as Lens
import Control.Monad (mplus)
import qualified Data.ByteString.Base16 as Hex
import qualified Data.Char as Char
import qualified Data.Text as Text
import Data.Text.Encoding (encodeUtf8... | Peaker/lamdu | src/Lamdu/Formatting.hs | gpl-3.0 | 2,035 | 0 | 17 | 629 | 715 | 369 | 346 | 55 | 3 |
{-|
Module : Graphics.QML.Transient
License : BSD3
Maintainer : [email protected]
Stability : experimental
Main module that exports everything needed for users of this library.
-}
module Graphics.QML.Transient
( Build
, Qml
, React
, qml
, runQml
, reacting
, continuously
, chan... | marcinmrotek/hsqml-transient | src/Graphics/QML/Transient.hs | gpl-3.0 | 1,871 | 0 | 13 | 340 | 455 | 261 | 194 | 51 | 1 |
module TB.Transformers.Maybe.Examples (
) where
| adarqui/ToyBox | haskell/ross/transformers/src/TB/Transformers/Maybe/Examples.hs | gpl-3.0 | 48 | 0 | 3 | 5 | 11 | 8 | 3 | 1 | 0 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
------------------------------------------------------------------------------
-- | This module defines our application's state type and an alias for its
-- handler monad.
module Application where
-------------------... | imalsogreg/reffit | src/Application.hs | gpl-3.0 | 1,451 | 0 | 11 | 312 | 233 | 140 | 93 | 30 | 0 |
module Main where
import Protolude
import qualified Client.Main as CMA
main :: IO ()
main = CMA.main
| r-raymond/purple-muon | client/Main.hs | gpl-3.0 | 104 | 0 | 6 | 20 | 32 | 20 | 12 | 5 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/Disks/CreateSnapshot.hs | mpl-2.0 | 3,997 | 0 | 18 | 992 | 547 | 324 | 223 | 84 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Settings/GetAutoForwarding.hs | mpl-2.0 | 3,403 | 0 | 14 | 766 | 310 | 192 | 118 | 55 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Web.GZip
( generateGZip
) where
import qualified Codec.Compression.GZip as GZ
import Control.Monad (mzero)
import Control.Monad.IO.Class
import qualified Data.ByteString.Lazy as BSL
import System.FilePath (takeExtension)
import Files
import Web
import Web.Types
import Web... | databrary/databrary | src/Web/GZip.hs | agpl-3.0 | 740 | 0 | 15 | 145 | 223 | 125 | 98 | 23 | 2 |
module SMTHelper where
import Language.SMTLib2
import Language.SMTLib2.Internals
isComplexExpr :: SMTExpr a -> Bool
isComplexExpr (Const _ _) = False
isComplexExpr (Var _ _) = False
isComplexExpr _ = True
| hguenther/nbis | SMTHelper.hs | agpl-3.0 | 207 | 0 | 7 | 31 | 67 | 36 | 31 | 7 | 1 |
{-# OPTIONS_GHC -fno-warn-unticked-promoted-constructors #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeInType #-}
module P139_read_vect where
-- import Data.Singletons
-- import Data.Singletons.Sigma
data Nat = Z | S Nat deri... | haroldcarr/learn-haskell-coq-ml-etc | idris/book/2017-Type_Driven_Development_with_Idris/src/P139_read_vect.hs | unlicense | 3,885 | 0 | 16 | 826 | 555 | 279 | 276 | -1 | -1 |
module Routes.Install ( buildInstallPage ) where
import Control.Monad
import Text.Blaze.Html
-- local
import Session
import State
import Html.Base
import Html.Install
buildInstallPage :: ServerT HtmlPage
buildInstallPage = do
-- see if configuration is available
mconf <- runQuery GetConfig
case mconf of
... | mcmaniac/blog.nils.cc | src/Routes/Install.hs | apache-2.0 | 449 | 0 | 10 | 87 | 115 | 61 | 54 | 17 | 2 |
module Tutorial4 where
import Data.Machine
import System.Directory.Machine
import System.Environment (getArgs)
import System.IO (IOMode(..), withFile)
import System.IO.Machine (byLine, sourceHandle)
import qualified Data.Text as T
main :: IO ()
main = do
dirs <- getArgs
runT_ $ (autoM print) <~ largest <~ (autoM... | aloiscochard/machines-tutorial | src/Tutorial4.hs | apache-2.0 | 605 | 0 | 18 | 138 | 222 | 118 | 104 | 16 | 1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Text.PrettyPrint.ANSI.Leijen
-- Copyright : Daan Leijen (c) 2000, http://www.cs.uu.nl/~daan
-- Max Bolingbroke (c) 2008, http://blog.omega-prime.co.uk
-- License : BSD-style (... | hvr/ansi-wl-pprint | Text/PrettyPrint/ANSI/Leijen.hs | bsd-2-clause | 48,494 | 0 | 19 | 12,383 | 7,961 | 4,488 | 3,473 | 480 | 20 |
-- http://www.codewars.com/kata/5502c9e7b3216ec63c0001aa
module Codewars.Kata.Categorize where
import Codewars.Kata.Categorize.Types
-- data Membership = Open | Senior deriving (Eq, Show)
openOrSenior :: [(Int, Int)] -> [Membership]
openOrSenior = map f where
f (a, h)
| a>=55 && h>7 = Senior
| otherwise = Op... | Bodigrim/katas | src/haskell/7-Categorize-New-Member.hs | bsd-2-clause | 322 | 0 | 12 | 51 | 88 | 50 | 38 | 7 | 1 |
{-# OPTIONS -Wall #-}
-----------------------------------------------------------------------------
-- |
-- Module : CEquiv.hs (Executable)
-- Copyright : (c) 2008 Benedikt Huber
-- License : BSD-style
-- Maintainer : [email protected]
--
-- This module is invoked just like gcc. It preprocesses t... | micknelso/language-c | test/src/CEquiv.hs | bsd-3-clause | 3,993 | 0 | 17 | 814 | 941 | 480 | 461 | 61 | 4 |
module Data.Language.Brainfuck.Parser where
import Data.Language.Brainfuck.Types
parse :: String -> Either String Program
parse s = case go [] (s ++ "]") of
Left msg -> Left msg
Right (p, []) -> Right (reverse p)
Right (_, rest) -> Left ("unexpected input: " ++ rest)
whe... | frerich/brainfuck | src/lib/Data/Language/Brainfuck/Parser.hs | bsd-3-clause | 862 | 0 | 15 | 296 | 459 | 234 | 225 | 19 | 13 |
-----------------------------------------------------------------------------
--
-- Stg to C-- code generation: expressions
--
-- (c) The University of Glasgow 2004-2006
--
-----------------------------------------------------------------------------
module StgCmmExpr ( cgExpr ) where
#define FAST_STRING_NOT_NEEDED
#... | ekmett/ghc | compiler/codeGen/StgCmmExpr.hs | bsd-3-clause | 30,135 | 8 | 20 | 8,286 | 4,547 | 2,403 | 2,144 | -1 | -1 |
{-# LANGUAGE BangPatterns, CPP, ScopedTypeVariables #-}
-----------------------------------------------------------------------------
--
-- The register allocator
--
-- (c) The University of Glasgow 2004
--
-----------------------------------------------------------------------------
{-
The algorithm is roughly:
1... | mettekou/ghc | compiler/nativeGen/RegAlloc/Linear/Main.hs | bsd-3-clause | 37,769 | 0 | 25 | 13,350 | 5,734 | 2,935 | 2,799 | 459 | 13 |
{-# LANGUAGE EmptyDataDecls #-}
-- |
-- Module : Network.TLS.Record.Types
-- License : BSD-style
-- Maintainer : Vincent Hanquez <[email protected]>
-- Stability : experimental
-- Portability : unknown
--
-- The Record Protocol takes messages to be transmitted, fragments the
-- data into manageable blocks, ... | erikd/hs-tls | core/Network/TLS/Record/Types.hs | bsd-3-clause | 3,458 | 0 | 11 | 604 | 748 | 406 | 342 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE Rank2Types #-}
--
-- Peripheral.hs --- Advanced Timer (TIM1 to TIM8) Peripheral driver.
-- Defines peripheral types, instances.
--
-- Copyright (C) 2014, Galois, Inc.
-- All Rights Reserved.
--
module Ivory.B... | GaloisInc/ivory-tower-stm32 | ivory-bsp-stm32/src/Ivory/BSP/STM32/Peripheral/ATIM18/Peripheral.hs | bsd-3-clause | 2,833 | 0 | 11 | 826 | 614 | 347 | 267 | 60 | 1 |
module HW10Test
(hw10Tests)
where
import Test.Tasty
import Test.Tasty.Hspec
import Control.Applicative
import HW10.AParser
hw10Tests :: IO TestTree
hw10Tests = do
hspecSuite <- testSpec "HW10" hspecTests
return $ testGroup "tests" [hspecSuite]
data T = T Integer Char deriving (Show, Eq)
hspecTests :: SpecWith ... | cgag/cis-194-solutions | test/HW10Test.hs | bsd-3-clause | 1,511 | 0 | 16 | 451 | 465 | 231 | 234 | 42 | 1 |
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-}
-- |
-- Module : NXT.Types
-- Copyright : Alexander Thiemann <[email protected]>
-- License : BSD3
--
-- Maintainer : Alexander Thiemann <[email protected]>
-- Stability : experimental
-- Portability : non-portable (GHC extensions)
--
module NXT.Types where... | agrafix/legoDSL | NXT/Types.hs | bsd-3-clause | 3,964 | 0 | 14 | 976 | 1,420 | 766 | 654 | 131 | 2 |
{-# LANGUAGE ExistentialQuantification #-}
{- |
Module : Verifier.SAW.Cache
Copyright : Galois, Inc. 2012-2015
License : BSD3
Maintainer : [email protected]
Stability : experimental
Portability : non-portable (language extensions)
-}
module Verifier.SAW.Cache
( Cache
, newCache
, newCacheMap
,... | iblumenfeld/saw-core | src/Verifier/SAW/Cache.hs | bsd-3-clause | 1,539 | 0 | 14 | 329 | 552 | 284 | 268 | 38 | 2 |
module SNEK.Data
( Data
, Datum(..)
) where
import Data.Map (Map)
type Data = [Datum]
data Datum
= Symbol String
| Bool Bool
| String String
| List [Datum]
| Array [Datum]
| Dict (Map Datum Datum)
deriving (Eq, Ord, Show)
| rightfold/snek | src/SNEK/Data.hs | bsd-3-clause | 239 | 0 | 8 | 58 | 100 | 60 | 40 | 13 | 0 |
module DyNet.IO (
-- * Types
TextFileSaver,
TextFileLoader,
-- * Initialize saver / loader
createSaver,
createSaver',
createLoader,
-- * Operations on saver
saveModel,
saveParameter,
saveLookupParameter,
saveModel',
saveParameter',
saveLookupParameter',
--... | masashi-y/dynet.hs | src/DyNet/IO.hs | bsd-3-clause | 1,319 | 0 | 5 | 320 | 197 | 112 | 85 | 28 | 1 |
module VerificadorCuitCuil where
verificarCuil :: Int -> Bool
verificarCuil = verificarCuit
verificarCuit :: Int -> Bool
verificarCuit n
| n <= 20000000000 || n > 99999999999 = False
| otherwise = digVerif == if calcVerif == 11 then 0 else calcVerif
where
digVerif = n `mod` 10
x = listaDig... | jotix/verificadorCuitCuil | src/VerificadorCuitCuil.hs | bsd-3-clause | 565 | 0 | 10 | 159 | 240 | 135 | 105 | 16 | 2 |
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Padding
( pkcs7Pad
, pkcs7Unpad
) where
import Common
import qualified Data.Vector.Generic as V
import Data.Word
pkcs7Pad :: Word8 -> ByteVector -> ByteVector
pkcs7Pad blockSize bytes
| blockSize == 0 = error "block size must be larger than 0"
| otherwise = bytes V.++ V.r... | andrewcchen/matasano-cryptopals-solutions | modules/Padding.hs | bsd-3-clause | 940 | 0 | 12 | 183 | 277 | 143 | 134 | 21 | 2 |
{-# LANGUAGE RankNTypes, GeneralizedNewtypeDeriving, ExistentialQuantification #-}
------------------------------------------------------------------------------
-- File: Haikubot.hs
-- Creation Date: Dec 29 2012 [20:19:14]
-- Last Modified: Oct 08 2013 [20:44:40]
-- Created By: Samuli Thomasson [SimSaladin] s... | SimSaladin/haikubot | Haikubot/Core.hs | bsd-3-clause | 5,533 | 0 | 13 | 1,247 | 1,207 | 674 | 533 | 110 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Arrows #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Strict #-}
module Validate
( validateBatchOpts
, Types.BatchOpts
, ValidationResult (..)
, nThreads
, nLoops
, propName
, propValue
, propV... | limaner2002/EPC-tools | src/Validate.hs | bsd-3-clause | 5,992 | 1 | 15 | 1,076 | 1,487 | 780 | 707 | 106 | 3 |
module Main where
import Control.Monad
import Text.Printf
import System.Environment
import System.Exit
import Graphics.FDL.Parser
import Graphics.FDL.Typer
import Graphics.FDL.Backend.GL
main :: IO ()
main = do
args <- getArgs
(checkMode, sourceFile) <- case args of
["--check", sf] -> return (True, sf... | petermarks/FDL | src/Draw.hs | bsd-3-clause | 1,973 | 0 | 12 | 453 | 667 | 329 | 338 | 48 | 5 |
module Ex6 where
import Prelude hiding (foldr)
import Data.Vector
partitionAt :: (Show a, Ord a) => Vector a -> Int -> (Vector a, a, Vector a)
partitionAt v pivot = let pv = v !? pivot
vSplit = remove pivot v
part = foldList pv (remove pivot v)
... | bobbyrauchenberg/haskellCourse | src/Ex6.hs | bsd-3-clause | 1,026 | 0 | 19 | 489 | 377 | 199 | 178 | 18 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
module ETCS.SDM.SpecialBreaks
( RegenerativeBreak, EddyCurrentBreak, MagneticShoeBreak, EpBreak
, SpecialBreakType (..)
... | open-etcs/openetcs-sdm | src/ETCS/SDM/SpecialBreaks.hs | bsd-3-clause | 4,991 | 0 | 13 | 992 | 1,025 | 549 | 476 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleInstances #-}
-- | Shared types for various stackage packages.
module ... | hesselink/stack | src/Stack/Types/BuildPlan.hs | bsd-3-clause | 13,963 | 0 | 17 | 4,217 | 3,523 | 1,896 | 1,627 | 332 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : System.Exit.Lens
-- Copyright : (C) 2013-14 Edward Kmett
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Edward Kmett <ek... | hvr/lens | src/System/Exit/Lens.hs | bsd-3-clause | 2,242 | 0 | 10 | 420 | 383 | 216 | 167 | 29 | 2 |
module Data.Conduit.Resumable (
-- * Resumable sources
-- | Resumable sources are provided by the conduit package itself.
-- See 'ResumableSource'.
newResumableSource,
-- * Resumable sinks
-- $sink
(+$$),
-- ** Combining with resumable sources
(+$$+),
(+$$++),
(+$$+-),
... | joeyadams/hs-conduit-resumable | Data/Conduit/Resumable.hs | bsd-3-clause | 6,873 | 0 | 16 | 2,155 | 1,617 | 834 | 783 | 113 | 10 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.MapBufferRange
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <[email protected]>
-- Stability : stable
-- Portability : portable
... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/MapBufferRange.hs | bsd-3-clause | 907 | 0 | 4 | 106 | 67 | 52 | 15 | 11 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Opaque type for an operations log that provides fast O(1)
-- appends.
module Futhark.Util.Log
( Log,
toText,
ToLog (..),
MonadLogger (..),
)
where
import qualified Control.Monad.RWS.Lazy
import... | HIPERFIT/futhark | src/Futhark/Util/Log.hs | isc | 1,655 | 0 | 10 | 325 | 438 | 248 | 190 | 36 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module Internal.Type where
#ifdef ghcjs_HOST_OS
import Data.JSString
import GHCJS.Marshal (FromJSVal (..), ToJSVal (..))
import GHCJS.Typ... | agocorona/ghcjs-perch | src/Internal/Type.hs | mit | 2,287 | 0 | 12 | 669 | 472 | 265 | 207 | 52 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/DeregisterVolume.hs | mpl-2.0 | 3,855 | 0 | 12 | 768 | 407 | 249 | 158 | 57 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | olorin/amazonka | amazonka-autoscaling/gen/Network/AWS/AutoScaling/DescribeScalingProcessTypes.hs | mpl-2.0 | 4,134 | 0 | 15 | 831 | 493 | 294 | 199 | 69 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
module HERMIT.Libraries.Int where
import Control.Arrow
import qualified Data.Map as M
import HERMIT.GHC hiding (intTy)
import HERMIT.Kure
import HERMIT.Lemma
import HERMIT.Name
import HERMIT.Dictionary.Common
import HERMIT.Dictionary.GHC
{-
Defines the follo... | conal/hermit | src/HERMIT/Libraries/Int.hs | bsd-2-clause | 3,142 | 0 | 21 | 888 | 871 | 443 | 428 | 50 | 2 |
{-# LANGUAGE TupleSections #-}
import Control.Monad (void)
import qualified Data.MemoCombinators as Memo
import qualified Data.Set as S
import qualified Data.Tree as T
import qualified NLP.Partage.Auto as A
import qualified NLP.Partage.AStar as E... | kawu/partage | examples/old/acid-rains.hs | bsd-2-clause | 1,495 | 0 | 13 | 399 | 556 | 295 | 261 | 41 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module PTS.Syntax.Constants
( C (C)
, int
, star
, box
, triangle
, circle
) where
import Data.Data
import Data.Typeable
-- constants
newtype C = C Int
deriving (Eq, Ord, Data, Typeable, Show)
int :: C
int = C 0
star :: C
star = C 1
box :: C
box = C 2
triangle :... | Toxaris/pts | src-lib/PTS/Syntax/Constants.hs | bsd-3-clause | 365 | 0 | 6 | 96 | 139 | 81 | 58 | 25 | 1 |
{-# LANGUAGE CPP, BangPatterns, PatternGuards #-}
{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : Codec.Archive.Tar.Index
-- Copyright : (c) 2010-2015 Duncan Coutts
-- License : BSD3
--
-- Maint... | hvr/tar | Codec/Archive/Tar/Index.hs | bsd-3-clause | 22,284 | 0 | 17 | 5,237 | 4,189 | 2,261 | 1,928 | 232 | 3 |
module Main where
import Control.Concurrent.Chan (getChanContents, newChan)
import Data.Monoid ((<>))
import Options.Applicative (Parser, argument, execParser,
fullDesc, header, helper, info,
... | astynax/hobbes | Hobbes.hs | bsd-3-clause | 2,208 | 0 | 11 | 724 | 561 | 302 | 259 | 48 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.