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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
import Test.HUnit
import qualified Data.Map as M
import Control.Monad(liftM)
import Wy.Parser
import Wy.Types
import Wy.Interpr
main = runTestTT $ TestList [adjustTests, patternMatchTests]
--
-- Adjustment of parameters on function application for optional and var args
adjustTests = TestList [adjustOptTests, adjus... | matthieu/witty | haskell/test/hunit.hs | apache-2.0 | 5,199 | 0 | 14 | 843 | 1,851 | 968 | 883 | 77 | 1 |
module ESE20181213 where
import Control.Monad
type Log = [String]
newtype Logger a = Logger { run :: (a, Log)}
instance (Show a) => Show (Logger a) where
show (Logger a) = show a
instance (Eq a) => Eq (Logger a) where
Logger (x,y) /= Logger (a,b) = (x /= a) || (y /= b)
logmapp :: (a... | riccardotommasini/plp16 | haskell/actual/ESE20181213.hs | apache-2.0 | 701 | 13 | 11 | 232 | 350 | 181 | 169 | -1 | -1 |
-- Copyright 2012-2014 Samplecount S.L.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agr... | samplecount/shake-language-c | src/Development/Shake/Language/C/BuildFlags.hs | apache-2.0 | 9,083 | 0 | 18 | 1,964 | 1,492 | 817 | 675 | 121 | 4 |
-- |
-- Module : Graphics.Rendering.Hieroglyph.Cairo
-- Copyright : (c) Renaissance Computing Institute 2009
-- License : BSD3
--
--
-- [@Author@] Jeff Heard
--
-- [@Copyright@] © 2008 Renaissance Computing Institute
--
-- [@License@] A LICENSE file should be included as part of this ... | JeffHeard/Hieroglyph | Graphics/Rendering/Hieroglyph/Cairo.hs | bsd-2-clause | 12,020 | 0 | 18 | 2,496 | 3,732 | 1,840 | 1,892 | 197 | 5 |
{-# LANGUAGE BangPatterns, CPP, MagicHash, RankNTypes, UnboxedTuples #-}
#if __GLASGOW_HASKELL__ >= 702
{-# LANGUAGE Trustworthy #-}
#endif
-- Module: Data.Text.Lazy.Builder.Int
-- Copyright: (c) 2013 Bryan O'Sullivan
-- (c) 2011 MailRank, Inc.
-- License: BSD3
-- Maintainer: Bryan O'Sullivan ... | ekmett/text | Data/Text/Lazy/Builder/Int.hs | bsd-2-clause | 9,034 | 0 | 17 | 2,764 | 2,461 | 1,286 | 1,175 | 197 | 6 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Pattern-matching bindings (HsBinds and MonoBinds)
Handles @HsBinds@; those at the top level require different handling,
in that the @Rec@/@NonRec@/etc structure is thrown away (whereas at
lower levels it is preserved with... | ssaavedra/liquidhaskell | src/Language/Haskell/Liquid/Desugar710/DsBinds.hs | bsd-3-clause | 49,258 | 0 | 24 | 15,515 | 8,484 | 4,342 | 4,142 | 553 | 21 |
module Web.Zenfolio.RPC (
zfRemote,
zfRemoteSsl,
zfAgentHeaders,
zfTokenHeader
) where
import Network.JsonRpc (MethodName, Remote, remote)
import qualified Network.HTTP as H (Header(..), HeaderName(..))
import Network.URI (URI, parseURI)
import Web.Zenfolio.Types (AuthToken)
zfUserAgent :: String
zfU... | md5/hs-zenfolio | Web/Zenfolio/RPC.hs | bsd-3-clause | 1,171 | 0 | 9 | 197 | 308 | 173 | 135 | 26 | 1 |
-- Copyright (c)2012, IlyaPortnov
--
-- 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
-- notice, this list of... | jprider63/simplessh-modified | src/Network/SSH/Client/SimpleSSH/GCrypt.hs | bsd-3-clause | 1,774 | 0 | 7 | 329 | 62 | 50 | 12 | 4 | 0 |
module React.Flux.Mui
( module X
, muiThemeWrapper_
) where
import Protolude
import React.Flux
import React.Flux.Mui.AppBar as X
import React.Flux.Mui.AutoComplete as X
import React.Flux.Mui.Avatar as X
import React.Flux.Mui.Badge as X
import React.Flux.Mui.BottomNavigation as X
import React.Flux.Mui.BottomNav... | pbogdan/react-flux-mui | react-flux-mui/src/React/Flux/Mui.hs | bsd-3-clause | 3,048 | 0 | 7 | 322 | 714 | 545 | 169 | 77 | 1 |
-- |Partial binding to CoreFoundation, as required for `System.Midi`.
-- At the moment only CFString is supported.
-- In the future this module should grow into a separate entity.
{-# LANGUAGE ForeignFunctionInterface, EmptyDataDecls #-}
module System.MacOSX.CoreFoundation
( newCFString
, releaseCFString
... | hanshoglund/hamid | src/System/MacOSX/CoreFoundation.hs | bsd-3-clause | 3,169 | 0 | 12 | 681 | 688 | 378 | 310 | -1 | -1 |
{-------------------------------------------------------------------------------
A mapper/reducer for Hadoop streams for building BoW models from
a CONLL-parsed file.
(c) 2013 Jan Snajder
-------------------------------------------------------------------------------}
{-# LANGUAGE OverloadedStrings #-}
import C... | jsnajder/dsem | src/txt2bow.hs | bsd-3-clause | 6,317 | 0 | 16 | 1,612 | 2,255 | 1,188 | 1,067 | 144 | 4 |
{-
- Hacq (c) 2013 NEC Laboratories America, Inc. All rights reserved.
-
- This file is part of Hacq.
- Hacq is distributed under the 3-clause BSD license.
- See the LICENSE file for more details.
-}
{-# LANGUAGE DeriveDataTypeable #-}
module Data.Quantum.Cost.Class (Cost(..), WrappedCost(..)) where
import Da... | ti1024/hacq | src/Data/Quantum/Cost/Class.hs | bsd-3-clause | 9,852 | 0 | 10 | 1,940 | 2,982 | 1,641 | 1,341 | 132 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
module IDP.AzureAD where
import Data.Aeson
import Data.Default
import Data.Text.Lazy (Text)
import GHC.Generics
impo... | freizl/hoauth2 | hoauth2-example/src/IDP/AzureAD.hs | bsd-3-clause | 1,308 | 0 | 8 | 209 | 249 | 157 | 92 | 37 | 1 |
module Flat.Decoder.Run(strictDecoder,listTDecoder) where
import Foreign ( Ptr, plusPtr, withForeignPtr )
import qualified Data.ByteString as B
import ListT ( ListT(..) )
import qualified Data.ByteString.Internal as BS
import Control.Exception ( try, Exception )
import Flat.Decoder.Types
( tooMuchSpace, S... | tittoassini/flat | src/Flat/Decoder/Run.hs | bsd-3-clause | 2,235 | 0 | 21 | 629 | 588 | 316 | 272 | 44 | 2 |
{-# LANGUAGE ForeignFunctionInterface #-}
-- |
-- Copyright : Anders Claesson 2013-2016
-- Maintainer : Anders Claesson <anders.claesson@gmail.com>
--
-- Common permutation statistics. To avoid name clashes this module is
-- best imported @qualified@; e.g.
--
-- > import qualified Sym.Perm.Stat as S
--
module Sy... | akc/sym | Sym/Perm/Stat.hs | bsd-3-clause | 8,514 | 0 | 12 | 2,103 | 1,555 | 885 | 670 | 156 | 2 |
module Numerus.Demo where
import Numerus
runbletch :: Int
runbletch = bletch 5
| markhibberd/numerus | demo/Numerus/Demo.hs | bsd-3-clause | 81 | 0 | 5 | 14 | 22 | 13 | 9 | 4 | 1 |
{-# language TypeFamilies #-}
{-# language FlexibleInstances #-}
{-# language FlexibleContexts #-}
{-# language MultiParamTypeClasses #-}
{-# language UndecidableInstances #-}
{-# language Rank2Types #-}
{-# language ScopedTypeVariables #-}
{-# language TypeOperators #-}
module Feldspar... | markus-git/co-feldspar | src/Feldspar/Software/Frontend.hs | bsd-3-clause | 22,407 | 0 | 17 | 4,764 | 6,202 | 3,258 | 2,944 | 439 | 12 |
-- vim: encoding=latin1
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeOperators #-}
-- | Instances for tuples of fields up to a 10-tuple. This allows
-- accessing several fields simultaneously.
--
-- > r.#(fiel... | AstraFIN/fields | Data/Record/Field/Tuple.hs | bsd-3-clause | 10,886 | 0 | 17 | 6,528 | 3,092 | 1,703 | 1,389 | 247 | 0 |
module Htrans.Logger (
-- funcs
setAppLogger,
logStartAppDebug,
logStopAppDebug,
logConfigDebug,
logInOutInfo
) where
import System.Log.Logger
import System.Log.Handler.Simple (fileHandler)
import System.Log.Handler (setFormatter, LogHandler)
import System.Log.Formatter (simpleLogFormatter)
import qualifi... | johhy/htrans | src/Htrans/Logger.hs | bsd-3-clause | 1,532 | 0 | 12 | 288 | 438 | 229 | 209 | 38 | 4 |
-- |
-- Module : Crypto.PubKey.Curve25519
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : unknown
--
-- Curve25519 support
--
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE ScopedTypeVariables #-}
mo... | tekul/cryptonite | Crypto/PubKey/Curve25519.hs | bsd-3-clause | 4,742 | 0 | 19 | 1,326 | 945 | 503 | 442 | 79 | 2 |
{-# LANGUAGE UnicodeSyntax, OverloadedStrings, TemplateHaskell, QuasiQuotes, TypeFamilies #-}
module ExampleTypes where
import Control.Monad
import Data.Text (Text)
import qualified Data.Text as T
import Data.Time
import Massive.Database.MongoDB
import System.Locale
import Text.Printf
data U... | HalfWayMan/mt-mongodb | examples/ExampleTypes.hs | bsd-3-clause | 944 | 0 | 12 | 248 | 249 | 129 | 120 | 22 | 1 |
{-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving #-}
module Clay.Text
(
-- * Letter and word-spacing.
letterSpacing
, wordSpacing
-- * Text-rendering.
, TextRendering
, textRendering
, optimizeSpeed, optimizeLegibility, geometricPrecision
-- * Text-shadow.
, textShadow
-- * Text-indent.
, TextIndent
... | bergmark/clay | src/Clay/Text.hs | bsd-3-clause | 5,720 | 0 | 11 | 786 | 1,245 | 711 | 534 | 145 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE RecordWildCards #-}
-- |
-- Module: $HEADER$
-- Description: Windows Named Pipes streaming API.
-- Copyright: (c) 2016, Ixperta Solutions s.r.o.
-- License: BSD3
--
-- Maintainer: Ixcom Core Team <ixcom-core@ixperta.com>
-- Stability: experimental
-- P... | IxpertaSolutions/windows-named-pipes | src/Data/Streaming/NamedPipes.hs | bsd-3-clause | 6,641 | 0 | 15 | 1,610 | 823 | 505 | 318 | 116 | 1 |
--------------------------------------------------------------------------------
-- | Provides an easy way to combine several items in a list. The applications
-- are obvious:
--
-- * A post list on a blog
--
-- * An image list in a gallery
--
-- * A sitemap
{-# LANGUAGE TupleSections #-}
module Hakyll.Web.Template.Lis... | bergmark/hakyll | src/Hakyll/Web/Template/List.hs | bsd-3-clause | 2,698 | 0 | 13 | 654 | 458 | 253 | 205 | 36 | 1 |
instance Functor (Either Int) where
fmap _ (Left n) = Left n
fmap f (Right r) = Right (f r) | elbrujohalcon/hPage | res/test/FlexibleInstances.hs | bsd-3-clause | 103 | 0 | 8 | 31 | 59 | 28 | 31 | 3 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Main where
import Control.Applicative
import Control.Monad
import Data.Monoid
import Data.Text (Text)
import qualified Data.Text as T
import Napm.Password
import Napm.T... | fractalcat/napm | tests/NapmTest.hs | mit | 1,017 | 0 | 13 | 259 | 298 | 164 | 134 | 25 | 1 |
module E.Show(ePretty,render,prettyE) where
import Control.Monad.Identity
import Data.Char(chr)
import Data.Maybe
import Doc.DocLike
import Doc.PPrint
import Doc.Pretty
import E.E
import E.FreeVars()
import E.TypeCheck
import Name.Id
import Name.Name
import Name.Names
import Name.VConsts
import Options
import Support... | dec9ue/jhc_copygc | src/E/Show.hs | gpl-2.0 | 12,128 | 10 | 28 | 4,246 | 4,750 | 2,376 | 2,374 | -1 | -1 |
module XorCnfSimplify (simplify, Sub(..)) where
import XorCnf
import qualified Data.Set as Set
import Data.List
import Generic
data Sub = SubLit Var Lit
| SubDef Var Clause
| SubConst Var Bool deriving (Read,Show)
simplify :: Clause -> Maybe Clause
simplify (Or lits)
| isTautology = Nothing... | a1880/xor | xcnf-preprocess/XorCnfSimplify.hs | gpl-3.0 | 623 | 0 | 12 | 169 | 229 | 121 | 108 | 17 | 1 |
module Rules where
import Data.Char
{-# RULES "map-loop" [ ~ ] forall f . map' f = map' (id . f) #-}
{-# NOINLINE map' #-}
map' f [] = []
map' f (x:xs) = f x : map' f xs
main = print (map' toUpper "Hello, World")
-- Should warn
foo1 x = x
{-# RULES "foo1" [ 1] forall x. foo1 x = x #-}
-- Should warn
foo2 x = x
... | mpickering/ghc-exactprint | tests/examples/ghc710/Rules.hs | bsd-3-clause | 677 | 0 | 7 | 172 | 136 | 77 | 59 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
-- | Remove unused heap objects.
module Stg.Machine.GarbageCollection (
garbageCollect,
-- * Algorithms
GarbageCollectionAlgorithm,
triStateTracing,
twoSpaceCopying,
) where
import qualified Data.Set as S
import Stg.Machine.GarbageCollection.Common
import Stg... | quchen/stg | src/Stg/Machine/GarbageCollection.hs | bsd-3-clause | 1,025 | 0 | 12 | 215 | 175 | 104 | 71 | 19 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
-- | Provide ability to upload tarballs to Hackage.
module Stack.Upload
( -- * Upload
upload
... | juhp/stack | src/Stack/Upload.hs | bsd-3-clause | 8,896 | 0 | 18 | 2,992 | 1,708 | 871 | 837 | 177 | 5 |
{-# LANGUAGE ExtendedDefaultRules #-}
{-# LANGUAGE QuasiQuotes #-}
module System.Command.QQ.EvalSpec (spec) where
import Data.Text.Lazy (Text, pack)
import System.Command.QQ
import System.Exit (ExitCode(..))
import Test.Hspec
spec :: Spec
spec = do
describe "quasiquotation" $ do
context "unicode" $ do
it... | beni55/command-qq | test/System/Command/QQ/EvalSpec.hs | bsd-3-clause | 2,952 | 0 | 17 | 793 | 664 | 372 | 292 | 65 | 1 |
-- Tests for the identity rhino jsSrc = rhino.pretty.parse jsSrc, where
-- parse and pretty are our parser and pretty-printer and rhino is Mozilla
-- Rhino's JavaScript parser and pretty-printer.
module Rhino where
import Control.Monad
import qualified Data.ByteString.Char8 as B
import BrownPLT.Test
rhino :: FilePa... | brownplt/webbits | tests/Rhino.hs | bsd-3-clause | 1,249 | 0 | 15 | 271 | 329 | 167 | 162 | 27 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
-----------------------------------------------------------------------------
-- |
-- Module : Text.Trifecta.Combinators
-- Copy... | treeowl/trifecta | src/Text/Trifecta/Combinators.hs | bsd-3-clause | 8,565 | 0 | 13 | 1,734 | 2,268 | 1,248 | 1,020 | 188 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
module Aws.ElasticTranscoder.Commands.ListPipelines
( ListPipelines(..)
, ListPipelinesResponse(..)
) where
import A... | cdornan/aws-elastic-transcoder | Aws/ElasticTranscoder/Commands/ListPipelines.hs | bsd-3-clause | 1,503 | 0 | 10 | 434 | 249 | 142 | 107 | 34 | 0 |
module Main where
import Control.Concurrent.MVar
import HFuse
type FileName = String
type Permissions = (FileMode, UserID, GroupID)
type FSMap = FiniteMap FilePath FSObject
data FSObject
= FSRegularFile Permissions String
| FSDirectory Permissions [(FileName, FSObject)]
fsObjectPersmissions :: FSObject ... | hackern/halfs | test/deps/hfuse/examples/LiveFS.hs | bsd-3-clause | 3,606 | 5 | 11 | 1,648 | 672 | 377 | 295 | -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="sl-SI">
<title>Highlighter</title>
<maps>
<homeID>highlighter</homeID>
<mapref location... | thc202/zap-extensions | addOns/highlighter/src/main/javahelp/help_sl_SI/helpset_sl_SI.hs | apache-2.0 | 964 | 105 | 29 | 155 | 391 | 208 | 183 | -1 | -1 |
-- (c) Simon Marlow 2011, see the file LICENSE for copying terms.
--
-- Sample geturls.hs (CEFP summer school notes, 2011)
--
-- Downloading multiple URLs concurrently, timing the downloads
--
-- Compile with:
-- ghc -threaded --make geturls.hs
import GetURL
import TimeIt
import Control.Monad
import Control.Concur... | lywaterman/parconc-examples | geturls.hs | bsd-3-clause | 1,182 | 4 | 10 | 213 | 270 | 137 | 133 | 24 | 1 |
module Vectorise.Convert
( fromVect
)
where
import Vectorise.Monad
import Vectorise.Builtins
import Vectorise.Type.Type
import CoreSyn
import TyCon
import Type
import TyCoRep
import NameSet
import FastString
import Outputable
import Control.Applicative
import Prelude -- avoid redundant import warning due to AMP
... | tjakway/ghcjvm | compiler/vectorise/Vectorise/Convert.hs | bsd-3-clause | 3,560 | 0 | 11 | 767 | 649 | 340 | 309 | 56 | 2 |
-----------------------------------------------------------------------------
--
-- Module : IDE.Command.VCS.Common.Helper
-- Copyright : 2007-2011 Juergen Nicklisch-Franken, Hamish Mackenzie
-- License : GPL Nothing
--
-- Maintainer : maintainer@leksah.org
-- Stability : provisional
-- Portability :... | 573/leksah | src/IDE/Command/VCS/Common/Helper.hs | gpl-2.0 | 2,734 | 7 | 12 | 593 | 493 | 283 | 210 | 43 | 2 |
{-# LANGUAGE TypeFamilies, ConstraintKinds #-}
module Foo( shared, foo, bar) where
-- module Foo where
import GHC.Exts
{-
foo :: [Int] -> [Int]
foo = let f = map negate
in f. f. f. f. f. f. f. f. f. f. f. f. f. f. f. f. f. f. f. f. f. f. f.
f. f. f. f. f. f. f. f. f. ... | shlevy/ghc | testsuite/tests/simplCore/should_compile/T7785.hs | bsd-3-clause | 1,423 | 2 | 84 | 601 | 628 | 321 | 307 | -1 | -1 |
{-# LANGUAGE CPP #-}
-- | This module provides an interface for typechecker plugins to
-- access select functions of the 'TcM', principally those to do with
-- reading parts of the state.
module TcPluginM (
#ifdef GHCI
-- * Basic TcPluginM functionality
TcPluginM,
tcPluginIO,
tcPluginTra... | urbanslug/ghc | compiler/typecheck/TcPluginM.hs | bsd-3-clause | 5,764 | 0 | 10 | 1,156 | 1,121 | 627 | 494 | 2 | 0 |
module XPrelude (module X) where
import Control.Monad as X
import Data.Foldable as X
import Data.List as X
import Data.Monoid as X
import Data.Traversable as X
import Prelude as X
| urbanslug/ghc | libraries/base/tests/T9586.hs | bsd-3-clause | 208 | 0 | 4 | 57 | 50 | 36 | 14 | 7 | 0 |
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE PatternGuards #-}
module Haks.Sanskrit.Roman.Particulator where
import BasicPrelude hiding (empty,all,null)
import Data.Char
import Data.Text hiding (reverse,head)
import Haks.Types
tokenizer :: Char -> Maybe (Token,Char)
tokenizer tok
| isConsonant = Just (SANSKRIT_ROMA... | mlitchard/haks | src/Haks/Sanskrit/Roman/Particulator.hs | isc | 1,816 | 1 | 11 | 291 | 575 | 332 | 243 | -1 | -1 |
module Main where
import Control.Monad.Reader (ask, runReaderT)
import Control.Monad.State (get, runStateT, modify)
import UI.NCurses (Event(..), runCurses, defaultWindow, setEcho, setKeypad, getEvent)
import RogueLike
import RogueLike.Update
import ... | mgreenly/roguelike | app/Main.hs | isc | 1,835 | 0 | 14 | 539 | 428 | 220 | 208 | 45 | 3 |
{-# LANGUAGE ViewPatterns #-}
module Haks.Tibetan.Uchen.Particulator where
import BasicPrelude hiding (empty,all,null)
import Data.Char
import Data.Text hiding (reverse,head)
import Haks.Types
preProcessor :: [Char] -> [Char]
preProcessor [] = []
preProcessor corpus@(x:xs)
| (x `elem` shad) || (x `elem` tsheg) =... | mlitchard/haks | src/Haks/Tibetan/Uchen/Particulator.hs | isc | 1,914 | 0 | 10 | 382 | 684 | 382 | 302 | 48 | 1 |
-- 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 multiplier and product is 1 through 9 pandigital.
-- Find the... | kirhgoff/haskell-sandbox | euler32/euler32.hs | mit | 2,010 | 0 | 11 | 423 | 638 | 323 | 315 | 36 | 2 |
module PE0009 where
import Benchmark
isPythagoreanTriplet :: (Num a, Eq a) => (a, a, a) -> Bool
isPythagoreanTriplet (a, b, c) = a*a + b*b == c*c
-- triangle triplets a < b < c whose circumference < n
-- but those are too much!
trianglesUnderCircumference :: (Integral a) => a -> [(a, a, a)]
trianglesUnderCircumferen... | mvidner/projecteuler | src/PE0009.hs | mit | 1,036 | 8 | 13 | 267 | 499 | 275 | 224 | 23 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Aeson
import Data.ByteString.Lazy.UTF8
import Data.JSString (JSString, unpack, pack)
import Data.JSString.Text
import GHCJS.Foreign
import GHCJS.Foreign.Callback (Callback, OnBlocked(ContinueAsync), syncCallback1')
import GHCJS.Marshal.Pure
--import GH... | Ptival/ProofIDE | Main.hs | mit | 1,831 | 8 | 13 | 333 | 464 | 238 | 226 | 42 | 1 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.XPathExpression (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.XPathExpression
#else
module Graphics.UI.Gtk.WebKit.DOM.XPathExpression
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFF... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/XPathExpression.hs | mit | 460 | 0 | 5 | 39 | 33 | 26 | 7 | 4 | 0 |
module Document.Tests.Phase where
-- Modules
import Document.Tests.Suite
-- Libraries
import Test.UnitTest
test_case :: TestCase
test_case = test
test :: TestCase
test = test_cases
"refinement relations in the phase example"
[ (aCase "test 0, cyclic refinement relation between mac... | literate-unitb/literate-unitb | src/Document/Tests/Phase.hs | mit | 1,970 | 0 | 10 | 454 | 311 | 192 | 119 | -1 | -1 |
{-# LANGUAGE GADTs, KindSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE UndecidableInstances #-}
import Control.Monad
import Control.Applicative
-- Reverse apply
(-:) :: a -> (a -> b) -> b
(-:) = flip id
infixl 1 -:
-- type-level f... | silverneko/haskell-playground | fixPlayground.hs | mit | 2,119 | 79 | 12 | 534 | 1,040 | 531 | 509 | 64 | 2 |
{-# LANGUAGE CPP #-}
module Info (
versionInfo
, info
#ifdef TEST
, formatInfo
#endif
) where
import Data.List.Compat
import System.Process
import System.IO.Unsafe
#if __GLASGOW_HASKELL__ < 900
import Config as GHC
#else
import GHC.Settings.Config as GHC
#endif
imp... | sol/doctest | src/Info.hs | mit | 1,044 | 0 | 9 | 247 | 259 | 153 | 106 | 31 | 1 |
{-
Swaggy Jenkins
Jenkins API clients generated from Swagger / Open API specification
OpenAPI Version: 3.0.0
Swaggy Jenkins API version: 1.1.2-pre.0
Contact: blah@cliffano.com
Generated by OpenAPI Generator (https://openapi-generator.tech)
-}
{-|
Module : SwaggyJenkins.API
-}
module SwaggyJenkins.... | cliffano/swaggy-jenkins | clients/haskell-http-client/generated/lib/SwaggyJenkins/API.hs | mit | 552 | 0 | 5 | 83 | 49 | 34 | 15 | 7 | 0 |
{- Has some code essentially copied from osa1/psc-lua -}
{-# LANGUAGE PatternGuards #-}
module Language.PureScript.CodeGen.Lua.Common where
import Data.Char
import Data.List (intercalate, foldl')
import Language.PureScript.Names
import qualified Language.Lua.Syntax as L
import qualified Language.Lua.PrettyPrinter ... | raymoo/psc-lua-redux | src/Language/PureScript/CodeGen/Lua/Common.hs | mit | 3,063 | 0 | 13 | 911 | 1,002 | 531 | 471 | 90 | 23 |
{-# LANGUAGE OverloadedStrings #-}
module Web.Uploadcare.Client
(
Client(..)
, newClient
, newDemoClient
, closeClient
) where
import Data.ByteString.Char8 (ByteString)
import Network.HTTP.Conduit (Manager, def, newManager, closeManager)
data Client = Client {
manager :: Manager
, publicKey :: ByteString
,... | uploadcare/uploadcare-haskell | src/Web/Uploadcare/Client.hs | mit | 825 | 0 | 9 | 164 | 197 | 112 | 85 | 26 | 1 |
{-# LANGUAGE MonadComprehensions #-}
{-# LANGUAGE RebindableSyntax #-}
module Set1 where
import MCPrelude
-- import Control.Arrow (first)
-- 1. Random number generation
fiveRands :: [Integer]
fiveRands = let f (_, s) = rand s in map fst . take 5 . iterate f . rand . mkSeed $ 1
-- 2. Random character generation
r... | gafiatulin/monad-challenges | src/Set1.hs | mit | 1,611 | 0 | 12 | 402 | 726 | 393 | 333 | 36 | 1 |
-- | Settings are centralized, as much as possible, into this file. This
-- includes database connection settings, static file locations, etc.
-- In addition, you can configure a number of different aspects of Yesod
-- by overriding methods in the Yesod typeclass. That instance is
-- declared in the Foundation.hs file.... | bsarah/TAWS | Settings.hs | gpl-2.0 | 6,046 | 14 | 14 | 1,739 | 729 | 449 | 280 | -1 | -1 |
{- | Module : $Header$
- Description : Logic specific function implementation for Coalition Logic
- Copyright : (c) Georgel Calin & Lutz Schroeder, DFKI Lab Bremen
- License : GPLv2 or higher, see LICENSE.txt
- Maintainer : g.calin@jacobs-university.de
- Stability : provisional
- Portability : ... | nevrenato/Hets_Fork | GMP/versioning/gmp-0.0.1/GMP/CoalitionL.hs | gpl-2.0 | 7,114 | 9 | 21 | 3,486 | 1,875 | 910 | 965 | -1 | -1 |
module Test.Continuation
( module Test.Continuation
, module Continuation
) where
import Continuation
import Control.Concurrent
squawker :: IO (ProcessId String String)
squawker = respondWith () squawker'
squawker' :: () -> Message String String -> IO()
squawker' _ (str,cont) = do
putStrLn str
reply cont... | antarestrader/sapphire | test/Continuation.hs | gpl-3.0 | 465 | 0 | 9 | 95 | 192 | 97 | 95 | 15 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Deadlink
Description : DeadLink’s runtime
Copyright : (c) Frédéric BISSON, 2016
License : GPL-3
Maintainer : zigazou@free.fr
Stability : experimental
Portability : POSIX
Main DeadLink’s functions.
-}
module Deadlink
( deadlinkLoop
, deadlinkInit
, getCurren... | Zigazou/deadlink | src/Deadlink.hs | gpl-3.0 | 3,544 | 0 | 14 | 821 | 885 | 438 | 447 | 67 | 2 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
-- |
-- Module : Aura.Settings
-- Copyright : (c) Colin Woodbury, 2012 - 2020
-- License : GPL3
-- Maintainer: Colin Woodbury <colin@fosskers.ca>
--
-- Definition of the runtime environment.
module Aura.Settings
( Settings(..)
, logFuncO... | aurapm/aura | aura/lib/Aura/Settings.hs | gpl-3.0 | 5,518 | 0 | 14 | 1,145 | 1,469 | 821 | 648 | 158 | 1 |
{-|
Module : Azubi
Description : Azubi main class is all you need.
Copyright : (c) Ingolf Wagner, 2017
License : GPL-3
Maintainer : azubi@ingolf-wagner.de
Stability : experimental
Portability : POSIX
Example:
@
import Azubi
main :: IO ()
main = azubiMain $ []
& installed (Ebuild "vim")
&... | mrVanDalo/azubi | src/Azubi.hs | gpl-3.0 | 1,087 | 0 | 5 | 270 | 130 | 90 | 40 | 26 | 0 |
{-# LANGUAGE DoAndIfThenElse #-}
-- Copyright 2013 Gushcha Anton
-- This file is part of PowerCom.
--
-- PowerCom is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or... | NCrashed/Kaissa | source/Parser/GraphLoader.hs | gpl-3.0 | 2,457 | 0 | 13 | 561 | 632 | 323 | 309 | 58 | 5 |
{-# LANGUAGE GADTs,
MultiParamTypeClasses #-}
module Scales where
import Music (Scale(..),
AbstractPitch1(..), AbstractInt1(..),
AbstractPitch2(..), AbstractInt2(..),
Interval(..), Pitch(..), Transpose(..),
faInt, faPitch,
Name(..), ... | ejlilley/AbstractMusic | Scales.hs | gpl-3.0 | 8,668 | 0 | 19 | 2,179 | 2,465 | 1,290 | 1,175 | 161 | 3 |
module Hadolint.Rule.DL3010 (rule) where
import Data.Foldable (toList)
import qualified Data.Text as Text
import Hadolint.Rule
import Language.Docker.Syntax
rule :: Rule args
rule = simpleRule code severity message check
where
code = "DL3010"
severity = DLInfoC
message = "Use ADD for extracting archives... | lukasmartinelli/hadolint | src/Hadolint/Rule/DL3010.hs | gpl-3.0 | 587 | 0 | 11 | 145 | 159 | 88 | 71 | 16 | 2 |
{-# 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/RegionInstanceGroupManagers/SetInstanceTemplate.hs | mpl-2.0 | 5,753 | 0 | 18 | 1,295 | 549 | 326 | 223 | 101 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-healthcare/gen/Network/Google/Resource/Healthcare/Projects/Locations/DataSets/FhirStores/Fhir/History.hs | mpl-2.0 | 10,458 | 0 | 20 | 2,027 | 1,084 | 643 | 441 | 156 | 1 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
module Action.Route
( Method(..)
, ActionRoute
, actionURL
, actionURI
, actionMethod
, action
, multipartAction
, API(..)
, pathHTML
, pathJSON
, pathAPI
) where
import qualified Data.ByteString.Builder as BSB
import qualified Data.Invertible as ... | databrary/databrary | src/Action/Route.hs | agpl-3.0 | 2,223 | 0 | 11 | 414 | 628 | 341 | 287 | 56 | 1 |
{-#LANGUAGE DeriveDataTypeable#-}
module Data.P440.Domain.BZ where
import Data.P440.Domain.SimpleTypes
import Data.P440.Domain.ComplexTypes
import Data.P440.Domain.ComplexTypesZS
import Data.Typeable (Typeable)
import Data.Text (Text)
-- 3.6 Запрос на повторное получение квитанции
data Файл = Файл {
идЭС ... | Macil-dev/440P-old | src/Data/P440/Domain/BZ.hs | unlicense | 831 | 14 | 7 | 134 | 198 | 121 | 77 | 21 | 0 |
module Main where
import Kernel
import Prover.ProofState
import Prover.Goal
import Parser.Token
import Parser.PreTypedTerm
import Parser.InputLine
import Parser.Command
import Data.IORef
import Control.Monad.Reader
import System.Console.Haskeline
import Control.Applicative hiding (many)
import Text.Parsec hiding ((<|>... | kik/ToyPr | main/Main.hs | apache-2.0 | 2,742 | 0 | 19 | 933 | 937 | 462 | 475 | 70 | 5 |
module Main where
import qualified Network.AWS.Prelude as AwsPrelude
import Turtle
import Aws
import Utils
import Types
import Data.Traversable as Traversable
import Data.Text as Text
description = "CLI tool for querying amazon EC2 Spot prices."
spotPricesArgs = (,,,) <$> (many (optText "region" 'r' "Region for spot ... | huseyinyilmaz/spotprices | src/Main.hs | apache-2.0 | 1,294 | 0 | 16 | 250 | 368 | 189 | 179 | 25 | 4 |
-- |
-- Module : Text.Megaparsec.Combinator
-- Copyright : © 2015 Megaparsec contributors
-- © 2007 Paolo Martini
-- © 1999–2001 Daan Leijen
-- License : BSD3
--
-- Maintainer : Mark Karpov <markkarpov@opmbx.org>
-- Stability : experimental
-- Portability : portable
--
... | neongreen/megaparsec | Text/Megaparsec/Combinator.hs | bsd-2-clause | 7,646 | 0 | 15 | 1,678 | 1,437 | 766 | 671 | 94 | 1 |
module Foundation
( App (..)
, Route (..)
, AppMessage (..)
, resourcesApp
, Handler
, Widget
, Form
, maybeAuth
, requireAuth
, module Settings
, module Model
) where
import Prelude
import Yesod
import Yesod.Static
import Yesod.Auth
import Yesod.Auth.BrowserId
import Ye... | tanakh/hackage-mirror | Foundation.hs | bsd-2-clause | 6,285 | 0 | 17 | 1,394 | 859 | 479 | 380 | -1 | -1 |
{-# LANGUAGE TypeSynonymInstances,
FlexibleInstances #-}
--
-- Common.hs
--
-- Some common definitions related to navigating
-- expression trees.
--
-- Gregory Wright, 2 July 2012
--
module Math.Symbolic.Wheeler.Common where
import Data.DList
data Cxt = Scxt Int | Pcxt Int | Tcxt Int
deriving (E... | gwright83/Wheeler | src/Math/Symbolic/Wheeler/Common.hs | bsd-3-clause | 849 | 0 | 8 | 236 | 247 | 140 | 107 | 25 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Main where
import System.Console.CmdArgs
import Data.Data
import Text.RegexPR (matchRegexPR)
import Data.Maybe (isJust)
import System.IO (hFlush, stdout)
import Trajectory.Private.Config (writeKey)
main = do
args <- cmdArgs initTjArgDefinition
key <- getKey
writeKey ... | mike-burns/trajectory | InitTj.hs | bsd-3-clause | 952 | 0 | 10 | 213 | 253 | 131 | 122 | 32 | 2 |
module Lets.Data (
Locality(..)
, Address(..)
, Person(..)
, IntAnd(..)
, IntOr(..)
, fredLocality
, fredAddress
, fred
, maryLocality
, maryAddress
, mary
, Store(..)
, Const (..)
, Tagged(..)
, Identity(..)
, AlongsideLeft(..)
, AlongsideRight(..)
) where
import Control.Applicative(Applicative(..))
import Data.Mon... | NICTA/lets-lens | src/Lets/Data.hs | bsd-3-clause | 2,640 | 0 | 12 | 742 | 916 | 511 | 405 | 146 | 1 |
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Config
-- Copyright : (c) David Himmelstrup 2005
-- License : BSD-like
--
-- Maintainer : lemmih@gmail.com
-- Stability : provisional
-- Portability : po... | kolmodin/cabal | cabal-install/Distribution/Client/Config.hs | bsd-3-clause | 46,598 | 0 | 27 | 12,668 | 9,747 | 5,243 | 4,504 | 827 | 13 |
import Disorder.Core.Main
import qualified Test.Mismi.EC2.Core.Data
main :: IO ()
main =
disorderMain [
Test.Mismi.EC2.Core.Data.tests
]
| ambiata/mismi | mismi-ec2-core/test/test.hs | bsd-3-clause | 161 | 0 | 7 | 39 | 48 | 28 | 20 | 6 | 1 |
module QueryArrow.ElasticSearch.ICAT where
-- http://swizec.com/blog/writing-a-rest-client-in-haskell/swizec/6152
import Prelude hiding (lookup)
import Data.Map.Strict hiding (map, elemAt)
import Data.Text (pack)
import QueryArrow.Syntax.Term
import QueryArrow.Syntax.Type
import QueryArrow.DB.GenericDatabase
import ... | xu-hao/QueryArrow | QueryArrow-db-elastic/src/QueryArrow/ElasticSearch/ICAT.hs | bsd-3-clause | 1,333 | 0 | 18 | 143 | 377 | 205 | 172 | 17 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE Rank2Types #-}
--
-- RNG/Peripheral.hs --- Random Number Generator Peripheral Driver
--
-- Copyright (C) 2015, Galois, Inc.
-- All Rights Reserved.
--
module Ivory.BSP.STM32.Peripheral.RNG.Peripheral where
i... | GaloisInc/ivory-tower-stm32 | ivory-bsp-stm32/src/Ivory/BSP/STM32/Peripheral/RNG/Peripheral.hs | bsd-3-clause | 1,404 | 0 | 12 | 372 | 318 | 185 | 133 | 32 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.LHC
-- Copyright : Isaac Jones 2003-2007
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portab... | mydaum/cabal | Cabal/Distribution/Simple/LHC.hs | bsd-3-clause | 32,924 | 0 | 27 | 9,361 | 7,294 | 3,759 | 3,535 | 577 | 6 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Setup
-- Copyright : (c) David Himmelstrup 2005
-- License : B... | mydaum/cabal | cabal-install/Distribution/Client/Setup.hs | bsd-3-clause | 104,767 | 0 | 40 | 29,075 | 20,595 | 11,635 | 8,960 | 1,996 | 5 |
{-# LANGUAGE GADTs, TypeFamilies, TypeOperators, CPP, FlexibleContexts, FlexibleInstances, ScopedTypeVariables, MultiParamTypeClasses, UndecidableInstances #-}
{-# OPTIONS_GHC -fenable-rewrite-rules #-}
----------------------------------------------------------------------
-- |
-- Module : Data.Functor.Representa... | ekmett/representable-tries | src/Data/Functor/Representable/Trie.hs | bsd-3-clause | 11,836 | 0 | 17 | 2,371 | 4,614 | 2,508 | 2,106 | 269 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
module Prepro where
import Data.Functor.Base
import Data.Functor.Foldable
import Data.Tree
{-
data TreeF a r = NodeF { rootLabelF :: a, subForestF :: [r] }
deriving (Functor, Foldable, Trav... | cutsea110/aop | src/Prepro.hs | bsd-3-clause | 1,530 | 0 | 13 | 383 | 253 | 136 | 117 | 17 | 1 |
-- |Authentication related functions. Low-level version.
module RPC.Auth
( module Types.Auth
, auth_login
, auth_logout
, auth_token_add
, auth_token_remove
, auth_token_generate
, auth_token_list
) where
import MSF.Host (Server,Con(..))
import Types.Auth
-- | Log into the metasploit team server with ... | GaloisInc/msf-haskell | src/RPC/Auth.hs | bsd-3-clause | 1,768 | 0 | 10 | 307 | 408 | 208 | 200 | 32 | 1 |
import System.Environment(getArgs, getProgName)
import System.Exit(exitFailure)
import Control.Monad(when)
import Denominate
usage = getProgName >>= \name ->
return ("Usage: " ++ name ++ " [-h|-n] base_directory\n" ++
" -h: show help\n" ++
" -n: dry run; show what would ... | eukaryote/denominate | src/Main.hs | bsd-3-clause | 1,250 | 3 | 20 | 404 | 398 | 196 | 202 | 31 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Rho.MagnetSpec where
import Control.Monad
import qualified Data.ByteString.Char8 as B
import Data.List
import Data.Maybe
import Network.URI
import Test.Hspec
import Test.Hspe... | osa1/rho-torrent | test/Rho/MagnetSpec.hs | bsd-3-clause | 2,142 | 0 | 16 | 558 | 552 | 285 | 267 | 50 | 2 |
module Parsing.ByteString (
parseQuote
) where
import Parsing.Base
import Control.Monad
import qualified Network.Pcap as Pcap
import qualified Data.ByteString.Char8 as BS
import qualified Data.Time as T
import qualified Data.Time.Clock.POSIX as T
import qualified Data.List as L
-- [todo] statically verify bytest... | iteloo/tsuru-sample | src/Parsing/ByteString.hs | bsd-3-clause | 2,995 | 0 | 17 | 697 | 855 | 442 | 413 | 59 | 2 |
-- |
-- Module : Basement.Compat.Primitive
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : portable
--
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE UnliftedFFITypes #-}
module Basement.Comp... | vincenthz/hs-foundation | basement/Basement/Compat/Primitive.hs | bsd-3-clause | 2,405 | 2 | 10 | 525 | 305 | 184 | 121 | 33 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module WebhookAPISpec (spec) where
import Data.Aeson
import qualified Data.ByteString.Lazy as BSL
import System.FilePath
import System.IO.Unsafe
imp... | mseri/fbmessenger-api-hs | test/WebhookAPISpec.hs | bsd-3-clause | 3,336 | 0 | 14 | 876 | 737 | 348 | 389 | 61 | 1 |
{-# LANGUAGE
FlexibleInstances,
OverloadedStrings #-}
module Command where
import System.Posix.Types
import System.Posix.ByteString.FilePath
import System.Posix.Process.ByteString
import System.Posix.Directory.ByteString
import System.Posix.IO
import System.IO
import qualified Data.Text as T
import qualified D... | firefrorefiddle/hssh | src/Command.hs | bsd-3-clause | 2,086 | 0 | 17 | 516 | 630 | 323 | 307 | 55 | 9 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Control.Concurrent
(ThreadId, forkIO, forkFinally, threadDelay)
import Control.Concurrent.Chan.Unagi
(InChan, OutChan, dupChan, newChan, readChan, writeChan)
import Control.Concurrent.MVar
... | zerokarmaleft/krom | src/Main.hs | bsd-3-clause | 11,044 | 0 | 19 | 2,887 | 2,590 | 1,366 | 1,224 | -1 | -1 |
{-# LANGUAGE GADTs, BangPatterns, RecordWildCards,
GeneralizedNewtypeDeriving, NondecreasingIndentation, TupleSections,
ScopedTypeVariables, OverloadedStrings #-}
module GHC.Cmm.Info.Build
( CAFSet, CAFEnv, cafAnal, cafAnalData
, doSRTs, ModuleSRTInfo (..), emptySRT
, SRTMap, srtMapNonCAFs
) where
imp... | sdiehl/ghc | compiler/GHC/Cmm/Info/Build.hs | bsd-3-clause | 42,586 | 0 | 32 | 11,754 | 6,638 | 3,450 | 3,188 | -1 | -1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module HipChat.Types.User where
import Data.Aeson
import Data.Aeson.Casing
import Data.Text (Text)
import GHC.Generics
data User = User
{ userXmppJid :: Text
, userIsDeleted :: Bool
, userN... | oswynb/hipchat-hs | lib/HipChat/Types/User.hs | bsd-3-clause | 512 | 0 | 9 | 144 | 108 | 65 | 43 | 16 | 0 |
module Test.Lex where
import qualified Lexer
import Types.Token (Lexeme(..), Token(..))
import Test.Tasty
import Test.Tasty.HUnit
lexerSpec :: TestTree
lexerSpec = testGroup "Lexer"
[
testCase "detecting identifiers" $
testLexer "foo bar baz" [Identifier "foo", Identifier "bar", Identifier "baz"]
,
... | letsbreelhere/egg | test/Test/Lex.hs | bsd-3-clause | 696 | 0 | 10 | 134 | 210 | 111 | 99 | 16 | 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.
module Duckling.V... | facebookincubator/duckling | tests/Duckling/Volume/ZH/Tests.hs | bsd-3-clause | 582 | 0 | 9 | 93 | 77 | 49 | 28 | 10 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveDataTypeable, ScopedTypeVariables, NamedFieldPuns #-}
{-# LANGUAGE ViewPatterns, RecordWildCards, FlexibleInstances, TypeFamilies, ConstraintKinds #-}
module Development.Shake.Internal.Rules.File(
need, needHasChanged, needBS, needed, neededBS, want,
trackRead, tr... | ndmitchell/shake | src/Development/Shake/Internal/Rules/File.hs | bsd-3-clause | 27,137 | 0 | 28 | 7,242 | 5,770 | 2,956 | 2,814 | -1 | -1 |
{-# Language OverloadedStrings #-}
{-|
Module : Client.Commands.Window
Description : Window command implementations
Copyright : (c) Eric Mertens, 2016-2020
License : ISC
Maintainer : emertens@gmail.com
-}
module Client.Commands.Window (windowCommands, parseFocus) where
import Client.Commands.Arg... | glguy/irc-core | src/Client/Commands/Window.hs | isc | 21,231 | 3 | 21 | 5,732 | 4,011 | 2,028 | 1,983 | 329 | 8 |
{-# LANGUAGE TypeApplications #-}
module Test.Pos.Chain.Ssc.CborSpec
( spec
) where
import Universum
import Test.Hspec (Spec, describe)
import Pos.Chain.Ssc (VssCertificate)
import Test.Pos.Binary.Helpers (binaryTest)
import Test.Pos.Chain.Ssc.Arbitra... | input-output-hk/pos-haskell-prototype | chain/test/Test/Pos/Chain/Ssc/CborSpec.hs | mit | 405 | 0 | 7 | 107 | 87 | 55 | 32 | 10 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.