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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE helpset
PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN"
"../dtd/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="ja">
<!-- title -->
<title>LightZone - ヘルプ</title>
<!-- maps -->
<maps>
<homeID>top</homeID>
<mapre... | MarinnaCole/LightZone | linux/help/LightZone_ja.hs | bsd-3-clause | 1,678 | 132 | 91 | 305 | 641 | 321 | 320 | -1 | -1 |
module Pats where
main :: Fay ()
main = do
case [1,2] of
[] -> putStrLn "got []"
[a] -> putStrLn "got one value."
[a,b] -> putStrLn "got two values."
case [1,2] of
(([1,2])) -> putStrLn "parens"
| beni55/fay | tests/pats.hs | bsd-3-clause | 221 | 0 | 12 | 63 | 104 | 56 | 48 | 9 | 3 |
--------------------------------------------------------------------
-- |
-- Module : MediaWiki.API.Types
-- Description : Basic MediaWiki API types
-- Copyright : (c) Sigbjorn Finne, 2008
-- License : BSD3
--
-- Maintainer: Sigbjorn Finne <sof@forkIO.com>
-- Stability : provisional
-- Portability: portable
... | neobrain/neobot | mediawiki/MediaWiki/API/Types.hs | bsd-3-clause | 5,768 | 4 | 10 | 1,627 | 1,117 | 704 | 413 | 158 | 1 |
{-# LANGUAGE PatternGuards, ScopedTypeVariables #-}
{-
Find bindings within a let, and lists of statements
If you have n the same, error out
<TEST>
main = do a; a; a; a
main = do a; a; a; a; a; a -- ???
main = do a; a; a; a; a; a; a -- ???
main = do (do b; a; a; a); do (do c; a; a; a) -- ???
main = do a; a; a; b; a; ... | eigengrau/hlint | src/Hint/Duplicate.hs | bsd-3-clause | 2,675 | 0 | 21 | 775 | 978 | 508 | 470 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
module T14172a where
import Data.Kind
import Data.Coe... | sdiehl/ghc | testsuite/tests/polykinds/T14172a.hs | bsd-3-clause | 2,125 | 0 | 11 | 488 | 913 | 486 | 427 | -1 | -1 |
{-# LANGUAGE CPP #-}
#if MIN_VERSION_base(4,5,0)
import Data.Bits ((.&.), popCount)
import Data.Word (Word)
#else
import Data.Bits ((.&.))
#endif
import Data.IntSet
import Data.List (nub,sort)
import qualified Data.List as List
import Data.Monoid (mempty)
import qualified Data.Set as Set
import Prelude hiding (lookup, ... | shockkolate/containers | tests/intset-properties.hs | bsd-3-clause | 12,774 | 0 | 17 | 3,087 | 3,939 | 2,042 | 1,897 | 231 | 4 |
{-# LANGUAGE DataKinds, GADTs, KindSignatures #-}
module T15499 ()
where
data ADT (p :: Integer) where
ADT ::
{ a :: a
, b :: Integer
} -> ADT p
foo = undefined {b=undefined}
| sdiehl/ghc | testsuite/tests/typecheck/should_compile/T15499.hs | bsd-3-clause | 191 | 0 | 7 | 50 | 55 | 36 | 19 | 8 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE StandaloneDeriving #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Concurrent.Chan
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/bas... | tolysz/prepare-ghcjs | spec-lts8/base/Control/Concurrent/Chan.hs | bsd-3-clause | 5,994 | 0 | 14 | 1,254 | 802 | 433 | 369 | 68 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Main where
import Import
import Yesod.Default.Config
import Yesod.Test
import Application (makeFoundation)
import HomeTest
main :: IO ()
main = do
conf <- loadConfig $ (configSettings Testi... | snoyberg/photosorter | tests/main.hs | bsd-2-clause | 477 | 0 | 11 | 77 | 108 | 58 | 50 | 15 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Tests.DBTree where
import Control.Monad
import Test.QuickCheck.All
import Test.QuickCheck.Arbitrary
import System.Exit
import Database.Siege.DBNode as N
import Database.Siege.DBTree as T
import Database.Siege.Memory
import qualified Data.ByteString as B
-- TODO: pull these o... | DanielWaterworth/siege | testsuite/Tests/DBTree.hs | mit | 936 | 0 | 10 | 158 | 254 | 136 | 118 | 27 | 1 |
{-# LANGUAGE ViewPatterns #-}
module BeforeFix.Logic where
import Control.Monad
import Control.Monad.Trans
import Control.Monad.Logic.Class
import Control.Monad.IO.Class
newtype ML m a = ML { toView :: m (Maybe (a, ML m a)) }
fromView = ML
single a = return (Just (a,mzero))
instance Monad m => Monad (ML m) where
... | atzeus/reflectionwithoutremorse | BeforeFix/Logic.hs | mit | 1,272 | 0 | 15 | 336 | 600 | 315 | 285 | 34 | 2 |
{-# LANGUAGE TemplateHaskell, RankNTypes, ScopedTypeVariables, LambdaCase #-}
module Commands.Mixins.DNS13OSX9.Derived where
import Commands.Frontends.Dragon13.Extra hiding (fromGlobalName)
import Commands.Munging
import Commands.Mixins.DNS13OSX9.Types
import Commands.Frontends.Dragon13
import Comma... | sboosali/commands | commands-frontend-DragonNaturallySpeaking/sources/Commands/Mixins/DNS13OSX9/Derived.hs | mit | 8,732 | 0 | 14 | 1,420 | 1,511 | 814 | 697 | 82 | 1 |
{-# LANGUAGE GADTs #-}
module Pladen.Beets.Queries
(
get
, getAll
, getAlbums, getAlbums'
, getAlbumTrack
, getAlbumTracks
, getTrack
, getSingletonTracks
, getArtists
) where
import Control.Applicative
import qualified Data.List as L
import qualified Data.Function as F
im... | geigerzaehler/pladen | Pladen/Beets/Queries.hs | mit | 2,861 | 1 | 15 | 603 | 866 | 459 | 407 | 64 | 2 |
import Control.Monad -- MonadPlus
pairs :: Int -> [(Int, Int)]
pairs n = [(i,j) | i <- [1..n], j <- [(i+1)..n]]
-- - Equivalently
pairsWithDo :: Int -> [(Int, Int)]
pairsWithDo n = do {
i <- [1..n];
j <- [(i+1)..n];
return (i,j)
}
-- -- - With Guard
... | abhishekkr/tutorials_as_code | talks-articles/languages-n-runtimes/haskell/PhilipWadler-UniversityOfEdinburgh-2011/lecture18.example00.hs | mit | 1,178 | 0 | 10 | 425 | 302 | 172 | 130 | 16 | 1 |
module Paths_ListFry (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
import Data.Version (Version(..))
import System.Environment (getEnv)
import Prelude
catchIO :: IO a -> (Exception.IOException -> IO a) -... | longqm/ListFry | dist/build/autogen/Paths_ListFry.hs | mit | 1,344 | 0 | 10 | 182 | 371 | 213 | 158 | 28 | 1 |
--data AVL a = Nil
-- | L (AVL a) a (AVL a)
-- | B (AVL a) a (AVL a)
-- | R (AVL a) a (AVL a)
-- deriving (Eq, Ord, Show)
data AVL a = Nil
| Node (AVL a) a (AVL a) Balance
deriving (Show, Eq)
data Balance = N
| Z
| P
... | ThreeFx/ETH | 1semester/da/avl/AVL.hs | mit | 532 | 0 | 8 | 217 | 180 | 92 | 88 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module State where
import Reflex.Cocos2d.Prelude
import GHC.Generics
import Data.Enumerate
import qualified Data.Ar... | lynnard/cocos2d-proj | src/State.hs | mit | 2,047 | 0 | 10 | 379 | 497 | 279 | 218 | 49 | 1 |
{-# htermination (and :: (List MyBool) -> MyBool) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
asAs :: MyBool -> MyBool -> MyBool;
asAs MyFalse x = MyFalse;
asAs MyTrue x = x;
foldr :: (b -> a -> a) -> a -> (List b) -> a;
foldr f z Nil = z;
foldr f... | ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/and_1.hs | mit | 418 | 0 | 9 | 114 | 184 | 101 | 83 | 11 | 1 |
{-# htermination putChar :: Char -> IO () #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_putChar_1.hs | mit | 46 | 0 | 2 | 9 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE FlexibleContexts #-}
module Source (simpleSource,producer) where
import Neutron (Neutron(Neutron))
import Linear (normalize,V3,Epsilon)
import Momentum (Momentum(getSpeed))
import Pipes
import Control.Monad (forever)
import Data.Random
{-# INLINABLE simpleSource #-}
simpleSource :: (Epsilon a, Momentum ... | rprospero/NeutronPipe | Source.hs | mit | 688 | 0 | 11 | 124 | 260 | 137 | 123 | 17 | 2 |
data ArbolG a = AGV | AG a [ ArbolG a ]
| josegury/HaskellFuntions | Arboles/DeclaracionArbol.hs | mit | 40 | 0 | 8 | 12 | 22 | 12 | 10 | 1 | 0 |
import Memory
import Thought
import Control.Arrow
import Data.Monoid
import Test.QuickCheck
addAnyNum :: Integer -> Integer -> Bool
addAnyNum n s = appEndo (runMemory (update (n +)) s ()) s == s+n
thinkHoldsState :: Integer -> Integer -> Bool
thinkHoldsState n s = fst (stepThought (arr (+ n)) s) == s+n
main :: IO (... | edwardwas/memory | tests/main.hs | mit | 388 | 0 | 12 | 73 | 159 | 82 | 77 | 13 | 1 |
{- draw sprite with image clipping -}
{-# LANGUAGE OverloadedStrings #-}
module Lesson11 where
--
import qualified SDL
--
import Data.Word (Word8(..))
import Linear.Affine (Point(..))
import Linear.V2 (V2(..))
import Linear.V4 (V4(..))
import Foreign.C.Types (CInt)
--
import Control.Monad (unless)
--
import qualified C... | rueshyna/sdl2-examples | src/Lesson11.hs | mit | 3,269 | 0 | 18 | 796 | 1,092 | 551 | 541 | 69 | 1 |
module Compiler.JMacro.Lens where
import Prelude
import Control.Lens
import Compiler.JMacro.Base
import Data.Map (Map)
import Data.Text (Text)
_DeclStat :: Prism' JStat Ident
_DeclStat = prism DeclStat
(\x -> case x of DeclStat y -> Right y
_ -> Left x)
... | ghcjs/ghcjs | src/Compiler/JMacro/Lens.hs | mit | 6,157 | 0 | 12 | 2,522 | 2,364 | 1,234 | 1,130 | 164 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : ./CASL/Sublogic.hs
Description : sublogic analysis for CASL
Copyright : (c) Pascal Schmidt, C. Maeder, and Uni Bremen 2002-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : experimental
Portability : ... | gnn/Hets | CASL/Sublogic.hs | gpl-2.0 | 37,877 | 138 | 37 | 11,625 | 10,802 | 5,646 | 5,156 | 760 | 17 |
module Data.Tuple6 where
import Data.List ((!!), length)
import Data.Maybe (Maybe (Just, Nothing))
import Text.Show (Show)
data Tuple6 a b c d e f =
Tuple6_0 |
Tuple6_1 a |
Tuple6_2 (a, b) |
Tuple6_3 (a, b, c) |
Tuple6_4 (a, b, c, d) |
Tuple6_5 (a, b, c, d, e) |
Tuple6_6 (a, b, c, d, e, f)... | marcellussiegburg/autotool | yesod/Data/Tuple6.hs | gpl-2.0 | 1,937 | 0 | 11 | 490 | 1,218 | 686 | 532 | 39 | 7 |
{-# LANGUAGE
FlexibleContexts
, FlexibleInstances
, GeneralizedNewtypeDeriving
, MultiParamTypeClasses
, StandaloneDeriving
, UndecidableInstances
#-}
module HFlint.NMod.Algebra
where
import Prelude hiding ( (+), (-), negate, subtract
, (*), (/), recip, (^), (^^)
... | martinra/hflint | src/HFlint/NMod/Algebra.hs | gpl-3.0 | 3,780 | 2 | 9 | 901 | 999 | 514 | 485 | 93 | 0 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
module Sara.Z3.CondAst ( CondAst
, W.FailureTrackableAst
, ast
, runCondAst
, trivial
, co... | Lykos/Sara | src/lib/Sara/Z3/CondAst.hs | gpl-3.0 | 3,364 | 0 | 10 | 821 | 894 | 486 | 408 | 50 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeSynonymInstances #-}
------------------------------------------------------------------------------... | mzini/TcT | source/Tct/Method/DP/PathAnalysis.hs | gpl-3.0 | 12,910 | 0 | 26 | 5,286 | 2,911 | 1,558 | 1,353 | 187 | 1 |
{-# LANGUAGE DeriveGeneric, TemplateHaskell #-}
{-|
Module : Database.DataType
Description : Contains a single enumeration type, ShapeType.
This is a small module that contains a single enumeration type.
Note that we can't include this in "Database.Tables" because of
a restriction on Template Haskell.
-}... | Courseography/courseography | app/Database/DataType.hs | gpl-3.0 | 1,336 | 0 | 6 | 179 | 142 | 80 | 62 | 15 | 0 |
<?xml version='1.0' encoding='ISO-8859-1'?>
<!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">
<title>S2P Help</title>
<maps>
<homeID>top</homeID>
<mapref location="map... | sing-group/S2P | s2p-aibench/src/main/resources/help/helpset.hs | gpl-3.0 | 1,134 | 89 | 66 | 199 | 471 | 233 | 238 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Sound.Tidal.Pattern where
import Control.Applicative
import Data.Monoid
import Data.Fixed
import Data.List
import Data.Maybe
import Data.Ratio
import Debug.Trace
import Data.Typeable
import Data.Function
import System.Random.Mersenne.Pure64
import Music.Theory.Bjorklund
im... | kindohm/Tidal | Sound/Tidal/Pattern.hs | gpl-3.0 | 24,226 | 0 | 18 | 5,917 | 8,261 | 4,378 | 3,883 | 341 | 2 |
-- Work in progress
{-# LANGUAGE GeneralizedNewtypeDeriving, TypeFamilies #-}
module Tests.Names where
import Control.Monad.Trans.FastWriter (Writer, runWriter)
import Control.Monad.Unit (Unit(..))
import Control.Monad.Writer (MonadWriter(..))
import Lamdu.Data.Anchors (anonTa... | lamdu/lamdu | test/Tests/Names.hs | gpl-3.0 | 5,509 | 0 | 14 | 1,364 | 1,557 | 831 | 726 | -1 | -1 |
module Language.Untyped.PrettyPrinting
( showTerm
, toPP
) where
import Language.Untyped.Context
import Language.Untyped.Syntax
import Printcess.PrettyPrinting
toPP :: Context -> NamelessTerm -> Term
toPP ctx (NmVar index)
= case fromIndex ctx index of
Left e -> error (... | juanbono/tapl-haskell | untyped/src/Language/Untyped/PrettyPrinting.hs | gpl-3.0 | 913 | 0 | 10 | 244 | 328 | 163 | 165 | 22 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-affiliates/gen/Network/Google/Resource/GAN/Advertisers/List.hs | mpl-2.0 | 7,199 | 0 | 20 | 1,693 | 1,026 | 591 | 435 | 139 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dlp/gen/Network/Google/Resource/DLP/Organizations/StoredInfoTypes/Create.hs | mpl-2.0 | 6,855 | 0 | 17 | 1,381 | 796 | 471 | 325 | 120 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-admin-directory/gen/Network/Google/Resource/Admin/Customer/Devices/Chromeos/IssueCommand.hs | mpl-2.0 | 6,661 | 0 | 22 | 1,624 | 873 | 507 | 366 | 140 | 1 |
{-
This file is part of Tractor.
Tractor is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Tractor is distribu... | ak1211/tractor | src/KabuCom/Broker.hs | agpl-3.0 | 14,339 | 0 | 17 | 3,943 | 2,721 | 1,457 | 1,264 | 220 | 2 |
--Zaoqilc
--Copyright (C) 2017 Zaoqi
--This program is free software: you can redistribute it and/or modify
--it under the terms of the GNU Affero General Public License as published
--by the Free Software Foundation, either version 3 of the License, or
--(at your option) any later version.
--This program is distrib... | zaoqi/zaoqilc | featuring/n.hs | agpl-3.0 | 810 | 0 | 15 | 150 | 105 | 63 | 42 | 6 | 1 |
module Poset.A334111 (a334111) where
import Poset.A064097 (a064097)
import Data.Set (Set)
import qualified Data.Set as Set
a334111 :: Int -> Integer
a334111 = (!!) a334111_list
a334111_list :: [Integer]
a334111_list = concat a334111_rows
a334111_rows :: [[Integer]]
a334111_rows = zipWith takeUntil powersOfTwo a33411... | peterokagey/haskellOEIS | src/Poset/A334111.hs | apache-2.0 | 879 | 0 | 9 | 179 | 449 | 243 | 206 | 25 | 1 |
module P32 where
gcd' :: Int -> Int -> Int
gcd' a 0 = 0
gcd' a b = gcd b (a `mod` b)
| plilja/h99 | p32.hs | apache-2.0 | 86 | 0 | 7 | 25 | 51 | 28 | 23 | 4 | 1 |
{- | This Module is the internal implementation behind the module 'Muste.Tree' -}
module Muste.Tree.Internal where
import PGF hiding (showType,checkType,parse)
import PGF.Internal hiding (showType)
import Data.Maybe
import Muste.Grammar
import Muste.Feat
-- | Generic class for trees
class TreeC t where
showTree :: ... | daherb/Haskell-Muste | muste-lib/Muste/Tree/Internal.hs | artistic-2.0 | 8,449 | 0 | 20 | 2,236 | 2,973 | 1,539 | 1,434 | 182 | 7 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE QuasiQuotes #-}
module Utils.Vigilance.Client.Client ( getList
, getInfo
, pause
, unPause
... | MichaelXavier/vigilance | src/Utils/Vigilance/Client/Client.hs | bsd-2-clause | 8,156 | 0 | 15 | 2,581 | 1,922 | 1,018 | 904 | -1 | -1 |
-- | This module provides the type of a JBC program state.
module Jat.PState.Data
(
PState (..)
, PException (..)
--, Var (..)
, frames
, frame
, heap
, annotations
, Path
, Root (..)
, RPath(..)
)
where
import Jat.PState.Frame
import Jat.PState.Heap
import Jat.Utils.Pretty as PP
import q... | ComputationWithBoundedResources/jat | src/Jat/PState/Data.hs | bsd-3-clause | 2,368 | 0 | 11 | 537 | 672 | 361 | 311 | 47 | 1 |
-- Author: Lee Ehudin
-- Runs a text editor
module Main (main) where
import Controller.Runner (hasked)
main :: IO ()
main = hasked
| percivalgambit/hasked | Main.hs | bsd-3-clause | 134 | 0 | 6 | 26 | 36 | 22 | 14 | 4 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Secrets
Description : Routines to safely store passwords or tokens.
Copyright : (c) Frédéric Menou, 2016
License : MIT License
Maintainer : Frédéric Menou <frederic.menou@gmail.com>
Stability : experimental
Portability : X11/Freedesktop
Store a password:
>... | ptitfred/ftv-vods | src/GoogleAPIsClient/Secrets.hs | bsd-3-clause | 6,709 | 0 | 17 | 1,464 | 1,631 | 835 | 796 | 123 | 3 |
module JavaScript.AceAjax.Raw.Types where
import qualified GHCJS.Types as GHCJS
import qualified GHCJS.Marshal as GHCJS
import qualified Data.Typeable
import GHCJS.FFI.TypeScript
import GHCJS.DOM.Types (HTMLElement)
newtype Delta = Delta (GHCJS.JSRef Delta)
deriving (Data.Typeable.Typeable, GHCJS.ToJSRef, GHCJS.FromJ... | fpco/ghcjs-from-typescript | ghcjs-ace/JavaScript/AceAjax/Raw/Types.hs | bsd-3-clause | 3,418 | 0 | 8 | 333 | 1,035 | 579 | 456 | 58 | 0 |
module NejlaCommon.Test
( module NejlaCommon.Test.Json
, module NejlaCommon.Test.Postgres
, module NejlaCommon.Test.Expectation
, module NejlaCommon.Test.Logging
) where
import NejlaCommon.Test.Expectation
import NejlaCommon.Test.Json
import NejlaCommon.Test.Logging
import ... | nejla/nejla-common | src/NejlaCommon/Test.hs | bsd-3-clause | 351 | 0 | 5 | 75 | 60 | 41 | 19 | 9 | 0 |
{-# LANGUAGE OverloadedStrings #-}
import Text.Regex.PCRE.Light (compile,compileM,match)
import qualified Text.Regex.PCRE.Light.Char8 as String (compile,compileM,match)
import Text.Regex.PCRE.Light.Base
import qualified Data.ByteString.Char8 as S
import System.IO
import Test.HUnit
import System.Exit (exitFailure)
i... | mitchty/pcre-light | tests/Unit.hs | bsd-3-clause | 84,561 | 0 | 24 | 34,367 | 22,575 | 12,827 | 9,748 | 3,018 | 3 |
{-# LANGUAGE TupleSections #-}
module Parser
( Parser
, SourcePos
, Error
, parse
, getPosition
, anyChar
, satisfy
, eof
, char
, newline
, upper
, lower
, space
, spaces
, alphaNum
, string
, number... | abbradar/comps | src/Parser.hs | bsd-3-clause | 4,252 | 0 | 19 | 1,428 | 1,657 | 858 | 799 | 140 | 3 |
module Waldo.Waldo (
WaldoData(..)
, loadWaldo
) where
import Control.Monad
import Data.HashMap.Strict (HashMap)
import qualified Data.HashMap.Strict as Map
import qualified Data.Text as T
import Waldo.Stalk
import Waldo.Script
data WaldoData =
WaldoData {
wdStalkDB :: StalkDB
, wdGenScript :: Ha... | davean/waldo | Waldo/Waldo.hs | bsd-3-clause | 780 | 0 | 13 | 208 | 234 | 129 | 105 | 23 | 1 |
{-# LANGUAGE PolyKinds, DataKinds, TemplateHaskell, TypeFamilies,
GADTs, TypeOperators, RankNTypes, FlexibleContexts, UndecidableInstances,
FlexibleInstances, ScopedTypeVariables, MultiParamTypeClasses,
OverlappingInstances, TemplateHaskell #-}
module Oxymoron.Regions.Image where
import qualified Graphics.R... | jfischoff/oxymoron | src/Oxymoron/Regions/Image.hs | bsd-3-clause | 1,920 | 0 | 11 | 511 | 301 | 174 | 127 | 38 | 1 |
import Graphics.UI.GLUT
myPoints :: [(GLfloat,GLfloat,GLfloat)]
myPoints = [ (sin (2*pi*k/12), cos (2*pi*k/12), 0) | k <- [1..12] ]
main :: IO ()
main = do
(_progName, _args) <- getArgsAndInitialize
_window <- createWindow _progName
displayCallback $= display
reshapeCallback $= Just reshape
mainLoop
displa... | rumblesan/hask3d | src/main.hs | bsd-3-clause | 580 | 0 | 12 | 111 | 250 | 129 | 121 | 20 | 1 |
module Main(main) where
import Test.HUnit
import System.Exit
import Data.Ratio
import Data.Map (Map)
import qualified Data.Map as M
import Raven.Data.Stat
main :: IO ()
main = do
cs@(Counts _ _ errs fails) <- runTestTT allTests
putStrLn (showCounts cs)
if errs > 0 || fails > 0
then exitFailure
else exi... | denumerate/raven | src/Raven/Data/Stat.Test.hs | bsd-3-clause | 4,113 | 0 | 14 | 702 | 2,212 | 1,370 | 842 | 112 | 2 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
module Budget.Database.Schema where
import Budget.Database.TH (str)
import Data.Time (Day, LocalTime, UTCTime)
import Database.HDBC (runRaw)
import Database.HDBC.Query.TH (defineTable... | utky/budget | src/Budget/Database/Schema.hs | bsd-3-clause | 2,953 | 0 | 12 | 621 | 344 | 220 | 124 | 34 | 1 |
module Main (main) where
import Prelude ()
import Game.LambdaHack.Core.Prelude
import qualified Data.Text as T
import Options.Applicative
import System.IO.Unsafe (unsafePerformIO)
import Test.Tasty
import Test.Tasty.HUnit
import Game.LambdaHack.Client.UI.UIOptions
i... | LambdaHack/LambdaHack | test/Spec.hs | bsd-3-clause | 3,342 | 0 | 22 | 974 | 515 | 294 | 221 | 64 | 1 |
module BrownPLT.JavaScript.Contracts
( Contract (..)
, InterfaceItem (..)
, compile
, compileFormatted
, compileRelease
, parseInterface
, getContractLibraryPath
) where
import System.FilePath
import Paths_flapjax_fixed -- created by Cabal
import BrownPLT.JavaScript.Contracts.Types
import BrownPLT.Jav... | ducis/flapjax-fixed | JsContracts-0.5.3/src/BrownPLT/JavaScript/Contracts.hs | bsd-3-clause | 520 | 0 | 8 | 72 | 99 | 62 | 37 | 17 | 1 |
{-# LANGUAGE CPP, BangPatterns, MagicHash, NondecreasingIndentation, OverloadedStrings #-}
-------------------------------------------------------------------------------
--
-- | Main API for compiling plain Haskell source code.
--
-- This module implements compilation of a Haskell source. It is
-- /not/ concerned wit... | AlexeyRaga/eta | compiler/ETA/Main/HscMain.hs | bsd-3-clause | 69,463 | 0 | 27 | 20,579 | 11,935 | 6,158 | 5,777 | 825 | 9 |
{-# LANGUAGE FlexibleContexts, ScopedTypeVariables, TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{- |
Module : Data.Graph.Inductive.Arbitrary
Description : Arbitrary definition for fgl graphs
Copyright : (c) Ivan Lazar Miljenovic
License : BSD3
Maintainer : Ivan.Miljenovic@gmail.com... | scolobb/fgl | fgl-arbitrary/Data/Graph/Inductive/Arbitrary.hs | bsd-3-clause | 12,050 | 0 | 13 | 3,316 | 2,783 | 1,540 | 1,243 | 174 | 2 |
module Main where
import Prelude hiding (Either(..), id, (.))
import Game
import UI
import LevelBuilder
import GameState
gameState :: GameState
gameState = mkLevel
main :: IO ()
main = do
display <- initDisplay
gameLoop display gameState
endDisplay display
| fros1y/umbral | app/Main.hs | bsd-3-clause | 273 | 0 | 7 | 54 | 83 | 48 | 35 | 13 | 1 |
module Conversation (
startConversation
, historyMaxLength
) where
import Data.Maybe (isNothing, fromJust)
import qualified Data.ByteString.Char8 as B8 (unpack)
import Control.Concurrent.STM (atomically)
import Control.Concurrent.STM.TVar (readTVar, writeTV... | nschoe/hpt | src/Client/Conversation.hs | bsd-3-clause | 2,753 | 2 | 15 | 756 | 567 | 303 | 264 | 42 | 2 |
module Language.Java.Paragon.TypeChecker
( -- * Type checking phase
typeCheck
) where
import Control.Monad (when)
import Language.Java.Paragon.Interaction
import Language.Java.Paragon.Monad.Base
import Language.Java.Paragon.Monad.PiReader
import Language.Java.Paragon.Monad.TypeCheckM
import Language.Java.Para... | bvdelft/paragon | src/Language/Java/Paragon/TypeChecker.hs | bsd-3-clause | 2,583 | 3 | 21 | 542 | 475 | 262 | 213 | 39 | 1 |
{-# LANGUAGE CPP, BangPatterns, ViewPatterns, FlexibleInstances #-}
#if __GLASGOW_HASKELL__ >= 700
{-# OPTIONS -fllvm #-}
#endif
module Data.TrieMap.RadixTrie.Subset () where
import Control.Monad
import Control.Monad.Option
import Data.TrieMap.RadixTrie.Base
import Prelude hiding (lookup)
#define V(f) f (VVector) (... | lowasser/TrieMap | Data/TrieMap/RadixTrie/Subset.hs | bsd-3-clause | 1,074 | 9 | 19 | 218 | 333 | 175 | 158 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
import Text.Printf
import Text.Regex.Posix
import Data.Function (on)
import Data.List (sortBy, nubBy)
import Data.Text (intercalate)
import Network.HTTP.Conduit (simpleHttp)
import Codec.Text.IConv as IConv
import qualified Data.Text as T
import Text.HTML.DOM (parseLBS)
import Text.X... | MrBadge/hs2s-lab | maltsev/main.hs | mit | 4,106 | 14 | 22 | 808 | 1,510 | 817 | 693 | 90 | 1 |
{-# OPTIONS_GHC -F -pgmF hspec-discover -optF --module-name=AllSpec #-}
| zsedem/haskell-python | test/AllSpec.hs | mit | 72 | 0 | 2 | 8 | 3 | 2 | 1 | 1 | 0 |
module Data.MemoUgly(memoIO, memo) where
import Control.Concurrent.MVar
import qualified Data.Map as M
import System.IO.Unsafe(unsafePerformIO)
-- | Memoize the given function by allocating a memo table,
-- and then updating the memo table on each function call.
memoIO :: (Ord a)
=> (a -> b) -- ^Funct... | Kiwi-Labs/kwirc | kwick/Data/MemoUgly.hs | mit | 821 | 0 | 21 | 255 | 280 | 144 | 136 | 19 | 2 |
module Calendar where
type Year = Int
type Month = Int
type Day = Int
type Date = (Day,Month,Year)
monthNames :: [String]
monthNames = [ "January" , "February" , "March" , "April"
, "May" , "June" , "July" , "August"
, "September" , "October" , "Novemb... | roberth/uu-helium | demo/Calendar.hs | gpl-3.0 | 3,133 | 0 | 15 | 1,241 | 1,029 | 561 | 468 | 69 | 2 |
{-# 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-dynamodb/gen/Network/AWS/DynamoDB/DeleteItem.hs | mpl-2.0 | 27,191 | 0 | 14 | 5,973 | 1,929 | 1,283 | 646 | 174 | 1 |
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Main
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
module Main (main)... | fmapfmapfmap/amazonka | amazonka-cloudwatch/test/Main.hs | mpl-2.0 | 543 | 0 | 8 | 103 | 76 | 47 | 29 | 9 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Main (main) where
import Control.Exception
(catch)
import Prelude
import System.Exit
(ExitCode(..))
import System.Process
(StdStream(CreatePipe), proc, std_out,
... | advancedtelematic/quickcheck-state-machine-model | test/Spec.hs | bsd-3-clause | 12,617 | 0 | 15 | 3,585 | 2,429 | 1,227 | 1,202 | 207 | 2 |
{-# LANGUAGE FlexibleContexts #-}
import AI.Layer
import AI.Neuron
import AI.Network
import AI.Network.FeedForwardNetwork
import AI.Trainer
import AI.Trainer.BackpropTrainer
--import Network.Visualizations
import Numeric.LinearAlgebra
import ... | jbarrow/LambdaNet | examples/Convolutional.hs | mit | 1,106 | 0 | 12 | 268 | 308 | 153 | 155 | 28 | 1 |
--------------------------------------------------------------------------------
{-|
Module : Variable
Copyright : (c) Daan Leijen 2003
License : wxWindows
Maintainer : wxhaskell-devel@lists.sourceforge.net
Stability : provisional
Portability : portable
Mutable variables.
-}
----------------------... | sherwoodwang/wxHaskell | wx/src/Graphics/UI/WX/Variable.hs | lgpl-2.1 | 1,134 | 0 | 10 | 172 | 153 | 87 | 66 | 13 | 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="fa-IR">
<title>Active Scan Rules - Alpha | ZAP Extension</title>
<maps>
<homeID>top</homeID... | 0xkasun/security-tools | src/org/zaproxy/zap/extension/ascanrulesAlpha/resources/help_fa_IR/helpset_fa_IR.hs | apache-2.0 | 996 | 84 | 65 | 163 | 418 | 211 | 207 | -1 | -1 |
module UtilSpec where
import System.Directory
import Test.Hspec
import Test.Mockery.Directory
import Util
spec :: Spec
spec = do
describe "listDirectories" $ do
it "lists directories" $ do
inTempDirectory $ do
createDirectory "foo"
createDirectory "... | sol/tinc | test/UtilSpec.hs | mit | 2,924 | 0 | 19 | 867 | 733 | 323 | 410 | 81 | 1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
-- |
-- Module : Data.Text.Internal.Fusion.Internal
-- Copyright : (c) Roman Leshchinskiy 2008,
-- (c) Bryan O'Sullivan 2009
--
-- License : BSD-style
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portabil... | fpco/text-stream-decode | text/Data/Text/Internal/Fusion/Size.hs | mit | 4,136 | 0 | 9 | 1,267 | 1,405 | 745 | 660 | 102 | 1 |
{-@ LIQUID "--no-termination" @-}
module Eval (eval) where
import Language.Haskell.Liquid.Prelude (liquidError)
import Prelude hiding (lookup)
import Data.Set (Set (..))
{-@ embed Set as Set_Set @-}
type Val = Int
type Bndr = String
data Expr = Const Int
| Var Bndr
| Plus Expr Expr
... | ssaavedra/liquidhaskell | tests/pos/Eval.hs | bsd-3-clause | 1,632 | 0 | 9 | 436 | 303 | 169 | 134 | 21 | 1 |
module TypeClassConstraintsInformedHoles where
-- Make sure that constraints imposed by the call site
-- are handled. See trac #14273
pleaseShow :: Show a => Bool -> a -> Maybe String
pleaseShow False _ = Nothing
pleaseShow True a = Just (show _a)
k :: String
k = "I fit into the hole in foo!"
foo :: [a] -> String
fo... | shlevy/ghc | testsuite/tests/typecheck/should_compile/T14273.hs | bsd-3-clause | 343 | 0 | 8 | 69 | 100 | 53 | 47 | 8 | 1 |
{-# LANGUAGE KindSignatures, PatternGuards #-}
-- Adapted from the LogicT code at http://okmij.org/ftp/Haskell/LogicT.tar.gz
-- The TicTacToe problem for the NxN board
-- M consecutive 'X' or 'O' marks in each column, row, or diagonal
-- is a win for the corresponding player
-- This code is heavily based on the code ... | atzeus/reflectionwithoutremorse | TicTacToe.hs | mit | 8,882 | 45 | 23 | 2,414 | 3,029 | 1,607 | 1,422 | 155 | 8 |
{-# LANGUAGE DoAndIfThenElse, MultiParamTypeClasses, OverloadedStrings, RecordWildCards, ScopedTypeVariables #-}
module Main where
import Control.Exception (catch, throw)
import Control.Monad.IO.Class (MonadIO (..))
import Data.Maybe
import Data.Monoid ((<>))
imp... | capital-match/hdo | main/hdo.hs | mit | 7,731 | 0 | 16 | 2,394 | 2,111 | 1,101 | 1,010 | 114 | 5 |
module Args
where
import Options
data ProgramOptions = ProgramOptions
{
inputPath :: String,
clusters :: Int,
precision :: Double,
demension :: Int,
separator :: String,
ignoreFirstCol :: Bool,
ignoreLastCol :: Bool,
ignoreFirstLine :: Bool,
... | xixi4Den/BSUIR-Haskell-lw1 | src/Args.hs | mit | 1,615 | 0 | 17 | 510 | 219 | 117 | 102 | 38 | 0 |
-- Which string is worth more?
-- https://www.codewars.com/kata/5840586b5225616069000001
module Kata where
import Data.Char (ord)
highestValue :: String -> String -> String
highestValue a b = if f a >= f b then a else b
where f = sum . map ord
| gafiatulin/codewars | src/7 kyu/StringWorth.hs | mit | 249 | 0 | 8 | 47 | 71 | 39 | 32 | 5 | 2 |
module Main (main) where
import FullBatteries (projectName)
main :: IO ()
main = putStrLn ("Executable for " ++ projectName)
| vrom911/hs-init | summoner-cli/examples/full-batteries/app/Main.hs | mit | 128 | 0 | 7 | 22 | 42 | 24 | 18 | 4 | 1 |
{-# LANGUAGE RecordWildCards, FlexibleContexts #-}
module Utils.Error where
import Control.Monad.Error
import Text.Printf
data Stage = Parser | Rewrite | CPS | ClosConv | CodeGen
type Loc = String
type Info = String
data Failure = Failure { state :: Stage
, location :: Loc
... | jozefg/c_of_scheme | src/Utils/Error.hs | mit | 1,176 | 0 | 9 | 311 | 333 | 174 | 159 | 27 | 5 |
module Language.Jass.Codegen.Statement(
genBodyBlocks
) where
import Language.Jass.Parser.AST
import Language.Jass.Codegen.Context
import Language.Jass.Codegen.Expression
import Language.Jass.Codegen.Type
import LLVM.General.AST as LLVM
import LLVM.General.AST.CallingConvention as LLVM
import LLVM.General.AST.Ty... | NCrashed/hjass | src/library/Language/Jass/Codegen/Statement.hs | mit | 8,551 | 0 | 17 | 1,741 | 2,701 | 1,348 | 1,353 | 170 | 8 |
-- We need 'FlexibleInstances to instance 'ArgVal' for 'Maybe Exp' and
-- '( String, Exp )'.
{-# LANGUAGE FlexibleInstances #-}
module Arith where
import Prelude hiding ( exp )
import System.Console.CmdTheLine hiding ( eval )
import Control.Applicative hiding ( (<|>) )
import Control.Monad ( guard )
import Data... | MerelyAPseudonym/cmdtheline | test/Arith.hs | mit | 4,438 | 0 | 16 | 1,244 | 1,614 | 847 | 767 | 118 | 5 |
module Language.Camle.Print.ThreeAddressCode where
import Text.PrettyPrint
import Language.Camle.Data.ThreeAddressCode
class PrettyPrintable a where
pprint :: a -> Doc
instance PrettyPrintable TAC where
pprint = text . show
printIr :: Program -> Doc
printIr = vcat . (map pprint)
| willprice/camle-compiler | src/Language/Camle/Print/ThreeAddressCode.hs | mit | 300 | 0 | 7 | 56 | 79 | 45 | 34 | 9 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module PathSpec (
PathSpec,
PathSpecString,
matches,
parse,
testGroup,
) where
import Data.List
import System.FilePath
import qualified System.FilePath.Glob as Glob
import Test.Tasty.HUnit
import Test.Tasty.TH
type Path... | danstiner/dupes | src/PathSpec.hs | mit | 1,093 | 0 | 12 | 203 | 300 | 163 | 137 | 27 | 1 |
-- Copyright (C) 2013 Jorge Aparicio
main :: IO()
main = print $ iterate (scanl1 (+)) (repeat 1 :: [Int]) !! size !! size
where size = 20 :: Int
| japaric/eulermark | problems/0/1/5/015.hs | mit | 149 | 0 | 10 | 34 | 64 | 35 | 29 | 3 | 1 |
module FeatureModel.Parsers.OldGenericParser (
parseFeatureModel,
parseInstanceModel,
FmFormat ( FMPlugin, FMIde, FMGrammar, SXFM, SPLOT )
)
where
import FeatureModel.Types
import qualified BasicTypes as Core
-- modules related to the FMPlugin parser
import FeatureModel.Parsers.FMPlugin.XmlFeatureParser
impor... | hephaestus-pl/hephaestus | alexandre/feature-modeling/src/FeatureModel/Parsers/OldGenericParser.hs | mit | 5,381 | 2 | 21 | 1,303 | 1,019 | 583 | 436 | 93 | 3 |
module ExercisesHeavyLifting where
e :: IO Integer
e = let ioi = readIO "1" :: IO Integer
changed = read <$> ("123"++) <$> show <$> ioi
in (*3) <$> changed | NickAger/LearningHaskell | HaskellProgrammingFromFirstPrinciples/Chapter16.hsproj/ExercisesHeavyLifting.hs | mit | 171 | 0 | 12 | 45 | 66 | 36 | 30 | 5 | 1 |
module Data.SimpleHtmlTag (Tag (Tag) ) where
data Tag = Tag
{ name :: String
, content :: String
, children :: [Tag]
} deriving (Show, Eq)
| taiki45/ex-simple-html-parser | src/Data/SimpleHtmlTag.hs | mit | 188 | 0 | 9 | 75 | 56 | 35 | 21 | 8 | 0 |
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
import Prelude hiding (catch,(.))
import Data.Monoid
import Data.Foldable
import Data.... | danidiaz/haskell-sandbox | Pianola.hs | mit | 825 | 0 | 10 | 147 | 210 | 124 | 86 | 24 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-tagspecification.html
module Stratosphere.ResourceProperties.EC2LaunchTemplateTagSpecifica... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/EC2LaunchTemplateTagSpecification.hs | mit | 2,204 | 0 | 12 | 204 | 264 | 153 | 111 | 28 | 1 |
module Kopia.ParserSpec where
import Test.Hspec
import Kopia.Parser
import Kopia.Model.Command
import Kopia.Model.Bridge
import System.Exit (ExitCode(..))
spec :: Spec
spec = do
describe "Parser" $ do
describe "Bridge" $ do
it "should parse a bridge" $ do
command <- parse [... | Jefffrey/Kopia | test/Kopia/ParserSpec.hs | gpl-3.0 | 5,759 | 0 | 22 | 2,379 | 1,634 | 855 | 779 | 101 | 1 |
{- |
Module : $Header$
Description : Module to handling basics of finite elliptics curves
Copyright : (c) Michal Parusinski
License : GPLv3
Maintainer : mparusinski@gmail.com
Stability : experimental
Portability : portable
<module description starting at first column>
-}
module EllipticCurves.Fi... | mparusinski/Haskell-number-theory-library | EllipticCurves/FiniteEllipticCurves.hs | gpl-3.0 | 406 | 1 | 3 | 81 | 10 | 7 | 3 | -1 | -1 |
module DL3047 (tests) where
import Data.Text as Text
import Helpers
import Test.Hspec
tests :: SpecWith ()
tests = do
let ?rulesConfig = mempty
describe "DL3047 - `wget` without flag `--progress` will result in excessively bloated build logs when downloading larger files." $ do
it "warns when using wget with... | lukasmartinelli/hadolint | test/DL3047.hs | gpl-3.0 | 3,021 | 0 | 15 | 938 | 448 | 212 | 236 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/InAppProducts/List.hs | mpl-2.0 | 6,132 | 0 | 21 | 1,502 | 984 | 564 | 420 | 141 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-blogger/gen/Network/Google/Resource/Blogger/Posts/Patch.hs | mpl-2.0 | 6,653 | 0 | 24 | 1,807 | 1,263 | 722 | 541 | 180 | 1 |
{- ORMOLU_DISABLE -}
-- Implicit CAD. Copyright (C) 2011, Christopher Olah (chris@colah.ca)
-- Copyright (C) 2016, Julia Longtin (julial@turinglace.com)
-- Released under the GNU AGPLV3+, see LICENSE
module Graphics.Implicit.Export.Render.HandleSquares (mergedSquareTris) where
import Prelude((+), foldMap, (<>), ($), ... | colah/ImplicitCAD | Graphics/Implicit/Export/Render/HandleSquares.hs | agpl-3.0 | 4,654 | 0 | 20 | 1,322 | 1,329 | 721 | 608 | 63 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Store.ConfigTest
where
import Data.Aeson hiding (Value)
import qualified Data.ByteString as BS
import Data.Monoid ((<>))
import qualified Data.Text as T
-- import Test.Tasty
import Test.Tasty.HUnit
import Store.Config
-- example usage; TODO: replace guts with data.yaml
unit_... | databrary/databrary | test/Store/ConfigTest.hs | agpl-3.0 | 1,049 | 0 | 11 | 199 | 351 | 189 | 162 | 22 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.