code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Network.Haskoin.Crypto.Keys.Tests (tests) where
import qualified Crypto.Secp256k1 as EC
import qualified Data.ByteString as BS
import Data.Serialize (encode, runGet, runPut)
import Data.String (fromString... | plaprade/haskoin | haskoin-core/test/Network/Haskoin/Crypto/Keys/Tests.hs | unlicense | 5,082 | 0 | 14 | 1,505 | 1,289 | 671 | 618 | 95 | 1 |
module BOM where
import Control.Applicative
import Control.Monad.State
import Control.Monad.RWS
import Control.Monad.Logic
import Data.Function
import Data.List
import Data.Monoid
import Data.Ord
import qualified Data.Map as M
bom =
[ (1, pcb)
, (3, al8805)
, (3, decouplingCapacitor)
, (3, outputCapac... | mokus0/schematics | picobuck/BOM.hs | unlicense | 4,819 | 0 | 18 | 1,598 | 1,579 | 883 | 696 | 130 | 2 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ParallelListComp #-}
module Language.K3.Codegen.CPP.Declaration where
import Control.Arrow ((&&&))
import Control.Applicative
import Control.Monad.State
import Data.Maybe
import qualified Data.List as L
import quali... | DaMSL/K3 | src/Language/K3/Codegen/CPP/Declaration.hs | apache-2.0 | 24,950 | 0 | 21 | 7,404 | 8,714 | 4,497 | 4,217 | 358 | 32 |
module Kornel.LineHandler.HttpSnippets
( setup
, announceUrl
) where
import Data.Aeson (FromJSON)
import qualified Data.ByteString.Lazy as LBS
import qualified Data.Text as T
import Kornel.Common
import Kornel.Config
import Kornel.LineHandler
... | michalrus/kornel | src/Kornel/LineHandler/HttpSnippets.hs | apache-2.0 | 2,680 | 0 | 18 | 656 | 772 | 406 | 366 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
module I2C.BitMaster.StateMachine where
import CLaSH.Prelude
import Control.Lens hiding (Index)
import Control.Monad.State
import I2C.Types
data BitStateMachine
= Idle
| Start (Index 5)
| Stop (Index 4)
| Read (Index 4)
| Write (Index 4)
deriving Eq
data StateMachine
... | ggreif/clash-compiler | examples/i2c/I2C/BitMaster/StateMachine.hs | bsd-2-clause | 5,174 | 0 | 20 | 2,193 | 1,158 | 576 | 582 | -1 | -1 |
{-# LANGUAGE BangPatterns,CPP #-}
#if __GLASGOW_HASKELL__ >= 702
{-# LANGUAGE Trustworthy #-}
#endif
-- |
-- Module : Data.Text.Lazy.Encoding
-- Copyright : (c) 2009, 2010 Bryan O'Sullivan
--
-- License : BSD-style
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portability : portable
--... | ekmett/text | Data/Text/Lazy/Encoding.hs | bsd-2-clause | 9,241 | 0 | 14 | 1,653 | 1,413 | 829 | 584 | 101 | 3 |
{-# LANGUAGE TemplateHaskell, ScopedTypeVariables, NamedFieldPuns #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for the job scheduler.
-}
{-
Copyright (C) 2014 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the... | leshchevds/ganeti | test/hs/Test/Ganeti/JQScheduler.hs | bsd-2-clause | 21,467 | 0 | 29 | 6,952 | 4,550 | 2,447 | 2,103 | -1 | -1 |
{-# LANGUAGE StandaloneDeriving,FlexibleContexts #-}
import Kalman
import Vectorization
import Control.Applicative
import Space
import Data.Functor.Product
import Linear.V1
import Data.IntervalMap.FingerTree
p0 = point 0
s0 = singleton p0 (x0,c0)
x0 :: Product V1 V1 Double
x0 = Pair 0 0
c0 :: Product V1 V1 (Pro... | massudaw/mtk | example/1DParticle.hs | bsd-3-clause | 593 | 4 | 14 | 129 | 340 | 171 | 169 | 18 | 1 |
{-# LANGUAGE GADTs #-}
{-
The regular expression refinement algorithm
Inspired by the type checking system and type inference algorithm found in programming language research communities. \cite{TODO}
Type checking and Type inference algorithm
==========================================
Type checking judgement
------... | luzhuomi/pddebug | Text/Regex/PDeriv/Debug/Refine5.hs | bsd-3-clause | 66,513 | 4 | 29 | 23,269 | 17,905 | 9,420 | 8,485 | 918 | 29 |
{-# LANGUAGE PatternGuards #-}
module Idris.ProofSearch(trivial, trivialHoles, proofSearch) where
import Idris.Core.Elaborate hiding (Tactic(..))
import Idris.Core.TT
import Idris.Core.Evaluate
import Idris.Core.CaseTree
import Idris.Core.Typecheck
import Idris.AbsSyntax
import Idris.Delaborate
import Idris.Error
i... | uwap/Idris-dev | src/Idris/ProofSearch.hs | bsd-3-clause | 12,296 | 35 | 20 | 5,320 | 3,536 | 1,766 | 1,770 | 219 | 28 |
module Sexy.Data.Either (
Either(..)
, either'
, fromLeft'
, fromRight'
) where
data Either a b = Left a | Right b
either' :: (a -> c) -> (b -> c) -> Either a b -> c
either' f _ (Left x) = f x
either' _ g (Right x) = g x
fromLeft' :: a -> Either a b -> a
fromLeft' _ (Left x) = x
fromLeft' x (Right _) =... | DanBurton/sexy | src/Sexy/Data/Either.hs | bsd-3-clause | 413 | 0 | 8 | 114 | 219 | 116 | 103 | 15 | 1 |
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.VMath.VFloating
-- Copyright : Copyright (c) 2010, Patrick Perry <patperry@gmail.com>
-- License : BSD3
-- Maintainer : Patrick Perry <patperry@gmail.com>
-- Stability : exp... | patperry/hs-linear-algebra | lib/Foreign/VMath/VFloating.hs | bsd-3-clause | 4,207 | 0 | 12 | 1,489 | 1,168 | 601 | 567 | 97 | 1 |
-- | Number component of intervals.
module Music.Pitch.Common.Number
(
Number,
HasNumber(..),
unison,
prime,
second,
third,
fourth,
fifth,
sixth,
seventh,
octave,
ninth,
tenth,
eleventh,
twelfth,
... | music-suite/music-pitch | src/Music/Pitch/Common/Number.hs | bsd-3-clause | 2,203 | 0 | 10 | 740 | 466 | 273 | 193 | 67 | 4 |
{-# LANGUAGE GeneralizedNewtypeDeriving
, ScopedTypeVariables
#-}
module Editor where
import System.IO
import Buffer
import Control.Exception
import Control.Monad.State
import Control.Applicative
import Control.Arrow (first, second)
import Data.Char
import Data.List
-- Editor commands
data Co... | wangwangwar/cis194 | src/ch7/Editor.hs | bsd-3-clause | 3,871 | 0 | 14 | 1,214 | 1,444 | 726 | 718 | 108 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Irc(runIrcClient) where
import Data.Conduit
import Control.Concurrent.Async (concurrently)
import Control.Monad (void)
import Data.Conduit.Network
import Data.Conduit.Attoparsec
import Data.Conduit.Text (encode, decode, utf8)
import IrcParser
import Control.Monad.Tr... | UnrealQuester/irc-bot | lib/Irc.hs | bsd-3-clause | 1,043 | 0 | 17 | 216 | 321 | 170 | 151 | 28 | 1 |
module Tokenizer (tokenize, Token(..), TokenKind(..)
, isStringToken, isCharToken, isIntToken, isFloatToken, isKeywordToken
, isOperatorToken, isReservedOperatorToken, isIdentToken, isTypeIdentToken
, reconstructSpan, reservedOperators) where
import Prelude hiding (span)
import Data.Maybe
import Control.Applica... | nulldatamap/bastet | src/Tokenizer.hs | bsd-3-clause | 7,433 | 0 | 19 | 2,386 | 2,437 | 1,293 | 1,144 | 196 | 7 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.EXT.PalettedTexture
-- Copyright : (c) Sven Panne 2013
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable... | mfpi/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/EXT/PalettedTexture.hs | bsd-3-clause | 1,816 | 0 | 4 | 253 | 199 | 136 | 63 | 45 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving,MultiParamTypeClasses,FlexibleInstances #-}
module SetWriter (SetWriterT(), runSetWriterT, runSetWriter, SetWriter) where
import Control.Monad.Writer.Class
import Control.Monad.Trans
import Control.Monad.State
import Control.Monad.Identity
import Data.Set (Set)
import qualifie... | olsner/m3 | SetWriter.hs | bsd-3-clause | 1,423 | 0 | 10 | 310 | 534 | 286 | 248 | 40 | 1 |
{-# LANGUAGE NamedFieldPuns #-}
module Astro.Celestrak.Parser (parseEOPFile) where
import Astro.Celestrak
import Data.Time
import Text.Parsec
import Text.Parsec.String
--import Text.Parsec.ByteString.Lazy
import qualified Text.Parsec.Token as P
import Text.Parsec.Language (haskellDef)
import Numeric.Units.Dimensional... | bjornbm/astro | src/Astro/Celestrak/Parser.hs | bsd-3-clause | 2,482 | 0 | 11 | 568 | 485 | 258 | 227 | 44 | 1 |
module Main where
import Prelude hiding (Either(..))
import GameInput
import GameState
import GameRenderer
main :: IO ()
main = do
let gs = GameStatus {runStatus = Init, board = emptyBoard}
initializePainter "Game of Life"
drawGame gs inputInstructions
gameLoop gs
gameLoop :: GameStatus -> IO ()
gameLoop gs... | JobaerChowdhury/game-of-life | app/Main.hs | bsd-3-clause | 2,136 | 0 | 12 | 508 | 791 | 377 | 414 | 78 | 8 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Test.Set2 where
import qualified Data.ByteString as B
import Disorder.Core
import Disorder.... | thumphries/cryptopals | test/Test/Set2.hs | bsd-3-clause | 912 | 0 | 11 | 219 | 206 | 114 | 92 | 25 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module Test.ZM.ADT.Bits52.Kf727da8aa8ad (Bits52(..)) where
import qualified Prelude(Eq,Ord,Show)
import qualified GHC.Generics
import qualified Flat
import qualified Data.Model
import qualified Test.ZM.ADT.Bit.K65149ce3b366
data Bits52 = Bits52 {bit0 ::... | tittoassini/typed | test/Test/ZM/ADT/Bits52/Kf727da8aa8ad.hs | bsd-3-clause | 3,932 | 0 | 9 | 1,426 | 737 | 539 | 198 | 62 | 0 |
{-# Language DataKinds #-}
{-# Language FlexibleContexts #-}
{-# Language FlexibleInstances #-}
{-# Language GADTs #-}
{-# Language MultiParamTypeClasses #-}
{-# Language OverloadedStrings #-}
{-# Language PatternSynonyms #-}
{-# Language RankNTypes #-}
{-# Language ScopedTypeVariables #-}
{-# Language TemplateHaskell ... | GaloisInc/saw-script | crux-mir-comp/src/Mir/Compositional/Override.hs | bsd-3-clause | 26,900 | 0 | 27 | 7,581 | 7,280 | 3,611 | 3,669 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
-- Disable this warning so we can still test deprecated functionality.
{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}
import Crypto.Random
import Network.BSD
import Network.Socket (socket, Family(..), SocketType(..), close, SockAddr(..), bind, listen, accept, iNADDR_ANY)
import q... | erikd/hs-tls | debug/src/SimpleServer.hs | bsd-3-clause | 13,986 | 0 | 20 | 5,199 | 3,483 | 1,790 | 1,693 | 264 | 10 |
module VideoCore4.QPU.Instruction.Register
(
Register
, ABRW(..)
, rwab
, ra0
, rb0
, ra1
, rb1
, ra2
, rb2
, ra3
, rb3
, ra4
, rb4
, ra5
, rb5
, ra6
, rb6
, ra7
, rb7
,... | notogawa/VideoCore4 | src/VideoCore4/QPU/Instruction/Register.hs | bsd-3-clause | 6,765 | 0 | 9 | 1,908 | 2,537 | 1,481 | 1,056 | 321 | 1 |
module GDITypes
{- -- still incomplete
( POINT, marshall_point, unmarshall_point
, ListPOINT, marshall_ListPOINT_
, ListLenPOINT, marshall_ListLenPOINT_
, RECT, marshall_rect, unmarshall_rect
, SIZE, marshall_size, unmarshall_size
, nullAddr
, HBITMAP , MbHBITMAP
, HFONT , MbHFONT
,... | OS2World/DEV-UTIL-HUGS | libraries/win32/GDITypes.hs | bsd-3-clause | 14,607 | 104 | 21 | 2,547 | 3,804 | 2,065 | 1,739 | -1 | -1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TupleSections #-}
-- |
-- Module: $HEADER$
-- Description: TODO
-- Copyright: (c) 2016 Peter Trško
-- License: BSD3
--
-- Stability: ex... | FPBrno/dht-dks | src/Data/DHT/DKS/Internal.hs | bsd-3-clause | 8,015 | 0 | 14 | 1,961 | 1,837 | 1,023 | 814 | 206 | 19 |
--------------------------------------------------------------
-- Module for demonstrating the work of the library
----------------------------------------------------------------
module WebUI.Demo.LibDemo
( testDemo
) where
-- Импорт модулей
import qualified Text.Blaze.Html5 as H
... | iqsf/HFitUI | src/WebUI/Demo/LibDemo.hs | bsd-3-clause | 3,673 | 0 | 17 | 1,956 | 623 | 306 | 317 | -1 | -1 |
{-# LINE 1 "Data.Char.hs" #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Char
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICE... | phischu/fragnix | builtins/base/Data.Char.hs | bsd-3-clause | 7,563 | 0 | 10 | 1,633 | 732 | 493 | 239 | 62 | 6 |
{-# LANGUAGE DeriveGeneric #-}
module Network.Telegraphs.Video where
import Data.Aeson
import GHC.Generics
import Network.Telegraphs.PhotoSize
data Video =
Video { file_id :: String
, width :: Integer
, height :: Integer
, duration :: Integer
, thumb :: Maybe PhotoSize... | l-a-i-n/Telegraphs | src/Network/Telegraphs/Video.hs | mit | 512 | 0 | 9 | 144 | 122 | 71 | 51 | 17 | 0 |
module Cardano.Wallet.API.V1.Handlers.Info (handlers) where
import Universum
import Servant
import Cardano.Wallet.API.Response (APIResponse, single)
import qualified Cardano.Wallet.API.V1.Info as Info
import Cardano.Wallet.API.V1.Types (ForceNtpCheck, NodeInfo)
import ... | input-output-hk/pos-haskell-prototype | wallet/src/Cardano/Wallet/API/V1/Handlers/Info.hs | mit | 697 | 0 | 9 | 132 | 157 | 95 | 62 | 16 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Unison.DocView where
import Control.Comonad.Cofree (Cofree(..), unwrap) -- (:<)
import Control.Monad.IO.Class
import Data.Maybe (fromMaybe)
import Data.Semigroup ((<>))
import Data.Text (Text)
import Data.Word (Word)
import Reflex.Dom
import ... | CGenie/platform | editor/src/Unison/DocView.hs | mit | 2,802 | 0 | 20 | 627 | 1,064 | 587 | 477 | 61 | 5 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module ErrorMessages
(
tests
) where
import Prelude.Compat
import Data.Aeson (FromJSON(..), Value, json)
import Data.Aeson.Types (Parser)
import Data.Aeson.Parser (eitherDecodeWith)
import Data.Aeson.In... | dmjio/aeson | tests/ErrorMessages.hs | bsd-3-clause | 5,915 | 0 | 13 | 1,568 | 1,410 | 776 | 634 | 164 | 4 |
-- | Possibly convenient facilities for constructing constants.
module Futhark.Representation.AST.Attributes.Constants
(
IsValue (..)
, constant
, intConst
, floatConst
)
where
import Futhark.Representation.AST.Syntax.Core
-- | If a Haskell type is an instance of 'Is... | CulpaBS/wbBach | src/Futhark/Representation/AST/Attributes/Constants.hs | bsd-3-clause | 1,684 | 0 | 7 | 344 | 326 | 181 | 145 | 37 | 1 |
-- trac #2806
{-# LANGUAGE MagicHash, UnboxedTuples, BangPatterns #-}
module Tcfail203a where
import GHC.Base
fail10 = 'a'
where !(b, ~(c, (I# x))) = (True, (False, 5))
| rahulmutt/ghcvm | tests/suite/typecheck/fail/tcfail203/Tcfail203a.hs | bsd-3-clause | 177 | 0 | 12 | 34 | 56 | 34 | 22 | 5 | 1 |
{-|
Module : Idris.DataOpts
Description : Optimisations for Idris code i.e. Forcing, detagging and collapsing.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE PatternGuards #-}
module Idris.DataOpts(applyOpts) where
import Idris.AbsSyntax
import Idris.AbsSyntaxTree
import Idri... | bravit/Idris-dev | src/Idris/DataOpts.hs | bsd-3-clause | 4,582 | 0 | 16 | 1,197 | 1,832 | 903 | 929 | 81 | 4 |
{-# OPTIONS_GHC -O0 #-}
{- |
The ghcjs-boot program installs the libraries and runtime system for GHCJS
There are two types of installation:
- release (default):
install ghcjs-boot and shims from the tar cache archives included
in the package
- development:
install ghcjs-boot... | tavisrudd/ghcjs | src-bin/Boot.hs | mit | 81,369 | 1,314 | 39 | 24,649 | 21,299 | 11,163 | 10,136 | -1 | -1 |
{-| Implementation of Utility functions for storage
-}
{-
Copyright (C) 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyr... | onponomarev/ganeti | src/Ganeti/Storage/Utils.hs | bsd-2-clause | 3,811 | 0 | 11 | 606 | 545 | 290 | 255 | 42 | 2 |
-- |
-- Module : $Header$
-- Copyright : (c) 2013-2015 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
{-# LANGUAGE PatternGuards, Safe #-}
module Cryptol.TypeCheck.Solver.Selector (tryHasGoal) where
import Cryptol.TypeCheck.AST... | iblumenfeld/cryptol | src/Cryptol/TypeCheck/Solver/Selector.hs | bsd-3-clause | 4,402 | 0 | 30 | 1,589 | 1,477 | 731 | 746 | 97 | 13 |
module MonadIn1 where
f :: Monad m => m Int
f = do
let x@(y:ys) = [1,2]
return y
| kmate/HaRe | old/testing/simplifyExpr/MonadIn1_TokOut.hs | bsd-3-clause | 99 | 0 | 12 | 37 | 56 | 29 | 27 | 5 | 1 |
module Main where
import Control.Monad
import System.Environment
import Language.C
import Language.C.System.GCC
main = do
input <- getArgs >>= \args ->
case args of
[f] -> return f
_ -> error "Usage: ./Test.hs c-file"
ast <- parseCFile (newGCC "gcc") Not... | micknelso/language-c | test/harness/bug22_file_permission_cpp/Test.hs | bsd-3-clause | 436 | 0 | 13 | 151 | 139 | 70 | 69 | 14 | 3 |
module TypeSigs where
sq,anotherFun :: Int -> Int
sq 0 = 0
sq z = z^2
anotherFun x = x^2
a,b,c::Int->Integer->Char
a x y = undefined
b x y = undefined
c x y = undefined
| RefactoringTools/HaRe | test/testdata/TypeUtils/TypeSigs.hs | bsd-3-clause | 174 | 0 | 6 | 41 | 94 | 52 | 42 | 9 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Typeable
-- Copyright : (c) ... | jtojnar/haste-compiler | libraries/ghc-7.10/base/Data/Typeable.hs | bsd-3-clause | 4,552 | 0 | 12 | 1,192 | 688 | 424 | 264 | 63 | 2 |
module Network.Gazelle.Types.Error (
GazelleError(..)
) where
import Data.Aeson
import Network.API.Builder
import Data.Text (Text)
data GazelleError = GenericGazelleError
deriving Show
instance ErrorReceivable GazelleError where
receiveError = useErrorFromJSON
instance FromJSON GazelleError where
... | mr/gazelle | src/Network/Gazelle/Types/Error.hs | mit | 549 | 0 | 12 | 131 | 130 | 72 | 58 | 16 | 0 |
module Unused.ResponseFilterSpec
( main
, spec
) where
import Data.List (find)
import Test.Hspec
import Unused.ResponseFilter
import Unused.ResultsClassifier
import Unused.Types
(TermMatch(..), TermResults, resultsFromMatches)
main :: IO ()
main = hspec spec
spec :: Spec
spec =
parallel $ do
... | joshuaclayton/unused | test/Unused/ResponseFilterSpec.hs | mit | 7,851 | 0 | 18 | 3,191 | 1,401 | 658 | 743 | 157 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Functionality.Explicit.Server where
import Control.Applicative ((<$>))
import Data.Foldable (for_)
import Data.Function (($), (.))
import Data.List ... | mdorman/couch-simple | test/Functionality/Explicit/Server.hs | mit | 3,023 | 0 | 14 | 873 | 499 | 285 | 214 | 41 | 1 |
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE EmptyDataDecls #-}
module SqliteTest (specs) where
import... | jcristovao/migrationplus | test/SqliteTest.hs | mit | 1,930 | 0 | 18 | 472 | 364 | 199 | 165 | 42 | 1 |
{-|
Module : Test.Make.Instances
Description : Tests the Instances Make modules
Copyright : (c) Andrew Burnett 2014-2015
Maintainer : andyburnett88@gmail.com
Stability : experimental
Portability : Unknown
Contains the test hierarchy for the Make Instances modules
-}
module Test.Make.Instances (
tests -- T... | aburnett88/HSat | tests-src/Test/Make/Instances.hs | mit | 590 | 0 | 7 | 119 | 72 | 48 | 24 | 12 | 1 |
-- | A minimalistic DOM
module Hom.DOM
( Elem
, newElem
, appendChild
, newTextElem
, getBody
)
where
import GHCJS.Types
import GHCJS.Foreign
import Data.Text
newtype Elem = Elem (JSRef Elem)
foreign import javascript unsafe "document.createElement($1)"
js_newElem :: JSString -> IO Elem
newElem :: Text -> IO E... | arianvp/ghcjs-hom | src/Hom/DOM.hs | mit | 817 | 17 | 7 | 140 | 217 | 117 | 100 | 26 | 1 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TupleSections #-}
-- |
-- Module : Text.XML.Mapping.Internal.Parser
-- Copyright : (c) Joseph Abrahamson 2013
-- License : MIT
-- .
-- Maintainer : me@jspha.com
-- Stability : experimental
-- Portability : non-portable
-- .
-- Low... | tel/xml-mapping | src/Text/XML/Mapping/Internal/Parser.hs | mit | 3,845 | 0 | 22 | 1,199 | 1,367 | 715 | 652 | 80 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Blame (BlameModule (BlameModule)) where
import Prelude hiding (mapM_, sum)
import GHC.IO.Handle (Handle, hIsEOF)
import Control.Applicative ((<$>))
import Control.Monad (unless, when)
import Pipes
import qualified Pipes.Prelude as P
import System.Process
import System.IO (hGet... | EDmitry/ircbot-hs | Blame.hs | mit | 2,396 | 0 | 19 | 502 | 895 | 475 | 420 | 57 | 2 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeSynonymInstances #-}
module IHaskell.Display.Widgets.Box.Box (
-- * The Box widget
Box,
-- * Constructor
mkBox) where
-- To keep `cabal repl` happy when running from the ihaskell repo
import ... | sumitsahrawat/IHaskell | ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Box/Box.hs | mit | 1,239 | 0 | 11 | 286 | 213 | 117 | 96 | 29 | 1 |
--If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
--Find the sum of all the multiples of 3 or 5 below 1000.
is_divisible x y = x `mod` y == 0
get_factors :: Integer -> Integer -> [Integer]
get_factors n 1 = get_factors n 2... | stefan-j/ProjectEuler | q3.hs | mit | 629 | 8 | 9 | 170 | 216 | 112 | 104 | 12 | 2 |
module ProjectEuler.Problem016 (solve) where
import ProjectEuler.Prelude (digits)
solve :: Integer -> Integer
solve = sum . digits
| hachibu/project-euler | src/ProjectEuler/Problem016.hs | mit | 133 | 0 | 5 | 19 | 39 | 23 | 16 | 4 | 1 |
module Data.Geometry.Geos.TopologySpec
( topologySpec
)
where
import Test.Hspec
import qualified Data.Vector as V
import Data.Either hiding (fromRight)
import Helpers
import Data.Geometry.Geos.Geometry
import Data.Geometry.Geos.Topology
poly1 ... | ewestern/geos | tests/Data/Geometry/Geos/TopologySpec.hs | mit | 6,382 | 0 | 23 | 1,343 | 2,484 | 1,412 | 1,072 | -1 | -1 |
module Graphics.Oedel.Color where
-- | @c@ is a color, containing brightness information, but not transparency.
class Color c where
-- | Gets the best approximation of the given RGB color. Components may
-- range from @0.0@ to @1.0@.
rgb :: Double -> Double -> Double -> c
-- | The closest approx... | dzamkov/Oedel | src/Graphics/Oedel/Color.hs | mit | 1,163 | 0 | 9 | 301 | 287 | 160 | 127 | 21 | 1 |
module Test where
data MarkusTest = MarkusTest {
markusName :: String
}
justATest :: IO String
justATest = return $ markusName $ MarkusTest {markusName = "Test"}
| MarkusBa/StockHaskell | Test.hs | mit | 173 | 0 | 8 | 37 | 48 | 28 | 20 | 5 | 1 |
module Ithkuil.Core
( {- Catigories -}
Pattern(..)
, Stem(..)
, Configuration(..)
, Affiliation(..)
, Perspective(..)
, Extension(..)
, Essence(..)
, Context(..)
, Designation(..)
, Case(..)
, Function(..)
, Mood(..)
, Illocution(..)
, Relation(..)
, Phase(..)
, Sanction(..)
, Valence(..)
, Version(..)
, Validation(.... | hina-ichigo/haskell-ithkuil | core.hs | mit | 9,975 | 138 | 9 | 2,376 | 2,545 | 1,592 | 953 | 402 | 0 |
{-# LANGUAGE Rank2Types #-}
{- |
Module : Summoner.Tui.Validation
Copyright : (c) 2018-2022 Kowainik
SPDX-License-Identifier : MPL-2.0
Maintainer : Kowainik <xrom.xkov@gmail.com>
Stability : Stable
Portability : Portable
This module contains functi... | vrom911/hs-init | summoner-tui/src/Summoner/Tui/Validation.hs | mit | 9,509 | 0 | 16 | 2,392 | 2,098 | 1,081 | 1,017 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
module Y2017.M11.D30.Exercise where
{--
Today is the dual of yesterday's problem: we have the recommended articles to
be published in the database already, now, from some source article id, we need
to read out the associated recommended article ids and their ranks, and ... | geophf/1HaskellADay | exercises/HAD/Y2017/M11/D30/Exercise.hs | mit | 2,177 | 0 | 9 | 320 | 243 | 156 | 87 | 25 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-ec2fleet-fleetlaunchtemplateconfigrequest.html
module Stratosphere.ResourceProperties.EC2EC2FleetFleetLau... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/EC2EC2FleetFleetLaunchTemplateConfigRequest.hs | mit | 2,995 | 0 | 12 | 206 | 260 | 153 | 107 | 29 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Character.Database (
getPlayers,
selectPlayer,
updatePlayer
) where
import Control.Applicative ((<$>), (<*>))
import Database.SQLite.Simple (FromRow(..),
Connection(..),
Query(..),
... | quintenpalmer/dungeons | server/src/Character/Database.hs | mit | 7,567 | 0 | 25 | 2,340 | 2,488 | 1,293 | 1,195 | 165 | 4 |
-- | Annotating type checker
module TypeCheckerA where
import Control.Monad(mapAndUnzipM,zipWithM)
import Debug.Trace(trace)
import AbsCPP
import PrintCPP
import ErrM
import BuiltIns
import Environment
-- 2) do type-checking and annotation
-- check EApp f es
-- (ts, t) <- lookUp f
-- smart way is to use zip:
-- ... | izimbra/PLT2014 | Lab2/TypeCheckerA.hs | gpl-2.0 | 11,490 | 0 | 20 | 5,297 | 3,210 | 1,577 | 1,633 | 167 | 32 |
--------------------------------------------------------------------------------
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Patat.Theme
( Theme (..)
, defaultTheme
, Style (..)
, SyntaxHighlighting (..)
... | jaspervdj/patat | lib/Patat/Theme.hs | gpl-2.0 | 13,219 | 0 | 18 | 3,566 | 3,085 | 1,653 | 1,432 | 286 | 11 |
{-
Auf wie viele Weisen kann man Spielsteine auf ein 3 x 10-Spielbrett setzen,
sodass keine zwei Steine horizontal, vertikal oder diagonal benachbart sind?
(Quelle: Preisaufgabe bei LSGM-Wochenendseminar 2011 in Bennewitz
http://www.lsgm.de/tiki-index.php?page=Seminare.2011-09)
BUILD: ghc --make Placement
RUN : .... | jwaldmann/haskell-obdd | examples/Placement.hs | gpl-2.0 | 1,208 | 1 | 14 | 328 | 383 | 194 | 189 | 28 | 2 |
{-| Implementation of the LUXI loader.
-}
{-
Copyright (C) 2009, 2010, 2011 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any lat... | ganeti/htools | Ganeti/HTools/Luxi.hs | gpl-2.0 | 7,976 | 0 | 14 | 1,835 | 1,950 | 1,000 | 950 | 142 | 3 |
module Language.Java.Jdi.Event
( J.Event
, thread
, J.EventKind(..)
, J.eventKind
, referenceType
, location
) where
import Language.Java.Jdi.Impl
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Error (ErrorT, runErrorT, MonadError(..), Error(..))
import qualified Language.Java.Jdwp as J
location :: (Er... | VictorDenisov/jdi | src/Language/Java/Jdi/Event.hs | gpl-2.0 | 577 | 0 | 8 | 83 | 179 | 106 | 73 | 17 | 1 |
{-# LANGUAGE BangPatterns, TypeSynonymInstances, DeriveDataTypeable #-}
module Data.Ephys.EphysDefs where
type Voltage = Double
type PlaceCellName = Int
type TrodeName = Int
type ExperimentTime = Double -- TODO: How to record the wall clock time of "0 :: ExperimentTime"
-- Is 0 the time that the system was turned o... | imalsogreg/tetrode-ephys | lib/Data/Ephys/EphysDefs.hs | gpl-3.0 | 509 | 0 | 4 | 77 | 36 | 26 | 10 | 6 | 0 |
instance Functor ((->) r) where
fmap f g = f . g | hmemcpy/milewski-ctfp-pdf | src/content/1.7/code/haskell/snippet22.hs | gpl-3.0 | 52 | 0 | 8 | 15 | 32 | 16 | 16 | 2 | 0 |
import Control.Applicative ((<$>), (<*>))
import Control.Monad (join, liftM2)
import Data.List (group, inits, nub, permutations, sort, tails)
import Data.Maybe (catMaybes)
-- | a data structure for machine-readable arithmetic expressions
data AExpr = IntCon !Integer
| ABin !ABinOp !AExpr !AExpr
-- | an aux... | friedbrice/euler93 | euler93.hs | gpl-3.0 | 2,153 | 21 | 11 | 565 | 729 | 374 | 355 | 53 | 2 |
{- NewmanGirvan
Gregory W. Schwartz
Collections the functions pertaining to calculating the Newman-Girvan modularity
-}
{-# LANGUAGE QuasiQuotes #-}
module NewmanGirvan
( ngModularity
) where
-- Standard
-- Cabal
import qualified Foreign.R as R
import Foreign.R (SEXP, SEXPTYPE)
import Language.R.Instance a... | GregorySchwartz/scan | src/NewmanGirvan.hs | gpl-3.0 | 1,151 | 0 | 10 | 268 | 103 | 64 | 39 | 11 | 1 |
{-# LANGUAGE OverloadedStrings #-}
--------------------------------------------------------------------------------
-- |
-- Module : Dhek.AppUtil
--
-- This module declares utilities related to application management,
-- in env which is neither Darwin (Mac OS X) nor Windows (assuming Unix).
--
-------------------------... | cchantep/dhek | unix/Dhek/AppUtil.hs | gpl-3.0 | 1,723 | 0 | 8 | 179 | 207 | 120 | 87 | 19 | 1 |
{-# LANGUAGE TemplateHaskell #-}
-- Copyright (C) 2012 John Millikin <jmillikin@gmail.com>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- any later... | tmishima/haskell-dbus | tests/DBusTests/Message.hs | gpl-3.0 | 1,525 | 37 | 18 | 277 | 254 | 137 | 117 | 26 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-adsense/gen/Network/Google/Resource/AdSense/Reports/Saved/List.hs | mpl-2.0 | 3,434 | 0 | 14 | 782 | 416 | 248 | 168 | 63 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/ZoneOperations/Wait.hs | mpl-2.0 | 5,218 | 0 | 17 | 1,163 | 492 | 302 | 190 | 77 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.CloudPrivat... | brendanhay/gogol | gogol-cloudprivatecatalog/gen/Network/Google/CloudPrivateCatalog/Types/Product.hs | mpl-2.0 | 25,834 | 0 | 16 | 5,104 | 3,143 | 1,832 | 1,311 | 403 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/Subnetworks/AggregatedList.hs | mpl-2.0 | 8,225 | 0 | 20 | 1,764 | 842 | 503 | 339 | 122 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-blogger/gen/Network/Google/Resource/Blogger/Pages/Update.hs | mpl-2.0 | 3,934 | 0 | 17 | 995 | 623 | 367 | 256 | 91 | 1 |
{-# LANGUAGE OverloadedStrings, MultiParamTypeClasses #-}
{-
Bustle.Loader.Pcap: loads logs out of pcap files
Copyright © 2011–2012 Collabora Ltd.
Copyright © 2017–2018 Will Thompson
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as publ... | wjt/bustle | Bustle/Loader/Pcap.hs | lgpl-2.1 | 10,213 | 0 | 20 | 3,235 | 2,409 | 1,228 | 1,181 | 186 | 6 |
module EKG.A169855 (a169855) where
import Helpers.EKGBuilder (buildEKG)
a169855 :: Int -> Integer
a169855 n = a169855_list !! (n - 1)
a169855_list :: [Integer]
a169855_list = buildEKG [12]
| peterokagey/haskellOEIS | src/EKG/A169855.hs | apache-2.0 | 191 | 0 | 7 | 29 | 68 | 39 | 29 | 6 | 1 |
import Data.Char
type Parser a = String -> (a, String)
several :: Parser a -> String -> [a]
several parse "" = []
several parse str = let (s, str') = parse str
in s : several parse str'
num :: Parser Int
num str = let (x, str') = span isDigit str
(_, str'') = span isSpace str'
... | cbare/Etudes | haskell/several.hs | apache-2.0 | 387 | 2 | 9 | 124 | 183 | 90 | 93 | 11 | 1 |
module Marvin.API.Preprocess.FeatureScalingSpec (spec) where
import Test.Hspec
import Test.QuickCheck hiding (vector)
import Marvin.API
import Marvin.API.Preprocess.FeatureScaling
import Marvin.Test.TestUtils
spec :: Spec
spec = do
minMaxScaleDesc
standarizeDesc
standarizeDesc = describe "standardize" $ do
it... | gaborhermann/marvin | test-suite/Marvin/API/Preprocess/FeatureScalingSpec.hs | apache-2.0 | 2,159 | 0 | 17 | 409 | 732 | 364 | 368 | 47 | 1 |
{- #############################################################################
Sample code from:
Simon Thompson - Haskell: the Craft of Functional Programming, 2011
++++ Addison-Wesley ++++
http://www.haskellcraft.com/craft3e/Home.html
#############################################################... | CarloMicieli/fun-with-haskell | src/craft3e/HsGame.hs | apache-2.0 | 3,406 | 9 | 17 | 1,150 | 1,133 | 613 | 520 | -1 | -1 |
module Main (main) where
main :: IO ()
main = do
return ()
| osa1/criterion | app/App.hs | bsd-2-clause | 62 | 0 | 8 | 16 | 32 | 17 | 15 | 4 | 1 |
{-# LANGUAGE FlexibleContexts, ScopedTypeVariables, CPP #-}
{-| Utility functions. -}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1... | leshchevds/ganeti | src/Ganeti/Utils.hs | bsd-2-clause | 32,390 | 0 | 24 | 8,158 | 7,521 | 3,949 | 3,572 | 540 | 5 |
{-# LANGUAGE CPP, GADTs, RankNTypes #-}
-----------------------------------------------------------------------------
--
-- Cmm utilities.
--
-- (c) The University of Glasgow 2004-2006
--
-----------------------------------------------------------------------------
module CmmUtils(
-- CmmType
primRepC... | gcampax/ghc | compiler/cmm/CmmUtils.hs | bsd-3-clause | 22,166 | 0 | 18 | 4,722 | 5,765 | 3,033 | 2,732 | 361 | 3 |
module Main (main) where
import Control.Concurrent (threadDelay)
import Control.Exception (IOException, catch)
import Control.Monad (unless, when)
import Data.Aeson
import qualified Data.ByteString.Lazy as LBS
import Data.Either
import Data.List (isSuffixOf)
import Data.Maybe
import Network.HTTP.Client hiding (path)... | thumbtack/datadog-petshop | src/Main.hs | bsd-3-clause | 11,727 | 0 | 21 | 2,492 | 3,548 | 1,855 | 1,693 | 208 | 4 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.S3
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
-- A convenience module, combin... | haskell-opengl/OpenGLRaw | src/Graphics/GL/S3.hs | bsd-3-clause | 540 | 0 | 5 | 80 | 37 | 30 | 7 | 3 | 0 |
{-# LANGUAGE TupleSections #-}
module FromID (convertOutput) where
import Parser
import Output
import Control.Applicative
import Data.Maybe
fromID :: String -> String -> Maybe String
fromID tbl i = lookup i (map parseItemList $ lines tbl)
convertOutput :: String -> Output -> Output
convertOutput tbl (d, i) = fromJu... | YoshikuniJujo/forest | subprojects/schedevr/src/mkschd/FromID.hs | bsd-3-clause | 348 | 0 | 8 | 59 | 116 | 63 | 53 | 10 | 1 |
-- | This module encodes what we know about GHC, including existing/supported versions.
module HaskellCI.Compiler (
-- * Compiler version
CompilerVersion (..),
maybeGHC,
isGHCJS,
maybeGHCJS,
previewGHC,
-- ** Selectors
compilerKind,
compilerVersion,
-- * Compiler version range
... | hvr/multi-ghc-travis | src/HaskellCI/Compiler.hs | bsd-3-clause | 6,506 | 0 | 10 | 1,219 | 1,980 | 1,113 | 867 | 133 | 1 |
module Data.Enum.Num where
fromEnum' :: (Enum a, Num b) => a -> b
fromEnum' = fromIntegral . fromEnum
toEnum' :: (Enum a, Integral b) => b -> a
toEnum' = toEnum . fromIntegral
| abbradar/MySDL | src/Data/Enum/Num.hs | bsd-3-clause | 178 | 0 | 6 | 35 | 73 | 41 | 32 | 5 | 1 |
{-# language CPP #-}
-- | = Name
--
-- VK_NV_linear_color_attachment - device extension
--
-- == VK_NV_linear_color_attachment
--
-- [__Name String__]
-- @VK_NV_linear_color_attachment@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
-- 431
--
-- [__Revision__]
-- ... | expipiplus1/vulkan | src/Vulkan/Extensions/VK_NV_linear_color_attachment.hs | bsd-3-clause | 9,218 | 0 | 14 | 1,322 | 982 | 618 | 364 | -1 | -1 |
-- Copyright 2009 Mikael Vejdemo Johansson <mik@stanford.edu>
-- Released under a BSD license
module Math.Operad (module Math.Operad.PPrint,
module Math.Operad.MapOperad,
module Math.Operad.OrderedTree,
module Math.Operad.OperadGB,
m12_3,... | Dronte/Operads | Math/Operad.hs | bsd-3-clause | 1,909 | 0 | 8 | 499 | 471 | 273 | 198 | 39 | 1 |
module Jerimum.Tests.Unit.PostgreSQL.Types.Int32ArrayTest
( tests
) where
import Jerimum.PostgreSQL.Types.Int32Array
import Jerimum.Tests.Unit.PostgreSQL.Types.Helpers
import Test.Tasty
import Test.Tasty.QuickCheck
tests :: TestTree
tests = testGroup "PostgreSQL.Types.Int32Array" [testCborCodec, testTextCodec]
t... | dgvncsz0f/nws | test/Jerimum/Tests/Unit/PostgreSQL/Types/Int32ArrayTest.hs | bsd-3-clause | 707 | 0 | 13 | 128 | 161 | 91 | 70 | 21 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module AI.Trainer
( Trainer(..)
, CostFunction
, CostFunction'
, TrainingData
, Selection
, StopCondition
, quadraticCost
, quadraticCost'
, softmax
, softmaxCost
, softmaxCost'
, minibatch
, online
, trainNTimes
, trainUntilErrorLessThan
... | jbarrow/LambdaNet | AI/Trainer.hs | mit | 4,875 | 0 | 12 | 1,033 | 1,105 | 604 | 501 | 68 | 2 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Dampf.Postgres.Connect where
import Control.Lens
import Control.Monad.Catch (MonadThrow, throwM)
import Control.Monad.IO.Class (MonadIO, liftIO)
import ... | diffusionkinetics/open | dampf/lib/Dampf/Postgres/Connect.hs | mit | 1,686 | 0 | 15 | 440 | 470 | 250 | 220 | -1 | -1 |
{-# LANGUAGE OverloadedStrings,ExtendedDefaultRules, QuasiQuotes #-}
module Main where
import Lucid
import Lucid.Html5
import Graphics.Plotly hiding (text)
import Graphics.Plotly.Lucid
import qualified Graphics.Plotly.GoG as GG
import Lucid.Bootstrap
import Data.Monoid ((<>))
import NeatInterpolation
import Data.Aeso... | diffusionkinetics/open | plotlyhs/gendoc/GenDoc.hs | mit | 11,095 | 0 | 35 | 5,429 | 1,579 | 794 | 785 | -1 | -1 |
{-# LANGUAGE DeriveAnyClass #-}
module Commands.Plugins.Spiros.Emacs.Types where
import Commands.Plugins.Spiros.Extra.Types
import Commands.Plugins.Spiros.Phrase.Types
type ElispSexp = String
-- -- type ElispSexp = Sexp String String
data Emacs
= EmacsFunction (Maybe Phrase)
| EmacsExpression... | sboosali/commands-spiros | config/Commands/Plugins/Spiros/Emacs/Types.hs | gpl-2.0 | 418 | 0 | 8 | 70 | 91 | 56 | 35 | 9 | 0 |
{- Copyright 2013 Gabriel Gonzalez
This file is part of the Suns Search Engine
The Suns Search Engine is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or (at your
o... | Gabriel439/suns-search | src/HSerialize/Core.hs | gpl-3.0 | 4,053 | 0 | 16 | 1,175 | 1,021 | 543 | 478 | 81 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
module Category.TypedGraphRule.Limit where
import Abstract.Category
import Abstract.Category.Limit
import Abstract.Rewriting.DPO
import Category.TypedGraph
import Category.TypedGraph.CommutingSquares
... | Verites/verigraph | src/library/Category/TypedGraphRule/Limit.hs | apache-2.0 | 3,537 | 0 | 11 | 817 | 983 | 505 | 478 | 58 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.