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 Shell.Error (
ShellError(..)
) where
data ShellError = ShellError
| Sventimir/LambdaShell | Shell/Error.hs | gpl-3.0 | 78 | 0 | 5 | 15 | 22 | 14 | 8 | 3 | 0 |
{-|
miniAtmegatron - Soulsby Synthesizers
http://soulsbysynths.com/wp-content/uploads/2016/08/Mini-Manual.pdf, page 15
-}
module Sound.Tidal.MIDI.MiniAtmegatron where
import Sound.Tidal.MIDI.Control
import Sound.Tidal.Params
matmController :: ControllerShape
matmController =
ControllerShape
{ controls =
[... | tidalcycles/tidal-midi | Sound/Tidal/MIDI/MiniAtmegatron.hs | gpl-3.0 | 1,384 | 0 | 8 | 376 | 544 | 287 | 257 | 44 | 1 |
<?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>CHRIS/Proba Noise Reduction Tool Help</title>
<maps>
<homeID>top... | bcdev/chris-box | chris-noise-reduction/src/main/resources/doc/help/noisereduction.hs | gpl-3.0 | 793 | 54 | 45 | 167 | 291 | 147 | 144 | -1 | -1 |
module Ampersand.Output.ToJSON.ToJson
(generateJSONfiles)
where
import Ampersand.Output.ToJSON.JSONutils
import Ampersand.Output.ToJSON.Settings
import Ampersand.Output.ToJSON.Populations
import Ampersand.Output.ToJSON.Relations
import Ampersand.Output.ToJSON.Rules
import Ampersand.Output.ToJSON.Concepts
import Amp... | AmpersandTarski/ampersand | src/Ampersand/Output/ToJSON/ToJson.hs | gpl-3.0 | 1,517 | 0 | 11 | 308 | 370 | 210 | 160 | 30 | 2 |
-- HaskellServer - Minimalistic webserver written in Haskell
-- Copyright (C) 2014 Andreas Rohner
--
-- 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
-- (... | zeitgeist87/HaskellServer | Settings.hs | gpl-3.0 | 3,763 | 0 | 14 | 948 | 925 | 509 | 416 | 60 | 3 |
type Maybe a = Either (Const () a) (Identity a) | hmemcpy/milewski-ctfp-pdf | src/content/1.8/code/haskell/snippet08.hs | gpl-3.0 | 47 | 0 | 8 | 9 | 29 | 15 | 14 | 1 | 0 |
{-# 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/Directory/Groups/Insert.hs | mpl-2.0 | 4,288 | 0 | 18 | 1,064 | 711 | 414 | 297 | 102 | 1 |
{-# LANGUAGE BangPatterns, FlexibleContexts, TypeFamilies #-}
-- | Provides high level functions to do geometric transformations on images.
--
-- Every transformation is been declared @INLINABLE@ so new image types could be
-- specialized.
module Vision.Image.Transform (
InterpolMethod (..), crop, resize, horizo... | TomMD/friday | src/Vision/Image/Transform.hs | lgpl-3.0 | 7,046 | 0 | 17 | 2,457 | 2,010 | 1,010 | 1,000 | 125 | 3 |
-- A program to test receiving messages on a message queue.
--
-- Based on sipc code from: examples/mq_reader.c
--
module Main where
import Bindings.SELinux.SIPC
import Control.Monad (when)
import Foreign
import Foreign.C
import System.IO
-- Key which sender and receiver have agreed upon
sipcKey = "sipc_mq_test"
-... | justinethier/hs-bindings-sipc | src/Examples/MQReader.hs | lgpl-3.0 | 1,168 | 0 | 12 | 279 | 250 | 127 | 123 | 29 | 2 |
{-# OPTIONS_GHC -Wall #-}
-- http://www.cis.upenn.edu/~cis194/spring13/hw/05-type-classes.pdf
module Main where
import ExprT
import Parser
-- Exercise 1
eval :: ExprT -> Integer
eval (Lit n) = n
eval (Add e1 e2) = eval e1 + eval e2
eval (Mul e1 e2) = eval e1 * eval e2
-- Exercise 2
evalStr :: String -> Maybe ... | prt2121/haskell-practice | cis194-s13-hw05/src/Main.hs | apache-2.0 | 1,539 | 0 | 9 | 411 | 617 | 327 | 290 | 51 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Types
( ConcordOpts(..)
) where
import Control.Lens
import ClassyPrelude
data ConcordOpts
= CO
{ _optsInput :: !FilePath
, _optsOutput :: !(Maybe Fi... | erochest/concord | Types.hs | apache-2.0 | 379 | 0 | 11 | 110 | 68 | 40 | 28 | 17 | 0 |
module NewBase60 where
import qualified Data.Map.Strict as Map
digits = "0123456789ABCDEFGHJKLMNPQRSTUVWXYZ_abcdefghijkmnopqrstuvwxyz"
itob60 :: Int -> String
itob60 0 = "0"
itob60 n = reverse $ newBase60' n
where
newBase60' 0 = ""
newBase60' n = nextDigit n : newBase60' (n `div` 60)
nextDigit n = digi... | jessebmiller/NewBase60 | newBase60.hs | bsd-2-clause | 981 | 0 | 10 | 221 | 214 | 121 | 93 | 16 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : MailCleaner.Options
-- Copyright : Thomas Sutton 2010
-- License : BSD3
--
-- Maintainer : Thomas Sutton <me@thomas-sutton.id.au>
-- Stability : experimental
-- Portability : unknown
--
-- Option handling ... | thsutton/mailcleaner | src/MailCleaner/Options.hs | bsd-2-clause | 3,690 | 0 | 14 | 816 | 773 | 420 | 353 | 67 | 2 |
module Drasil.Projectile.Figures (figLaunch) where
import Language.Drasil
import Data.Drasil.Concepts.Documentation (physicalSystem)
resourcePath :: String
resourcePath = "../../../datafiles/Projectile/"
figLaunch :: LabelledContent
figLaunch = llcc (makeFigRef "Launch") $ figWithWidth (S "The" +:+ phrase physicalS... | JacquesCarette/literate-scientific-software | code/drasil-example/Drasil/Projectile/Figures.hs | bsd-2-clause | 363 | 0 | 9 | 40 | 89 | 50 | 39 | 8 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Distance.GA.Corpus
( corpus ) where
import Prelude
import ... | facebookincubator/duckling | Duckling/Distance/GA/Corpus.hs | bsd-3-clause | 1,072 | 0 | 9 | 349 | 207 | 122 | 85 | 28 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Language.Haskell.Format.Nested
( qop
, if_
, case_
, pattern_
, do_
, generator
) where
import Language.Haskell.Exts
import Language.Haskell.Format.Internal as Format
import Language.Haskell.Format.Types
import qualified Language.Haskell.Format.Atom... | hecrj/haskell-format | src/Language/Haskell/Format/Nested.hs | bsd-3-clause | 1,236 | 0 | 9 | 342 | 351 | 194 | 157 | 44 | 1 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, TypeFamilies, UndecidableInstances #-}
module Lang.Haskell where
import qualified Prelude as P
import Generic.Prelude
type family H a :: *
newtype Haskell a = Hs { runHaskell :: H a }
-- * Haskell instances for AwesomePrelude 'data types'.
instance NameC Ha... | tomlokhorst/AwesomePrelude | src/Lang/Haskell.hs | bsd-3-clause | 1,817 | 0 | 13 | 514 | 876 | 464 | 412 | 46 | 0 |
{-# LANGUAGE OverloadedStrings, TupleSections, PackageImports #-}
module Network.PeyoTLS.HandshakeMonad (
TH.TlsM, TH.run, HandshakeM, execHandshakeM, withRandom, randomByteString,
ValidateHandle(..), handshakeValidate,
TH.TlsHandle(..), TH.ContentType(..),
setCipherSuite, flushCipherSuite, debugCipherSuite,
tl... | YoshikuniJujo/forest | subprojects/tls-analysis/server/src/Network/PeyoTLS/HandshakeMonad.hs | bsd-3-clause | 5,659 | 64 | 18 | 873 | 2,147 | 1,173 | 974 | 110 | 2 |
--
-- Copyright © 2013-2014 Anchor Systems, Pty Ltd and Others
--
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms of
-- the 3-clause BSD licence.
--
{-# LANGUAGE OverloadedStrings ... | anchor/snaplet-httpauth | test/App/Run.hs | bsd-3-clause | 2,123 | 0 | 14 | 483 | 556 | 300 | 256 | 48 | 1 |
import Language.Haskell.Extension
import Distribution.Text
import Text.PrettyPrint
main = writeFile "src/Hint/Extension.hs" $ render moduleDoc
moduleDoc :: Doc
moduleDoc =
vcat [
text "-- this module was automatically generated. do not edit!",
text "-- edit util/mk_extensions_mod.hs instead",
text "modu... | meditans/hint | generate/mk_extensions_mod.hs | bsd-3-clause | 2,285 | 0 | 13 | 571 | 588 | 308 | 280 | 56 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module ML where
import Data.Typeable
import Language.Inferno.Solver (TermVar)
data Tm = Var TermVar
| Abs TermVar Tm
| App Tm Tm
| Let TermVar Tm Tm
| Pair Tm Tm
| Proj Int Tm
| Bool Bool
| If Tm Tm Tm
deriving (Typeabl... | sweirich/hs-inferno | test/ML.hs | bsd-3-clause | 329 | 0 | 6 | 114 | 92 | 54 | 38 | 13 | 0 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.Maximize
-- Description : Temporarily yank the focused window out of the layout to mostly fill the screen.
-- Copyright : (c... | xmonad/xmonad-contrib | XMonad/Layout/Maximize.hs | bsd-3-clause | 3,869 | 0 | 15 | 941 | 667 | 373 | 294 | 41 | 1 |
{-# language CPP #-}
-- | = Name
--
-- VK_KHR_surface_protected_capabilities - instance extension
--
-- == VK_KHR_surface_protected_capabilities
--
-- [__Name String__]
-- @VK_KHR_surface_protected_capabilities@
--
-- [__Extension Type__]
-- Instance extension
--
-- [__Registered Extension Number__]
-- 240
... | expipiplus1/vulkan | src/Vulkan/Extensions/VK_KHR_surface_protected_capabilities.hs | bsd-3-clause | 8,757 | 0 | 14 | 1,372 | 976 | 612 | 364 | -1 | -1 |
{-# LANGUAGE EmptyDataDecls, TypeSynonymInstances #-}
module Games.Chaos2010.Database.Fields where
import Database.HaskellDB.DBLayout
data IdTag
type Id = Proxy IdTag
instance ShowLabel Id where showLabel _ = "id"
xid :: Id
xid = proxy
data History_nameTag
type History_name = Proxy History_nameTag
history_name :: Hi... | JakeWheat/Chaos-2010 | Games/Chaos2010/Database/Fields.hs | bsd-3-clause | 24,422 | 0 | 6 | 3,408 | 5,183 | 2,867 | 2,316 | -1 | -1 |
module Insomnia.Common.FreshName where
import Data.Typeable (Typeable)
import Unbound.Generics.LocallyNameless
withFreshName :: (Typeable a, LFresh m) => String -> (Name a -> m r) -> m r
withFreshName s kont = do
n' <- lfresh $ s2n s
avoid [AnyName n'] $ kont n'
withFreshNames :: (Typeable a, LFresh m) => [S... | lambdageek/insomnia | src/Insomnia/Common/FreshName.hs | bsd-3-clause | 504 | 0 | 11 | 116 | 228 | 116 | 112 | 14 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Foreign.CUDA.Driver.Context
-- Copyright : [2009..2015] Trevor L. McDonell
-- License : BSD
--
-- Context management for low-level driver interface
--
------------------------------------------------------------------... | mwu-tow/cuda | Foreign/CUDA/Driver/Context.hs | bsd-3-clause | 639 | 0 | 5 | 62 | 71 | 56 | 15 | 7 | 0 |
{-# LANGUAGE DeriveDataTypeable, PatternGuards #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.C.Data.Position
-- Copyright : (c) [1995..2000] Manuel M. T. Chakravarty
-- License : BSD-style
-- Maintainer : benedikt.huber@gmail.com
-- Stability... | linzhp/Language-GLSL | src/Language/C/Data/Position.hs | bsd-3-clause | 4,562 | 0 | 15 | 1,077 | 1,073 | 582 | 491 | 76 | 3 |
module Main where
main :: IO ()
main = do
putStrLn "7"
putStrLn "S"
putStrLn "△"
putStrLn "☃"
putStrLn "¥"
putStrLn "n̂"
| pparkkin/eta | tests/basic/unicode/Unicode.hs | bsd-3-clause | 140 | 0 | 7 | 35 | 55 | 23 | 32 | 9 | 1 |
module Settings.Builders.Make (makeBuilderArgs) where
import Rules.Gmp
import Rules.Libffi
import Settings.Builders.Common
makeBuilderArgs :: Args
makeBuilderArgs = do
threads <- shakeThreads <$> expr getShakeOptions
gmpPath <- expr gmpBuildPath
libffiPath <- expr libffiBuildPath
let t = show $ ... | ezyang/ghc | hadrian/src/Settings/Builders/Make.hs | bsd-3-clause | 618 | 0 | 13 | 146 | 188 | 96 | 92 | 14 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Crypto.Hash.Tsuraan.Blake2.Parallel
( Ctx
, init
, init_key
, update
, finalize
, hash
, hash_key
) where
import Data.ByteString ( ByteString )
import System.IO.Unsafe ( unsafePerformIO )
import Foreign.C ( CInt(..) )
import Foreign.Ptr ( Ptr )
import Foreign.Storable ( Storab... | tsuraan/hs-blake2 | src/Crypto/Hash/Tsuraan/Blake2/Parallel.hs | bsd-3-clause | 3,160 | 0 | 12 | 662 | 636 | 352 | 284 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -Wno-incomplete-record-updates #-}
module GHC.Rename.Splice (
rnTopSpliceDecls,
rnSpliceType, rnSpliceExpr, rnSplicePat, rnSpliceDecl,
rnBracket,
checkThLocalName
, traceSplice, Spl... | sdiehl/ghc | compiler/GHC/Rename/Splice.hs | bsd-3-clause | 37,612 | 8 | 20 | 11,499 | 5,561 | 2,882 | 2,679 | 439 | 13 |
-- This is an alternative wrapper around the main command which
-- switches to a different directory before executing.
-- It can be used with "runhaskell" to run from source.
import qualified Intel.Cnc.Spec.MainExecutable as M
import System.Environment
import System.Directory
main =
do
putStrLn$ "[CnC] Script... | rrnewton/Haskell-CnC | cnc_wrapper.hs | bsd-3-clause | 523 | 0 | 10 | 100 | 88 | 45 | 43 | 11 | 1 |
{-# LANGUAGE PolyKinds #-}
module FFTRounded where
import ListNumSyntax
import Data.Complex
import Data.Number.IReal.Rounded
-- All functions in this file take a precision argument for (less in-)efficiency.
-- To get d correct decimals in result, slightly higher precision
-- argument should be used.
-- basic fast F... | sydow/ireal | applications/FFTRounded.hs | bsd-3-clause | 2,824 | 0 | 15 | 692 | 1,136 | 606 | 530 | 58 | 2 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DataKinds #-}
-- | DRM/KMS Internals
--
-- Bindings with C structures and IOCTLs
module Haskus.System.Linux.Internals.Graphics
(
-- * Mode
ModeType (..)
, ModeTypes
, ModeFlag (..)
, ModeFlags
, Stereo3D (..)
, ModeFl... | hsyl20/ViperVM | haskus-system/src/lib/Haskus/System/Linux/Internals/Graphics.hs | bsd-3-clause | 39,672 | 0 | 12 | 8,144 | 6,414 | 3,810 | 2,604 | 728 | 7 |
-- | lexem defination of Cirno.
module Cirno.Lexer where
import Control.Monad (void)
import Text.Megaparsec
import qualified Text.Megaparsec.Lexer as L
import Text.Megaparsec.String
type Name = String
data Expr = EInt Integer
| Var Name
| App Expr Expr
... | SuperHex/Cirno | src/Cirno/Lexer.hs | bsd-3-clause | 2,896 | 0 | 12 | 996 | 723 | 397 | 326 | 73 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE... | bitemyapp/bloodhound | src/Database/Bloodhound/Types.hs | bsd-3-clause | 20,305 | 0 | 20 | 6,425 | 4,483 | 2,848 | 1,635 | 590 | 1 |
module BuildNfa where
import Automata
import Regex
import Sets
build :: Regex -> Nfa Int
build Lambda = NFA
(makeSet [0 .. 1])
(sing (Emove 0 1))
0
(sing 1)
build (Lit c) = NFA
(makeSet [0 .. 1])
(sing (Move 0 c 1))
... | arthurmgo/regex-ftc | src/BuildNfa.hs | bsd-3-clause | 3,980 | 0 | 12 | 1,254 | 1,281 | 667 | 614 | 76 | 1 |
{-# LANGUAGE TupleSections #-}
module States.CreatingPlatform where
#include "Utils.cpp"
import Control.Applicative ((<$>))
import Data.Composition ((.:))
import Gamgine.Control ((?))
import qualified Gamgine.Math.Vect as V
import qualified Gamgine.Math.Box as B
import qualified GameData.Level as LV
import qualified G... | dan-t/layers | src/States/CreatingPlatform.hs | bsd-3-clause | 2,145 | 0 | 21 | 573 | 676 | 383 | 293 | -1 | -1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[RnNames]{Extracting imported and top-level names in scope}
-}
{-# LANGUAGE CPP, NondecreasingIndentation #-}
module RnNames (
rnImports, getLocalNonValBinders, newRecordSelector,
rnExports, extendGlobalRdrEnvRn,
gresFromAva... | sgillespie/ghc | compiler/rename/RnNames.hs | bsd-3-clause | 88,960 | 3 | 29 | 28,057 | 16,638 | 8,597 | 8,041 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TypeOper... | GaloisInc/tower | tower-mini/test/Simple.hs | bsd-3-clause | 1,663 | 0 | 25 | 332 | 398 | 194 | 204 | 47 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Snap.Snaplet.Muttonchops where
import Data.ByteString (ByteString)
import Data.List
import Data.Map (Map)
import Data.String.Combinators ((<>))
import Data.Text (Text)
import Snap
import Snap.Snaplet
import System.Directory
import System.FilePath
import Text.Templating.Mutton... | ryb/snaplet-muttonchops | Snap/Snaplet/Muttonchops.hs | bsd-3-clause | 1,663 | 0 | 17 | 330 | 453 | 241 | 212 | 40 | 2 |
{-# LANGUAGE BangPatterns #-}
-----------------------------------------------------------------------------
-- Module : Math.Statistics
-- Copyright : (c) 2008 Marshall Beddoe
-- License : BSD3
--
-- Maintainer : bash@chodify.net
-- Stability : experimental
-- Portability : portable
--
-- Description :
--... | haas/hstats | src/Numeric/Statistics.hs | bsd-3-clause | 7,640 | 0 | 16 | 2,821 | 2,573 | 1,380 | 1,193 | 133 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Main
( main
) where
import qualified Control.Monad.Reader as R
import qualified Data.Text as Text
import Control.Monad.IO.Class (liftIO)
import Data.Text (Text)
import Drive
import Drive.Describe
import ... | palf/free-driver | packages/drive-slack/src/Main.hs | bsd-3-clause | 994 | 0 | 13 | 297 | 294 | 156 | 138 | 30 | 3 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
-- | Tests for various constructs
module Imperative where
import Data.Int
import Data.Word
import System.Directory
import System.FilePath
import System.Process
import System.Random
import Language.Embedded.Imperative
... | kmate/imperative-edsl | tests/Imperative.hs | bsd-3-clause | 15,582 | 0 | 17 | 4,357 | 5,708 | 2,701 | 3,007 | 335 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
-- | Lower-level primitives to drive Shake, which are wrapped into the
-- 'Development.Shake.shake' function. Useful if you want to perform multiple Shake
-- runs in a row without reloading from the database.
-- Sometimes used in conjunction with @'sha... | ndmitchell/shake | src/Development/Shake/Database.hs | bsd-3-clause | 7,008 | 0 | 20 | 1,454 | 1,230 | 657 | 573 | 86 | 3 |
{-# LANGUAGE BangPatterns, DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-}
module Network.Monitoring.Riemann.Proto.Query (Query(..)) where
import Prelude ((+), (/))
import qualified Prelude as Prelude'
import qualified Data.Typeable as Prelude'
import qualified Data.Data as Prelude'
import qualified Te... | telser/riemann-hs | src/Network/Monitoring/Riemann/Proto/Query.hs | mit | 2,949 | 0 | 17 | 577 | 603 | 314 | 289 | 49 | 0 |
{-# LANGUAGE Trustworthy #-}
-- |
-- Module : Data.Hash.SL2
-- License : MIT
-- Maintainer : Sam Rijs <srijs@airpost.net>
--
-- An algebraic hash function, inspired by the paper /Hashing with SL2/ by
-- Tillich and Zemor.
--
-- The hash function is based on matrix multiplication in the special linear group
-- o... | srijs/hwsl2-haskell | src/Data/Hash/SL2.hs | mit | 5,752 | 0 | 11 | 1,072 | 1,085 | 592 | 493 | 82 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-route53-domains/gen/Network/AWS/Route53Domains/TransferDomain.hs | mpl-2.0 | 12,762 | 0 | 11 | 2,864 | 1,385 | 869 | 516 | 136 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/CreateImage.hs | mpl-2.0 | 6,129 | 0 | 10 | 1,427 | 789 | 480 | 309 | 86 | 1 |
{-# 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 #-}
-- ... | fmapfmapfmap/amazonka | amazonka-kms/gen/Network/AWS/KMS/EnableKeyRotation.hs | mpl-2.0 | 3,475 | 0 | 12 | 720 | 403 | 245 | 158 | 56 | 1 |
module Distribution.Server.Features.StaticFiles (
staticFilesFeature
) where
import Distribution.Server.Framework
-- | The feature to serve the static html files.
--
-- Don't think this is going to be used that much, as it's not too modular, and
-- must be last in order. Top-level handling seems more appropriat... | isomorphism/hackage2 | Distribution/Server/Features/StaticFiles.hs | bsd-3-clause | 753 | 0 | 7 | 140 | 95 | 59 | 36 | 12 | 1 |
{-# LANGUAGE CPP #-}
module Distribution.Client.Dependency.Modular.Cycles (
detectCyclesPhase
) where
import Prelude hiding (cycle)
import Data.Graph (SCC)
import qualified Data.Graph as Gr
import qualified Data.Map as Map
import Distribution.Client.Dependency.Modular.Dependency
import Distribution.Client.Dep... | tolysz/prepare-ghcjs | spec-lts8/cabal/cabal-install/Distribution/Client/Dependency/Modular/Cycles.hs | bsd-3-clause | 2,017 | 0 | 12 | 460 | 516 | 285 | 231 | 34 | 7 |
module Settings.Packages.GhcPrim (ghcPrimPackageArgs) where
import Oracles.Flag
import Expression
ghcPrimPackageArgs :: Args
ghcPrimPackageArgs = package ghcPrim ? mconcat
[ builder GhcCabal ? arg "--flag=include-ghc-prim"
, builder (Cc CompileC) ?
(not <$> flag GccIsClang) ?
input "//cbits/a... | bgamari/shaking-up-ghc | src/Settings/Packages/GhcPrim.hs | bsd-3-clause | 355 | 0 | 13 | 67 | 93 | 48 | 45 | 9 | 1 |
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ViewPatterns #-}
-- | Confirm that a build... | myfreeweb/stackage | Stackage/CheckBuildPlan.hs | mit | 5,796 | 0 | 18 | 2,018 | 1,273 | 672 | 601 | -1 | -1 |
f a = \a -> a + a | mpickering/hlint-refactor | tests/examples/Lambda1.hs | bsd-3-clause | 17 | 1 | 7 | 7 | 22 | 9 | 13 | 1 | 1 |
{-|
Module : IRTS.Portable
Description : Serialise Idris' IR to JSON.
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE FlexibleInstances, OverloadedStrings, TypeSynonymInstances #-}
module IRTS.Portable (writePortable) where
import Idris.Core.CaseTree
import Idris.Core.Evaluate
import Idris.... | kojiromike/Idris-dev | src/IRTS/Portable.hs | bsd-3-clause | 15,614 | 0 | 12 | 3,876 | 6,888 | 3,574 | 3,314 | 309 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE Rank2Types #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Database.Persist.Sql.Orphan.Persis... | jasonzoladz/persistent | persistent/Database/Persist/Sql/Orphan/PersistStore.hs | mit | 12,241 | 116 | 25 | 4,512 | 3,130 | 1,633 | 1,497 | 259 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Applicative
-- Copyright : Cono... | siddhanathan/ghc | libraries/base/Control/Applicative.hs | bsd-3-clause | 4,718 | 0 | 11 | 1,033 | 1,161 | 646 | 515 | 68 | 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="bs-BA">
<title>>Run Applications | ZAP Extensions</title>
<maps>
<homeID>top</homeID>
... | kingthorin/zap-extensions | addOns/invoke/src/main/javahelp/org/zaproxy/zap/extension/invoke/resources/help_bs_BA/helpset_bs_BA.hs | apache-2.0 | 982 | 76 | 55 | 159 | 425 | 213 | 212 | -1 | -1 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="az-AZ">
<title>>Run Applications | ZAP Extensions</title>
<maps>
<homeID>top</homeID>
... | thc202/zap-extensions | addOns/invoke/src/main/javahelp/org/zaproxy/zap/extension/invoke/resources/help_az_AZ/helpset_az_AZ.hs | apache-2.0 | 983 | 76 | 55 | 159 | 419 | 211 | 208 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{- Based on example config yi example-configs/yi-vim.hs -}
module IDE.YiConfig (
defaultYiConfig
, Config
, Control
, ControlM
, YiM
, start
, runControl
, liftYi
) where
#ifdef LEKSAH_WITH_YI
import Data.List (reverse, isPrefixOf)
import Yi
... | 573/leksah | src/IDE/YiConfig.hs | gpl-2.0 | 3,656 | 0 | 21 | 1,027 | 746 | 421 | 325 | 23 | 1 |
-- This encapsulates the pattern of programs that gradually (and lazily)
-- build a bytestring. If append is too strict in its second argument then
-- we get a stack overflow for large n.
module Main (main) where
import qualified Data.ByteString.Lazy.Char8 as LC
import System.Environment
main :: IO ()
main = do xs ... | meiersi/bytestring-builder | tests/lazybuild.hs | bsd-3-clause | 704 | 1 | 14 | 236 | 167 | 90 | 77 | -1 | -1 |
module MutRec where
-- Mutual recursion with different
-- names for the same type variable
f t = x
where
x :: [a]
y :: b
(x,y,z,r) = ([y,z], z, head x, t)
| urbanslug/ghc | testsuite/tests/typecheck/should_compile/MutRec.hs | bsd-3-clause | 172 | 0 | 8 | 50 | 68 | 42 | 26 | 5 | 1 |
{-# LANGUAGE RankNTypes #-}
module StreamingPlayground
where
import Conduit
import Data.MonoTraversable (Element, MonoFoldable, ofoldMap)
import Control.Monad.IO.Class (liftIO)
import qualified Data.ByteString as B
-- https://haskell-lang.org/library/conduit
myYieldMany :: (Monad m, MonoFoldable mono) => mono -> Pr... | futtetennista/IntroductionToFunctionalProgramming | src/StreamingPlayground.hs | mit | 3,359 | 0 | 17 | 1,025 | 1,306 | 644 | 662 | 111 | 2 |
import Data.Char
import Data.List
-- Exercise 1.1. Define 'headHunter xss' that takes the head of the first list element. If the first element has no head, it takes the head of the second element. If the second element has no head, it takes the head of the third element. If none of this works, the function retur... | kbiscanic/PUH | hw04/exercises.hs | mit | 2,997 | 9 | 13 | 773 | 1,112 | 556 | 556 | 47 | 4 |
module Unison.Runtime.Lock where
-- | Autoreleasing lock type. `tryAcquire`, if successful, returns a `Lease`
-- which will be valid for some period of time, during which it may be assumed
-- that other calls to `tryAcquire` on the same `Lock` will fail.
data Lock = Lock { tryAcquire :: IO (Maybe Lease) }
-- | A `Lea... | nightscape/platform | node/src/Unison/Runtime/Lock.hs | mit | 524 | 0 | 11 | 100 | 66 | 40 | 26 | 3 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
-- I generally try to avoid modules full of (only) types but these are here
-- so the can be shared in both Technique.Translate and Technique.Builtins.
-- |
-- Error messages from compiling.
module Technique.F... | oprdyn/technique | lib/Technique/Failure.hs | mit | 8,747 | 7 | 24 | 2,089 | 2,036 | 1,063 | 973 | 185 | 10 |
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeOperators #-}
module Data... | plow-technologies/Vinyl | Data/Vinyl/Functor.hs | mit | 2,642 | 0 | 10 | 757 | 1,077 | 571 | 506 | 69 | 0 |
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
import Data.Array (listArray)
import Data.Foldable (for_)
import Test.Hspec (Spec, describe, it, shouldBe)
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)
import Matrix (saddlePoints)
main :: IO ()
main = hspecWith defaultConfig {confi... | exercism/xhaskell | exercises/practice/saddle-points/test/Tests.hs | mit | 2,271 | 1 | 8 | 1,074 | 710 | 445 | 265 | 53 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGCircleElement
(js_getCx, getCx, js_getCy, getCy, js_getR, getR, SVGCircleElement,
castToSVGCircleElement, gTypeSVGCircleElement)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Fl... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/SVGCircleElement.hs | mit | 2,187 | 18 | 11 | 281 | 565 | 336 | 229 | 36 | 1 |
{-# LANGUAGE ParallelListComp, TransformListComp, MonadComprehensions, RecordWildCards #-}
import GHC.Exts
import qualified Data.Map as M
import Data.List
import Data.Ord
-- Just one more sql-like query
-- After RecordWildCards
-- Parallel List Comp: Zips lists together instead of pulling all of the elt's out
arith... | 5outh/WeekOfPragmas | ListComprehensions.hs | mit | 3,174 | 10 | 11 | 1,117 | 920 | 502 | 418 | 60 | 1 |
-- Copyright © 2012 Julian Blake Kongslie <jblake@omgwallhack.org>
-- Licensed under the MIT license.
module Database.Local
where
import Database.HDBC
import Database.HDBC.PostgreSQL
data LocalDB = LocalDB
{ db :: !Connection
, allBooks :: !Statement
, filename :: !Statement
, newStory :: !Statement
, prun... | jblake/fanfiction | src/Database/Local.hs | mit | 2,511 | 0 | 16 | 545 | 894 | 441 | 453 | 72 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codedeploy-deploymentgroup-deployment-revision-githublocation.html
module Stratosphere.ResourceProperties.Cod... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/CodeDeployDeploymentGroupGitHubLocation.hs | mit | 2,576 | 0 | 13 | 221 | 266 | 152 | 114 | 29 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.UI.GLUT.Overlay
-- Copyright : (c) Sven Panne 2002-2005
-- License : BSD-style (see the file libraries/GLUT/LICENSE)
--
-- Maintainer : sven.panne@aedion.de
-- Stability : stable
-- Portability ... | ducis/haAni | hs/common/Graphics/UI/GLUT/Overlay.hs | gpl-2.0 | 6,954 | 0 | 9 | 1,066 | 519 | 324 | 195 | 46 | 2 |
module Computability.Languages where
import Notes
import Computability.Languages.Macro
import Computability.Languages.Terms
import Functions.BinaryOperation.Terms
import Sets.Algebra.Union.Terms
import Sets.Basics.Terms
import Computability.Symbol... | NorfairKing/the-notes | src/Computability/Languages.hs | gpl-2.0 | 3,486 | 0 | 14 | 838 | 975 | 511 | 464 | 77 | 1 |
{- Merch.Race.Ruleset - Ruleset-handling code.
Copyright 2013 Alan Manuel K. Gloria
This file is part of Merchant's Race.
Merchant's Race 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 ... | AmkG/merchants-race | Merch/Race/Ruleset.hs | gpl-3.0 | 4,062 | 0 | 10 | 672 | 940 | 503 | 437 | 91 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : HEP.Automation.MadGraph.Type
-- Copyright : (c) 2011-2013,2015 Ian-Woo Kim
--
-- License : BSD3
-- Maintainer : Ian-Woo Kim <ianwookim@gmail.com>
-... | wavewave/madgraph-auto | src/HEP/Automation/MadGraph/Type.hs | gpl-3.0 | 2,737 | 0 | 9 | 921 | 528 | 320 | 208 | 47 | 0 |
module Language.Dockerfile.Syntax where
import Data.ByteString.Char8 (ByteString)
import Data.Maybe
import Data.String
import Text.Read
type Image = String
type Tag = String
data Ports = Ports [Integer]
| PortStr String
deriving(Show, Eq, Ord)
instance IsString P... | beijaflor-io/haskell-language-dockerfile | src/Language/Dockerfile/Syntax.hs | gpl-3.0 | 1,734 | 0 | 15 | 425 | 466 | 265 | 201 | 57 | 1 |
module Jason.Util
(
bsToStr
, strToBS
, bsToText
, textToBS
) where
import Data.ByteString
import Data.Text as T
import Data.Text.Encoding (decodeUtf8, encodeUtf8)
bsToStr :: ByteString -> String
bsToStr = T.unpack . decodeUtf8
strToBS :: String -> ByteString
strToBS = enc... | TOSPIO/jason | src/Jason/Util.hs | gpl-3.0 | 445 | 0 | 6 | 107 | 114 | 68 | 46 | 17 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-- | FR3D provides a very convenient library of explored RNA structures. We are
-- mostly interested in the "basepairs" files. In contrast to the RNAstrand
-- library or melting experiments, these data sets provide non-canonical RNA
-- pairing.
--
-- ... | choener/BiobaseFR3D | Biobase/FR3D.hs | gpl-3.0 | 3,671 | 0 | 22 | 938 | 1,067 | 586 | 481 | 74 | 1 |
import Joc
import System.Random
main:: IO ()
main = do putStrLn "Escriu el número de rondes:"
nmoves <- getLine
g <- getStdGen
partida1 (read nmoves) [] [] g 0
partida1:: Int -> [Moviment] -> [Moviment] -> StdGen -> Int -> IO ()
partida1 nmoves l1 l2 g1 n = if (nmoves < 1)
then (escriuResul... | marccomino/Small_Programs_in_Haskell | Practica2/JocUsuari.hs | gpl-3.0 | 1,365 | 20 | 13 | 366 | 586 | 301 | 285 | 26 | 3 |
module Main where
import Waifu.Simple
main = waifu
| Volafile-sekrit-prokekt/waifu-simulator | src/Main.hs | gpl-3.0 | 56 | 0 | 4 | 13 | 14 | 9 | 5 | 3 | 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="sk-SK">
<title>TLS Debug | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref lo... | secdec/zap-extensions | addOns/tlsdebug/src/main/javahelp/org/zaproxy/zap/extension/tlsdebug/resources/help_sk_SK/helpset_sk_SK.hs | apache-2.0 | 970 | 83 | 52 | 159 | 396 | 209 | 187 | -1 | -1 |
module Aliyun.Auth (
hmacSha1
, base64
, md5
, Secret(..)
, Message(..)
, AkId(..)
) where
import Data.ByteString.Base64 as BB
import Data.ByteString.Char8 as BC
import Data.ByteString as B
import Data.HMAC
import Data.Word (Word8)
import qualified Data.Digest.MD5 as M
newtype Secret = Secret { unSecret :: Stri... | izgzhen/aliyun-haskell-sdk | src/Aliyun/Auth.hs | apache-2.0 | 908 | 0 | 9 | 172 | 340 | 198 | 142 | 28 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
module Data.Geometry.GeoJsonToMvt where
import qualified Control.Monad.ST as MonadST
import qualified Data.Aeson as Aeson
import qualified Data.Foldable as Foldable
import qualified Da... | sitewisely/zellige | src/Data/Geometry/GeoJsonToMvt.hs | apache-2.0 | 3,221 | 0 | 13 | 646 | 758 | 394 | 364 | 44 | 8 |
{-# LANGUAGE CPP, NondecreasingIndentation, TupleSections, RecordWildCards #-}
{-# OPTIONS_GHC -fno-cse #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
--
-- (c) The University of Glasgow 2002-2006
--
-- | The dynamic linker for GHCi.
--
-- This module deals with the top-level issues of dynamic linking,... | shlevy/ghc | compiler/ghci/Linker.hs | bsd-3-clause | 65,205 | 11 | 24 | 20,215 | 11,713 | 5,998 | 5,715 | -1 | -1 |
{-|
Module : Numeric.MixedType.FieldSpec
Description : hspec tests for multiplication and exponentiation
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portable
-}
module Numeric.MixedTypes.FieldSp... | michalkonecny/mixed-types-num | test/Numeric/MixedTypes/FieldSpec.hs | bsd-3-clause | 554 | 0 | 7 | 120 | 65 | 32 | 33 | 10 | 1 |
{-# language CPP #-}
-- No documentation found for Chapter "Promoted_From_VK_EXT_pipeline_creation_feedback"
module Vulkan.Core13.Promoted_From_VK_EXT_pipeline_creation_feedback ( PipelineCreationFeedback(..)
, PipelineCreationFeedbackCreateInfo(..)... | expipiplus1/vulkan | src/Vulkan/Core13/Promoted_From_VK_EXT_pipeline_creation_feedback.hs | bsd-3-clause | 11,702 | 0 | 14 | 1,710 | 1,580 | 928 | 652 | -1 | -1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Ordinal.VI.Tests
( tests ) where
import Data.String
import Prelude
import Test.Tasty
import Du... | facebookincubator/duckling | tests/Duckling/Ordinal/VI/Tests.hs | bsd-3-clause | 503 | 0 | 9 | 77 | 79 | 50 | 29 | 11 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Machine.Tee
-- Copyright : (C) 2012 Edward Kmett, Rúnar Bjarnason, Paul Chiusano
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : Edward ... | YoEight/machines | src/Data/Machine/Tee.hs | bsd-3-clause | 2,911 | 0 | 24 | 714 | 858 | 443 | 415 | 49 | 8 |
module Main where
import Cataskell.Server.Main
main :: IO ()
main = serverMain
| corajr/cataskell | cataskell-server/Main.hs | bsd-3-clause | 81 | 0 | 6 | 14 | 25 | 15 | 10 | 4 | 1 |
module Paths_minimal_resource_protocol (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName
) where
import Data.Version (Version(..))
import System.Environment (getEnv)
version :: Version
version = Version {versionBranch = [0,0,0,1], versionTags = []}
bindir, libdir, datadir, lib... | jfischoff/minimal-resource-protocol | dist/build/autogen/Paths_minimal_resource_protocol.hs | bsd-3-clause | 1,140 | 0 | 10 | 144 | 283 | 163 | 120 | 22 | 1 |
-- | Natural numbers union infinity. This version is modelled on 'Int's.
module Math.Misc.NatInfinity where
import qualified Math.Misc.Nat as Nat
data NInfinity = C Nat.N | Infinity
deriving Eq
fromNat :: Nat.N -> NInfinity
fromNat = C
fromInt :: Int -> NInfinity
fromInt = fromNat . Nat.fromInt
toInt :: N... | michiexile/hplex | pershom/src/Math/Misc/NatInfinity.hs | bsd-3-clause | 676 | 0 | 8 | 152 | 219 | 116 | 103 | 19 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module DTX2MIDI.DTX
( DTX (..),
Line (..),
Object (..),
ObjectValue (..),
Header (..),
Key (..),
Channel (..),
Comment (..),
Note (..),
object,
header,
comment,
isHeader,
isComment,
isObject,
isBPM,
isBaseBPM,
isNo... | akiomik/dtx2midi | src/DTX2MIDI/DTX.hs | bsd-3-clause | 2,411 | 0 | 9 | 557 | 842 | 479 | 363 | 96 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Main where
import AnimatedDangerzone.Types
import Control.Lens
import Control.Applicative
import NetworkedGame.Server
import qualified Data.Map as Map
import Network (PortID(..))
import System.IO
data ServerState =
ServerState { _pastPlayers :: Map.Map String Player
... | glguy/animated-dangerzone | src/Server.hs | bsd-3-clause | 4,923 | 12 | 21 | 1,515 | 1,559 | 867 | 692 | -1 | -1 |
{-# LANGUAGE LambdaCase, RecordWildCards, RankNTypes, TemplateHaskell #-}
module AbstractInterpretation.CreatedBy.CodeGenBase where
import Data.Int
import Data.Word
import Data.Set (Set)
import Data.Map (Map)
import Data.Vector (Vector)
import qualified Data.Bimap as Bimap
import qualified Data.Map as Map
import qual... | andorp/grin | grin/src/AbstractInterpretation/CreatedBy/CodeGenBase.hs | bsd-3-clause | 6,239 | 0 | 17 | 1,385 | 2,024 | 1,061 | 963 | 147 | 10 |
module Data.ISO639.Parse
( parseAlpha3Bibliographic
, parseAlpha3Terminologic
, parseAlpha2
) where
import qualified Data.HashMap.Strict as Map
import Data.ISO639.Types (Language, alpha3_terminologic, alpha3_bibliographic, languages, alpha2)
import Data.Text(Text)
idx_a3b = foldr fld Map.empty languages
wh... | necrobious/iso639 | src/Data/ISO639/Parse.hs | bsd-3-clause | 982 | 0 | 11 | 167 | 302 | 159 | 143 | 19 | 2 |
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.BLAS.Level1
-- Copyright : Copyright (c) 2010, Patrick Perry <patperry@gmail.com>
-- License : BSD3
-- Maintainer : Patrick Perry <patperry@gmail.com>
-- Stability : experim... | patperry/hs-linear-algebra | lib/Foreign/BLAS/Level1.hs | bsd-3-clause | 5,402 | 0 | 16 | 2,024 | 1,848 | 932 | 916 | 152 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TemplateHaskell #-}
module Test.IO.Tinfoil.Internal.Sodium where
import Disorder.Core.IO (testIO)
import P
import System.IO
import Test.QuickCheck
import Tinfoil.Internal.Sodium
import X.Control.Monad.Trans... | ambiata/tinfoil | test/Test/IO/Tinfoil/Internal/Sodium.hs | bsd-3-clause | 660 | 0 | 11 | 146 | 167 | 94 | 73 | 17 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts, CPP #-}
module BinaryHeapSTM (
Entry
, newEntry
, renewEntry
, item
, PriorityQueue(..)
, new
, enqueue
, dequeue
, delete
) where
#if __GLASGOW_HASKELL__ < 709
import Data.Word (Word)
#endif
import Con... | kazu-yamamoto/http2 | bench-priority/BinaryHeapSTM.hs | bsd-3-clause | 4,602 | 0 | 15 | 1,270 | 1,590 | 780 | 810 | 128 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.