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
MultiParamTypeClasses,
FlexibleInstances, FlexibleContexts,
DeriveDataTypeable, DeriveGeneric
#-}
module Insomnia.Types where
import Control.Applicative
import Control.Lens
import Control.Monad (liftM, zipWithM_)
import Data.Function (on)
import qualified Data.Map as M
import Data.Lis... | lambdageek/insomnia | src/Insomnia/Types.hs | bsd-3-clause | 12,161 | 0 | 19 | 3,174 | 3,676 | 1,897 | 1,779 | 307 | 2 |
{-# LANGUAGE ScopedTypeVariables
, ParallelListComp
#-}
{-| Parse UTF-8 JSON into native Haskell types.
-}
module Text.JSONb.Decode where
import Data.Char
import Data.Ratio ((%))
import Prelude hiding (length, null, last, takeWhile)
import Data.ByteString (length, append, empty, ByteString)
import... | solidsnack/JSONb | Text/JSONb/Decode.hs | bsd-3-clause | 6,427 | 1 | 21 | 2,709 | 1,528 | 802 | 726 | 120 | 5 |
{-- snippet modifyMVar_strict --}
{-# LANGUAGE BangPatterns #-}
import Control.Concurrent (MVar, putMVar, takeMVar)
import Control.Exception (block, catch, throw, unblock)
import Prelude hiding (catch) -- use Control.Exception's version
modifyMVar_strict :: MVar a -> (a -> IO a) -> IO ()
modifyMVar_strict m io = bloc... | binesiyu/ifl | examples/ch24/ModifyMVarStrict.hs | mit | 462 | 0 | 12 | 87 | 152 | 80 | 72 | 10 | 1 |
{-# OPTIONS_GHC -fglasgow-exts #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Morphism.Histo
-- Copyright : (C) 2008 Edward Kmett
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability :... | urska19/MFP---Samodejno-racunanje-dvosmernih-preslikav | Control/Morphism/Histo.hs | apache-2.0 | 1,548 | 4 | 10 | 252 | 399 | 216 | 183 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiP... | dorchard/camfort | src/Camfort/Specification/Hoare/Syntax.hs | apache-2.0 | 3,938 | 0 | 11 | 865 | 755 | 423 | 332 | 75 | 1 |
{-# LANGUAGE DeriveDataTypeable, TypeFamilies, TemplateHaskell #-}
module AudioDB where
import Data.Acid
import Data.Typeable
import Control.Monad.State
import Control.Monad.Reader
import Data.SafeCopy
import qualified Data.Map as Map
type AudioUID = String
type AudioVKID = String
data AudioIds = AudioIds !(Map.Map A... | hithroc/hsvkbot | src/AudioDB.hs | bsd-3-clause | 730 | 0 | 12 | 119 | 232 | 122 | 110 | 24 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE RankNTypes #-}
{-... | reflex-frp/reflex | test/Reflex/Test/CrossImpl.hs | bsd-3-clause | 12,834 | 0 | 25 | 3,144 | 5,604 | 2,946 | 2,658 | 235 | 2 |
module Database.Persist.Class.Extra where
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Trans.Reader (ReaderT)
import Database.Persist.Class
import Database.Persist.Types
import Prelude
-- Like insertBy, but only return the Key if the Entity exists, not the whole Entity
insertBy' :: (MonadIO m, Per... | mitchellwrosen/dohaskell | src/Database/Persist/Class/Extra.hs | bsd-3-clause | 503 | 0 | 9 | 85 | 122 | 70 | 52 | 10 | 1 |
{-# LANGUAGE CPP, OverloadedStrings #-}
-- | This module provides remote monitoring of a running process over
-- HTTP. It can be used to run an HTTP server that provides both a
-- web-based user interface and a machine-readable API (e.g. JSON.)
-- The former can be used by a human to get an overview of what the
-- pr... | seanparsons/ekg | System/Remote/Monitoring.hs | bsd-3-clause | 10,466 | 0 | 14 | 2,159 | 861 | 558 | 303 | 72 | 2 |
{-
(c) The University of Glasgow 2006
(c) The GRASP Project, Glasgow University, 1992-2000
Defines basic functions for printing error messages.
It's hard to put these functions anywhere else without causing
some unnecessary loops in the module dependency graph.
-}
{-# LANGUAGE CPP, ScopedTypeVariables, LambdaCase #-... | shlevy/ghc | compiler/utils/Panic.hs | bsd-3-clause | 10,573 | 0 | 19 | 2,851 | 2,043 | 1,050 | 993 | 162 | 10 |
module PackageTests.CMain.Check
( checkBuild
) where
import Test.HUnit
import System.FilePath
import PackageTests.PackageTester
dir :: FilePath
dir = "PackageTests" </> "CMain"
checkBuild :: FilePath -> Test
checkBuild ghcPath = TestCase $ do
let spec = PackageSpec
{ directory = dir
... | DavidAlphaFox/ghc | libraries/Cabal/Cabal/tests/PackageTests/CMain/Check.hs | bsd-3-clause | 475 | 0 | 13 | 132 | 111 | 61 | 50 | 15 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE TemplateHaskell #-}
module TH_overloaded_constraints_no_instance where
-- Test the error message when there is no instance
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
data NewType a
-- No instance for Quote NewType
quote2 :: NewType Exp
quote2 = [| ... | sdiehl/ghc | testsuite/tests/th/overloaded/TH_overloaded_no_instance.hs | bsd-3-clause | 326 | 0 | 5 | 47 | 41 | 29 | 12 | -1 | -1 |
module Niki () where
import Language.Haskell.Liquid.Prelude
incr x = x + 1
baz x = (x, incr x)
prop :: Bool
prop = chk $ baz n
where n = choose 100
chk (x, y) = liquidAssertB (x < y)
| mightymoose/liquidhaskell | tests/pos/deppair0.hs | bsd-3-clause | 190 | 0 | 7 | 47 | 94 | 52 | 42 | 8 | 1 |
module Type where
import Unbound.Generics.LocallyNameless (Alpha (..),Name)
import TyCon
data TType = VarTy
type TyName = Name TType
instance Alpha TType where
isTerm VarTy = False
| ezyang/ghc | testsuite/tests/typecheck/T11824/Type.hs | bsd-3-clause | 187 | 0 | 6 | 32 | 57 | 34 | 23 | 7 | 0 |
{-# LANGUAGE DataKinds #-}
module T7502 where
type S = [1,2]
| ghc-android/ghc | testsuite/tests/polykinds/T7502.hs | bsd-3-clause | 62 | 0 | 5 | 12 | 17 | 12 | 5 | 3 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE DeriveGeneric #-}
module Metadata(http) where
import Network.HTTP.Types
import Network.HTTP.Types.Header (hContentType)
import Network.Wai
import GHC.Generics
import Data.Text as T
import Data.Aeson
import Ledger... | gip/cinq-cloches-ledger | src/Metadata.hs | mit | 812 | 0 | 11 | 145 | 229 | 131 | 98 | 30 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : Network.IRC.Client
-- Copyright : (c) 2016 Michael Walker
-- License : MIT
-- Maintainer : Michael Walker <mike@barrucadu.co.uk>
-- Stability : experimental
-- Portability : OverloadedStrings
--
-- A simple IRC client library. Typical usage will be of t... | barrucadu/irc-client | Network/IRC/Client.hs | mit | 10,246 | 0 | 15 | 2,345 | 1,097 | 685 | 412 | 111 | 1 |
{-|
Description: Implementation of Nix's base32 encoding.
-}
module System.Nix.Base32 where
import qualified Data.ByteString as BS
import qualified Data.Text as T
import qualified Data.Vector as V
-- | Encode a 'BS.ByteString' in Nix's base32 encoding
encode :: BS.ByteString -> T.Text
e... | shlevy/hnix-store | hnix-store-core/src/System/Nix/Base32.hs | mit | 1,425 | 0 | 15 | 439 | 267 | 155 | 112 | 18 | 1 |
module Run (run) where
import Control.Exception (finally)
import System.Exit
import System.IO (Handle)
import Util (ifM)
import Options (Mode(..))
import qualified Options
import qualified Lock
import Config (Config)
import qualified Action
import C... | beni55/pwsafe | src/Run.hs | mit | 1,273 | 0 | 15 | 371 | 396 | 204 | 192 | 27 | 8 |
-- | Http GET requests with exceptions handled in the preferred way.
module Shiva.Get (httpGet) where
import Shiva.Config (ShivaException (..))
import Control.Monad.Catch (throwM, try)
import Data.ByteString.Lazy (toStrict)
import Data.Text (Text, unpack)
import Data.Text.Encoding (decodeUtf8')
... | BlackBrane/shiva | src/Shiva/Get.hs | mit | 570 | 0 | 10 | 109 | 173 | 96 | 77 | 12 | 1 |
{-|
Description : Cryptographic hashing interface for hnix-store, on top
of the cryptohash family of libraries.
-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}... | shlevy/hnix-store | hnix-store-core/src/System/Nix/Internal/Hash.hs | mit | 5,575 | 0 | 11 | 1,238 | 1,107 | 627 | 480 | 89 | 2 |
type info = (id, position) -> string
(setq liquid-tip-info hdevtools-info)
(setq liquid-tip-info liquidhaskell-info)
hdevtoolsInfo :: info
liquidInfo :: info
| UCSD-PL/230-web | static/foo.hs | mit | 165 | 4 | 5 | 26 | 38 | 28 | 10 | -1 | -1 |
{-|
Module: Flaw.UI.VisualElement
Description: Adapter for Visual to use it as Element.
License: MIT
-}
module Flaw.UI.VisualElement
( VisualElement(..)
, newVisualElement
) where
import Control.Concurrent.STM
import Flaw.Math
import Flaw.UI
import Flaw.UI.Drawer
data VisualElement = VisualElement
{ visualE... | quyse/flaw | flaw-ui/Flaw/UI/VisualElement.hs | mit | 1,248 | 0 | 16 | 258 | 288 | 151 | 137 | 37 | 1 |
euler005 :: Int -> Int
euler005 n = foldr1 lcm [1..n]
main :: IO ()
main = print $ euler005 20
| marknsikora/euler | euler005/euler005.hs | mit | 96 | 0 | 6 | 22 | 50 | 25 | 25 | 4 | 1 |
-- Copyright (c) Microsoft. All rights reserved.
-- Licensed under the MIT license. See LICENSE file in the project root for full license information.
{-# LANGUAGE RecordWildCards #-}
module Tests.Codegen
( verifyCodegen
, verifyCppCodegen
, verifyCsCodegen
) where
import System.FilePath
import Syste... | innovimax/bond | compiler/tests/Tests/Codegen.hs | mit | 3,182 | 0 | 16 | 603 | 764 | 407 | 357 | 70 | 3 |
module Main where
import Data.List
import Control.Monad
import Text.Parsec
import Text.Parsec.String (Parser)
import qualified Data.Text as T
import qualified Data.Text.Encoding as T
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as BS8
import System.Environment
import System.Timeout
im... | Garciat/SocketsToy | src/Main.hs | mit | 6,121 | 0 | 18 | 1,744 | 1,937 | 965 | 972 | 172 | 5 |
{-# LANGUAGE DeriveGeneric #-}
module Development.Duplo.Types.AppInfo where
import Data.Aeson (FromJSON, ToJSON)
import Data.HashMap.Strict (HashMap, empty)
import GHC.Generics (Generic)
type Dependencies = HashMap String String
type Modes = HashMap String [String]
-- |... | pixbi/duplo | src/Development/Duplo/Types/AppInfo.hs | mit | 1,355 | 0 | 9 | 676 | 261 | 162 | 99 | 34 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Y2020.M11.D13.Solution where
{--
HI! So, we got it working! Yay! And we have the 'daters' in the 'datersbase.'
YAY!
So, now, let's represent these 'daters' visually.
Hello, Google Earth.
Google Earth is, like, the Earth, man.
(wow, that was amazing, that introduction to ... | geophf/1HaskellADay | exercises/HAD/Y2020/M11/D13/Solution.hs | mit | 5,521 | 0 | 13 | 1,049 | 862 | 458 | 404 | 66 | 1 |
-- typeclass type
class Monad m where
return :: a -> m a
(>>=) :: m a -> (a -> m b) -> m b
(>>) :: m a -> m b -> m b -- x >> y = x >>= \_ -> y
fail :: String -> m a
fail msg = error msg
-- Maybe Monad
instance Monad Maybe where
return x = Just x
Nothing >>= f = Nothing
Just ... | djleonskennedy/learning-haskell | src/algebras/monad-def.hs | mit | 1,091 | 3 | 14 | 350 | 448 | 226 | 222 | -1 | -1 |
module BufferTest where
import Test.HUnit
import Buffer
import qualified Data.Rope as R
import qualified Rope as R
tests :: Test
tests = test [tRenameBuffer,
tMkBufferName,
tMkBufferText,
tMove1,
tMove2,
tMove3,
tMove4,
... | awbraunstein/emonad | src/BufferTest.hs | mit | 2,404 | 0 | 11 | 587 | 829 | 443 | 386 | 65 | 1 |
module Functions.BinaryOperation where
import Notes
import Logic.FirstOrderLogic.Macro
import Sets.Basics.Terms
import Functions.Basics.Macro
import Functions.Basics.Terms
import Functions.BinaryOperation.Macro
import Functions.BinaryOperation.Te... | NorfairKing/the-notes | src/Functions/BinaryOperation.hs | gpl-2.0 | 2,197 | 7 | 15 | 556 | 649 | 340 | 309 | 52 | 1 |
{-# LANGUAGE OverloadedStrings #-}
----------------------------------------------------------------------
--
-- Module : Text.BibSpec
-- Copyright : 2015-2017 Mathias Schenner,
-- 2015-2016 Language Science Press.
-- License : GPL-3
-- Maintainer : mschenner.dev@gmail.com
--
-- Tests for ... | synsem/texhs | test/Text/BibSpec.hs | gpl-3.0 | 34,334 | 0 | 17 | 8,002 | 8,823 | 4,621 | 4,202 | 805 | 1 |
{-# LANGUAGE RecordWildCards #-}
module Main
where
-------------------------------------------------------------------------------
import Data.Function (on)
import System.Environment (getArgs)
import Control.Arrow ((&&&))
import System.Random ... | chrisbloecker/Hive | tools/AntSystem.hs | gpl-3.0 | 5,120 | 0 | 23 | 1,435 | 1,288 | 689 | 599 | 112 | 3 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
-- import Generics.Multi... | alanz/annotations-play | src/annotAST.hs | unlicense | 8,209 | 9 | 19 | 2,201 | 2,185 | 1,147 | 1,038 | 143 | 3 |
{-
Copyright 2015 Tristan Aubrey-Jones
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 agreed to in writing, sof... | flocc-net/flocc | v0.1/Compiler/Back/StrTemplates.hs | apache-2.0 | 2,088 | 0 | 11 | 368 | 371 | 209 | 162 | 24 | 3 |
-- Thinking Functionall with Haskell
-- Chapter 05 Homework
-- Implement a new version of nub, which does not care about Order
-- the complexity of normal nub is O(n^2)
import Data.List
myNub :: (Ord a) => [a] -> [a]
myNub xs = nubOrder ys
where ys = sort xs
nubOrder [] = []
nubOrder [x] = [x]... | Oscarzhao/haskell | functional_program_design/ch05/nub.hs | apache-2.0 | 464 | 0 | 11 | 166 | 136 | 74 | 62 | 9 | 4 |
{- |
Module : Stats.Foldable
Description : Numerical statistics for Foldable containers
Copyright : (c) Daniel Lovasko, 2016
License : OtherLicense
Maintainer : Daniel Lovasko <daniel.lovasko@gmail.com>
Stability : stable
Portability : portable
Stats.Foldable is a pure Haskell module that implements a s... | lovasko/staf | src/Stats/Foldable.hs | bsd-2-clause | 2,902 | 0 | 15 | 752 | 784 | 410 | 374 | 61 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module DecisionProcedure.OrientedPoint
( module SpatioTemporalStructure.OrientedPoint
) where
-- standard modules
-- local modules
import Basics
import DecisionProcedure
import DecisionProcedure.OrientedPoint.AngleConsistency
import SpatioTemporalStructure.OrientedPoint
ins... | spatial-reasoning/zeno | src/DecisionProcedure/OrientedPoint.hs | bsd-2-clause | 1,504 | 0 | 8 | 454 | 156 | 98 | 58 | 19 | 0 |
module Exercises911 where
-- 1.
zip' :: [a] -> [b] -> [(a, b)]
zip' [] y = []
zip' x [] = []
zip' (x:xs) (y:ys) = (x, y) : zip' xs ys
-- 2.
zipWith' :: (a -> b -> c) -> [a] -> [b] -> [c]
zipWith' f (x:xs) (y:ys) = f x y : zipWith f xs ys
zipWith' _ _ _ = []
-- 3.
zip'' :: [a] -> [b] -> [(a, b)]
zip'' = zipWith' (,... | pdmurray/haskell-book-ex | src/ch9/Exercises9.11.hs | bsd-3-clause | 321 | 0 | 8 | 85 | 234 | 130 | 104 | 10 | 1 |
{-# LANGUAGE CPP #-}
module App.Clock where
#ifdef darwin_HOST_OS
import Control.Applicative ( (<$>) )
import Data.Time.Clock.POSIX
getTime :: IO Double
getTime = realToFrac <$> getPOSIXTime
#else
import Control.Applicative ( (<$>) )
import qualified System.Clock as SysClk
getTime ::... | schell/blocks | src/App/Clock.hs | bsd-3-clause | 1,138 | 0 | 12 | 385 | 241 | 137 | 104 | 26 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE RecordWildCards #-}
-- | A basic storage engine for @Raptr@ which stores commands in a flat file.
--
-- This modules exposes a simple Raft persistent log implementation which stores entries in binary
-- format in a flat file, with the following structure:
--
-- +----+-... | capital-match/raptr | src/System/IO/Storage.hs | bsd-3-clause | 7,458 | 0 | 17 | 1,970 | 1,807 | 926 | 881 | 140 | 3 |
{-# OPTIONS_GHC -Wall -fwarn-tabs #-}
----------------------------------------------------------------
-- ~ 2011.02.12
-- |
-- Module : Data.Trie.Convenience
-- Copyright : Copyright (c) 2008--2015 wren gayle romano
-- License : BSD3
-- Maintainer : wren... | unhammer/bytestring-trie-0.2.4 | src/Data/Trie/Convenience.hs | bsd-3-clause | 9,000 | 0 | 12 | 1,903 | 1,667 | 904 | 763 | 98 | 2 |
{-# LANGUAGE PatternGuards, ViewPatterns #-}
module Hint.Util where
import HSE.All
import Util
-- | Generate a lambda, but prettier (if possible).
-- Generally no lambda is good, but removing just some arguments isn't so useful.
niceLambda :: [String] -> Exp_ -> Exp_
-- \xs -> (e) ==> \xs -> e
niceLambda xs (Par... | bergmark/hlint | src/Hint/Util.hs | bsd-3-clause | 2,742 | 0 | 14 | 702 | 1,157 | 575 | 582 | 35 | 5 |
module Language.Haskell.Refact.Refactoring.Renaming
( rename
, compRename
) where
import qualified Data.Generics.Schemes as SYB
import qualified Data.Generics.Aliases as SYB
import qualified GHC.SYB.Utils as SYB
import qualified GHC
import qualified Name as GHC
import qualified RdrName ... | kmate/HaRe | src/Language/Haskell/Refact/Refactoring/Renaming.hs | bsd-3-clause | 16,951 | 0 | 19 | 4,551 | 3,040 | 1,504 | 1,536 | 214 | 4 |
{-# LANGUAGE TemplateHaskell, DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
module SimpleBound(
Scope(..),
toScope,
(>>>=),
abstract,
instantiate,
Var(..)
) where
import Control.Monad
import Control.Monad.Trans
import Control.Applicative
import Data.Functor.Classes
import Data.Deriving ... | esengie/fpl-exploration-tool | src/langGenerator/SimpleBound.hs | bsd-3-clause | 2,718 | 0 | 10 | 653 | 1,237 | 633 | 604 | 77 | 2 |
module Bench.Lev.Reader.Dynamic where
import Data.Int
import Data.Word
import Lev.Reader.Dynamic
import Bench.Lev.Reader.Static as Static
{-# INLINE read12Int64PlusInt32 #-}
read12Int64PlusInt32 :: ( Cursor c ) => Reader c IO Int64
read12Int64PlusInt32 = readStatic Static.read12Int64PlusInt32
{-# INLINE getWord64N16... | PROTEINE-INSAIDERS/lev-tolstoy | bench/Bench/Lev/Reader/Dynamic.hs | bsd-3-clause | 596 | 0 | 11 | 126 | 179 | 97 | 82 | 16 | 3 |
{-# LANGUAGE TypeFamilies, TypeOperators, PatternSynonyms, TemplateHaskell, CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Units.SI
-- Copyright : (C) 2013 Richard Eisenberg
-- License : BSD-style (see LICENSE)
-- Maintainer : Richard Eisenbe... | goldfirere/units | units-defs/Data/Units/SI.hs | bsd-3-clause | 5,920 | 0 | 7 | 1,551 | 1,174 | 682 | 492 | 60 | 1 |
{- |
This module defines an internal (generic) representation for XML
documents including their DTDs.
History:
The original module was derived by hand from the XML specification,
following the grammar precisely. Then we simplified the types,
removing layers of indirection and redundancy, and general... | FranklinChen/hugs98-plus-Sep2006 | packages/HaXml/src/Text/XML/HaXml/Types.hs | bsd-3-clause | 7,522 | 0 | 10 | 2,130 | 1,841 | 1,100 | 741 | 195 | 1 |
module Main (main) where
import Distribution.Simple
import System.Cmd (system)
main :: IO ()
main = defaultMainWithHooks $ simpleUserHooks {runTests = runMyTests}
runMyTests a b pd lb = system "runhaskell ./UnitTest.hs" >> return ()
| hnakamur/haskell-sandbox | sandbox-json/Setup.hs | bsd-3-clause | 236 | 0 | 7 | 36 | 77 | 42 | 35 | 6 | 1 |
-- | Extract various archive files in a consistent manner.
{-# LANGUAGE OverloadedStrings #-}
module Control.Shell.Extract
( -- * Extracting archives
extract, extractWith, supportedExtensions, canExtract
-- * Extraction options
, ExtractOptions, separateDirectory, removeArchive
, defaultExtractOptions
)... | valderman/shellmate | shellmate-extras/Control/Shell/Extract.hs | bsd-3-clause | 6,465 | 0 | 19 | 1,639 | 1,526 | 798 | 728 | 106 | 10 |
{-# LANGUAGE OverloadedStrings #-}
import Web.Scotty
main = scotty 3000 $ do
get "/" $ do
file "static/index.html"
get "/:filename" $ do
filename <- param "filename"
file $ "static/" ++ filename
post "/:filename" $ do
filename <- param "filename"
file $ "static/" ++ filename
| szatkus/haffen | Haffen.hs | bsd-3-clause | 292 | 0 | 12 | 60 | 97 | 42 | 55 | 11 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE PolyKinds #-}
module Data.LnFunctor.Pointed where
import Data.LnFunctor
import Type.Families (Rfl)
class (LnFunctor f, LnInitial f) => LnPointed (f :: ix -> ix -> * -> *) where
lreturn :: Init f i j => a -> f i j a
ireturn :: (LnPointed f, Rfl Init f i) => a -> f i i ... | kylcarte/lnfunctors | src/Data/LnFunctor/Pointed.hs | bsd-3-clause | 341 | 0 | 10 | 71 | 133 | 72 | 61 | -1 | -1 |
module Lib.HGit
( module Lib.HGit.Readers
, module Lib.HGit.Writers
, module Lib.HGit.Data
, module Lib.HGit.Batch
) where
import Lib.HGit.Readers
import Lib.HGit.Writers
import Lib.HGit.Data
import Lib.HGit.Batch
| MarcusWalz/hgit | Lib/HGit.hs | bsd-3-clause | 266 | 0 | 5 | 76 | 60 | 41 | 19 | 9 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
-- | Exports useful types for other modules.
module Network.BitTorrent.Types (
maxRequestsPerPeer
, PeerData(..)
, newPeer
, TorrentStatus(..)
, TorrentState(..)
, GlobalState(..)
, SharedMessage(..)
, Chunks
, defaultChunkSize
, chunksInPiece
, expectedPiec... | farnoy/torrent | src/Network/BitTorrent/Types.hs | bsd-3-clause | 4,423 | 0 | 12 | 926 | 862 | 522 | 340 | 117 | 3 |
module Text.Tagset.Data
( Tagset (Tagset)
, Rule (Rule)
, TagView (NKJPView, MorphosView)
, Label
, tagView
, ruleDefs
, attrDefs
, rulePred
, attsFor
, allAtts
, attrValues
, Optional
, Attr
, AttrValue
) where
import Control.Monad (liftM3)
import qualified Data.Map as Map
import qualified Data.Text as T
import Data.... | kawu/tagger | src/Text/Tagset/Data.hs | bsd-3-clause | 1,805 | 1 | 10 | 457 | 588 | 334 | 254 | 64 | 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-ses/gen/Network/AWS/SES/ListIdentities.hs | mpl-2.0 | 5,641 | 0 | 14 | 1,248 | 894 | 526 | 368 | 103 | 1 |
{-
Copyright 2019 The CodeWorld Authors. All rights reserved.
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 applicab... | alphalambda/codeworld | codeworld-prediction/src/Data/MultiMap.hs | apache-2.0 | 2,493 | 0 | 13 | 538 | 718 | 384 | 334 | 40 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QStyleOptionToolBox.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:25
Warning : this file is machine generate... | keera-studios/hsQt | Qtc/Gui/QStyleOptionToolBox.hs | bsd-2-clause | 3,503 | 0 | 12 | 498 | 854 | 445 | 409 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
The Desugarer: turning HsSyn into Core.
-}
{-# LANGUAGE CPP #-}
module Desugar ( deSugar, deSugarExpr ) where
import DynFlags
import HscTypes
import HsSyn
import TcRnTypes
import TcRnMonad ( finalSafeMode, fixSafeInstan... | ml9951/ghc | compiler/deSugar/Desugar.hs | bsd-3-clause | 22,744 | 28 | 22 | 7,753 | 3,502 | 1,870 | 1,632 | 299 | 3 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
module Foundation.Check.Print
( propertyToResult
... | vincenthz/hs-foundation | foundation/Foundation/Check/Print.hs | bsd-3-clause | 3,176 | 0 | 14 | 1,147 | 1,015 | 539 | 476 | -1 | -1 |
module Shift.Computer where
-- -- $Id$
import Shift.Type
import Shift.Iterate
import Shift.Enum
import Data.FiniteMap
import Control.Monad ( guard, when, foldM )
import Random ( randomRIO )
import IO
import System
import Data.List (sort)
import Util.Zufall
import Util.Faktor
import Data.List ( group )
instance Sh... | Erdwolf/autotool-bonn | src/Shift/Computer.hs | gpl-2.0 | 3,319 | 63 | 15 | 924 | 1,237 | 660 | 577 | 77 | 2 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE CPP #-}
-- | A module providing a means of creating multiple input forms, such as a
-- list of 0 or more recipients.
module Yesod.Form.MassInput
( inputList
, massDivs
... | psibi/yesod | yesod-form/Yesod/Form/MassInput.hs | mit | 5,293 | 0 | 22 | 1,741 | 1,287 | 673 | 614 | 103 | 4 |
--
-- Copyright (c) 2012 Citrix Systems, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This progra... | jean-edouard/manager | apptool/Core/Types.hs | gpl-2.0 | 3,249 | 0 | 15 | 814 | 842 | 474 | 368 | 80 | 7 |
module WhereIn2 where
f = (y + z)
where
(x,y,z) = g 42
g x = (1,2,x)
| kmate/HaRe | old/testing/simplifyExpr/WhereIn2_TokOut.hs | bsd-3-clause | 101 | 0 | 7 | 49 | 53 | 31 | 22 | 4 | 1 |
--------------------------------------------------------------------------------
-- | This module exposes a function which can relativize URL's on a webpage.
--
-- This means that one can deploy the resulting site on
-- @http:\/\/example.com\/@, but also on @http:\/\/example.com\/some-folder\/@
-- without having to cha... | bergmark/hakyll | src/Hakyll/Web/Html/RelativizeUrls.hs | bsd-3-clause | 2,016 | 0 | 14 | 381 | 233 | 136 | 97 | 19 | 2 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Int
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : ... | beni55/haste-compiler | libraries/ghc-7.8/base/Data/Int.hs | bsd-3-clause | 2,005 | 0 | 5 | 409 | 147 | 103 | 44 | 6 | 0 |
module Main where
import System.Environment
import Text.ParserCombinators.Parsec hiding (spaces)
data LispVal = Atom String
| List [LispVal]
| DottedList [LispVal] LispVal
| Number Integer
| String String
| Bool Bool
symbol :: Parse... | fredmorcos/attic | snippets/haskell/Scheme/Main.hs | isc | 814 | 0 | 10 | 272 | 244 | 124 | 120 | 25 | 2 |
-- Graphics!
import GameOfLife
import Graphics.Gloss ( Color
, Display(InWindow)
, Picture(Color, Pictures, Polygon, Translate)
, simulate
, black
, white )
import System.Random ( newStdGen )
main :: IO ()
m... | ktkonrad/game-of-life | src/MainGloss.hs | mit | 1,337 | 2 | 14 | 418 | 446 | 249 | 197 | 39 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module GameStateIn where
import Text.JSON.Generic
import GameState
import qualified Data.Map as Map
magicFields = ["id", "name", "yahoo-rank", "playerName", "injured"]
data GameStateIn = GameStateIn {
n :: Int,
playerIndex :: Int,
history :: [(Int, [(String, String)])],
ho... | golden-warning/giraffedraft-api | newHotness/gameStateIn.hs | mit | 1,563 | 46 | 12 | 281 | 617 | 349 | 268 | 45 | 3 |
-- 麻布中学校 2008年 入試問題 算数 問4 解法
import Data.List
import Data.MultiMap
import System.Environment (getArgs)
-- 演算子
opToChar 0 = "+"
opToChar 1 = "*"
-- 最初のリストの先頭2個の数字に、演算子のリスト(0が加算、1が乗算)を適用する
apply (x:y:xs) (0:os) = x + apply (y:xs) os
apply (x:y:xs) (1:os) = apply ((x*y):xs) os
apply (x:xs) _ = x
makePai... | zettsu-t/examQuestions | 2008math4.hs | mit | 2,089 | 6 | 11 | 478 | 918 | 470 | 448 | 43 | 2 |
module Main where
import System.Exit
import System.Environment
import Text.LineToPDF
import qualified Data.ByteString.Lazy.Char8 as L
main :: IO ()
main = do
args <- getArgs
(enc, input) <- case args of
[] -> do
putStrLn "Usage: line2pdf [-big5|-gbk|-shiftjis|-euc-jp|-euc-kr] input.tx... | audreyt/line2pdf | line2pdf.hs | mit | 792 | 0 | 13 | 233 | 270 | 142 | 128 | 21 | 7 |
module Hasql.Private.PTI where
import Hasql.Private.Prelude hiding (bool)
import qualified Database.PostgreSQL.LibPQ as LibPQ
-- | A Postgresql type info
data PTI = PTI { ptiOID :: !OID, ptiArrayOID :: !(Maybe OID) }
-- | A Word32 and a LibPQ representation of an OID
data OID = OID { oidWord32 :: !Word32, oidPQ :: ... | nikita-volkov/hasql | library/Hasql/Private/PTI.hs | mit | 4,364 | 0 | 11 | 1,243 | 1,577 | 800 | 777 | 90 | 1 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell, RankNTypes,
FunctionalDependencies, MultiParamTypeClasses, FlexibleInstances #-}
module Web.Slack.Types.Session where
import Control.Applicative
import Data.Aeson
import Web.Slack.Types.User
import Web.Slack.Types.Time
import Web.Slack.Types.Self
import Web.Slack.Types... | madjar/slack-api | src/Web/Slack/Types/Session.hs | mit | 1,411 | 0 | 26 | 469 | 281 | 171 | 110 | 35 | 0 |
module DataTypes where
import Data.Maybe
import Data.List
-------------------------------------------------------------------------
-- Type synonym for representation of a field cell
-- Nothing == unctouched cell,
-- Just True == hit cell
-- Just False == missed cell
type Cell = Maybe Bool
-- Type synonym for c... | tdeekens/tda452-code | Lab-4/DataTypes.hs | mit | 1,479 | 0 | 10 | 291 | 256 | 162 | 94 | 21 | 1 |
module SSeg.SSeg (ssegH, ssegU) where
import CLaSH.Prelude
import SSeg.HexToSSeg
type Hex = Unsigned 4
type Counter = Unsigned 20
hexMux :: Counter ->
(Hex, Hex, Hex, Hex, Hex, Hex, Hex, Hex) ->
(Unsigned 8, Hex)
hexMux counter (hex7, hex6, hex5, hex4, hex3, hex2, hex1, hex0) =
case counter... | aufheben/Y86 | SEQ/SSeg/SSeg.hs | mit | 1,608 | 0 | 11 | 449 | 635 | 364 | 271 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Diagrams.Plots.Bar
( BarOpt
, barWidth
, barBaseLine
, barOrientation
, bars
) where
import Diagrams.Prelude
import Data.Default
import Control.Lens (makeLenses, (^.), both)
import Data.Maybe
import Diagrams.Plots.Types
data BarOpt = BarOpt
{ _barW... | kaizhang/haskell-plot | src/Diagrams/Plots/Bar.hs | mit | 2,523 | 0 | 13 | 749 | 1,048 | 543 | 505 | -1 | -1 |
-- Ease the StockBroker
-- http://www.codewars.com/kata/54de3257f565801d96001200/
module Codewars.G964.Stockbroker where
import Data.Char (isDigit, isSpace)
import Data.Either (partitionEithers)
import Data.List (elemIndices, partition, groupBy)
import Data.List.Split (split, dropDelims, dropBlanks, oneOf)
balanceSt... | gafiatulin/codewars | src/6 kyu/Stockbroker.hs | mit | 1,799 | 0 | 18 | 558 | 667 | 365 | 302 | 25 | 5 |
{-# LANGUAGE UndecidableInstances #-}
-- | Types relating to a nix binary cache.
module Nix.Cache.Types where
import qualified Data.Text as T
import Data.Attoparsec.ByteString.Lazy (Result(..), parse)
import Data.Aeson (ToJSON, FromJSON)
import Servant (MimeUnrender(..), OctetStream, Accept(..),
Proxy(... | adnelson/nix-binary-cache | src/Nix/Cache/Types.hs | mit | 2,122 | 0 | 14 | 388 | 481 | 269 | 212 | -1 | -1 |
-- Copyright (c) Microsoft. All rights reserved.
-- Licensed under the MIT license. See LICENSE file in the project root for full license information.
{-# LANGUAGE QuasiQuotes, OverloadedStrings, RecordWildCards #-}
module Language.Bond.Codegen.Cs.Comm_cs (
comm_interface_cs,
comm_proxy_cs,
comm_service_cs)
whe... | ant0nsc/bond | compiler/src/Language/Bond/Codegen/Cs/Comm_cs.hs | mit | 9,113 | 0 | 12 | 1,762 | 1,066 | 601 | 465 | 72 | 5 |
{-# LANGUAGE RecordWildCards, PatternSynonyms, BangPatterns, ViewPatterns #-}
module Main where
-----------------------------------------------------------------------------------
import Control.Monad
import System.Random
import Data.Vector as V (Vector(..), fromList)
import System.IO (hS... | cirquit/genetic-tic-tac-toe | app/Main.hs | mit | 12,213 | 0 | 19 | 3,900 | 2,551 | 1,429 | 1,122 | 124 | 14 |
module Bonlang.Lang.Numeric
( add
, subtract
, multiply
, divide
, modulo
, greaterThan
, greaterThanOrEquals
, lessThan
, lessThanOrEquals
) where
import Bonlang.Lang
import Prelude hiding (subtract)
binOp :: (a -> BonlangValue) -- A Const... | charlydagos/bonlang | src/Bonlang/Lang/Numeric.hs | mit | 1,268 | 0 | 11 | 386 | 323 | 191 | 132 | 33 | 2 |
module Parser(parseExpression, parseProgram) where
import Grammar
data NonTerminal =Program
|Stat
|Block
|ForDef
|Print
|NegExpr
|BoolExpr
|AddExpr
|MulExpr
|Operand deriving (Show)
--check whether the correct tokentype is at the head of the tokenstream and return the tok... | Oboema/FP-GO1 | Parser.hs | mit | 4,496 | 214 | 20 | 888 | 2,553 | 1,398 | 1,155 | 112 | 7 |
{-# LANGUAGE MultiParamTypeClasses, ScopedTypeVariables
, TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : ./CspCASL/Logic_CspCASL.hs
Description : CspCASL instance of type class logic
Copyright : (c) Markus Roggenbach, Till Mossakowski and Uni Bremen 2003
License : GPLv2 or higher, see LICEN... | spechub/Hets | CspCASL/Logic_CspCASL.hs | gpl-2.0 | 6,053 | 0 | 11 | 1,231 | 1,154 | 616 | 538 | 121 | 1 |
module MidiGen where
import Euterpea
right, wrong, delta, empty, x, y, xy, z, zx, zy, xyz :: Music Pitch
right = (line $ map ($en) [a 4, b 4, cs 5, d 5]) :+: e 5 hn
wrong = (line $ map ($en) [a 4, af 4, g 4, gf 4]) :+: f 4 hn
delta = line $ map ($en) [a 4, b 4, c 5, b 4, a 4, af 4, gf 4, af 4]
empty = a 2 en
x = b... | HMB-Entertainment/NZT | code/music/MidiGen.hs | gpl-2.0 | 404 | 0 | 10 | 129 | 289 | 156 | 133 | 14 | 1 |
-- Module Instances: basic functions and instances
-- Author: Abdul Rahim Nizamani, ITIT, Gothenburg University, Sweden
module Instances where
import Prelude hiding (catch)
import Control.Exception (catch, IOException)
import System.IO
import Data.Time
import Data.List
import Data.Function (on)
import Data.Maybe (isN... | arnizamani/aiw | Instances.hs | gpl-2.0 | 36,046 | 0 | 20 | 11,587 | 14,645 | 7,732 | 6,913 | 764 | 11 |
{-# LANGUAGE FlexibleContexts, NoMonomorphismRestriction, GADTs, ScopedTypeVariables, TemplateHaskell, StandaloneDeriving #-}
{-# OPTIONS -Wall #-}
import Tetrahedron
import Blender
import Data.Function
import Data.Vect.Double
import SimplexLabels
import SimplicialComplex
import System.Exit
main :: IO ExitCode
mai... | DanielSchuessler/hstri | bin/labelsTest.hs | gpl-3.0 | 683 | 2 | 12 | 162 | 174 | 95 | 79 | 18 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE LambdaCase #-}
-- |
-- Module : Aura.Packages.AUR
-- Copyright : (c) Colin Woodbury, 2012 - 2020
-- License : GPL3
-- Maintainer: Colin Woodbury <colin@fosskers.ca>
--
-- Module for connecting to the AUR servers, downloading PKGBUILDs and package
-- sources.
module Au... | aurapm/aura | aura/lib/Aura/Packages/AUR.hs | gpl-3.0 | 6,061 | 0 | 24 | 1,550 | 1,700 | 872 | 828 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.Gmail
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla Public... | brendanhay/gogol | gogol-gmail/gen/Network/Google/Gmail.hs | mpl-2.0 | 23,441 | 0 | 71 | 4,079 | 2,808 | 2,108 | 700 | 479 | 0 |
module Example.Eg02 (eg02) where
import Graphics.Radian
import ExampleUtils
eg02 :: IO Html
eg02 = do
d <- readJSON "vic2012aoo.json" #+
M.fromList [ ("doy", [label.="Day of year", units.="d"])
, ("month", [label.="Month"])
, ("tmp", [label.="Temperature", units.="°... | openbrainsrc/hRadian | examples/Example/Eg02.hs | mpl-2.0 | 712 | 10 | 14 | 183 | 271 | 146 | 125 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Cities/List.hs | mpl-2.0 | 6,297 | 0 | 22 | 1,625 | 1,118 | 640 | 478 | 154 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Threads/List.hs | mpl-2.0 | 7,020 | 0 | 23 | 1,811 | 1,133 | 656 | 477 | 161 | 1 |
import Tree
instance Functor Tree where
fmap f EmptyTree = EmptyTree
fmap f (Node a left right) = Node (f a) (fmap f left) (fmap f right)
{-
data Either a b = Left a | Right b
instance Functor (Either a) where
fmap f (Right x) = Right (f x)
fmap f (Left x) = Left x
-}
{-
instance Functor (Map k) where
fmap... | alexliew/learn_you_a_haskell | code/functors.hs | unlicense | 350 | 0 | 8 | 89 | 73 | 37 | 36 | 4 | 0 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QAbstractSpinBox_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:26
Warning : this file is machine generated... | keera-studios/hsQt | Qtc/Gui/QAbstractSpinBox_h.hs | bsd-2-clause | 66,949 | 0 | 18 | 13,785 | 21,070 | 10,147 | 10,923 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Src.Modules.BTCInfo (getBTCInfo
, getBTCProfit
, getBTCPrice
) where
import Network.HTTP
import Data.Aeson ((.:), (.:?), eitherDecode, FromJSON)
import Data.Aeson.Types
import Control.Applicative ((<$>), (<*>))
import... | Tehnix/HsIRCb | Src/Modules/BTCInfo.hs | bsd-2-clause | 2,332 | 0 | 15 | 666 | 729 | 383 | 346 | 55 | 3 |
-- | Support for the Obnam backup tool <http://obnam.org/>
module Propellor.Property.Obnam where
import Propellor.Base
import qualified Propellor.Property.Apt as Apt
import qualified Propellor.Property.Cron as Cron
import qualified Propellor.Property.Gpg as Gpg
import Data.List
type ObnamParam = String
-- | An obn... | ArchiveTeam/glowing-computing-machine | src/Propellor/Property/Obnam.hs | bsd-2-clause | 5,555 | 50 | 16 | 1,046 | 1,089 | 590 | 499 | -1 | -1 |
{-# LANGUAGE LambdaCase, NamedFieldPuns, RecordWildCards, TupleSections #-}
module Mote.Search
( transesInScope
, WrappedType(..)
, SyntacticFunc
-- DEBUG
, search
, showTrans
, traversables
, monads
, applicatives
) where
import Mote.GhcUtil (discardConstraints, splitPredTys)
imp... | imeckler/mote | Mote/Search.hs | bsd-3-clause | 12,741 | 0 | 18 | 3,401 | 3,748 | 1,971 | 1,777 | 239 | 14 |
module Algebra.Structures.Semigroup
( Semigroup(..)
) where
import Data.List
class Semigroup a where
(<+>) :: a -> a -> a
infixl 6 <+>
| Alex128/abstract-math | src/Algebra/Structures/Semigroup.hs | bsd-3-clause | 152 | 0 | 8 | 39 | 50 | 30 | 20 | 6 | 0 |
-- |
-- Module : Crypto.PubKey.RSA
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : Good
--
module Crypto.PubKey.RSA
( Error(..)
, PublicKey(..)
, PrivateKey(..)
, Blinder(..)
-- * Generation function
, generateWi... | tekul/cryptonite | Crypto/PubKey/RSA.hs | bsd-3-clause | 3,927 | 0 | 16 | 1,323 | 623 | 363 | 260 | 57 | 3 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module PeerTrader.P2PPicks.Account where
import Data.ByteString (ByteString)
import ... | WraithM/peertrader-backend | src/PeerTrader/P2PPicks/Account.hs | bsd-3-clause | 1,286 | 0 | 9 | 354 | 181 | 107 | 74 | 24 | 1 |
-- 参考:http://d.hatena.ne.jp/haxis_fx/20110726/1311657175
{-# LANGUAGE Arrows #-}
{-# LANGUAGE RankNTypes #-}
module
Main
where
import qualified Control.Arrow.Machine as P
import Control.Applicative ((<$>), (<*>))
import qualified Control.Category as Cat
import Control.Arrow
import Control.Monad.State
import Contr... | as-capabl/machinecell | example/counter/Main.hs | bsd-3-clause | 671 | 1 | 15 | 147 | 187 | 108 | 79 | 21 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.