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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE ParallelListComp #-}
module Data.YamlDir ( -- * Only YAML files
-- $yaml
decodeYamlPath
, decodeYamlPathEither
-- * Only Text files
-- $text
, decodeT... | aisamanra/yaml-dir | Data/Yaml/Dir.hs | bsd-3-clause | 5,408 | 1 | 21 | 1,902 | 979 | 500 | 479 | 64 | 2 |
{-# LANGUAGE ViewPatterns #-}
module Calcs (forwardBackward, forward, forwardBackwardSim) where
import Common
import Trans
import Emission
import Control.Monad.Reader
import Control.Monad.Random hiding (fromList)
import Control.Monad.State.Strict
import Data.Traversable (traverse)
import Numeric.LinearAlgebra hiding ... | cglazner/ibd_stitch | src/Calcs.hs | bsd-3-clause | 2,449 | 0 | 15 | 617 | 878 | 445 | 433 | 58 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Instrument.Tests.Types
( tests,
)
where
-------------------------------------------------------------------------------
import qualified Data.Map as M
-------------------------------------------------------------------------------
import I... | Soostone/instrument | instrument/test/src/Instrument/Tests/Types.hs | bsd-3-clause | 1,459 | 0 | 11 | 213 | 262 | 140 | 122 | 26 | 1 |
{-# LANGUAGE MultiParamTypeClasses, ScopedTypeVariables, TypeFamilies #-}
{-# OPTIONS_GHC -Wall #-}
----------------------------------------------------------------------
-- |
-- Module : Interface.TV.GtkGL2
-- Copyright : (c) Conal Elliott 2009
-- License : BSD3
--
-- Maintainer : conal@conal.net
-- S... | conal/GtkGLTV | src/Interface/TV/Gtk/GL2.hs | bsd-3-clause | 5,456 | 0 | 25 | 1,584 | 988 | 511 | 477 | 88 | 3 |
{-# LANGUAGE CPP
, DeriveDataTypeable
, FlexibleContexts
, GeneralizedNewtypeDeriving
, NoImplicitPrelude
, PatternGuards
, ScopedTypeVariables
, UnicodeSyntax
#-}
module System.FTDI.Internal where
-----------------------------------------... | roelvandijk/ftdi | System/FTDI/Internal.hs | bsd-3-clause | 36,474 | 0 | 18 | 10,855 | 5,882 | 3,275 | 2,607 | 529 | 9 |
--
-- >>> Hub.System <<<
--
-- This module contains all of the O/S-specific utilities. It should currently
-- work for Posix systems. Getting a Windows hub port should be a matter of
-- porting this module.
--
-- (c) 2011-2012 Chris Dornan
module Hub.System
( systemMachine
, homeDir
, tmpFile
, setEnv... | Lainepress/hub-src | Hub/System.hs | bsd-3-clause | 6,121 | 0 | 14 | 2,231 | 1,851 | 947 | 904 | 163 | 5 |
{-# LANGUAGE OverloadedStrings #-}
module ElementaryStreamDescriptorSpec (spec) where
import Data.ByteString.IsoBaseFileFormat.ReExports
import Data.ByteString.IsoBaseFileFormat.Util.BoxContent
import Data.ByteString.Mp4.Boxes.AudioSpecificConfig
import Data.ByteString.Mp4.Boxes.DecoderConfigDescriptor
import Data.By... | sheyll/isobmff-builder | spec/ElementaryStreamDescriptorSpec.hs | bsd-3-clause | 1,258 | 0 | 8 | 217 | 86 | 59 | 27 | 13 | 1 |
module Atom where
import CheckList
import Control.Lens
import Data.List
import Data.Maybe
import Data.Text.Lazy.Lens (utf8)
import Network.URL
import Network.Wreq
import Text.Atom.Feed (feedEntries, txtToString, entryTitle, linkHref, entryLinks)
import Text.Feed.Import (parseFeedSource)
import Text.Feed.Types (Feed (A... | madjar/permalink-checker | src/Atom.hs | bsd-3-clause | 1,342 | 0 | 15 | 365 | 412 | 222 | 190 | -1 | -1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
------------------... | facebookincubator/duckling | Duckling/Ranking/Classifiers/CS_XX.hs | bsd-3-clause | 828 | 0 | 6 | 105 | 66 | 47 | 19 | 8 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
------------------------------------------------------------------------------
-- |
-- Module : Keeper.CheckAuthorizedKeys
-- License : BSD-style
-- Maintainer : Nicolas DI PRIMA <nicolas@di-prima.fr>
-- Stability : experimental
-- Portab... | NicolasDP/keeper | Keeper/CheckAuthorizedKeys.hs | bsd-3-clause | 580 | 1 | 5 | 60 | 35 | 23 | 12 | 5 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.ByteString.Parser
-- Copyright : Lennart Kolmodin, George Giorgidze
-- License : BSD3
--
-- Maintainer : George Giorgidze <http://cs.nott.ac.uk/~ggg/>
-- Stability : experimental
-- Portability : Portable
-... | giorgidze/HCodecs | src/Codec/ByteString/Parser.hs | bsd-3-clause | 17,498 | 0 | 19 | 4,458 | 5,255 | 2,785 | 2,470 | 387 | 3 |
module Network.EasyBitcoin.Internal.Script
where
import Data.Word
import qualified Data.ByteString as BS
import Data.List (nub) -- not to use nub!! TODO
import Data.Binary (Binary, get, put)
import Data.Binary.Get ( getWord64be
, getWord32be
, getWord8
... | vwwv/easy-bitcoin | Network/EasyBitcoin/Internal/Script.hs | bsd-3-clause | 19,044 | 0 | 19 | 10,367 | 3,193 | 1,615 | 1,578 | 368 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGU... | ekmett/categories | src/Math/Rec.hs | bsd-3-clause | 3,374 | 4 | 15 | 791 | 1,405 | 763 | 642 | -1 | -1 |
module Superscripts
( superScript
, superScriptNum
, desuperScript
, desuperScriptNum
) where
import qualified Data.Map as Map
normalNums = "0123456789"
superScriptNums = "β°ΒΉΒ²Β³β΄β΅βΆβ·βΈβΉ"
superScripts :: Map.Map Char Char
superScripts = Map.fromList $ zip normalNums superScriptNums
desuperScripts :: Map.Map Char Char
de... | benizi/dotfiles | .xmonad/lib/Superscripts.hs | mit | 900 | 0 | 8 | 136 | 244 | 129 | 115 | 26 | 2 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : ./CSL/Print_AS.hs
Description : Printer for abstract syntax of CSL
Copyright : (c) Dominik Dietrich, Ewaryst Schulz, DFKI Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Ewaryst.Schulz@dfki.de
Stability : exp... | spechub/Hets | CSL/Print_AS.hs | gpl-2.0 | 13,531 | 0 | 20 | 3,376 | 4,555 | 2,234 | 2,321 | 309 | 4 |
{-# LANGUAGE OverloadedStrings #-}
module Response.Draw
(drawResponse) where
import Text.Blaze ((!))
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import qualified Data.Text as T
import Control.Monad (forM_, mapM_)
import Happstack.Server
import MasterTemplate
... | alexbaluta/courseography | app/Response/Draw.hs | gpl-3.0 | 2,181 | 0 | 16 | 686 | 695 | 336 | 359 | 55 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.PackageIndex
-- Copyright : (c) David Himmelstrup 2005,
-- Bjorn Bringert 2007,
-- Duncan Coutts 2008
--
-- Maintainer : cabal-devel@haskell.org
-- Portabil... | jwiegley/ghc-release | libraries/Cabal/cabal-install/Distribution/Client/PackageIndex.hs | gpl-3.0 | 16,943 | 0 | 16 | 4,259 | 3,710 | 1,997 | 1,713 | 261 | 5 |
module Abstract.Constraint
( AtomicConstraint (..)
, buildNamedAtomicConstraint
, satisfiesAtomicConstraint
, satisfiesAllAtomicConstraints
, Constraint (..)
, satisfiesConstraint
, satisfiesAllConstraints
) where
import Abstract.Category
import Abstract.Category.FindMorphism
import... | rodrigo-machado/verigraph | src/library/Abstract/Constraint.hs | gpl-3.0 | 3,201 | 0 | 15 | 615 | 801 | 414 | 387 | 55 | 4 |
<?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="el-GR">
<title>Export Report | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapr... | veggiespam/zap-extensions | addOns/exportreport/src/main/javahelp/org/zaproxy/zap/extension/exportreport/resources/help_el_GR/helpset_el_GR.hs | apache-2.0 | 975 | 89 | 29 | 160 | 398 | 213 | 185 | -1 | -1 |
-- These types follow the format of Twitter search results, as can be
-- found in the benchmarks/json-data directory.
--
-- For uses of these types, see the Twitter subdirectory.
--
-- There is one deviation for the sake of convenience: the Geo field
-- named "type_" is really named "type" in Twitter's real feed. I
--... | dmjio/aeson | examples/src/Twitter.hs | bsd-3-clause | 2,025 | 0 | 9 | 583 | 432 | 266 | 166 | 55 | 0 |
{-# OPTIONS_GHC -Wall #-}
module Canonicalize.Body (flatten) where
import qualified Data.Maybe as Maybe
import qualified AST.Declaration as Decl
import qualified AST.Effects as Effects
import qualified AST.Expression.General as E
import qualified AST.Expression.Canonical as Canonical
import qualified AST.Module.Name ... | mgold/Elm | src/Canonicalize/Body.hs | bsd-3-clause | 4,443 | 0 | 21 | 1,247 | 1,444 | 747 | 697 | 118 | 5 |
module Main where
import Data.Time
showTZ :: TimeZone -> String
showTZ tz = (formatTime defaultTimeLocale "%Z %z" tz) ++ (if timeZoneSummerOnly tz then " DST" else "")
main :: IO ()
main = mapM_ (\tz -> putStrLn (showTZ tz)) (knownTimeZones defaultTimeLocale)
| bergmark/time | test/ShowDefaultTZAbbreviations.hs | bsd-3-clause | 263 | 0 | 10 | 44 | 97 | 52 | 45 | 6 | 2 |
{-# LANGUAGE NoMonomorphismRestriction #-}
import System.Posix
import Control.Monad
import Foreign
import Control.Concurrent
import Data.Char
import System.Exit
size = 10000
block = 512
main = do
(rd,wr) <- createPipe
let bytes = take size (map (fromIntegral.ord) (cycle ['a'..'z']))
allocaBytes size $ \p -> do... | jimenezrick/unix | tests/fdReadBuf001.hs | bsd-3-clause | 813 | 0 | 21 | 221 | 306 | 145 | 161 | 25 | 1 |
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
-- This one foxed the constraint solver (Lint error)
-- See Trac #1494
module ShouldCompile where
import Control.Monad.State
newtype L m r = L (StateT Int m r)
instance Functor (L m) where
fmap = undefined
instance Applicative (L m) where
pure = undefined
... | urbanslug/ghc | testsuite/tests/typecheck/should_compile/tc232.hs | bsd-3-clause | 509 | 0 | 8 | 110 | 164 | 92 | 72 | 15 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RankNTypes #-}
{-# OPTIONS_GHC -Wall #-}
module T10931 ( BugC(..) ) where
data IdT f a = IdC (f a)
class ( m ~ Outer m (Inner m) ) => BugC (m :: * -> *) where
type Inner m :: * -> *
type Outer m :: (* -> *) -> * -> *
bug :: ( ... | ezyang/ghc | testsuite/tests/indexed-types/should_compile/T10931.hs | bsd-3-clause | 567 | 0 | 15 | 210 | 224 | 122 | 102 | 17 | 0 |
{-# LANGUAGE ScopedTypeVariables, RankNTypes #-}
-- Helper for simpl009.hs (see comments there)
module Simpl009Help where
import Control.Applicative (Applicative(..), Alternative(empty, (<|>)))
import Control.Monad
newtype Parser s a
= Parser (forall res . (a -> [String] -> P s res) -> [String] -> P s res)
dat... | siddhanathan/ghc | testsuite/tests/simplCore/prog002/Simpl009Help.hs | bsd-3-clause | 1,188 | 0 | 16 | 305 | 540 | 289 | 251 | 35 | 3 |
module Mod157_B (T(..)) where
import Mod157_A(T(A))
| urbanslug/ghc | testsuite/tests/module/Mod157_B.hs | bsd-3-clause | 53 | 0 | 6 | 7 | 25 | 17 | 8 | 2 | 0 |
{-# htermination (numerator :: Ratio MyInt -> MyInt) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
data MyInt = Pos Nat | Neg Nat ;
data Nat = Succ Nat | Zero ;
data Ratio a = CnPc a a;
numerator (CnPc x y) = x;
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/numerator_1.hs | mit | 273 | 0 | 8 | 69 | 95 | 56 | 39 | 7 | 1 |
module Main (main) where
import QuickCheckProperties ( bddTests )
import TestSuite ( runTestWith )
import Test.QuickCheck ( Args, stdArgs, maxSize, maxSuccess, maxDiscard )
import System.Environment ( getArgs, getProgName )
import System.Exit ( exitFailure )
import System.IO ( stderr )
import Text.Printf ( hPrintf )
... | bradlarsen/bdd | hs-bdd-test/Test.hs | mit | 918 | 0 | 14 | 302 | 270 | 146 | 124 | 29 | 4 |
module Cycles.Reap where
import Cycles.Aux (trim, orientGraph)
import Cycles.IO
--import Data.GList
import Control.Monad (mapM_, unless, liftM2, when)
import Data.Foldable (foldlM)
import Data.List (reverse)
import Data.ByteString (hGetContents, readFile, writeFile, init, tail, ByteString)--(readFile, null, ByteStrin... | michaeljklein/HCy2C | Cycles/Reap.hs | mit | 13,037 | 0 | 16 | 2,519 | 3,428 | 1,754 | 1,674 | 188 | 3 |
module VideoCore.EGL where
import Foreign
import qualified VideoCore.Raw.EGL as EGLC
import qualified VideoCore.Raw.EGL.Platform as EGLCP
import Data.Array.Storable
type ClientVersion = EGLC.EGLint
getConfigs :: EGLC.Display -> EGLC.EGLint -> IO (EGLC.Boolean, EGLC.Config, EGLC.EGLint)
getConfigs display count = do
... | Wollw/VideoCore-Haskell | src/VideoCore/EGL.hs | mit | 2,284 | 0 | 20 | 676 | 736 | 372 | 364 | 51 | 2 |
module Exercise where
type Item a = (a, Int)
type Bag a = [Item a]
| tcoenraad/functioneel-programmeren | 2013/opg1a.hs | mit | 68 | 0 | 6 | 16 | 30 | 20 | 10 | 3 | 0 |
module KleisliCategory where
import Data.Char (toUpper)
import Data.String (words)
-- Writer category
type Writer a = (a, String)
(>=>) :: (a -> Writer b) -> (b -> Writer c) -> (a -> Writer c)
m1 >=> m2 = \x ->
let (y, s1) = m1 x
(z, s2) = m2 y
in (z, s1 ++ s2)
return :: a -> Write... | rockdragon/julia-programming | code/haskell/KleisliCategory.hs | mit | 555 | 0 | 10 | 146 | 258 | 141 | 117 | 17 | 1 |
module Wobsurv.Util.OpenServer.Connection where
import BasePrelude hiding (Interrupted)
import Pipes
import Pipes.Safe hiding (handle)
import Control.Monad.Trans.Except
import Control.Monad.Trans.State
import Control.Monad.Trans.Maybe
import qualified Data.ByteString as ByteString
import qualified Network.Socket as So... | nikita-volkov/wobsurv | library/Wobsurv/Util/OpenServer/Connection.hs | mit | 1,650 | 0 | 11 | 331 | 432 | 230 | 202 | 41 | 3 |
-----------------------------------------------------------------------------
-- |
-- Module : Parser.Location
-- Description : Source location and span information
-- Maintainer : coskuacay@gmail.com
-- Stability : experimental
-----------------------------------------------------------------------------
modul... | cacay/bibdb | src/Parser/Location.hs | mit | 5,292 | 0 | 12 | 1,088 | 1,157 | 624 | 533 | 107 | 1 |
module Tach.Wavelet.Core.Internal
(
) where
| smurphy8/tach | core-libs/tach-wavelet-core/src/Tach/Wavelet/Core/Internal.hs | mit | 52 | 0 | 3 | 13 | 11 | 8 | 3 | 2 | 0 |
module Stackage.CLI.Sandbox (
-- TODO
) where
-- TODO: move functionality from main/Sandbox.hs
| fpco/stackage-sandbox | src/Stackage/CLI/Sandbox.hs | mit | 101 | 0 | 3 | 19 | 12 | 9 | 3 | 1 | 0 |
-- | <http://strava.github.io/api/v3/segments/>
module Strive.Actions.Segments
( getSegment
, getStarredSegments
, getSegmentEfforts
, getSegmentLeaderboard
, exploreSegments
) where
import Data.List (intercalate)
import Network.HTTP.Types (Query, toQuery)
import Strive.Aliases (Latitude, Longitude, Result... | tfausak/strive | source/library/Strive/Actions/Segments.hs | mit | 2,390 | 0 | 14 | 355 | 525 | 290 | 235 | 61 | 1 |
module Carbon.DataStructures.Graphs.AdjacencyList.Tests (tests) where
import Test.QuickCheck
import qualified Test.HUnit as HUnit
import Test.Framework
import Test.Framework.Providers.QuickCheck2
import Test.Framework.Providers.HUnit
import Data.List (foldl')
import qualified Carbon.DataStructures.Graphs.AdjacencyLis... | Raekye/Carbon | haskell/testsuite/tests/Carbon/DataStructures/Graphs/AdjacencyList/Tests.hs | mit | 870 | 6 | 13 | 127 | 292 | 160 | 132 | 25 | 1 |
module Antemodulum.Text.Strict (
module Export
) where
--------------------------------------------------------------------------------
import Data.Text as Export
import Data.Text.IO as Export
| docmunch/antemodulum | src/Antemodulum/Text/Strict.hs | mit | 197 | 0 | 4 | 20 | 29 | 21 | 8 | 4 | 0 |
{-# LANGUAGE NoImplicitPrelude #-}
module System.Etc.Internal.Resolver.Cli
( PlainConfigSpec
-- , resolveCommandCli
-- , resolveCommandCliPure
, resolvePlainCli
, resolvePlainCliPure
) where
-- import System.Etc.Internal.Resolver.Cli.Command (resolveCommandCli, resolveCommandCliPure)
import System.Etc.Int... | roman/Haskell-etc | etc/src/System/Etc/Internal/Resolver/Cli.hs | mit | 405 | 0 | 5 | 48 | 44 | 32 | 12 | 7 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalyticsv2-application-recordcolumn.html
module Stratosphere.ResourceProperties.KinesisAnalyticsV2App... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/KinesisAnalyticsV2ApplicationRecordColumn.hs | mit | 3,058 | 0 | 13 | 269 | 357 | 203 | 154 | 34 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Sortier.Netz.Type
( Netz
, mkNetz, comps, low, high
, State, States
, Comp, Comps
)
where
import Sortier.Netz.Xml
import Autolib.ToDoc
import Autolib.Reader
import Autolib.Size
import Data.Typeable
type Comp = (Int, Int)
type Comps = [ Comp ]
type State = [ Int ]
type S... | Erdwolf/autotool-bonn | src/Sortier/Netz/Type.hs | gpl-2.0 | 897 | 6 | 12 | 247 | 335 | 189 | 146 | 35 | 1 |
{-# LANGUAGE CPP, ForeignFunctionInterface #-}
module Darcs.UI.External
( sendEmail
, generateEmail
, sendEmailDoc
, resendEmail
, signString
, verifyPS
, execDocPipe
, execPipeIgnoreError
, pipeDoc
, pipeDocSSH
, maybeURLCmd
, viewDoc
, viewDocWith
, haveSendmai... | DavidAlphaFox/darcs | src/Darcs/UI/External.hs | gpl-2.0 | 23,151 | 0 | 25 | 6,872 | 6,039 | 3,142 | 2,897 | -1 | -1 |
module Equ.PreExpr.Eval where
import Equ.Syntax
import Equ.Theories.AbsName
import Equ.PreExpr.Symbols
import Equ.PreExpr.Internal
import Control.Applicative
-- | Funcion para internalizar numerales.
intToCon :: Int -> PreExpr
intToCon 0 = Con $ natZero
intToCon n = UnOp (natSucc) $ intToCon (n-1)
semNBinOp :: Op... | miguelpagano/equ | Equ/PreExpr/Eval.hs | gpl-3.0 | 2,079 | 0 | 12 | 605 | 916 | 457 | 459 | 51 | 6 |
{- $Id$
Find the sum of the digits in the number 100!
Solution to http://projecteuler.net/index.php?section=problems&id=20
Copyright 2007 Victor Engmark
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... | l0b0/Project-Euler | 20 - Find the sum of digits in N factorial.hs | gpl-3.0 | 1,327 | 0 | 12 | 320 | 163 | 86 | 77 | 16 | 2 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid 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 Lice... | karamellpelle/grid | designer/source/LevelTools/EditWorld/Make.hs | gpl-3.0 | 4,257 | 0 | 12 | 1,315 | 834 | 476 | 358 | 89 | 1 |
module BabyRays.Shape where
import Core.Constants
import Core.Geometry
import BabyRays.Material
import BabyRays.Types
makeBox :: (Point -> Material) -> Point -> Vector -> Vector -> Vector -> [Shape]
makeBox mat p0 u v w = tris
where p1 = p0 .+^ w
p2 = p1 .+^ u
p3 = p0 .+^ u
p4 = p0 .+^ v
... | dsj36/dropray | src/BabyRays/Shape.hs | gpl-3.0 | 1,142 | 0 | 10 | 539 | 451 | 267 | 184 | 32 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dataproc/gen/Network/Google/Resource/Dataproc/Projects/Regions/WorkflowTemplates/Delete.hs | mpl-2.0 | 6,288 | 0 | 16 | 1,274 | 804 | 470 | 334 | 118 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.AdExchangeSeller.Types
-- Copyright : (c) 2015-2016 Br... | rueshyna/gogol | gogol-adexchange-seller/gen/Network/Google/AdExchangeSeller/Types.hs | mpl-2.0 | 3,960 | 0 | 7 | 1,114 | 489 | 334 | 155 | 139 | 1 |
module Hands where
import Data.Function (on)
import Data.List (groupBy, sortBy)
import Data.Ord (comparing)
import Types
checkGroups :: [Card] -> (HandRank, [Card])
checkGroups h = (hr, cs)
where groupedByRank = sortByLength $ groupBy ((==) `on` rank) $ sort h
topFive = take 5 $ concat groupedByRank
... | SPbAU-ProgrammingParadigms/materials | haskell_2/poker/Hands.hs | unlicense | 682 | 0 | 12 | 233 | 261 | 145 | 116 | 18 | 6 |
module Git.Command.SendPack (run) where
run :: [String] -> IO ()
run args = return () | wereHamster/yag | Git/Command/SendPack.hs | unlicense | 86 | 0 | 7 | 15 | 42 | 23 | 19 | 3 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module HsCocoa where
import Foreign.C
import Data.ByteString.Char8 (unpack)
import Data.Either
import Control.Exception
import System.Log.Logger
import qualified Oauth as O
import Sync
import Http
import Error
foreign export ccall hsInitSync :: IO CString
foreign export ccall h... | froden/digipostarkiv | src/HsCocoa.hs | apache-2.0 | 2,604 | 0 | 16 | 763 | 824 | 399 | 425 | 67 | 4 |
module PolygonSizes.A328793 (a328793) where
import Data.List (findIndices)
import Data.Set (Set)
import qualified Data.Set as Set
import Helpers.PolygonSizes (triangleSizes)
import HelperSequences.A003136 (a003136)
-- This could be a little faster by using the fact that
-- A328793(A024610(n) + k) > n + 1 for all n > 0... | peterokagey/haskellOEIS | src/PolygonSizes/A328793.hs | apache-2.0 | 482 | 0 | 10 | 75 | 125 | 74 | 51 | 10 | 1 |
import Control.Applicative
import Control.Monad hiding (join)
import qualified Data.ByteString.Lazy.Char8 as BL
import Data.Function (on)
import Data.List
import Data.Maybe
import Data.String.Utils (replace, join)
import System.Directory
import System.FilePath.Find
import System.Environment
import System.IO.Unsafe
dat... | k0001/haskell-tzdata | tools/genZones.hs | apache-2.0 | 2,866 | 0 | 22 | 663 | 1,041 | 526 | 515 | 76 | 3 |
module Eval (runEval) where
import Control.Monad.Except
import Control.Monad.Reader
import qualified Data.Map as M
import Data.Monoid ((<>))
import BuiltIn
import EvalState
import LitCust
import Syntax
import Types
eval :: TermEnv -> Exp... | ahodgen/archer-calc | src/Eval.hs | bsd-2-clause | 3,793 | 0 | 19 | 1,229 | 1,828 | 894 | 934 | 85 | 20 |
-- Haskell Torrent
-- Copyright (c) 2009, Jesper Louis Andersen,
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright
-- ... | astro/haskell-torrent | src/BCode.hs | bsd-2-clause | 11,919 | 0 | 21 | 3,932 | 3,088 | 1,603 | 1,485 | 240 | 4 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.S3.Types
( S3Method (..)
, S3Request (..)
, S3SignedRequest (..)
, S3Header
, getS3Header
, s3Header
, s3HeaderBuilder
) where
import Data.ByteString.UTF8 (ByteString)
import GHC.Ge... | dmjio/s3-signer | src/Network/S3/Types.hs | bsd-2-clause | 2,818 | 0 | 9 | 757 | 490 | 304 | 186 | 54 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ParallelListComp #... | ekmett/time-series | src/Data/Time/Series.hs | bsd-3-clause | 3,070 | 0 | 14 | 1,091 | 1,849 | 912 | 937 | 58 | 0 |
import Control.Monad
import Data.Maybe
import Data.IntMap (IntMap)
import qualified Data.IntMap as IntMap
import System.Console.GetOpt
import System.Environment
import System.Exit
import Command
import Types
import Game hiding (id)
import qualified Game
import Play
import Util
data Options
= Options
{ optPhrases ... | msakai/icfpc2015 | tools/replay.hs | bsd-3-clause | 2,273 | 0 | 26 | 545 | 755 | 401 | 354 | 58 | 4 |
{-# LANGUAGE CPP, BangPatterns, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_HADDOCK hide #-}
{- | Copyright : (c) 2010-2011 Simon Meier
License : BSD3-style (see LICENSE)
Maintainer : Simon Meier <iridcode@gmail.com>
Stability : experimental
Portability : GHC
An... | markflorisson/hpack | testrepo/bytestring-0.10.2.0/Data/ByteString/Builder/Prim/Extra.hs | bsd-3-clause | 35,943 | 0 | 18 | 8,456 | 3,898 | 2,063 | 1,835 | 335 | 3 |
module Text.HTML.Moe2.DSL.HTML5 where
import Text.HTML.Moe2.Element
import Text.HTML.Moe2.Type
article :: MoeCombinator
aside :: MoeCombinator
audio :: MoeCombinator
canvas :: MoeCombinator
command :: MoeCombinator
datagrid :: MoeCombinator
datalist :: MoeCombinator ... | nfjinjing/moe | src/Text/HTML/Moe2/DSL/HTML5.hs | bsd-3-clause | 1,729 | 0 | 5 | 545 | 348 | 192 | 156 | 53 | 1 |
import Data.Pipe
import Data.Pipe.ByteString
import System.IO
main :: IO ()
main = do
_ <- runPipe $ fromFileLn "test/sample.txt" =$= toHandleLn stdout
return ()
| YoshikuniJujo/simple-pipe | test/testEOF.hs | bsd-3-clause | 165 | 0 | 10 | 27 | 61 | 30 | 31 | 7 | 1 |
module Elm.Package.Constraint
( Constraint
, fromString
, toString
, untilNextMajor
, untilNextMinor
, expand
, defaultElmVersion
, isSatisfied
, errorMessage
) where
import qualified Data.Aeson as Json
import qualified Data.Text as Text
import qualified Elm.Package as Package
... | laszlopandy/elm-package | src/Elm/Package/Constraint.hs | bsd-3-clause | 3,890 | 0 | 12 | 971 | 1,004 | 517 | 487 | 109 | 3 |
{-# LANGUAGE RankNTypes #-}
module Content (content) where
import qualified Message
import Text.XML.HXT.Core
import WordProcessing
fieldText::ArrowXml a =>String->a XmlTree XmlTree
fieldText name =
getChildren
>>> isElem
>>> hasName name
>>> getChildren
>>> isText
fieldVal::ArrowXml a ... | Odomontois/abapdocu | src/Content.hs | bsd-3-clause | 2,658 | 0 | 12 | 597 | 835 | 429 | 406 | 77 | 1 |
-- | Memoize IO actions, performing them at most once,
-- but recalling their result for subsequent invocations.
-- This library provides two sequencing strategies:
-- lazy ('once'), and concurrent ('eagerlyOnce').
--
-- The following property holds: @join . once === id@.
-- The same is true for @eagerlyOnce@.
--
-- ... | DanBurton/io-memoize | src/System/IO/Memoize.hs | bsd-3-clause | 2,302 | 0 | 9 | 424 | 293 | 168 | 125 | 27 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Build-specific ... | juhp/stack | src/Stack/Types/Build.hs | bsd-3-clause | 28,596 | 0 | 23 | 8,456 | 5,386 | 2,918 | 2,468 | 616 | 6 |
--
-- MaterialTypes.hs
-- Copyright (C) 2017 jragonfyre <jragonfyre@jragonfyre>
--
-- Distributed under terms of the MIT license.
--
module Game.MaterialTypes where
-- (
-- ) where
import qualified Data.HashMap.Lazy as M
import qualified Data.Yaml as Y
import Data.Yaml (FromJSON (..), (.:), (.!=), (.:?), (.=), ToJS... | jragonfyre/TRPG | src/Game/MaterialTypes.hs | bsd-3-clause | 2,482 | 0 | 16 | 450 | 742 | 411 | 331 | 59 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
module Universe
( Universe
, Properties
, empty
, attributes
, contains
, insertTrait
, insertTheorem
, lookup
, relevantTheorems
, moveTheorem
, table
, fromPairs
, toPairs
) where
import Prelude hiding (lookup)
import M... | jamesdabbs/pi-base-2 | src/Universe.hs | bsd-3-clause | 3,816 | 0 | 13 | 850 | 1,378 | 726 | 652 | 92 | 3 |
{-# LANGUAGE ForeignFunctionInterface #-}
-- | Low-level IO operations
-- These operations are either missing from the GHC run-time library,
-- or implemented suboptimally or heavy-handedly
--
module System.LowLevelIO (myfdRead, myfdSeek, Errno(..), select'read'pending)
where
import Foreign.C
import Foreign.Ptr
... | suhailshergill/liboleg | System/LowLevelIO.hs | bsd-3-clause | 4,002 | 4 | 20 | 918 | 1,239 | 674 | 565 | 71 | 4 |
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : Game.Rendering
-- Description : Exposes the renderGame function and is the
-- entry point into the main rendering path for the game
-- Copyright : (c) 2016 Caitlin Wilks
-- License : BSD3
-- Maintainer : Caitlin Wilks <mitasuki@gmail... | Catchouli/tyke | src/Game/Rendering.hs | bsd-3-clause | 5,081 | 0 | 18 | 1,474 | 1,194 | 598 | 596 | 101 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Lib
import Generator
import View
import Model
import Web.Scotty
import Data.List (intercalate)
import qualified Data.Text.Lazy as T
import Control.Monad.IO.Class (liftIO)
import Network.Wai.Middleware.Static
import System.Environment (getArgs)
import Text.Bl... | alanbuxton/planck-chauffeur | app/Main.hs | bsd-3-clause | 2,776 | 0 | 19 | 674 | 1,002 | 532 | 470 | 62 | 2 |
{-# LANGUAGE PatternGuards, ViewPatterns, CPP, ScopedTypeVariables #-}
module General.Util(
URL,
pretty, parseMode, tyApps, fromName, fromQName, fromTyVarBind, declNames,
tarballReadFiles,
isUpper1, isAlpha1,
splitPair, joinPair,
testing, timed,
showUTCTime,
list', strict,
withs,
... | BartAdv/hoogle | src/General/Util.hs | bsd-3-clause | 8,719 | 0 | 16 | 2,119 | 3,684 | 1,892 | 1,792 | 216 | 8 |
{-# LANGUAGE OverloadedStrings #-}
module PSBT.Bower (
Bower(..)
, BowerError(..)
, Dependency(..)
, bowerErrorHandler
, bowerErrorMessage
, createBowerFile
, minimalBower
, readBowerFile
) where
import Control.Applicative (empty, optional, (<|>))
import ... | LightAndLight/psbt | src/PSBT/Bower.hs | bsd-3-clause | 5,251 | 0 | 16 | 1,693 | 1,309 | 719 | 590 | 109 | 4 |
{-# LANGUAGE ScopedTypeVariables #-}
module TestFSM3 where
import System.IO
import Control.Monad.State
import Control.Exception
data UserInput = UIActionSumTwoNumbers | UIActionQuit | UIInt Int | UIAny
data AppOut = AOEnd String | AOLink App | AOMessage String App
type UserState = [Int]
type NodeId = String
data App... | homam/fsm-conversational-ui | src/TestFSM3.hs | bsd-3-clause | 2,751 | 0 | 16 | 623 | 963 | 493 | 470 | 77 | 4 |
{-# LANGUAGE PackageImports #-}
module Control.Exception.Base (module M) where
import "base" Control.Exception.Base as M
| silkapp/base-noprelude | src/Control/Exception/Base.hs | bsd-3-clause | 126 | 0 | 4 | 18 | 23 | 17 | 6 | 3 | 0 |
-- | QuickCheck properties.
module Test.Properties
( fmapTermFunctorProp
, foldTermId
, freeVarsTVarsInTerm
, fmapFormulaFunctorProp
, foldFormulaId
, cnfProp
, cnfIdempotent
, prenexProp
, prenexIdempotent
, skolemizeProp
)
where
import qualified Data.Set as Set
import Con... | vituscze/logic | tests/Test/Properties.hs | bsd-3-clause | 4,074 | 0 | 11 | 1,156 | 1,320 | 691 | 629 | 78 | 10 |
----------------------------------------------------------------------------
-- |
-- Module : Haskell.Language.Lexer
-- Copyright : (c) Sergey Vinokurov 2016
-- License : BSD3-style (see LICENSE)
-- Maintainer : serg.foo@gmail.com
-- Created : Thursday, 3 November 2016
----------------------------... | sergv/tags-server | src/Haskell/Language/Lexer.hs | bsd-3-clause | 1,472 | 0 | 11 | 261 | 182 | 116 | 66 | -1 | -1 |
main = print $ sum $ filter even $ takeWhile (<= 4000000) fib where
fib = 1 : 2 : zipWith (+) fib (tail fib)
| foreverbell/project-euler-solutions | src/2.hs | bsd-3-clause | 113 | 0 | 10 | 29 | 60 | 31 | 29 | 2 | 1 |
{-# LANGUAGE TypeOperators #-}
-- | an example of how repa and our extention can be used together
module Main where
import Raytracer
import Data.Time
import qualified Data.Array.Repa as R
import Data.Array.Repa.IO.BMP
import qualified Data.Array.Repa.Algorithms.Matrix as R
-- | used as the camera for this example
dumm... | axhav/AFPLAB3 | executable/Preview.hs | bsd-3-clause | 2,966 | 0 | 16 | 883 | 931 | 494 | 437 | 47 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Utils.Bytes
( stringToByteString
, byteStringToString
, hexStringToByteString
, byteStringToHexString
, hexstringToBase64
, c2w
, w2c
, blocks
, pad
, unpad
, all_chars
) where
import qualified Data.ByteString.Base64 as B64
impo... | eelcoh/cryptochallenge | src/Utils/Bytes.hs | bsd-3-clause | 2,364 | 0 | 11 | 511 | 574 | 326 | 248 | 74 | 1 |
module Eight where
decodedLength :: String -> Int
decodedLength [] = 0
decodedLength ('\\':stuff) =
case stuff of
'\\':rest -> 1 + decodedLength rest
'"':rest -> 1 + decodedLength rest
'x':rest -> 1 + decodedLength (drop 2 rest)
_ -> error "illegal escape"
decodedLength ['"'] = 0
decodedLength ('"':xs) = de... | purcell/adventofcodeteam | app/Eight.hs | bsd-3-clause | 698 | 0 | 11 | 127 | 261 | 130 | 131 | 21 | 4 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.EXT.RasterMultisample
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portab... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/EXT/RasterMultisample.hs | bsd-3-clause | 933 | 0 | 4 | 103 | 64 | 50 | 14 | 10 | 0 |
{-# LANGUAGE TypeOperators #-}
module Zero.Bitstamp.API
(
BitstampAPI
, bitstampAPI
) where
import Data.Proxy (Proxy(..))
import Data.Text (Text)
import Servant.API
import Zero.Bitstamp.Internal
------------------------------------------------------------------------... | et4te/zero | src-shared/Zero/Bitstamp/API.hs | bsd-3-clause | 567 | 0 | 11 | 109 | 103 | 61 | 42 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
module LendingClub.Monad where
import Control.Concurrent (ThreadId, forkIO)
import Control.Concurrent.Async
import Control.Concurrent.STM
import Control.Monad.Reader
import Data.Byte... | WraithM/notescript | src/LendingClub/Monad.hs | bsd-3-clause | 3,772 | 0 | 12 | 903 | 945 | 469 | 476 | 86 | 1 |
module Cardano.Wallet.API.V1.Errors where
import Universum
import Cardano.Wallet.API.V1.Headers (applicationJson)
import Data.Aeson (ToJSON, encode)
import Formatting (build, sformat)
import Servant (ServantErr (..))
import qualified Network.HTTP.Types as HTTP
clas... | input-output-hk/pos-haskell-prototype | wallet/src/Cardano/Wallet/API/V1/Errors.hs | mit | 906 | 0 | 12 | 237 | 235 | 133 | 102 | -1 | -1 |
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE FlexibleContexts #-}
module Network.IPTables.ParserHelper where
import Data.Functor ((<$>), ($>))
import Network.IPTables.IsabelleToString (Word32, Word128)
import Data.List.Split (splitOn)
import qualified Network.IPTables.Generated as Isabelle
import... | diekmann/Iptables_Semantics | haskell_tool/lib/Network/IPTables/ParserHelper.hs | bsd-2-clause | 4,161 | 0 | 14 | 1,145 | 1,396 | 725 | 671 | 100 | 3 |
{-
- Origin:
- Constraint Programming in Haskell
- http://overtond.blogspot.com/2008/07/pre.html
- author: David Overton, Melbourne Australia
-
- Modifications:
- Monadic Constraint Programming
- http://www.cs.kuleuven.be/~toms/Haskell/
- Tom Schrijvers
-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ... | FranklinChen/monadiccp | Control/CP/FD/OvertonFD/OvertonFD.hs | bsd-3-clause | 12,984 | 207 | 15 | 3,417 | 3,874 | 2,039 | 1,835 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.Monitors.CoreTemp
-- Copyright : (c) Juraj Hercek
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Juraj Hercek <juhe_haskell@hck.sk>
-- Stability : unstable
-- Portability : unportable
--
-... | tsiliakis/xmobar | src/Plugins/Monitors/CoreTemp.hs | bsd-3-clause | 1,541 | 0 | 15 | 399 | 205 | 126 | 79 | 16 | 1 |
{-# LANGUAGE PatternGuards #-}
-- | This module does command line completion
module System.Console.CmdArgs.Explicit.Complete(
Complete(..), complete,
completeBash, completeZsh
) where
import System.Console.CmdArgs.Explicit.Type
import Control.Monad
import Data.List
import Data.Maybe
-- | How to complete... | copland/cmdargs | System/Console/CmdArgs/Explicit/Complete.hs | bsd-3-clause | 7,783 | 0 | 15 | 2,213 | 2,200 | 1,151 | 1,049 | 144 | 10 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
-}
{-# LANGUAGE CPP #-}
module TcValidity (
Rank, UserTypeCtxt(..), checkValidType, checkValidMonoType,
expectedKindInCtxt,
checkValidTheta, checkValidFamPats,
checkValidInstance, validDerivPred,
checkInstTermina... | siddhanathan/ghc | compiler/typecheck/TcValidity.hs | bsd-3-clause | 57,770 | 7 | 16 | 16,404 | 8,610 | 4,419 | 4,191 | -1 | -1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, NoImplicitPrelude
, BangPatterns
#-}
{-# OPTIONS_GHC -Wno-identities #-}
-- Whether there are identities depends on the platform
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Mod... | shlevy/ghc | libraries/base/GHC/IO/FD.hs | bsd-3-clause | 23,109 | 3 | 17 | 5,872 | 4,282 | 2,227 | 2,055 | 317 | 5 |
f = foo ((*) x) | mpickering/hlint-refactor | tests/examples/Lambda8.hs | bsd-3-clause | 15 | 0 | 7 | 4 | 17 | 9 | 8 | 1 | 1 |
<?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="ur-PK">
<title>Kotlin Support</title>
<maps>
<homeID>kotlin</homeID>
<mapref location="... | kingthorin/zap-extensions | addOns/kotlin/src/main/javahelp/org/zaproxy/addon/kotlin/resources/help_ur_PK/helpset_ur_PK.hs | apache-2.0 | 962 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
-- | Error handling style for the hackage server.
--
-- The point is to be able to abort and return appropriate HTTP errors, plus
-- human readable messages.
--
-- We use a standard error monad / exception style so that we can hide some of
-- the error checking plumbing.
--
-- We use a custom error type that enables us... | ocharles/hackage-server | Distribution/Server/Framework/Error.hs | bsd-3-clause | 5,947 | 0 | 14 | 1,237 | 1,082 | 603 | 479 | 82 | 2 |
module PackageTests.BuildDeps.TargetSpecificDeps3.Check where
import Test.Tasty.HUnit
import PackageTests.PackageTester
import System.FilePath
import Data.List
import qualified Control.Exception as E
import Text.Regex.Posix
suite :: SuiteConfig -> Assertion
suite config = do
let spec = PackageSpec
{ ... | trskop/cabal | Cabal/tests/PackageTests/BuildDeps/TargetSpecificDeps3/Check.hs | bsd-3-clause | 1,017 | 0 | 15 | 259 | 223 | 118 | 105 | 24 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Data.ByteString (ByteString)
import qualified Data.HashMap.Strict as HM
import Data.Maybe (fromMaybe)
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
imp... | snoyberg/warp-vhost | src/Main.hs | mit | 1,936 | 0 | 15 | 672 | 536 | 287 | 249 | 43 | 2 |
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
-- | Square representation
module Scrabble.Board.Square
(
Bonus(..)
, Square(..)
, debugSquare
, emptySquare
, showSquare
, taken
, toWord
) where
import Data.Aeson (ToJSON, FromJSON)
import GHC.Generics
import Scrabble.Bag
import Scrabble.B... | joshcough/Scrabble | src/Scrabble/Board/Square.hs | mit | 1,354 | 0 | 11 | 341 | 463 | 258 | 205 | 44 | 2 |
module TC where
import AST
import Data.List
-- import Control.Monad.State
-- import Control.Monad.Trans.Except
type TCEnv = [(Var, Ty)]
data TCState = TCSt
{ tcEnv :: TCEnv, tcFreeLinVars :: [Var] }
deriving (Show)
isUnlimitedType :: Ty -> Bool
isUnlimitedType (TyQual Linear _) = False
isUnlimitedType _ = True... | SimonJF/session-type-checker | TC.hs | mit | 6,880 | 0 | 24 | 1,832 | 1,960 | 1,037 | 923 | 113 | 10 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
import System.Environment (getArgs)
import Network.Wai.Middleware.Static as S
import Network.Wai.Middleware.RequestLogger (logStdoutDev)
import Web.Scotty
import Network.MPD (MPD)
import qualifie... | kalhauge/vagnplayer | src/Main.hs | mit | 3,720 | 0 | 22 | 1,126 | 1,194 | 586 | 608 | 100 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.