code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE OverloadedStrings #-}
module EDDA.Schema.ShipyardV2Test where
import Test.HUnit
import Data.Maybe (fromJust,isJust)
import Data.Aeson
import Data.Aeson.Types
import qualified Data.ByteString.Char8 as C
import qualified Data.HashSet as HS
import Control.Monad.Trans.Reader
import EDDA.Config
import EDDA.S... | troydm/edda | test/EDDA/Schema/ShipyardV2Test.hs | mit | 1,666 | 0 | 12 | 453 | 336 | 173 | 163 | 31 | 1 |
-- generate code for combinators
import List (intersperse)
import Char (toUpper)
import IO
type Var = Char
data Expr = EVar Var
| EApp Expr Expr
isVar, isApp :: Expr -> Bool
isVar (EVar _) = True
isVar _ = False
isApp (EApp _ _) = True
isApp _ = False
eVar :: Expr -> Var
eVar (EVar x) = x
instance Sho... | bokesan/skred | tools/CombGen.hs | mit | 11,196 | 0 | 14 | 4,678 | 3,633 | 1,821 | 1,812 | 200 | 2 |
module Tuura.Fantasi.Main (main) where
import Tuura.Fantasi.Options
import qualified Pangraph.GraphML.Parser as P
import qualified Tuura.Fantasi.VHDL.Writer as VHDL
import Data.ByteString (readFile, writeFile)
import Prelude hiding (readFile, writeFile)
import Data.Maybe (maybe)
main :: IO ()
main = do
... | tuura/fantasi | src/fantasi/Tuura/Fantasi/Main.hs | mit | 896 | 0 | 14 | 196 | 207 | 113 | 94 | 18 | 1 |
{-# LANGUAGE CPP #-}
module Test.Hspec.Core.FailureReport (
FailureReport (..)
, writeFailureReport
, readFailureReport
) where
import Prelude ()
import Test.Hspec.Core.Compat
#ifndef __GHCJS__
import System.SetEnv (setEnv)
import Test.Hspec.Core.Util (safeTry)
#endif
import ... | hspec/hspec | hspec-core/src/Test/Hspec/Core/FailureReport.hs | mit | 2,326 | 0 | 20 | 543 | 423 | 227 | 196 | 46 | 4 |
{-# LANGUAGE TemplateHaskell #-}
{-| Implementation of the Ganeti confd types.
-}
{-
Copyright (C) 2011, 2012 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 L... | kawamuray/ganeti | src/Ganeti/Confd/Types.hs | gpl-2.0 | 5,365 | 0 | 11 | 1,231 | 1,057 | 617 | 440 | 109 | 1 |
module BadIntel.TestData where
import Control.Lens
import BadIntel.Types.Agent
import BadIntel.Types.Agency
{- The UK agency. Will probably be moved to some config file. -}
directorRank = (Rank "Director" Politics Nothing)
ukHierarchy :: Hierarchy
ukHierarchy = Hierarchy directorRank
[Hierarchy (Rank "Po... | Raveline/BadIntel | testsuite/BadIntel/TestData.hs | gpl-2.0 | 4,562 | 0 | 14 | 1,379 | 1,348 | 679 | 669 | 66 | 1 |
module Data.Dns.Parser where
import Data.Attoparsec.ByteString
import Data.Bits
{-
What does a DNS record look like?
-}
| cabrera/haskell-parsing-tutorial | src/Data/Dns/Parser.hs | gpl-3.0 | 124 | 0 | 4 | 20 | 19 | 13 | 6 | 3 | 0 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NamedFieldPuns #-}
module Language.Verse.Transform.Code where
import Text.Blaze.Html5 as H
import Language.Verse.Renderer
import Language.Verse.Renderer.Html
import System.IO
import System.Process
import Control.Monad.IO.Class
import Control.Monad.State
import Con... | sykora/verse | src/Language/Verse/Transform/Code.hs | gpl-3.0 | 740 | 0 | 12 | 125 | 190 | 111 | 79 | 18 | 0 |
module Peer.Handshake.Conduit where
import Peer.Handshake.Parse
import Peer.Handshake.Put
import Torrent.Env
import HTorrentPrelude
import Data.Conduit.Attoparsec
import Data.Conduit.Serialization.Binary
sourceHandshake :: (MonadReader TorrentInfo m, MonadThrow m) =>
Producer m ByteString
sourceHandshake = ask >... | ian-mi/hTorrent | Peer/Handshake/Conduit.hs | gpl-3.0 | 486 | 0 | 7 | 60 | 116 | 66 | 50 | -1 | -1 |
module Problem61 (Tree(..), countLeaves, leaves, leaf, buildTree) where
data Tree a = Empty | Node a (Tree a) (Tree a)
deriving (Show)
countLeaves :: Tree a -> Integer
countLeaves Empty = 0
countLeaves (Node _ Empty Empty) = 1
countLeaves (Node _ left right) = countLeaves left + countLeaves right
leaves :: Tree ... | wando-hs/H-99 | src/Problem61.hs | gpl-3.0 | 987 | 0 | 13 | 228 | 496 | 250 | 246 | 25 | 1 |
-- | Parsec-based parser for Boogie 2
module Boogie.Parser (
program,
type_,
expression,
statement,
decl
) where
import Boogie.AST
import Boogie.Position
import Boogie.Tokens
import Boogie.Util
import Data.List
import Data.Map ((!), elems)
import Text.ParserCombinators.Parsec hiding (token, label)
import qua... | emptylambda/BLT | src/Boogie/Parser.hs | gpl-3.0 | 13,810 | 0 | 20 | 3,239 | 4,762 | 2,314 | 2,448 | 427 | 3 |
{-# LANGUAGE Haskell2010 #-}
module Main where
import Control.Applicative ((<$>))
import Control.Concurrent
import Control.Monad
import Data.Word
import Graphics.Gloss.Interface.IO.Game
import Network
import System.Environment
import System.Exit
import System.IO
import Text.Printf
import GuiChat.Types
import GuiChat... | scravy/GuiChat | src/chat.hs | gpl-3.0 | 1,839 | 0 | 20 | 547 | 501 | 254 | 247 | 52 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-analytics/gen/Network/Google/Resource/Analytics/Management/Goals/Patch.hs | mpl-2.0 | 4,610 | 0 | 20 | 1,158 | 624 | 368 | 256 | 99 | 1 |
-- Web2RSS - A feed generator, that keeps tabs on web sites
-- Copyright (C) 2015 Daniel Landau
--
-- 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
-... | daniellandau/web2rss | src/Lib.hs | agpl-3.0 | 9,028 | 0 | 23 | 1,729 | 2,721 | 1,404 | 1,317 | 187 | 2 |
{-#LANGUAGE OverloadedStrings#-}
module Data.P440.XML.Instances.ROO where
import qualified Data.P440.Domain.ROO as ROO
import Data.P440.Domain.ComplexTypes
import Data.P440.XML.XML
import qualified Data.P440.XML.Instances.ComplexTypes as C
instance ToNode ROO.Файл where
toNode (ROO.Файл идЭС версПрог телОтпр
... | Macil-dev/440P-old | src/Data/P440/XML/Instances/ROO.hs | unlicense | 2,828 | 0 | 11 | 851 | 1,318 | 668 | 650 | 56 | 0 |
module Main where
-- External Imports
import System.Environment( getArgs )
import System.Console.GetOpt
import Control.Applicative
import System.Exit
import System.IO
-- Project Imports
import Blackbox
main = do
args <- getArgs
case getOpt RequireOrder options args of
(flags, [], []) -> processFlag... | DarrenMowat/blackbox | src/Main.hs | unlicense | 2,145 | 0 | 20 | 615 | 716 | 361 | 355 | 53 | 4 |
-- | Query and update documents
{-# LANGUAGE OverloadedStrings, RecordWildCards, NamedFieldPuns, TupleSections, FlexibleContexts, FlexibleInstances, UndecidableInstances, MultiParamTypeClasses, GeneralizedNewtypeDeriving, StandaloneDeriving, TypeSynonymInstances, TypeFamilies, CPP, DeriveDataTypeable, ScopedTypeVariab... | Yuras/mongodb | Database/MongoDB/Query.hs | apache-2.0 | 69,101 | 2 | 27 | 19,972 | 15,849 | 8,290 | 7,559 | 1,066 | 9 |
{-# LANGUAGE BangPatterns, CPP, MagicHash, Rank2Types,
RecordWildCards, UnboxedTuples, UnliftedFFITypes #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- |
-- Module : Data.Text.Array
-- Copyright : (c) 2009, 2010, 2011 Bryan O'Sullivan
--
-- License : BSD-style
-- Maintainer : bos@serpentine.com
-- P... | bgamari/text | src/Data/Text/Array.hs | bsd-2-clause | 7,903 | 0 | 12 | 2,201 | 1,629 | 914 | 715 | -1 | -1 |
module Compiler.CodeGeneration.CompilationState where
import Control.Monad.State
import Data.Set as Set
import Data.Ix
import Compiler.CodeGeneration.InstructionSet
import Compiler.CodeGeneration.SymbolResolution
import Compiler.CodeGeneration.LabelResolution
import Compiler.CodeGeneration... | michaelmelanson/cminus-compiler | Compiler/CodeGeneration/CompilationState.hs | bsd-2-clause | 5,583 | 0 | 17 | 2,292 | 1,260 | 642 | 618 | 96 | 2 |
module RePack where
import CLaSH.Prelude
topEntity :: (Unsigned 1,Unsigned 1)
topEntity = (unpack (pack True), unpack (pack False))
| ggreif/clash-compiler | tests/shouldwork/BitVector/RePack.hs | bsd-2-clause | 134 | 0 | 8 | 20 | 55 | 30 | 25 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE Trustworthy #-}
-- | Provide primitives to communicate among family members. It provides an API for sequential 'linkMAC' and concurrent ('forkMAC') setting
module MAC.Control
(
-- Defined here
linkMAC -- Secure communication for sequential programs... | alejandrorusso/mac-privacy | MAC/Control.hs | bsd-3-clause | 1,392 | 0 | 12 | 324 | 308 | 164 | 144 | 23 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Tinfoil.Key(
genSymmetricKey
) where
import P
import System.IO (IO)
import Tinfoil.Data.Key
import Tinfoil.Data.Random
import Tinfoil.Random
-- | Generate a 256-bit symmetric cryptogr... | ambiata/tinfoil | src/Tinfoil/Key.hs | bsd-3-clause | 445 | 0 | 8 | 105 | 74 | 44 | 30 | 11 | 1 |
{-# LANGUAGE RecordWildCards, ScopedTypeVariables, BangPatterns, CPP #-}
--
-- | Interacting with the interpreter, whether it is running on an
-- external process or in the current process.
--
module GHCi
( -- * High-level interface to the interpreter
evalStmt, EvalStatus_(..), EvalStatus, EvalResult(..), EvalEx... | sdiehl/ghc | compiler/ghci/GHCi.hs | bsd-3-clause | 22,786 | 0 | 23 | 4,558 | 4,732 | 2,414 | 2,318 | 369 | 5 |
{-# LANGUAGE OverloadedStrings #-}
module CommitMsgParsers
( loadParsers
, findCategory
, unknownCategory
, ParserDef
, getParserName
) where
import Text.Regex.Posix
import Data.Map as Map
import Data.List as List
import Data.Maybe
import Control.Applicative
import qualified Data.Yaml as Y
import Data.Yaml (FromJSO... | LFDM/hstats | src/lib/CommitMsgParsers.hs | bsd-3-clause | 1,128 | 0 | 10 | 239 | 318 | 183 | 135 | 35 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- | This module includes the machinery necessary to use hint to load
-- action code dynamically. It includes a Template Haskell function
-- to gather the necessary compile-time information about code
-- location, compiler arguments, etc, and bind tha... | janrain/snap | src/Snap/Loader/Hint.hs | bsd-3-clause | 10,281 | 0 | 27 | 2,933 | 1,383 | 755 | 628 | 109 | 3 |
module CSPM.Evaluator.Dot (
combineDots, dataTypeInfo,
extensions, extensionsSet, oneFieldExtensions,
productions, productionsSet, splitIntoFields,
compressIntoEnumeratedSet,
) where
import CSPM.Syntax.Names
import {-# SOURCE #-} CSPM.Evaluator.Exceptions
import CSPM.Evaluator.Monad
import CSPM.Evaluat... | sashabu/libcspm | src/CSPM/Evaluator/Dot.hs | bsd-3-clause | 20,468 | 2 | 26 | 6,812 | 5,812 | 2,913 | 2,899 | -1 | -1 |
-- | Parsing argument-like things.
module Data.Attoparsec.Args (EscapingMode(..), argsParser) where
import Control.Applicative
import Data.Attoparsec.Text ((<?>))
import qualified Data.Attoparsec.Text as P
import Data.Attoparsec.Types (Parser)
import Data.Text (Text)
-- | Mode... | hesselink/stack | src/Data/Attoparsec/Args.hs | bsd-3-clause | 1,096 | 0 | 12 | 277 | 290 | 164 | 126 | 21 | 2 |
{-# LANGUAGE ParallelListComp, OverloadedStrings #-}
module Main where
import Web.Scotty
import Graphics.Blank
import Control.Concurrent
import Control.Monad
import Data.Array
import Data.Maybe
-- import Data.Binary (decodeFile)
import System.Environment
import System.FilePath
import BreakthroughGame
import Generi... | Tener/deeplearning-thesis | gui/breakthrough-gui.hs | bsd-3-clause | 14,979 | 3 | 32 | 4,787 | 4,879 | 2,451 | 2,428 | 302 | 10 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
module Serv.Api.Types
( EntityId(..)
, failure
, failureNoBody
, failureReqBody
, Respon... | orangefiredragon/bear | src/Serv/Api/Types.hs | bsd-3-clause | 3,478 | 8 | 12 | 1,016 | 890 | 493 | 397 | -1 | -1 |
{-# LANGUAGE Unsafe, CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Metrology.Unsafe
-- Copyright : (C) 2013 Richard Eisenberg
-- License : BSD-style (see LICENSE)
-- Maintainer : Richard Eisenberg (rae@cs.brynmawr.edu)
-- Stability : expe... | goldfirere/units | units/Data/Metrology/Unsafe.hs | bsd-3-clause | 1,751 | 0 | 10 | 315 | 312 | 175 | 137 | 18 | 0 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE DataKinds #-}
module Lucid.Ink.Internal where
import GHC.Exts (IsString(..))
import Data.Text (Text)
import qualified Data.Text as T
import Data.Monoid ((<>))
data O... | kylcarte/ink-ui | src/Lucid/Ink/Internal.hs | bsd-3-clause | 2,010 | 0 | 7 | 407 | 691 | 388 | 303 | 67 | 2 |
{-# LANGUAGE CPP #-}
------------------------------------------------------------------------------
-- |
-- Module: Database.PostgreSQL.Simple.Internal.PQResultUtils
-- Copyright: (c) 2011 MailRank, Inc.
-- (c) 2011-2012 Leon P Smith
-- License: BSD3
-- Maintainer: Leon P Smith <leon@melding-m... | tomjaguarpaw/postgresql-simple | src/Database/PostgreSQL/Simple/Internal/PQResultUtils.hs | bsd-3-clause | 5,167 | 0 | 21 | 1,370 | 1,478 | 740 | 738 | -1 | -1 |
{-# LANGUAGE LambdaCase, TupleSections, RecordWildCards #-}
module Transformations.Optimising.SparseCaseOptimisation where
import qualified Data.Map as Map
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Functor.Foldable as Foldable
import Control.Monad.Trans.Except
import Grin.Grin
import Grin.Pr... | andorp/grin | grin/src/Transformations/Optimising/SparseCaseOptimisation.hs | bsd-3-clause | 2,324 | 0 | 17 | 530 | 711 | 359 | 352 | 50 | 12 |
execSymZCFA :: Call -> StateSpace Sym_Delta ZCFA_AAM
execSymZCFA = exec Sym_Delta ZCFA_AAM
| davdar/quals | writeup-old/sections/03AAMByExample/05Recovering0CFA/02Exec.hs | bsd-3-clause | 91 | 0 | 7 | 12 | 30 | 13 | 17 | 2 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Tests.Simple
-- Copyright : (c)2011, Texas Instruments France
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : c-favergeon-borgialli@ti.com
-- Stability : provisional
-- Portability : port... | ChristopheF/OpenCLTestFramework | Client/Tests/Simple.hs | bsd-3-clause | 5,676 | 7 | 28 | 1,290 | 1,895 | 971 | 924 | 98 | 1 |
{-# LANGUAGE ScopedTypeVariables, TypeOperators, OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric, FlexibleInstances, QuasiQuotes #-}
{-# LANGUAGE CPP, FlexibleContexts, UndecidableInstances, RecordWildCards #-}
{-# LANGUAGE DeriveFunctor, LambdaCase, OverloadedStrings #-}
{-# LANGUAGE TupleSections, GeneralizedNewtype... | skedgeme/wrecker | examples/Server.hs | bsd-3-clause | 6,724 | 0 | 15 | 2,223 | 1,667 | 875 | 792 | 153 | 8 |
module Chipher where
import Control.Arrow
import Data.Char
import Data.List
type Keyword = String
charPairs :: Keyword -> String -> [(Char, Char)]
charPairs k s =
reverse . snd $
foldl'
(\ (k, acc) s ->
if s == ' ' then (k, (' ', ' ') : acc)
else
let (kh : kt... | vasily-kirichenko/haskell-book | src/Chipher.hs | bsd-3-clause | 844 | 0 | 18 | 304 | 386 | 209 | 177 | 28 | 3 |
module ProjectEuler.Problem092 (solution092, genericSolution092) where
import Data.Digits
import Util
digitsSquareSum :: Integer -> Integer
digitsSquareSum = sum . map sq . digits 10
chainEndsWith :: Integer -> Integer
chainEndsWith x =
let next = digitsSquareSum x in
if next == 1 || next == 89
... | guillaume-nargeot/project-euler-haskell | src/ProjectEuler/Problem092.hs | bsd-3-clause | 564 | 0 | 10 | 118 | 160 | 84 | 76 | 15 | 2 |
{-# LANGUAGE Unsafe #-}
{-# LANGUAGE NoImplicitPrelude
, BangPatterns
, MagicHash
, UnboxedTuples
#-}
{-# OPTIONS_HADDOCK hide #-}
{-# LANGUAGE AutoDeriveTypeable, StandaloneDeriving #-}
-----------------------------------------------------------------------------
-- |
-- Module ... | spacekitteh/smcghc | libraries/base/GHC/ForeignPtr.hs | bsd-3-clause | 18,737 | 0 | 22 | 4,158 | 3,155 | 1,661 | 1,494 | 218 | 6 |
module Main where
import Control.Applicative
import Evaluate
import Parser.AST
import Parser.RPN
import Pipes
import qualified Pipes.Prelude as P
import System.IO
import Text.Parsec.Error (errorMessages, messageString)
evaluatePrint :: Cons... | lightquake/sym | REPL.hs | bsd-3-clause | 691 | 0 | 13 | 231 | 201 | 102 | 99 | 21 | 4 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : ./Comorphisms/CASL2CoCASL.hs
Description : embedding from CASL to CoCASL
Copyright : (c) Till Mossakowski and Uni Bremen 2004
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@informatik.uni-bremen... | spechub/Hets | Comorphisms/CASL2CoCASL.hs | gpl-2.0 | 1,985 | 0 | 8 | 432 | 301 | 165 | 136 | 40 | 0 |
{-# LANGUAGE OverloadedStrings #-}
-- Module : Test.AWS.CloudWatch
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : This Source Code Form is subject to the terms of
-- the Mozilla Public License, v. 2.0.
-- A copy of the MPL can be found in the LICENSE file or
-- ... | fmapfmapfmap/amazonka | amazonka-cloudwatch/test/Test/AWS/CloudWatch.hs | mpl-2.0 | 752 | 0 | 5 | 201 | 73 | 50 | 23 | 11 | 1 |
{-# LANGUAGE OverloadedStrings, Rank2Types, PatternGuards #-}
module Haste.Config (
Config (..), AppStart, def, stdJSLibs, startCustom, fastMultiply,
safeMultiply, debugLib) where
import Data.JSTarget
import Control.Shell (replaceExtension, (</>))
import Data.ByteString.Builder
import Data.Monoid
import Haste.Envir... | akru/haste-compiler | src/Haste/Config.hs | bsd-3-clause | 5,667 | 0 | 13 | 1,487 | 924 | 560 | 364 | 95 | 2 |
-------------------------------------------------------------------------
--
-- Main.hs
--
-- The main module of the Huffman example
--
-- (c) Addison-Wesley, 1996-2011.
--
-------------------------------------------------------------------------
-- The main module of the Huffman example
module Main (main, ... | Numberartificial/workflow | snipets/src/Craft/Chapter15/Main.hs | mit | 1,168 | 0 | 7 | 227 | 170 | 110 | 60 | 15 | 1 |
{- |
Module : $Header$
Description : folder description
Copyright : (c) Christian Maeder and Uni Bremen 2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
The folder Syntax contains abstract syntax, parsing and prin... | nevrenato/HetsAlloy | Syntax.hs | gpl-2.0 | 832 | 0 | 2 | 109 | 5 | 4 | 1 | 1 | 0 |
{-# LANGUAGE TypeFamilies, StandaloneDeriving, FlexibleInstances, FlexibleContexts, UndecidableInstances #-}
-- | This module declares some commonly used functions and instances.
module JVM.Common
(toCharList,
poolSize,
(!),
showListIx,
mapFindIndex,
byteString
) where
import Data.Binary
import Data.Bina... | ledyba/hs-java | JVM/Common.hs | lgpl-3.0 | 1,094 | 0 | 9 | 211 | 399 | 221 | 178 | 33 | 2 |
-- | Response types used by the security feature
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Distribution.Server.Features.Security.ResponseContentTypes (
TUFFile(..)
, mkTUFFile
, IsTUFFile(..)
, Time... | agrafix/hackage-server | Distribution/Server/Features/Security/ResponseContentTypes.hs | bsd-3-clause | 3,578 | 0 | 11 | 628 | 835 | 473 | 362 | 83 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Haddock
-- Copyright : Isaac Jones 2003-2005
-- License : BSD3
--
-- Maintainer : cabal-devel@h... | themoritz/cabal | Cabal/Distribution/Simple/Haddock.hs | bsd-3-clause | 31,077 | 0 | 28 | 9,222 | 6,836 | 3,527 | 3,309 | 576 | 9 |
<?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="ru-RU">
<title>Дополнение Eval Villain</title>
<maps>
<homeID>evalvillain</homeID>
<map... | kingthorin/zap-extensions | addOns/evalvillain/src/main/javahelp/org/zaproxy/addon/evalvillain/resources/help_ru_RU/helpset_ru_RU.hs | apache-2.0 | 1,018 | 77 | 66 | 157 | 483 | 242 | 241 | -1 | -1 |
module Main where
import Eval
import Type
import Check
import Parser
import Pretty
import Syntax
import Data.Maybe
import Control.Monad.Trans
import System.Console.Haskeline
eval' :: Expr -> Expr
eval' = fromJust . eval
process :: String -> IO ()
process line = do
let res = parseExpr line
case res of
Left ... | yupferris/write-you-a-haskell | chapter5/calc_typed/Main.hs | mit | 726 | 0 | 20 | 191 | 263 | 131 | 132 | 29 | 3 |
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Prompt.AppLauncher
-- Copyright : (C) 2008 Luis Cabellos
-- License : BSD3
--
-- Maintainer : zhen.sydow@gmail.com
-- Stability : unstable
-- Portability : unportable
--
-- A module for launch appli... | adinapoli/xmonad-contrib | XMonad/Prompt/AppLauncher.hs | bsd-3-clause | 2,634 | 0 | 9 | 699 | 259 | 155 | 104 | 17 | 1 |
module B1 where
data Data1 a
= C1 a Int Int | C4 Float | C2 Int | C3 Float
addedC4 = error "added C4 Float to Data1"
g (C1 x y z) = y
g (C4 a) = addedC4
g (C2 x) = x
g (C3 x) = 42
| kmate/HaRe | old/testing/addCon/B1AST.hs | bsd-3-clause | 189 | 0 | 7 | 59 | 101 | 54 | 47 | 8 | 1 |
-- | A description of the platform we're compiling for.
--
module Platform (
Platform(..),
Arch(..),
OS(..),
ArmISA(..),
ArmISAExt(..),
ArmABI(..),
PPC_64ABI(..),
target32Bit,
isARM,
osElfTarget,
osMachOTarget,
platformUse... | olsner/ghc | compiler/utils/Platform.hs | bsd-3-clause | 4,415 | 0 | 9 | 1,379 | 751 | 444 | 307 | 118 | 1 |
import Test.Cabal.Prelude
-- Test building a vanilla library/executable which uses Template Haskell
main = setupAndCabalTest $ setup_build []
| mydaum/cabal | cabal-testsuite/PackageTests/TemplateHaskell/vanilla/setup.test.hs | bsd-3-clause | 142 | 0 | 7 | 18 | 22 | 12 | 10 | 2 | 1 |
{-# LANGUAGE DeriveFoldable #-}
module Main where
import Data.Semigroup
-- Just a list without any special fusion rules.
data List a = Nil | Cons a (List a) deriving Foldable
instance Semigroup (List a) where
Nil <> ys = ys
Cons x xs <> ys = Cons x (xs <> ys)
replicateList :: Int -> a -> List a
replicateList 0 ... | ezyang/ghc | testsuite/tests/perf/should_run/DeriveNull.hs | bsd-3-clause | 591 | 0 | 9 | 129 | 252 | 132 | 120 | 15 | 1 |
{-# LANGUAGE TypeFamilies, ConstraintKinds, UndecidableInstances #-}
module Ctx where
import GHC.Prim( Constraint )
type family Indirect :: * -> Constraint
type instance Indirect = Show
class Cls a where
f :: a -> String
instance Indirect a => Cls [a] where
f = show
| tibbe/ghc | testsuite/tests/typecheck/should_compile/tc255.hs | bsd-3-clause | 279 | 0 | 7 | 56 | 76 | 43 | 33 | 9 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Foo where
class C a
instance C Int
newtype Foo = Foo Int
deriving C
| wxwxwwxxx/ghc | testsuite/tests/parser/should_compile/read057.hs | bsd-3-clause | 128 | 0 | 5 | 29 | 30 | 17 | 13 | -1 | -1 |
{-# Language CPP, FlexibleContexts, TypeFamilies, KindSignatures, TemplateHaskell, GADTs, ScopedTypeVariables, TypeOperators #-}
#if __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE ConstraintKinds #-}
#endif
#if MIN_VERSION_template_haskell(2,8,0)
{-# Language PolyKinds #-}
#endif
#if __GLASGOW_HASKELL__ >= 800
{-# Language... | glguy/th-abstraction | test/Types.hs | isc | 5,269 | 2 | 14 | 1,326 | 1,548 | 939 | 609 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Control.Concurrent (forkIO, threadDelay)
import Control.Monad (mapM_)
import Data.Monoid ((<>))
import qualified Data.Text as T
import System.Hworker.SES
main... | dbp/hworker-ses | example/src/Main.hs | isc | 1,162 | 0 | 18 | 502 | 270 | 139 | 131 | 26 | 1 |
module Main where
import qualified Data.ByteString as B
import Language.STL.Lex
import Language.STL.Lex.Normalize
import Language.STL.Parse
import Prelude hiding (lex)
import System.IO
main :: IO ()
main = withFile "main.stl" ReadMode $ \h -> do
m <- fmap lex (B.hGetContents h)
case m of
Success ts ->... | pikajude/stl | src/stl.hs | mit | 426 | 0 | 17 | 112 | 147 | 78 | 69 | 15 | 2 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
-------------------------------------------
-- |
-- Module : Web.Stripe.Balance
-- Copyright : (c) David Johnson, 2014
-- Maintainer : djohnson.m@gmail.com
... | dmjio/stripe | stripe-core/src/Web/Stripe/Balance.hs | mit | 4,788 | 0 | 8 | 1,308 | 682 | 425 | 257 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE DeriveGeneric #-}
module FP15.Evaluator.FPValue where
import GHC.Generics(Generic)
import Data.IORef
import Control.DeepSeq
import FP15.Disp
import FP15.Value
type Rev = (Int, Int)
data FPRef a = FPRef Rev (IORef a)
-- | The 'FPValu... | Ming-Tang/FP15 | src/FP15/Evaluator/FPValue.hs | mit | 2,944 | 0 | 9 | 602 | 880 | 474 | 406 | 78 | 1 |
import System.Environment
import qualified Data.Map as Map
import qualified Data.Text as Text
import qualified Data.List as List
main = do
[s] <- getArgs
f <- readFile s
putStr ((unlines . map getChecksum . lines) f)
dict s = show(Map.toList $ Map.fromListWith (+) [(c, 1) | c <- s])
process = dict . removeDash... | VisionistInc/advent-of-code-2016 | joshgordon/04/part1.hs | mit | 583 | 0 | 13 | 110 | 234 | 127 | 107 | 12 | 1 |
module Test.Time where
import Import
import Test.Hspec
import Station.Types.Card.Time
test :: SpecWith ()
test = do
describe "the TAI implementation" $ do
it "has the correct unixEpoch" $ do
(show unixEpoch :: Text) `shouldBe` "1970-01-01 00:00:00 UTC"
| seagreen/station | test/Test/Time.hs | mit | 312 | 0 | 15 | 96 | 74 | 40 | 34 | 9 | 1 |
module Main where
import Test.QuickCheck
import Prelude hiding (reverse)
reverse :: [a] -> [a]
reverse [] = []
reverse (x:xs) = reverse xs ++ [x]
-- XXX: Now some quick-check property declaration
rev_rev :: [Int] -> [Int] -> Bool
rev_rev x y = reverse (x++y) == reverse y ++ reverse x
main :: IO ()
main = quickC... | amal029/haskell-tests | qcheck.hs | mit | 333 | 0 | 9 | 67 | 142 | 77 | 65 | 10 | 1 |
module Unison.Note where
import Data.List
import Control.Monad
import Control.Applicative
-- | Hierarchical error message type used throughout Unison
newtype Note = Note [String]
-- | Monad transformer for adding notes
newtype Noted m a = Noted { unnote :: m (Either Note a) }
run :: Monad m => Noted m a -> m a
run ... | nightscape/platform | shared/src/Unison/Note.hs | mit | 2,817 | 0 | 14 | 685 | 1,415 | 690 | 725 | 70 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE BangPatterns #-}
module Data.Streaming.Network
( -- * Types
ServerSettings
, ClientSettings
, HostPreference
, Message (..)
, AppData
#if !WINDOWS
, ServerSettingsUnix
, ClientSettingsUnix
, AppDataUnix
#endif
... | fpco/streaming-commons | Data/Streaming/Network.hs | mit | 23,204 | 0 | 19 | 5,475 | 5,690 | 3,065 | 2,625 | 452 | 8 |
---------------------------------------------------------------------------------------------------
-----------------------------------------------Import----------------------------------------------
---------------------------------------------------------------------------------------------------
import Data.List
-... | divayprakash/haskell-course | week7programmingAssignment.hs | mit | 5,390 | 0 | 19 | 948 | 1,631 | 853 | 778 | 87 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.RTCSessionDescriptionCallback
(newRTCSessionDescriptionCallback,
newRTCSessionDescriptionCallbackSync,
newRTCSessionDescriptionCallbackAsync,
RTCSessionDescriptionCallback)
wh... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/RTCSessionDescriptionCallback.hs | mit | 2,688 | 0 | 12 | 625 | 521 | 310 | 211 | 44 | 1 |
add :: Integer -> Integer -> Integer
add x y = x + y
inc = add 1
sum' :: (Num a) => [a] -> a
sum' = foldl (+) 0 | joelbirchler/talks | _includes/function-oriented-js/add.hs | mit | 116 | 0 | 7 | 35 | 69 | 37 | 32 | 5 | 1 |
import Control.Monad (unless)
import Test.Hspec (Spec, describe, expectationFailure, it, shouldBe)
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)
import FoodChain (song)
main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs
specs :: Spec
specs = describe "song" $ ... | exercism/xhaskell | exercises/practice/food-chain/test/Tests.hs | mit | 3,899 | 0 | 16 | 961 | 391 | 209 | 182 | 21 | 4 |
module Cases
(
-- * Processor
process,
-- ** Case Transformers
CaseTransformer,
lower,
upper,
title,
-- ** Delimiters
Delimiter,
spinal,
snake,
whitespace,
camel,
-- * Default Processors
spinalize,
snakify,
camelize,
)
where
import Cases.Prelude hiding (Word)
import qualified Data.Att... | nikita-volkov/cases | library/Cases.hs | mit | 4,015 | 0 | 20 | 984 | 1,270 | 679 | 591 | -1 | -1 |
module Test.Smoke.Types.Executable where
import Test.Smoke.Paths
import Test.Smoke.Types.Base
data Shell
= Shell (ResolvedPath File) Args
deriving (Eq, Show)
data Executable
= ExecutableProgram (ResolvedPath File) Args
| ExecutableScript Shell Script
deriving (Eq, Show)
| SamirTalwar/Smoke | src/lib/Test/Smoke/Types/Executable.hs | mit | 284 | 0 | 8 | 44 | 84 | 49 | 35 | 10 | 0 |
-- |
-- Extensions to the standard mutable Vector API.
module VectorBuilder.MVector where
import Data.Vector.Generic.Mutable
import qualified VectorBuilder.Core.Builder as A
import qualified VectorBuilder.Core.Update as C
import VectorBuilder.Prelude
-- |
-- Construct a mutable vector from a builder.
--
-- Supports a... | nikita-volkov/vector-builder | library/VectorBuilder/MVector.hs | mit | 598 | 0 | 10 | 98 | 129 | 72 | 57 | 11 | 1 |
module Data.Aeson.Schema.Types.Tests
( tests
) where
import Test.Framework
import Test.Framework.Providers.HUnit
import qualified Test.HUnit as HU
import Data.Aeson
import qualified Data.ByteString.Lazy as L
import Data.Foldable ... | Fuuzetsu/aeson-schema | test/Data/Aeson/Schema/Types/Tests.hs | mit | 2,128 | 1 | 19 | 646 | 558 | 298 | 260 | 42 | 3 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
-- | Hetcons_Transaction is a Monad for constructing transactions in which a message is processed.
-- From within Hetcons_Transaction, you can send messages (1a, 1b,... | isheff/hetcons | src/Hetcons/Receive_Message.hs | mit | 20,820 | 1 | 22 | 4,681 | 3,564 | 1,979 | 1,585 | 196 | 2 |
{- Copyright (c) 2007 John Goerzen <jgoerzen@complete.org>
Please see the COPYRIGHT file -}
module Metacity where
import System.Gnome.GConf.GConfClient
import Utils
import Data.List
import Data.Maybe(catMaybes)
{- | Gets the currently bound macros. Returns [(Name, Shortcut)]. -}
getMacroBindings :: IO [(String, ... | jgoerzen/gmacro | Metacity.hs | gpl-2.0 | 3,462 | 7 | 18 | 1,096 | 1,000 | 496 | 504 | 73 | 5 |
-- | Formats Haskell source code as HTML with inline CSS.
module Language.Haskell.HsColour.InlineCSS (hscolour,top'n'tail) where
{-@ LIQUID "--totality" @-}
import Language.Haskell.HsColour.Anchors
import Language.Haskell.HsColour.Classify as Classify
import Language.Haskell.HsColour.Colourise
import Language.Haskell... | nikivazou/hscolour | Language/Haskell/HsColour/InlineCSS.hs | gpl-2.0 | 2,858 | 0 | 15 | 618 | 608 | 333 | 275 | 63 | 2 |
{-# LANGUAGE RecordWildCards #-}
module VirMat.PhaseTrans
( PhaseTransformation (..)
, generateANG
, generateTransformation
) where
import DeUni.Types
import File.ANGReader
import Hammer.MicroGraph
import Hammer.VTK (writeMultiVTKfile)
import Linear.Vect
import Texture.Bingham
import Texture.Orientation
impor... | lostbean/VirMat | src/VirMat/PhaseTrans.hs | gpl-3.0 | 3,740 | 0 | 19 | 717 | 1,148 | 617 | 531 | 85 | 2 |
module Main where
import System.Environment (getArgs)
import Data.List (permutations)
import Data.Char (toLower)
isOrderedSquare :: [(Int,Int)] -> Bool
isOrderedSquare [(x1,y1),(x2,y2),(x3,y3),(x4,y4)] =
let l1 = (x1 - x2)^2 + (y1 - y2)^2
l2 = (x2 - x3)^2 + (y2 - y3)^2
l3 = (x3 - x4)^2 + (y3 - y4)... | cryptica/CodeEval | Challenges/101_FindASquare/main.hs | gpl-3.0 | 854 | 0 | 15 | 220 | 463 | 251 | 212 | 23 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Language.UHIM.Dictionary.Keybind.TcEl where
import Language.UHIM.Dictionary.Keybind.Vim (Mapping(..))
import Data.String
import Data.Map (Map)
import Data.Tuple
import qualified Data.Map as M
data KeyMap = KeyMap { name :: String
, indicator :: String
... | na4zagin3/uhim-dict | src/Language/UHIM/Dictionary/Keybind/TcEl.hs | gpl-3.0 | 6,925 | 1 | 11 | 2,195 | 1,347 | 769 | 578 | 137 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/CreateApp.hs | mpl-2.0 | 8,840 | 0 | 10 | 2,040 | 1,273 | 764 | 509 | 125 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-resourceviews/gen/Network/Google/Resource/ResourceViews/ZoneOperations/List.hs | mpl-2.0 | 4,905 | 0 | 18 | 1,177 | 654 | 385 | 269 | 98 | 1 |
{- GPC parser -}
module GPC.Parser(parseSource) where
import Control.Applicative hiding ((<|>), many, optional, empty)
import Text.ParserCombinators.Parsec
import Text.Parsec.Expr
import GPC.AST
import GPC.Lexer
import Control.Arrow
import Data.List
{- Operator Tables -}
-- | Need operators to evaluate ordinary exp... | RossMeikleham/GPC | src/GPC/Parser.hs | bsd-2-clause | 7,596 | 0 | 19 | 1,896 | 2,414 | 1,227 | 1,187 | 154 | 2 |
-- | Controller library.
module HL.C
(module C
,App(..)
,C
,io)
where
import HL.Foundation (Handler)
import HL.Foundation as C (Route(..))
import HL.Types as C
import Control.Monad.Extra
import Data.Text as C (Text)
import Yesod as C
import Yesod.Blaze as C
-- | Controller type.
type C = Handler
| chrisdone/hl | src/HL/C.hs | bsd-3-clause | 311 | 0 | 6 | 61 | 96 | 66 | 30 | 13 | 0 |
-- Metric Temporal Logic (MTL) operators over a discrete time
-- domain consisting of sampled time values
module Copilot.Library.MTL
( eventually, eventuallyPrev, always, alwaysBeen,
until, release, since, Copilot.Library.MTL.trigger, matchingUntil,
matchingRelease, matchingSince, matchingTrigger ) where
im... | fredyr/copilot-libraries | src/Copilot/Library/MTL.hs | bsd-3-clause | 6,655 | 0 | 14 | 1,820 | 2,790 | 1,454 | 1,336 | 108 | 2 |
module Control.Parallel.MPI.Utils (asBool, asInt, asEnum, debugOut) where
import Foreign
import Foreign.C.Types
import System.IO.Unsafe as Unsafe
asBool :: (Ptr CInt -> IO ()) -> IO Bool
asBool f =
alloca $ \ptr -> do
f ptr
res <- peek ptr
return $ res /= 0
asInt :: (Ptr CInt -> IO ()) -> IO Int
asInt ... | bjpop/haskell-mpi | src/Control/Parallel/MPI/Utils.hs | bsd-3-clause | 658 | 0 | 10 | 176 | 303 | 148 | 155 | 26 | 1 |
{-|
Module : Numeric.ER.Real.Arithmetic.LinearSolver
Description : arbitrary precision piece-wise something function enclosures
Copyright : (c) 2008 Jan Duracz, Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portab... | michalkonecny/polypaver | src/Numeric/ER/Real/Arithmetic/LinearSolver.hs | bsd-3-clause | 3,225 | 0 | 13 | 817 | 607 | 328 | 279 | 51 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Spec.ExecuteF64 where
import Spec.Decode
import Spec.Machine
import Spec.ExecuteF (getRoundMode, updateFFlags, isNaN)
import Data.Int
import Data.Word
import Data.Bits
import SoftFloat
import Prelude hiding (isNaN)
execute :: forall p t. (RiscvMachine p t) => InstructionF64 ... | mit-plv/riscv-semantics | src/Spec/ExecuteF64.hs | bsd-3-clause | 1,550 | 0 | 18 | 311 | 576 | 271 | 305 | 40 | 1 |
{-# LANGUAGE QuasiQuotes, OverloadedStrings #-}
-- Here, we will dump the data contained in happythings_form.txt into
-- a sqlite database.
module SqlTable where
import Control.Exception
import Data.Typeable
import Text.RawString.QQ
import Database.SQLite.Simple
import Database.SQLite.Simple.Types
import Data.Text (T... | arcticmatt/happy-site | src/SqlTable.hs | bsd-3-clause | 2,490 | 0 | 14 | 466 | 708 | 369 | 339 | 69 | 3 |
-- | Full compiler tests.
module Language.Java.Paragon.ParacSpec (main, spec) where
import Test.Hspec
import Control.Monad
import System.Directory
import System.FilePath
import Language.Java.Paragon.Error
import Language.Java.Paragon.Interaction.Flags
import Language.Java.Paragon.Parac
-- | To be able to run this ... | bvdelft/paragon | test/Language/Java/Paragon/ParacSpec.hs | bsd-3-clause | 2,182 | 1 | 17 | 452 | 412 | 218 | 194 | 33 | 2 |
module Servant.Server.Auth.Token.RocksDB (
RocksDBBackendT
, runRocksDBBackendT
, RocksDBEnv
, newRocksDBEnv
) where
import Control.Monad.Base
import Control.Monad.Catch
import Control.Monad.Except
import Control.Monad.Reader
import Control.Monad.Trans.Control
import Control.Monad.Trans.Resource
import Ser... | NCrashed/servant-auth-token | servant-auth-token-rocksdb/src/Servant/Server/Auth/Token/RocksDB.hs | bsd-3-clause | 5,943 | 0 | 12 | 897 | 1,280 | 693 | 587 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
----------------------------------------------------------------------------------
-- |
-- Module : Tct.Processor.Bounds.Automata
-- Copyright : (c) Martin Avanzini <martin.avanzini@uibk.ac.at>,
-- Georg Moser <georg.moser@uibk.ac.at>,
-- Andreas... | ComputationWithBoundedResources/tct-trs | src/Tct/Trs/Encoding/Bounds/Automata.hs | bsd-3-clause | 10,266 | 0 | 15 | 3,037 | 3,129 | 1,663 | 1,466 | 166 | 3 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module TCReader where
import Database.TokyoCabinet.Storable
import Control.Monad
import Control.Monad.Reader
import Database.TokyoCabinet
(
TCM
, TCDB
, HDB
, BDB
, FDB
, new
, runTCM
, OpenMode(..)
)
import qualified Database.Toky... | tom-lpsd/tokyocabinet-haskell | examples/TCReader.hs | bsd-3-clause | 1,495 | 0 | 12 | 470 | 580 | 309 | 271 | 41 | 1 |
module Database.PostgreSQL.PQTypes.Transaction (
Savepoint(..)
, withSavepoint
, withTransaction
, begin
, commit
, rollback
, withTransaction'
, begin'
, commit'
, rollback'
) where
import Control.Monad
import Control.Monad.Catch
import Data.Function
import Data.String
import Data.Typeable
im... | scrive/hpqtypes | src/Database/PostgreSQL/PQTypes/Transaction.hs | bsd-3-clause | 5,038 | 0 | 21 | 994 | 936 | 496 | 440 | -1 | -1 |
module Language.Xi.Base where
import Language.Xi.Base.Parser
import Language.Xi.Base.Analysis
import Language.Xi.Base.Interpreter
| fizruk/xi-base | src/Language/Xi/Base.hs | bsd-3-clause | 131 | 0 | 4 | 10 | 28 | 20 | 8 | 4 | 0 |
{-# LANGUAGE RecordWildCards, DeriveGeneric, DeriveDataTypeable #-}
module Data.Liblinear (
Problem(..),
Example(..),
Feature(..),
Parameter(..),
Model,
train,
def,
) where
import Control.Applicative
import Control.Exception
import Control.Monad
import Data.Data
import Data.Default
import Data.Monoid
i... | tanakh/hs-liblinear | Data/Liblinear.hs | bsd-3-clause | 5,981 | 0 | 24 | 1,182 | 1,887 | 964 | 923 | 143 | 1 |
{-# OPTIONS -Wall #-}
import qualified Esge.Run as ERun
main :: IO ()
main = do
_ <- ERun.replRun "story.esge" [
ERun.defaultRepl
]
return ()
| neosam/esge | src/esgeAdvanture.hs | bsd-3-clause | 172 | 0 | 10 | 55 | 52 | 27 | 25 | 7 | 1 |
module Papps.Plugins.SQLExecute (
sqlResults
)
where
#ifdef sql-execute
import Database.HDBC
import Database.HDBC.MySQL
import Data.List (intercalate)
sqlResults :: String -> IO String
sqlResults sql = do
conn <- connectMySQL $ defaultMySQLConnectInfo {
mysqlHost = "localhost"
... | teneighty/papps | src/Papps/Plugins/SQLExecute.hs | bsd-3-clause | 1,131 | 0 | 12 | 420 | 320 | 166 | 154 | 4 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Render.MSurfaceT where
import Control.Lens (makeLenses)
import qualified Data.ByteString as B
import qualified Data.Vector.Unboxed as UV
import qualified Constants
import Render.MTexInfoT
import Types
makeLenses ''MSurfaceT
newMSurface... | ksaveljev/hake-2 | src/Render/MSurfaceT.hs | bsd-3-clause | 1,161 | 0 | 8 | 457 | 226 | 144 | 82 | 32 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.