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 Algebraic.Nested.Type
where
import Autolib.ToDoc hiding ( empty )
import Autolib.Reader
import qualified Autolib.Set as S
import Autolib.Size
import Autolib.Depth
import Data.Typeable
example :: Type Integer
example = read "{ 2, {}, {3, {4}}}"
data Type a = Make ( S.Set ( Item a ))
deriving ( Eq, O... | florianpilz/autotool | src/Algebraic/Nested/Type.hs | gpl-2.0 | 1,809 | 0 | 13 | 510 | 763 | 382 | 381 | 47 | 2 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Markov.Type where
import Autolib.ToDoc
import Autolib.Reader
import Autolib.Size
import Data.Typ... | marcellussiegburg/autotool | collection/src/Markov/Type.hs | gpl-2.0 | 682 | 0 | 9 | 113 | 170 | 99 | 71 | 21 | 1 |
--
-- (C) 2011-14 Nicola Bonelli <nicola@pfq.io>
--
-- 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 later version.
--
-- This... | Mr-Click/PFQ | user/pfq-omatic/pfq-omatic.hs | gpl-2.0 | 4,571 | 0 | 17 | 1,023 | 1,082 | 553 | 529 | 89 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Utils where
import Database.MySQL.Base
(MySQLConn, ConnectInfo(..), connect, defaultConnectInfo)
import System.Environment (lookupEnv)
import qualified Data.ByteString.Char8 as BS
connectToMysql :: IO MySQLConn
connectToMysql = do
mysqlUser <- maybe "" BS.pack <$> lo... | Southern-Exposure-Seed-Exchange/southernexposure.com | server/scripts/Utils.hs | gpl-3.0 | 552 | 0 | 10 | 127 | 130 | 74 | 56 | 14 | 1 |
import System.Environment
import System.Exit
import System.Process
import Control.Applicative
import Control.Concurrent.Async
import Data.Maybe
import Data.Traversable (Traversable)
import Data.ByteString (ByteString)
import qualified Data.ByteString.Char8 as BC
type MachineName = ByteString
-- the Traversable may no... | mjansen/remote-command | remote-command.hs | gpl-3.0 | 2,156 | 0 | 13 | 471 | 527 | 280 | 247 | 48 | 2 |
module CNBase
where
import CNTypes
import Tridiag
import Vector
hbar :: (Fractional a) => a
hbar = 0.6582119 -- µeV ns
diffMtx :: RealFloat a => VKey -> Operator a
diffMtx = flip fromBand (1,-2,1)
waveEntries :: (RealFrac a) => Interval a -> a -> Int
waveEntries (x0,xe) dx = ceiling $ (xe-x0)/dx + 1
takeSteps2D ::... | KiNaudiz/bachelor | CN/CNBase.hs | gpl-3.0 | 808 | 0 | 9 | 175 | 375 | 190 | 185 | 20 | 1 |
--------------------------------------------------------------------------------
{-# LANGUAGE LambdaCase #-}
--------------------------------------------------------------------------------
module Main (main) where
--------------------------------------------------------------------------------
--------------------... | d12frosted/environment | xmonad/xmonad/Main.hs | gpl-3.0 | 3,689 | 0 | 13 | 683 | 712 | 391 | 321 | 79 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module ADC.Types.Types
( WBox(..)
, Item(..)
, Auction(..)
, IStats(..)
, WBoxedStats(..)
... | gore-v/AuctionParser | src/ADC/Types/Types.hs | gpl-3.0 | 4,860 | 0 | 12 | 1,849 | 1,344 | 776 | 568 | 135 | 1 |
module RungeKutta where
{- classical 4th order Runge Kutta for solving differential equations
- x_n+1 = x_n + h/6*(k1+2*k2+2*k3+k4) where
- -}
rungeKutta :: ([Float] -> [Float]) -> Float -> [Float] -> [Float]
rungeKutta stepF h xn = xn' where
k1s = stepF xn
k2s = stepF $ zipWith (\a b -> a + h / 2 * b) xn k1s... | jrraymond/pendulum | src/RungeKutta.hs | gpl-3.0 | 582 | 0 | 13 | 154 | 271 | 148 | 123 | 11 | 1 |
{-# Language DataKinds #-}
{-# Language KindSignatures #-}
{-# Language TypeOperators #-}
{-# Language TypeSynonymInstances #-}
{-# Language FlexibleInstances #-}
module Data.SMT.BitBlasting.Types where
import qualified Data.IntSet as IS
import Data.Extensible.Sum
import Data.SMT.Abstract.Types
type TermComponents = ... | xenophobia/experimental-smt-solver | src/Data/SMT/BitBlasting/Types.hs | gpl-3.0 | 1,608 | 0 | 13 | 379 | 487 | 275 | 212 | 44 | 1 |
{- Event handlers for Lazymail
-
- Copyright 2013 Raúl Benencia <rul@kalgan.cc>
-
- Licensed under the GNU GPL version 3 or higher
-}
module Lazymail.Handlers where
import Codec.MIME.Parse(parseMIMEMessage)
import Codec.MIME.Type(MIMEValue(..))
import Control.Monad.Reader
import Control.Monad.State
import Data.L... | rul/lazymail | src/Lazymail/Handlers.hs | gpl-3.0 | 14,667 | 0 | 18 | 3,728 | 4,783 | 2,416 | 2,367 | 340 | 7 |
-- (C) Copyright Chris Banks 2011-2012
-- This file is part of The Continuous Pi-calculus Workbench (CPiWB).
-- CPiWB 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 Lic... | continuouspi/cpiwb | CPi/Plot.hs | gpl-3.0 | 6,771 | 0 | 23 | 1,701 | 2,247 | 1,175 | 1,072 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-kinesis/gen/Network/AWS/Kinesis/GetShardIterator.hs | mpl-2.0 | 7,942 | 0 | 9 | 1,616 | 692 | 434 | 258 | 79 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
module Core.Config where
import Control.Arrow ((***))
import qualified Core.Parser as P
import qualified Data.ByteString.Char8 as BS
im... | inq/agitpunkt | src/Core/Config.hs | agpl-3.0 | 1,408 | 2 | 16 | 373 | 410 | 226 | 184 | 39 | 2 |
module CGTools.CLI (cli) where
import Options.Applicative
import System.IO (hSetBuffering, stdout, BufferMode(NoBuffering))
import CGTools.Types
import CGTools.Install (runInstall)
import CGTools.Validate (runValidate)
import CGTools.Log (runLog)
version :: Parser (a -> a)
version = infoOption "0.1.0"
( long "ver... | shanewilson/cgtools | src/CGTools/CLI.hs | apache-2.0 | 2,023 | 0 | 11 | 407 | 577 | 294 | 283 | 60 | 3 |
-- do not need this
filteWhenFirst :: (Num a) => (a -> Bool) -> [a] -> a
filteWhenFirst f [] = 0
filteWhenFirst f (x:xs) = if f x
then x
else filteWhenFirst f xs
sumUntil :: (Num a) => (a -> Bool) -> [a] -> a
sumUntil f (x:y:xs) = if f x
then x
... | ccqpein/Arithmetic-Exercises | Valid-Perfect-Square/VPS.hs | apache-2.0 | 650 | 0 | 10 | 249 | 279 | 147 | 132 | 18 | 2 |
-- Copyright (C) 2016 Fraser Tweedale
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agr... | frasertweedale/hs-jose | src/Crypto/JOSE/AESKW.hs | apache-2.0 | 3,692 | 0 | 21 | 804 | 1,122 | 586 | 536 | 82 | 2 |
module Database.VCache.PVar
( PVar
, newPVar
, newPVars
, newPVarIO
, newPVarsIO
, loadRootPVar
, loadRootPVarIO
, readPVar
, readPVarIO
, writePVar
, modifyPVar
, modifyPVar'
, swapPVar
, pvar_space
, unsafePVarAddr
, unsafePVarRefct
) where
import ... | bitemyapp/haskell-vcache | hsrc_lib/Database/VCache/PVar.hs | bsd-2-clause | 3,479 | 0 | 14 | 782 | 639 | 349 | 290 | 62 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{- |
Module : Glider.NLP.Language.English.Porter2Test
Copyright : Copyright (C) 2013-2014 Krzysztof Langner
License : BSD3
Maintainer : Krzysztof Langner <klangner@gmail.com>
Stability : alpha
Portability : portable
-}
module Glider.NLP.Language.English.PorterSpec (spec) where
impo... | klangner/glider-nlp | test-src/Glider/NLP/Language/English/PorterSpec.hs | bsd-2-clause | 878 | 0 | 12 | 156 | 220 | 112 | 108 | 16 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : Types.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:33
Warning : this file is machine generated - do not mod... | keera-studios/hsQt | Qtc/Classes/Types.hs | bsd-2-clause | 14,345 | 0 | 14 | 3,014 | 4,779 | 2,429 | 2,350 | 399 | 2 |
{-|
This module provides the /Predecessor Estimation/ and the /Predecessor Estimation CP/ processor.
@
|- <pre(S1#) + S2# + S / S1# + W# + W, Q, T#> :f
------------------------------------------------
|- <S1# + S2# + S / W# + W, Q, T#> :f
@
Here @pre(R#)@, is defined as the union of all direct predecessors ... | ComputationWithBoundedResources/tct-trs | src/Tct/Trs/Processor/DP/DPGraph/PredecessorEstimation.hs | bsd-3-clause | 13,374 | 0 | 22 | 3,458 | 3,407 | 1,833 | 1,574 | -1 | -1 |
{-# LANGUAGE BangPatterns, CPP, MagicHash, NondecreasingIndentation #-}
{-# OPTIONS_GHC -fprof-auto-top #-}
-------------------------------------------------------------------------------
--
-- | Main API for compiling plain Haskell source code.
--
-- This module implements compilation of a Haskell source. It is
-- /n... | sgillespie/ghc | compiler/main/HscMain.hs | bsd-3-clause | 71,286 | 0 | 26 | 21,107 | 11,833 | 6,046 | 5,787 | 827 | 9 |
module PythagTriples
( printTriples
, pythagTriplesOrdered1
, pythagTriplesOrdered2
, pythagTriplesFast
, showTriple
, sortTriple
, Triple
) where
import Data.List (intercalate)
import Data.List.Split (splitOn)
type Triple = (Int, Int, Int)
sortTriple :: Triple -> Triple
sortTriple triple =
case tr... | grscheller/scheller-linux-archive | grok/Haskell/pythag-triples/src/PythagTriples.hs | bsd-3-clause | 1,730 | 1 | 13 | 428 | 668 | 369 | 299 | 50 | 2 |
{-# LANGUAGE CPP, DefaultSignatures, TypeFamilies #-}
module ST (MonadST (..)) where
import Control.Applicative
import Control.Monad.Reader
import Control.Monad.ST.Safe
import Control.Monad.State.Strict
class (Applicative m, Monad m) => MonadST m where
type World m
liftST :: ST (World m) a -> m a
#ifndef HLINT
... | sonyandy/mlf | src/ST.hs | bsd-3-clause | 739 | 0 | 12 | 150 | 285 | 153 | 132 | 21 | 0 |
{-# LANGUAGE CPP #-}
#define LAZY Strict
#define STRICT Lazy
#include "enumfun.inc"
| liyang/enumfun | Data/EnumFun/Strict.hs | bsd-3-clause | 84 | 0 | 2 | 12 | 6 | 5 | 1 | 1 | 0 |
-- | The type of definitions of screen layout and features.
module Game.LambdaHack.Client.UI.Content.Screen
( ScreenContent(..), emptyScreenContent, makeData
#ifdef EXPOSE_INTERNAL
-- * Internal operations
, emptyScreenContentRaw, validateSingle
#endif
) where
import Prelude ()
import Game.LambdaHack.Core.P... | LambdaHack/LambdaHack | engine-src/Game/LambdaHack/Client/UI/Content/Screen.hs | bsd-3-clause | 3,428 | 0 | 19 | 1,018 | 685 | 398 | 287 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad ( when )
import Data.Foldable ( forM_ )
import Network.URI ( parseRelativeReference )
import Prelude hiding ( mapM_ )
import System.Environment ( getArgs )
import S... | j3h/doc-review | src/Main.hs | bsd-3-clause | 2,494 | 0 | 18 | 880 | 621 | 327 | 294 | 50 | 6 |
{-# LANGUAGE TemplateHaskell #-}
module Network.AuthorizeNet.TH (
module Network.AuthorizeNet.TH,
apply,
parseSchemaType,
schemaTypeToXML
) where
import Network.AuthorizeNet.Types
import Control.Monad
import GHC.Exts
import Language.Haskell.TH
import Language.Haskell.TH.Lift
import Language.Haskell.TH.Synt... | MichaelBurge/haskell-authorize-net | src/Network/AuthorizeNet/TH.hs | bsd-3-clause | 13,812 | 185 | 25 | 3,657 | 3,546 | 1,869 | 1,677 | -1 | -1 |
module Tronkell.Game.Types where
import Control.Monad.State.Strict
import Data.Map
import qualified Data.Text as T
import Tronkell.Types
data GameConfig = GameConfig { gameWidth :: Int
, gameHeight :: Int
, gamePlayerSpeed :: Int
... | nilenso/tronkell | src/Tronkell/Game/Types.hs | bsd-3-clause | 1,885 | 0 | 9 | 758 | 386 | 232 | 154 | 41 | 0 |
{-|
Description : ARM Example using Hapstone
Copyright : (c) Garret Wassermann, 2017
License : BSD3
Maintainer : Garret Wassermann <gwasser@gmail.com>
Stability : experimental
This is example code that shows how to use the Hapstone bindings,
based on an ARM example provided with the python bindings to Capston... | ibabushkin/hapstone | examples/Test3.hs | bsd-3-clause | 2,211 | 0 | 11 | 389 | 273 | 166 | 107 | 21 | 1 |
module PPrint (
pprint
, pprintType
) where
import Base
import Context
import Data.List (intercalate)
import Text.Printf (printf)
pprint :: Term -> String
pprint = pprintTerm makeEmptyContext
pprintTerm :: Context -> Term -> String
pprintTerm ctx (TermAbs var ty t) = printf "lambda %s:%s. %s" fresh (pprintType ty... | foreverbell/unlimited-plt-toys | tapl/simplesub/PPrint.hs | bsd-3-clause | 2,237 | 0 | 11 | 345 | 781 | 399 | 382 | 43 | 1 |
{-# LANGUAGE TypeFamilies, FlexibleInstances, MultiParamTypeClasses #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Array.MArray.Extras
-- Copyright : (C) 2011 Edward Kmett
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : Edward Kme... | ekmett/monadic-arrays | Data/Array/MArray/Extras.hs | bsd-3-clause | 2,718 | 0 | 14 | 529 | 671 | 368 | 303 | 64 | 0 |
{-# LANGUAGE OverloadedStrings, StandaloneDeriving #-}
--------------------------------------------------------------------
-- |
-- Module : Text.Atom.Feed
-- Copyright : (c) Galois, Inc. 2008
-- License : BSD3
--
-- Maintainer: Sigbjorn Finne <sof@galois.com>
-- Stability : provisional
-- Portability:
--
--------... | haskell-pkg-janitors/feed | Text/Atom/Feed.hs | bsd-3-clause | 7,214 | 0 | 11 | 2,514 | 1,595 | 973 | 622 | 206 | 1 |
module Day06 where
import Control.Monad
import Control.Monad.ST
import Data.Array.MArray hiding (range)
import Data.Array.ST hiding (range)
import Text.Parsec
data Command = Command Action Range
data Action
= TurnOn
| TurnOff
| Toggle
data Range = Range Coord Coord
type Coord = (Int, Int)
coords :: [Coord]
... | patrickherrmann/advent | src/Day06.hs | bsd-3-clause | 2,647 | 0 | 12 | 592 | 1,076 | 559 | 517 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
module Development.Shake.Resource(
Resource, newResourceIO, newThrottleIO, acquireResource, releaseResource
) where
import Development.Shake.Errors
import Development.Shake.Util
import Data.Function
import System.IO.Unsafe
import Control.Arrow
import Control.Monad
{-# NOINLI... | nh2/shake | Development/Shake/Resource.hs | bsd-3-clause | 8,269 | 0 | 35 | 2,825 | 1,905 | 984 | 921 | 103 | 8 |
module Signal.Wavelet.Repa2Test where
import Control.Arrow ((&&&))
import Data.Array.Repa
import Test.HUnit (Assertion)
import Signal.Wavelet.Repa2
import Signal.Wavelet.Repa.Common (inv, forceS)
import Test.ArbitraryInstances (DwtInputRepa(..))
import Test.Data.Wavelet as DW
import Test.Utils ... | jstolarek/lattice-structure-hs | tests/Signal/Wavelet/Repa2Test.hs | bsd-3-clause | 2,622 | 0 | 11 | 558 | 1,078 | 589 | 489 | 54 | 1 |
{-# OPTIONS_GHC -Wall #-}
-- | Damped harmonic oscillator
module Main where
import Physics.Learn.RungeKutta
( integrateSystem
)
import Graphics.Gnuplot.Simple
dampedOscillator :: Double -> Double -> Double
-> (Double,Double,Double) -> (Double,Double,Double)
dampedOscillator r l c (_t,vc,il)... | walck/learn-physics | examples/src/DampedOscillator.hs | bsd-3-clause | 1,058 | 0 | 12 | 293 | 356 | 199 | 157 | 28 | 1 |
module FizzBuzzKata.Day1Spec (spec) where
import Test.Hspec
import FizzBuzzKata.Day1 (fizzbuzz)
spec :: Spec
spec = do
it "returns an empty list when given an empty list"
(fizzbuzz [] == [])
it "returns [\"1\"] when given [1]"
(fizzbuzz [1] == ["1"])
i... | Alex-Diez/haskell-tdd-kata | old-katas/test/FizzBuzzKata/Day1Spec.hs | bsd-3-clause | 994 | 0 | 11 | 321 | 262 | 136 | 126 | 23 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PolyKinds ... | sdiehl/ghc | libraries/base/Data/Type/Coercion.hs | bsd-3-clause | 3,576 | 0 | 11 | 674 | 606 | 339 | 267 | 54 | 1 |
{-# LANGUAGE NoMonomorphismRestriction, DeriveDataTypeable, StandaloneDeriving, NamedFieldPuns, ScopedTypeVariables #-}
module Network.N2O.PubSub (
subscribe,
byUnique,
unsubscribe,
newChannel,
Connections(..)
, setState
, SocketId
) where
import Control.Concurrent
import Data.Data (Data, gunf... | 5HT/n2o.hs | src/Network/N2O/PubSub.hs | isc | 1,954 | 1 | 10 | 364 | 585 | 315 | 270 | 44 | 1 |
-- | Functions for verifying signatures.
--
-- TODO: the "Pos.Crypto.Signing" hierarchy looks like a mess and should be
-- redesigned. When this is done, we likely won't need this module to be
-- separated from other modules, but right now we do need it in order to
-- avoid circular dependencies. — @neongreen
--
module... | input-output-hk/pos-haskell-prototype | crypto/Pos/Crypto/Signing/Check.hs | mit | 2,585 | 0 | 11 | 652 | 618 | 344 | 274 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Hledger.Cli.Commands.Registermatch (
registermatchmode
,registermatch
)
where
import Data.Char (toUpper)
import Data.List
import qualified Data.Text as T
import qualified Data.Text.Lazy.IO as TL
import Hledger
import Hledger.Cli.CliOptions
... | adept/hledger | hledger/Hledger/Cli/Commands/Registermatch.hs | gpl-3.0 | 3,165 | 0 | 19 | 813 | 809 | 438 | 371 | 60 | 3 |
module Hangman where
import Control.Monad.Trans.State.Lazy
import Control.Monad.IO.Class
-- | Represents if a character is discovered.
data Letter = Hidden Char | Guessed Char
-- | Represents a word made up of letters.
type AWord = [Letter]
-- | The state of the Hangman game.
data HangmanState = HangmanState AWord... | lf94/Hangman | Hangman.hs | gpl-3.0 | 2,144 | 0 | 15 | 491 | 713 | 366 | 347 | 57 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Module : Test.AWS.DynamoDB.Internal
-- 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 MP... | fmapfmapfmap/amazonka | amazonka-dynamodb/test/Test/AWS/DynamoDB/Internal.hs | mpl-2.0 | 623 | 0 | 4 | 140 | 25 | 21 | 4 | 4 | 0 |
module Main (main) where
import Criterion.Main
import Data.Bits
import qualified Data.Vector.Primitive as P
import Data.Word
import Succinct.Sequence
import System.Random
sampleVec :: Int -> [((Int, String), Int)]
sampleVec elements = zip [(i, "v" ++ show i) | i <- [0..]] $ take elements $ randomRs (1, 10000) (mkStdG... | Gabriel439/succinct | benchmarks/huTuckerBench.hs | bsd-2-clause | 658 | 0 | 11 | 130 | 281 | 157 | 124 | 18 | 1 |
{-| Implementation of the LUXI loader.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 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 a... | apyrgio/ganeti | src/Ganeti/HTools/Backend/Luxi.hs | bsd-2-clause | 12,962 | 0 | 14 | 2,752 | 2,999 | 1,549 | 1,450 | 215 | 3 |
-- Copyright (c) 2014 Eric McCorkle. 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 copyright
-- notice, this list of conditi... | emc2/compiler-misc | src/Data/Intervals.hs | bsd-3-clause | 8,354 | 9 | 17 | 1,988 | 2,025 | 1,076 | 949 | 108 | 14 |
-- | Encode IRC messages back to bytestrings
{-# LANGUAGE OverloadedStrings #-}
module NumberSix.Message.Encode
( encodePrefix
, encode
) where
--------------------------------------------------------------------------------
import Data.ByteString (ByteString)
import Data.ByteStr... | itkovian/number-six | src/NumberSix/Message/Encode.hs | bsd-3-clause | 1,930 | 0 | 12 | 413 | 455 | 246 | 209 | 31 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
-- | Description : mostly reversible conversion between ipynb and lhs
module IHaskell.Convert (convert) where
import IHaskellPrelude
import qualified Data.Text as T
import qualified Data.Text.Lazy as LT
import qualified Data.ByteString as BS
import qualified Data.ByteStri... | artuuge/IHaskell | src/IHaskell/Convert.hs | mit | 1,637 | 0 | 13 | 368 | 358 | 202 | 156 | 35 | 1 |
-- !!! Testing Typeable instances
module Main(main) where
import Data.Dynamic
import Data.Array
import Data.Array.MArray
import Data.Array.ST
import Data.Array.IO
import Data.Array.Unboxed
import Data.Complex
import Data.Int
import Data.Word
import Data.IORef
import System.IO
import Control.Monad.ST
import System.Mem.... | beni55/ghcjs | test/pkg/base/dynamic002.hs | mit | 3,165 | 0 | 13 | 596 | 1,531 | 788 | 743 | 84 | 1 |
module Main where
import Data.Typeable
f :: Typeable a => Int -> a -> TypeRep
f 0 a = typeOf a
f n a = f (n-1) [a]
main = print (f 50000 () == f 50001 ())
| forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/perf/should_run/T9203.hs | bsd-3-clause | 158 | 0 | 9 | 41 | 96 | 49 | 47 | 6 | 1 |
module Main where
import Control.Concurrent
-- example from
-- http://www.haskell.org/pipermail/glasgow-haskell-users/2008-November/015878.html
main = do
m <- newMVar (0 :: Int)
forkIO $ putMVar m 1
yield
r1 <- readMVar m
r2 <- takeMVar m
r3 <- takeMVar m
return ()
| urbanslug/ghc | testsuite/tests/concurrent/should_run/readMVar3.hs | bsd-3-clause | 297 | 0 | 9 | 70 | 85 | 40 | 45 | 10 | 1 |
module Main (main) where
import Control.Monad.Free.Church
import Control.Monad.Trans.RWS.CPS
import qualified Data.ByteString.Builder as ByteString.Builder
import Data.ByteString.Builder (Builder)
import qualified Data.ByteString.Lazy as ByteString
import Data.Monoid
import Data.PCM
import Data.Transmission
import Dat... | unknownloner/pagerenc | src/Main.hs | mit | 2,941 | 0 | 15 | 651 | 797 | 409 | 388 | 80 | 4 |
{-# LANGUAGE GADTs #-}
module Text.XML.Direct.SAX (
module Data.XML.Types,
Parser,
newParser,
Callback,
setCallback,
clearCallback,
... | IreneKnapp/direct-xml-sax | Text/XML/Direct/SAX.hs | mit | 9,105 | 0 | 22 | 2,888 | 2,303 | 1,197 | 1,106 | 210 | 10 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE OverloadedStrings #-}
module NetwireLoop where
-- https://danbst.wordpress.com/2013/01/23/novice-netwire-user/
-- http://jshaskell.blogspot.se/2012/11/breakout-improved-and-with-netwire.html
-- http://hpaste.org/83098
--import Control.Monad.Identity (Identity)
import Control.Wire
... | MaxDaten/netwire-examples | NetwirePlayground.hs | mit | 1,512 | 1 | 15 | 280 | 333 | 176 | 157 | 25 | 2 |
{-# LANGUAGE TemplateHaskell #-}
module Yesod.Routes.TH.Types
( -- * Data types
Resource (..)
, ResourceTree (..)
, Piece (..)
, Dispatch (..)
, CheckOverlap
-- ** Helper functions
, resourceMulti
, resourceTreePieces
, resourceTreeName
) where
import Language.Haskell.TH... | piyush-kurur/yesod | yesod-routes/Yesod/Routes/TH/Types.hs | mit | 2,684 | 0 | 12 | 619 | 910 | 492 | 418 | 62 | 1 |
module Or where
import Data.Semigroup
import Test.QuickCheck
data Or a b = Fst a | Snd b deriving (Eq, Show)
instance Semigroup (Or a b) where
(Snd x) <> _ = Snd x
_ <> (Fst x) = Fst x
_ <> (Snd x) = Snd x
instance (Arbitrary a, Arbitrary b) => Arbitrary (Or a b) where
arbitrary = do
... | JoshuaGross/haskell-learning-log | Code/Haskellbook/Semigroups/src/Or.hs | mit | 398 | 0 | 11 | 120 | 193 | 97 | 96 | 13 | 0 |
{-# LANGUAGE CPP, OverloadedStrings #-}
module ChangePasswordLogged (changePasswordLoggedSpecs) where
import Yesod.Auth
import Yesod.Test
import Foundation
import qualified Data.Text as T
-- In 9f379bc219bd1fdf008e2c179b03e98a05b36401 (which went into yesod-form-1.3.9)
-- the numbering of fields was changed. We norm... | jasonzoladz/yesod-auth-account-fork | tests/ChangePasswordLogged.hs | mit | 4,025 | 0 | 14 | 1,463 | 635 | 264 | 371 | 85 | 1 |
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Ch19.ParseInt
where
import Data.Functor.Identity (Identity)
import qualified Data.Char as C
import qualified Data.Bits as Bits
import qualified Control.Applicative as A
import qualified Con... | futtetennista/IntroductionToFunctionalProgramming | RWH/src/ch19/ParseInt.hs | mit | 5,273 | 0 | 18 | 1,240 | 1,561 | 812 | 749 | 124 | 2 |
module AirType.Helpers where
import AirType.Types
import Data.Char
fromString :: String -> Maybe [Input]
fromString = mapM fromChar
fromInputs :: [Input] -> [[Char]]
fromInputs = fmap fromInput
fromInput :: Input -> [Char]
fromInput L1 = [' ']
fromInput L2 = ['v', 'f', 'r', 'g', 't', 'b']
fromInput L3 = ['c', 'd', ... | terrelln/air-types | src/AirType/Helpers.hs | mit | 1,342 | 0 | 8 | 412 | 625 | 318 | 307 | 57 | 37 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module EventProcessor where
import Types
import Data.Text (Text)
import qualified Data.Text as Text
import Control.Monad (forM_, liftM, forM)
import Database.PostgreSQL.Simple
import Data.Time.Clock
import Data.Maybe (fromJust)
import qualified Data.ByteString.C... | danchoi/geochat | src/EventProcessor.hs | mit | 6,639 | 0 | 22 | 1,667 | 1,780 | 909 | 871 | 112 | 7 |
module Data.JSON where
import Data.Text as T
import Foreign.String
builtin builtin_c_json 1 "c_json" "Foreign"
-- Hmm... it doesn't look like we can have a JSON object, just JSON representation, because a JSON object would have to have existential type fields.
data JSON = Array [JSON] | Object [(String,JSON)] | Numb... | bredelings/BAli-Phy | haskell/Data/JSON.hs | gpl-2.0 | 2,060 | 0 | 13 | 469 | 800 | 405 | 395 | -1 | -1 |
import qualified Data.ByteString.Lazy.Char8 as BS
import System.IO
import Data.Int (Int64)
import Control.Monad
import Data.Maybe
import Control.Monad.IO.Class
import Control.Lens
import GHC.Float
data Direction = Direction {
directionStartTime :: Float,
directionNextTime :: Float,
directionPreviousTime :: Float... | newmana/last-chance-to-see | src/Script.hs | gpl-2.0 | 2,125 | 14 | 15 | 426 | 908 | 485 | 423 | 52 | 5 |
import Debug.Trace
main :: IO()
main = do
let sorted = bubbleSort [6, 5, 3, 1, 8, 7, 2, 4] :: [Integer]
print sorted
bubbleSort :: (Ord a, Show a) => [a] -> [a]
--bubbleSort lst | trace ("sorting: " ++ show lst) False = undefined
bubbleSort [] = []
bubbleSort [x] = [x]
bubbleSort (x:y:rest) =
bubbleSort (init b... | BaReinhard/Hacktoberfest-Data-Structure-and-Algorithms | algorithms/bubble_sort/haskell/bubble_sort.hs | gpl-3.0 | 454 | 1 | 11 | 99 | 223 | 122 | 101 | 12 | 2 |
{-|
The Hledger.Data library allows parsing and querying of C++ ledger-style
journal files. It generally provides a compatible subset of C++ ledger's
functionality. This package re-exports all the Hledger.Data.* modules
(except UTF8, which requires an explicit import.)
-}
module Hledger.Data (
modul... | kmels/hledger | hledger-lib/Hledger/Data.hs | gpl-3.0 | 1,682 | 0 | 6 | 383 | 217 | 147 | 70 | 40 | 1 |
module SyntaxTree(Bits,Pattern(Literal,Binding,Wildcard),Expr(LiteralBits,Concat,Bound,Call),Definition(Def)) where
type Bits = [Bool]
data Pattern = Literal Bits | Binding Bits String | Wildcard Bits
data Expr = LiteralBits Bits | Concat Expr Expr | Bound Int | Call String [Expr]
data Definition = Def [Pattern] Expr
| qpliu/esolang | 01_/hs/interp/SyntaxTree.hs | gpl-3.0 | 320 | 0 | 7 | 42 | 115 | 75 | 40 | 11 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-storagegateway/gen/Network/AWS/StorageGateway/UpdateSnapshotSchedule.hs | mpl-2.0 | 5,772 | 0 | 10 | 1,237 | 696 | 418 | 278 | 77 | 1 |
func x = x
| lspitzner/brittany | data/Test74.hs | agpl-3.0 | 11 | 0 | 5 | 4 | 9 | 4 | 5 | 1 | 1 |
-- |
-- Module : Network.HTTP.Extras
-- Copyright : (c) Alexandru Scvortov 2008
-- License : LGPL (see LICENSE file)
-- Maintainer : scvalex@gmail.com
--
module Network.HTTP.Extras
( httpGET
) where
import Network.URI (parseURI)
import Network.HTTP (simpleHTTP, Request(..), RequestMethod(..), ... | scvalex/ltorrent | Network/HTTP/Extras.hs | lgpl-3.0 | 811 | 0 | 17 | 222 | 197 | 106 | 91 | 14 | 3 |
module Main where
type Cent = Int
type Muenze = Cent
-- Ziel dieser Übung ist es einen "Geldwechsler" zu implementieren
-- Auf gegebenen Betrag (in Cent) soll eine minimale Liste mit
-- Münzwerten ausgegeben werden, deren Summe genau den gegebenen
-- Betrag entspricht
--
-- Beispiel:
beispiel :: [Muenze]
beispiel =... | CarstenKoenig/DOS2015 | CoinChange/CoinChange.hs | unlicense | 1,843 | 0 | 9 | 355 | 295 | 172 | 123 | 20 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Oauth where
import qualified Data.ByteString as BS
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import Control.Exception.Lifted
import System.FilePath.Posix
impor... | froden/digipostarkiv | src/Oauth.hs | apache-2.0 | 3,466 | 0 | 14 | 828 | 914 | 467 | 447 | 72 | 4 |
-- | Defines a type class for clausal forms.
module Akarui.FOL.LiteralSign where
import Akarui.ShowTxt
import Akarui.FOL.Symbols
import Akarui.FOL.PrettyPrint
data LiteralSign = Positive | Negative
deriving (Eq, Ord, Show, Read)
instance ShowTxt LiteralSign where
showTxt Positive = "Positive"
showTxt Negative ... | PhDP/Manticore | Akarui/FOL/LiteralSign.hs | apache-2.0 | 439 | 0 | 6 | 70 | 109 | 60 | 49 | 12 | 0 |
module Handler.Settings where
import Import
postToggleFeatureR :: Feature -> Handler RepHtml
postToggleFeatureR feature = do
user <- requireAuth
runDB $ toggleUserFeature feature user
redirect TasksR
| samstokes/yesodoro-reboot | Handler/Settings.hs | bsd-2-clause | 208 | 0 | 8 | 33 | 54 | 26 | 28 | 7 | 1 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module Admin.ProductVariants where
import Admin.Feedback
import Application
import Control.Applicative
import FormUtil
import Snap.Core
import Snap.Snaplet
import Text.Printf
import qualified Data.ByteString.Char8 as C8
import qualified Data.Map as M
import qual... | rjohnsondev/haskellshop | src/Admin/ProductVariants.hs | bsd-2-clause | 2,465 | 0 | 14 | 677 | 549 | 281 | 268 | 57 | 2 |
{-| Balancing task of the maintenance daemon.
This module carries out the automated balancing done by the
maintenance daemon. The actual balancing algorithm is imported
from htools.
-}
{-
Copyright (C) 2015 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modificat... | bitemyapp/ganeti | src/Ganeti/MaintD/Balance.hs | bsd-2-clause | 13,766 | 0 | 22 | 3,750 | 3,108 | 1,630 | 1,478 | 222 | 7 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QGraphicsSceneWheelEvent.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:24
Warning : this file is machine gen... | keera-studios/hsQt | Qtc/Gui/QGraphicsSceneWheelEvent.hs | bsd-2-clause | 8,798 | 0 | 12 | 1,144 | 2,168 | 1,107 | 1,061 | -1 | -1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QSettings.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:36
Warning : this file is machine generated - do not... | uduki/hsQt | Qtc/Enums/Core/QSettings.hs | bsd-2-clause | 5,763 | 0 | 18 | 1,378 | 1,658 | 816 | 842 | 145 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TupleSections #-}
module Language.JsonGrammar.Parser (parseValue) where
import Language.JsonGrammar.Grammar
import Language.JsonGrammar.Util
import Control.Applicative ((<$>))
import Control.Monad ((>=>), unless)
import Data.A... | edsko/JsonGrammar2 | src/Language/JsonGrammar/Parser.hs | bsd-3-clause | 2,255 | 0 | 17 | 578 | 850 | 436 | 414 | 58 | 12 |
module MAAM.Instances.AAM where
import FP
import MAAM.Classes.AAM
import MAAM.Instances.Temporal
-- Concrete {{{
data Cμ = Cμ
cμ :: P Cμ
cμ = P
instance AAM Cμ where
type LexicalTemporal Cμ = Cτ
type DynamicTemporal Cμ = Cτ
lexical Cμ = Cτ
dynamic Cμ = Cτ
-- }}}
-- 0CFA {{{
data ZCFAμ = ZCFAμ
zCFAμ :: P ... | davdar/quals | src/MAAM/Instances/AAM.hs | bsd-3-clause | 1,287 | 5 | 8 | 279 | 558 | 288 | 270 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, FlexibleContexts, GADTs #-}
module MateVMRuntime.ClassPool (
getClassInfo,
getClassInfoNoInit,
classLoaded,
getClassFile,
getMethodTable,
getMethodTableNoInit,
getMethodTableReverse,
getObjectSize,
getFieldCount,
getStaticFieldTypes,
getFieldTypes,
getMethodOffset... | LouisJenkinsCS/Minimal-JVM | MateVMRuntime/ClassPool.hs | bsd-3-clause | 15,075 | 0 | 24 | 3,588 | 4,351 | 2,141 | 2,210 | 319 | 6 |
import System.Environment (getArgs, getProgName)
import System.Exit (exitFailure)
import System.IO (stderr, hPutStrLn)
import Text.Read (readMaybe)
import System.Linux.Btrfs
main :: IO ()
main = do
args <- getArgs
case args of
[srcPath, srcOffS, srcLenS, dstPath, dstOffS]
| Just srcOff <- ... | redneb/hs-btrfs | examples/btrfs-clone-range.hs | bsd-3-clause | 763 | 0 | 15 | 244 | 200 | 100 | 100 | 21 | 2 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE RankNTypes #-}
module Data.Bitransversable (
Bitransversable(..)
, traverseDefault
) where
import Bound.Scope (Scope, bitransverseScope)
class B... | dalaing/type-systems | src/Data/Bitransversable.hs | bsd-3-clause | 680 | 0 | 15 | 132 | 218 | 114 | 104 | 11 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Smoke.Gen.Classes (
generateSmokeClassesModule,
classesModuleImport
) where
import Control.Monad.Reader
import Data.Monoid
import Data.Text ( Text )
import qualified Data.Text as T
import Language.Haskell.Exts.Pretty
import Language.Haskell.Exts.Syntax
import Smoke.C
im... | travitch/humidor | src/Smoke/Gen/Classes.hs | bsd-3-clause | 2,131 | 0 | 18 | 367 | 614 | 314 | 300 | 48 | 1 |
-- http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_3_C
-- Swapping Two Numbers
-- input:
-- 3 2
-- 2 2
-- 5 3
-- 0 0
-- output:
-- 2 3
-- 2 2
-- 3 5
import Control.Applicative
import qualified Control.Monad as Monad
main = loopPutNumbers
loopPutNumbers :: IO ()
loopPutNumbers = do
[x,y] <- map (r... | ku00/aoj-haskell | src/ITP1_3_C.hs | bsd-3-clause | 554 | 0 | 13 | 158 | 159 | 91 | 68 | 11 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
-- |
-- Module : Instrument.Measurement
-- Copyright : (c) 2009, 2010 Bryan O'Sullivan
-- (c) 2012, Ozgun Ataman
--
-- License : BSD-style
module Instrument.Measurement
( getTime,
time,
... | Soostone/instrument | instrument/src/Instrument/Measurement.hs | bsd-3-clause | 1,346 | 0 | 10 | 234 | 273 | 151 | 122 | 25 | 1 |
{-# LANGUAGE RecordWildCards, PatternGuards, CPP #-}
module Development.Make.All(runMakefile) where
import System.Environment
import Development.Shake
import Development.Shake.FilePath
import Development.Make.Parse
import Development.Make.Env
import Development.Make.Rules
import Development.Make.Type
impor... | nh2/shake | Development/Make/All.hs | bsd-3-clause | 4,658 | 79 | 16 | 1,677 | 1,690 | 870 | 820 | 106 | 5 |
{-# LANGUAGE TemplateHaskell #-}
module Client.ExplosionT where
import Control.Lens (makeLenses)
import Data.IORef (newIORef)
import Linear (V3(..))
import System.IO.Unsafe (unsafePerformIO)
import Client.EntityT
import Types
makeLenses ... | ksaveljev/hake-2 | src/Client/ExplosionT.hs | bsd-3-clause | 599 | 0 | 9 | 209 | 136 | 82 | 54 | 18 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
-------------------------------------------------------------------
-- |
-- Module : Irreverent.Bitbucket.Core.Data.Group
-- Copyright : (C) 2018 Irreverent Pixel Feats
-- License : BSD-style (see the file /LICENSE.md)
-- Maintainer : Dom De Re
--
---------------------... | irreverent-pixel-feats/bitbucket | bitbucket-core/src/Irreverent/Bitbucket/Core/Data/Group.hs | bsd-3-clause | 853 | 0 | 10 | 158 | 94 | 64 | 30 | 19 | 0 |
module Main where
import Control.Monad (void)
import HTk.Toplevel.HTk
import Prelude hiding (interact)
import UI.Dialogui
import UI.Dialogui.HTk
type RGB = (Int, Int, Int)
theme :: (HasColour a, HasFont a) => [Config a]
theme = [ font (Courier, Bold, 18::Int)
, background ((0x00, 0x00, 0x7F) :: RGB)
... | astynax/dialogui-htk | examples/CustomizedGUI.hs | bsd-3-clause | 760 | 0 | 12 | 240 | 270 | 157 | 113 | 19 | 1 |
module Resolve.DNS.Utils where
import Data.ByteString
import Data.Word
import Data.Bits
safeFromIntegral :: (Integral a, Integral b) => a -> Maybe b
safeFromIntegral x = let y = fromIntegral x
in if (fromIntegral y == x) then Just y
else Nothing
toWord16 :: ByteString -> Word16
toWord16 bs = Data.ByteString.fold... | riaqn/resolve | src/Resolve/DNS/Utils.hs | bsd-3-clause | 509 | 0 | 13 | 90 | 211 | 113 | 98 | 12 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
module Servant.Recons.Parser where
import Data.Typeable
import Data.Vinyl
import GHC.TypeLits
impo... | voidlizard/recons | src/Servant/Recons/Parser.hs | bsd-3-clause | 2,985 | 0 | 16 | 649 | 1,127 | 591 | 536 | 73 | 0 |
{-# LANGUAGE PackageImports #-}
module GHC.IO.Exception (module M) where
import "base" GHC.IO.Exception as M
| silkapp/base-noprelude | src/GHC/IO/Exception.hs | bsd-3-clause | 114 | 0 | 4 | 18 | 23 | 17 | 6 | 3 | 0 |
module LibSpec (main, spec) where
import Test.Hspec
import Test.Hspec.QuickCheck (prop)
import Test.QuickCheck
import Lib
main :: IO ()
main = hspec spec
spec = do
describe "ok" $ do
prop "test" $ (\a b -> someFunc a b == a + b)
| wass80/CoCaml | test/LibSpec.hs | bsd-3-clause | 240 | 0 | 15 | 53 | 102 | 55 | 47 | 10 | 1 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RecordWildCards #-}
-- | Update system related functionality in Auxx.
module Command.Update
( vote
, propose
, hashInstaller
) where
import Universum
import qualified Data.ByteString.Lazy as BSL
import Data.Default (def)
i... | input-output-hk/pos-haskell-prototype | auxx/src/Command/Update.hs | mit | 4,527 | 0 | 19 | 1,175 | 1,094 | 572 | 522 | 95 | 4 |
module GpgMe
( Error(..)
, ErrorSource(..)
, ErrorCode(..)
, checkVersion
, ctxNew
, setArmor
, Key(..)
, Attr(..)
, keyName
, keyID
, keyFingerprint
, getKeys
, findKeyBy
, keyGetStringAttr
, ImportStatus(..)
... | pontarius/pontarius-gpg | src/GpgMe.hs | mit | 1,397 | 0 | 11 | 480 | 390 | 231 | 159 | 51 | 1 |
{- |
Module : ./HasCASL/ClassAna.hs
Description : analyse kinds using a class map
Copyright : (c) Christian Maeder and Uni Bremen 2003-2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : experimental
Portability : portable
analyse kinds using a class ... | spechub/Hets | HasCASL/ClassAna.hs | gpl-2.0 | 7,224 | 0 | 32 | 2,216 | 2,266 | 1,106 | 1,160 | 151 | 8 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-storagegateway/gen/Network/AWS/StorageGateway/DeleteTape.hs | mpl-2.0 | 3,848 | 0 | 9 | 871 | 523 | 317 | 206 | 63 | 1 |
--------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
module NumberSix.Handlers.Seen
( handler
) where
--------------------------------------------------------------------------------
import Control.Applicative ((<$>))
import ... | itkovian/number-six | src/NumberSix/Handlers/Seen.hs | bsd-3-clause | 3,304 | 0 | 18 | 1,100 | 513 | 275 | 238 | 50 | 2 |
{-
(c) The GRASP Project, Glasgow University, 1994-1998
\section[TysWiredIn]{Wired-in knowledge about {\em non-primitive} types}
-}
{-# LANGUAGE CPP #-}
-- | This module is about types that can be defined in Haskell, but which
-- must be wired into the compiler nonetheless. C.f module TysPrim
module TysWiredIn (
... | bitemyapp/ghc | compiler/prelude/TysWiredIn.hs | bsd-3-clause | 33,167 | 0 | 14 | 8,457 | 5,145 | 2,820 | 2,325 | 436 | 10 |
{-# LANGUAGE DeriveGeneric #-}
{- |
Module: Network.SoundCloud.App
Copyright: (c) 2012 Sebastián Ramírez Magrí <sebasmagri@gmail.com>
License: BSD3
Maintainer: Sebastián Ramírez Magrí <sebasmagri@gmail.com>
Stability: experimental
Represents SoundCloud applications as found at <http://... | sebasmagri/HScD | src/Network/SoundCloud/App.hs | bsd-3-clause | 1,840 | 0 | 14 | 550 | 339 | 181 | 158 | 34 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.