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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
-----------------------------------------------------------------------------
-- Copyright 2012 Microsoft Corporation.
--
-- This is free software; you can redistribute it and/or modify it under the
-- terms of the Apache License, Version 2.0. A copy of the License can be
-- found in the file "license.txt" at the root ... | lpeterse/koka | src/Common/NameMap.hs | apache-2.0 | 1,018 | 0 | 11 | 177 | 125 | 73 | 52 | 12 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- |Contains the dictionary of localized messages for the program.
module Crawling.Hephaestos.I18N (
Msg(..),
MsgMessage(..),
msg,
msgs,
Lang,
) where
import Prelude hiding (FilePath)
import q... | jtapolczai/Hephaestos | Crawling/Hephaestos/I18N.hs | apache-2.0 | 952 | 0 | 7 | 168 | 202 | 123 | 79 | 24 | 1 |
t2s h m s = ( ( h * 60 ) + m ) * 60 + s
s2t t =
let s = t `mod` 60
m = (t `div` 60) `mod` 60
h = (t `div` 60) `div` 60
in
[h,m,s]
ans (h0:m0:s0:h1:m1:s1:_) =
let t0 = t2s h0 m0 s0
t1 = t2s h1 m1 s1
in
s2t (t1-t0)
main = do
c <- getContents
let i = map (map read) $ map words $ lin... | a143753/AOJ | 0532.hs | apache-2.0 | 406 | 0 | 14 | 145 | 275 | 143 | 132 | 15 | 1 |
module Emulator.CPU.Instructions.ARM.OpcodesSpec where
import Emulator.CPU
import Emulator.CPU.Instructions.ARM.Opcodes
import Emulator.Types
import Control.Lens
import Control.Monad.State.Class (MonadState(..))
import Control.Monad.Trans.State
import Data.Default.Class
import Test.Hspec
main :: IO ()
main = hspec s... | intolerable/GroupProject | test/Emulator/CPU/Instructions/ARM/OpcodesSpec.hs | bsd-2-clause | 10,197 | 0 | 22 | 3,061 | 3,298 | 1,615 | 1,683 | -1 | -1 |
module Database.VCache.Open
( openVCache
) where
import Control.Monad
import Control.Exception
import System.FileLock (FileLock)
import qualified System.FileLock as FileLock
import qualified System.EasyFile as EasyFile
import qualified System.IO.Error as IOE
import Foreign.Storable
import Foreign.Marshal.Alloc... | dmbarbour/haskell-vcache | hsrc_lib/Database/VCache/Open.hs | bsd-2-clause | 8,591 | 0 | 22 | 2,182 | 1,748 | 928 | 820 | 156 | 3 |
-- 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.Time.ES.Corpus
( corpus
, latentCorpus
) where
import ... | facebookincubator/duckling | Duckling/Time/ES/Corpus.hs | bsd-3-clause | 18,771 | 0 | 12 | 8,147 | 5,647 | 3,440 | 2,207 | 417 | 1 |
-- |
-- Module : $Header$
-- Copyright : (c) 2013-2014 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
{-# LANGUAGE RecordWildCards, CPP, Safe #-}
#if __GLASGOW_HASKELL__ >= 706
{-# LANGUAGE RecursiveDo #-}
#else
{-# LANGUAGE Do... | dylanmc/cryptol | src/Cryptol/TypeCheck/Monad.hs | bsd-3-clause | 23,200 | 0 | 21 | 6,651 | 6,099 | 3,166 | 2,933 | 382 | 7 |
module PatternRecogn where
| EsGeh/pattern-recognition | src/PatternRecogn.hs | bsd-3-clause | 27 | 0 | 2 | 3 | 4 | 3 | 1 | 1 | 0 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
--
-- Maybe.hs --- Optional Ivory values.
--
-- Copyright (C) 2013, Galois, Inc.
-- All Rights Reserved.
--
-- This software is released under the "... | Hodapp87/ivory | ivory-stdlib/src/Ivory/Stdlib/Maybe.hs | bsd-3-clause | 4,931 | 0 | 14 | 1,294 | 1,188 | 613 | 575 | 102 | 1 |
module Main ( main ) where
import qualified Data.Foldable as F
import Data.Map ( Map )
import qualified Data.Map as M
import Data.Maybe ( fromMaybe, mapMaybe )
import Data.Monoid
import Data.Set ( Set )
import qualified Data.Set as S
import System.Environment ( getArgs, withArgs )
import System.FilePath ( (<.>) )
impo... | travitch/foreign-inference | tests/ErrorHandlingTests.hs | bsd-3-clause | 2,456 | 0 | 15 | 601 | 651 | 353 | 298 | 58 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE... | krisajenkins/sigym4-geometry | Sigym4/Geometry/Types.hs | bsd-3-clause | 17,424 | 0 | 13 | 4,630 | 6,112 | 3,221 | 2,891 | 465 | 2 |
module Tester where
import LazyCrossCheck
main :: IO ()
main = test
test :: IO ()
test = lazyCrossCheck 5 "version" $
(version1 --> version2) `with` [ ints ==> [1,2,3] ]
version1 :: Maybe Int -> Int
version1 Nothing = 1
version1 (Just x) = x
version2 :: Maybe Int -> Int
version2 Nothing = 1
version2 (Just ... | TristanAllwood/lazyCrossCheck | Tester.hs | bsd-3-clause | 327 | 0 | 8 | 74 | 143 | 77 | 66 | 13 | 1 |
module Main where
import Foundation
import MougiIwasa (runMougiIwasa)
main :: IO ()
main = runMougiIwasa
| ttoe/diffeq-hs | src/Main.hs | bsd-3-clause | 108 | 0 | 6 | 18 | 30 | 18 | 12 | 5 | 1 |
{-# OPTIONS_GHC -Wno-missing-signatures #-}
{-# LANGUAGE ParallelListComp #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE TypeApplications #-}
module Cm.RGA where
import Prelude hiding (fail)
import Control.Monad.State.Strict (execStateT, runStateT)
import Data.Foldable (toList)
impo... | cblp/crdt | crdt-test/test/Cm/RGA.hs | bsd-3-clause | 5,380 | 9 | 16 | 1,631 | 1,570 | 841 | 729 | 107 | 1 |
module P008 where
import Arrays (window)
run :: IO ()
run = print result
where
input = "73167176531330624919225119674426574742355349194934\
\96983520312774506326239578318016984801869478851843\
\85861560789112949495459501737958331952853208805511\
\12540698747158523863050715693... | tyehle/euler-haskell | src/P008.hs | bsd-3-clause | 1,489 | 0 | 10 | 301 | 83 | 45 | 38 | 7 | 1 |
module Time (
Time,
fromDays,
fromHours,
fromMinutes,
fromSeconds,
toDays,
toHours,
toMinutes,
toSeconds,
offset,
multiply,
) where
daysToHours :: (RealFrac a) => a -> a
daysToHours = (24 *)
daysToMinutes :: (RealFrac a) => a -> a
daysToMinutes = hoursToMinutes . daysToHour... | siliconbrain/khaland | src/Time.hs | bsd-3-clause | 1,959 | 0 | 8 | 406 | 781 | 424 | 357 | 57 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Reproduce.StandaloneHaddock where
import Lens.Family.TH
data Foo = Foo { _bar :: Int }
makeLenses ''Foo
| Gabriel439/min-standalone | Reproduce/StandaloneHaddock.hs | bsd-3-clause | 148 | 0 | 8 | 24 | 36 | 21 | 15 | 5 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-missing-methods #-}
-- http://www.seas.upenn.edu/~cis194/spring13/hw/06-laziness.pdf
module Ch6
(
knapsackExample,
fib,
fibs1,
fibs2,
Stream (Empty, Stream),
streamToList,
streamRepeat,
streamMap,
streamFromSeed,
... | wangwangwar/cis194 | src/ch6/Ch6.hs | bsd-3-clause | 5,110 | 0 | 21 | 1,270 | 1,695 | 916 | 779 | 94 | 1 |
module Control.Applicative.Acme where
{- |
Application with the inverse lifting behavior of fmap.
Issue #1
-}
pamf :: Applicative f => f (a -> b) -> a -> f b
pamf f a = f <*> pure a
{- |
Operator version of pamf
Issue #1
-}
(>$<) :: Applicative f => f (a -> b) -> a -> f b
(>$<) = pamf
| marcosdumay/acme-kitchen-sink | src/Control/Applicative/Acme.hs | bsd-3-clause | 290 | 0 | 9 | 68 | 101 | 54 | 47 | 5 | 1 |
module IAU2000.Table53.Multipliers (multipliers) where
import Numeric.Units.Dimensional.Prelude
import qualified Prelude
import IAU2000.Table53.LunisolarMultipliers
import IAU2000.Table53.PlanetaryMultipliers
-- | Returns the series of fundamental argument multipliers. The multipliers
-- are on the order [m10,m11,m12... | bjornbm/astro-tables | IAU2000/Table53/Multipliers.hs | bsd-3-clause | 658 | 0 | 8 | 79 | 70 | 45 | 25 | 7 | 1 |
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable #-}
module Ration.Layout where
import Haste.JSON
import Haste.Serialize
import Data.Time.Calendar
import Data.Time.Format
import Data.Maybe
import Data.Typeable
import Control.Applicative
import Ration.Person
import Ration.Food
data FoodLayout = FoodLayout {
fo... | NCrashed/pohodnik-ration | src/Ration/Layout.hs | bsd-3-clause | 1,605 | 0 | 16 | 304 | 460 | 256 | 204 | 45 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE ConstraintKinds #-}
module Fragment.Pair.Rules.Type (
PairNormalizeConstraint
, pairNormalizeRules
) where
import Control.Lens (review, preview)
... | dalaing/type-systems | src/Fragment/Pair/Rules/Type.hs | bsd-3-clause | 910 | 0 | 10 | 205 | 216 | 115 | 101 | 20 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
module Protocol.ROC.PointTypes.PointType47 where
import Data.Binary.Get (getByteString,
getWord8,
getWord32le,
Get)
import Data.ByteString (ByteString)
import Data.Word (Word8,Word32)
imp... | plow-technologies/roc-translator | src/Protocol/ROC/PointTypes/PointType47.hs | bsd-3-clause | 16,325 | 0 | 9 | 5,766 | 1,803 | 992 | 811 | 404 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
-- |
-- Module : Data.Array.Accelerate.Trafo.Common
-- Copyright : [2012] Manuel M T Chakra... | robeverest/accelerate | Data/Array/Accelerate/Trafo/Common.hs | bsd-3-clause | 3,421 | 0 | 11 | 983 | 896 | 473 | 423 | 55 | 1 |
module Main ( main ) where
import qualified Types.BotTypes as BT
import Control.Monad (forever)
import Data.Aeson (decode)
import qualified Data.Map as Map
import qualified Data.Text.Lazy.Encoding as T
import qualified Data.Text.Lazy.IO as T
import System.Environment (getArgs)
import System.Exit (ExitCode(ExitSuccess,... | bus000/Dikunt | plugins/AsciiPicture/Main.hs | bsd-3-clause | 2,871 | 0 | 14 | 569 | 855 | 473 | 382 | 65 | 2 |
module Util.Safe
( runWithFiles
) where
import Pipes.Safe (runSafeT)
import Pipes.Safe.Prelude (withFile)
import Universum hiding (withFile)
runWithFile :: (MonadIO m, MonadMask m) => FilePath -> IOMode -> (Handle -> m r) -> m r
runWithFile fp mode f = runSafeT $ withFile fp mo... | input-output-hk/pos-haskell-prototype | tools/post-mortem/src/Util/Safe.hs | mit | 594 | 0 | 12 | 162 | 264 | 143 | 121 | 11 | 1 |
module Test where
import Test.QuickCheck (Property, (==>))
import Submission (celsiusToFarenheit, nCopies, numEvens, numManyEvens)
import qualified Submission as Soln (celsiusToFarenheit, nCopies, numEvens, numManyEvens)
prop_celsius0 :: Bool
prop_celsius0 =
celsiusToFarenheit 0 == 32
prop_celsius37 :: Bool
prop_... | benjaminvialle/Markus | db/data/autotest_files/haskell/script_files/Test.hs | mit | 1,745 | 0 | 11 | 277 | 395 | 216 | 179 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
module Options.Cabal where
import qualified Data.Set as S
import Control.Monad.M
import qualified Data.List as L
import Control.Monad
import qualified Distribution.PackageDescription.Parse as C
import qualified Distribution.Packa... | jfeltz/dash-haskell | src/Options/Cabal.hs | lgpl-3.0 | 3,255 | 0 | 17 | 748 | 821 | 435 | 386 | 64 | 2 |
module SwiftNav.SBP.Acquisition where
import Control.Monad
import Control.Monad.Loops
import Data.Binary
import Data.Binary.Get
import Data.Binary.IEEE754
import Data.Binary.Put
import Data.ByteString
import Data.ByteString.Lazy hiding ( ByteString )
import Data.Int
import Data.Word
msgAcqResult :: Word16
msgAcqResul... | hankaiwen/libsbp | haskell/src/SwiftNav/SBP/Acquisition.hs | lgpl-3.0 | 1,564 | 0 | 9 | 276 | 364 | 192 | 172 | -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="el-GR">
<title>TLS Debug | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref l... | veggiespam/zap-extensions | addOns/tlsdebug/src/main/javahelp/org/zaproxy/zap/extension/tlsdebug/resources/help_el_GR/helpset_el_GR.hs | apache-2.0 | 971 | 80 | 66 | 160 | 415 | 210 | 205 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
import Network.PushNotify.Mpns
import Text.XML
import Network
import Network.HTTP.Conduit
import qualified Data.HashSet as HS
main :: IO ()
main = send def
send :: MPNSmessage -> IO ()
send msg = withSocketsDo $ do
m <- newManagerMPNS def
res <- sendMPNS m... | MarcosPividori/GSoC-push-notify | test/testMPNS/exampleMPNS.hs | mit | 636 | 0 | 13 | 191 | 137 | 71 | 66 | 16 | 1 |
{-
Copyright (C) 2006-8 John MacFarlane <jgm@berkeley.edu>
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 program is dis... | khajavi/pandoc | src/Text/Pandoc/Writers/LaTeX.hs | gpl-2.0 | 15,592 | 0 | 25 | 4,461 | 4,395 | 2,224 | 2,171 | 291 | 16 |
module M1 (g) where
import M
f :: T -> Int
f (C1 x y) = x + y
g = f (C1 1 2)
l = k
| SAdams601/HaRe | old/testing/removeCon/M1.hs | bsd-3-clause | 89 | 0 | 7 | 34 | 62 | 34 | 28 | 6 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Window
-- Copyright : (c) 2011-15 Jose A. Ortega Ruiz
-- : (c) 2012 Jochen Keil
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Jose A. Ortega Ruiz <jao@gnu.org>
-- Stability : unstable... | dsalisbury/xmobar | src/Window.hs | bsd-3-clause | 7,751 | 0 | 14 | 2,158 | 3,281 | 1,685 | 1,596 | 167 | 14 |
module If where
-- what's a reasonable type to give to `if_` so that we can verify `bog` ?
{-@ type TT = {v: Bool | (Prop v)} @-}
{-@ type FF = {v: Bool | not (Prop v)} @-}
{-@ if_ :: b:Bool -> x:a -> y:a -> a @-}
if_ :: Bool -> a -> a -> a
if_ True x _ = x
if_ False _ y = y
{-@ bog :: Nat @-}
bog :: Int
b... | mightymoose/liquidhaskell | tests/todo/if.hs | bsd-3-clause | 527 | 0 | 10 | 200 | 148 | 85 | 63 | 13 | 2 |
{-# LANGUAGE MagicHash #-}
module Main where
import GHC.Exts
go :: () -> Int#
go () = 0#
main = print (lazy (I# (go $ ())))
| urbanslug/ghc | testsuite/tests/typecheck/should_run/T8739.hs | bsd-3-clause | 128 | 0 | 12 | 30 | 60 | 33 | 27 | 6 | 1 |
module Examples.Print where
import Types
import Statements
import BasicPrelude
import qualified Data.Map.Lazy as M
zero :: Value
zero = Value $ NumberConst (0 :: Int)
one :: Value
one = Value $ NumberConst (1 :: Int)
textStore :: M.Map Text Value
textStore = M.fromList [("n", Value $ SquanchyString ("25" :: Text))]
... | mlitchard/squanchy | src/Examples/Print.hs | isc | 936 | 0 | 11 | 164 | 398 | 219 | 179 | 25 | 1 |
-------------------------------------------------------------
--
-- 篩系
--
-- Module : MyModule.Sieve
-- Coding : Little Schemer
--
-------------------------------------------------------------
module MyModule.Sieve where
import qualified Data.Vector as V
import qualified Data.Vector.Mutable a... | little-schemer/MyModule | Sieve.hs | mit | 2,644 | 0 | 27 | 713 | 926 | 494 | 432 | 49 | 1 |
module Parser where
import Text.Parsec
import Text.Parsec.String
import Control.Monad (void)
import Arith
boolTrue :: Parser Term
boolTrue = do
void $ string "T" <* spaces
return TmTrue
boolFalse :: Parser Term
boolFalse = do
void $ string "F" <* spaces
return TmFalse
ifThen :: Parser Term
ifThen =... | kellino/TypeSystems | arith/Parser.hs | mit | 1,155 | 0 | 10 | 317 | 448 | 212 | 236 | 52 | 1 |
myLength :: [a] -> Int
myLength (x:xs) = 1 + myLength xs
myLength [] = 0
main = do
print $ myLength [123, 456, 789]
print $ myLength "Hello, world!"
| veeenu/ninetynine-haskell-problems | src/problem04.hs | mit | 162 | 0 | 9 | 43 | 79 | 40 | 39 | 6 | 1 |
module Data.Smashy.Types where
import Data.Vector.Storable.Mutable (IOVector)
import Data.Word (Word8, Word32, Word64)
import Data.Smashy.Constants
data PositionInfo = KeyFoundAt Word32
| KeyValueFoundAt Word32
| SameSizeDifferentValue Word32 Word32 Word3... | jahaynes/smashy | src/Data/Smashy/Types.hs | mit | 2,764 | 0 | 9 | 1,011 | 651 | 357 | 294 | 58 | 3 |
module Nanc.AST.ConstantExpression where
import Debug.Trace
import Data.Word
import Language.C
intValue :: CExpr -> Word64
intValue (CConst (CIntConst i _)) = fromIntegral $ getCInteger i
intValue expr = trace ("Unknown ConstantIntExpression: " ++ (show expr)) undefined | tinco/nanc | Nanc/AST/ConstantExpression.hs | mit | 274 | 0 | 9 | 38 | 86 | 46 | 40 | 7 | 1 |
#!/usr/bin/env stack
-- stack --install-ghc runghc --package turtle
{-# LANGUAGE OverloadedStrings #-}
import Turtle
main = do
let cmd = "false"
x <- shell cmd empty
case x of
ExitSuccess -> return ()
ExitFailure n -> die (cmd <> " failed with exit code: " <> repr n)
| JoshuaGross/haskell-learning-log | Code/turtle/shellcase.hs | mit | 311 | 0 | 13 | 91 | 77 | 37 | 40 | 8 | 2 |
module Comparisons.Fauxter where
import Control.Category hiding ((>>>), (<<<))
import Control.Applicative
import Prelude hiding ((.), id)
import Melchior.Control
import Melchior.Data.String
import Melchior.Dom
import Melchior.Dom.Events
import Melchior.Dom.Html
import Melchior.Dom.Selectors
import Melchior.Remote.Jso... | kjgorman/melchior | comparison/fauxter/resources/melchior/application.hs | mit | 2,417 | 0 | 18 | 504 | 895 | 468 | 427 | 45 | 1 |
--------------- letLinesiNiceNice -----------------------
main :: IO ()
main = do
line1 <- getLine
line2 <- getLine
let lines = line1 ++ " " ++ line2
putStrLn lines
| HaskellForCats/HaskellForCats | IO/letLinesiNiceNice.hs | mit | 192 | 0 | 11 | 54 | 54 | 25 | 29 | 6 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANG... | FPtje/elm-marshall | src/Elm/Marshall/Internal/Class.hs | mit | 6,900 | 0 | 14 | 1,714 | 2,227 | 1,149 | 1,078 | 153 | 0 |
data Bintree a = Leaf
| Branch a (Bintree a) (Bintree a)
deriving Show
instance Functor Bintree where
fmap _ Leaf = Leaf
fmap f (Branch x l r) = Branch (f x) (fmap f l) (fmap f r)
doubleValues :: Functor f => f Int -> f Int
doubleValues = fmap (*2)
sumUpAssociatedToValues :... | kdungs/coursework-functional-programming | 10/functors.hs | mit | 967 | 0 | 10 | 287 | 399 | 200 | 199 | 25 | 1 |
module Network.IRC.Client.Connection.TLSContext
( ciphers
, addTLSContext ) where
import Network.TLS
import Network.TLS.Extra
import qualified Crypto.Random.AESCtr as RA
import System.IO
import Data.Maybe
#if __GLASGOW_HASKELL__ <= 704
import Prelude hiding (catch)
#else
import Prelude
#endif
-- | set up cipher s... | cosmo0920/hs-IRC | Network/IRC/Client/Connection/TLSContext.hs | mit | 730 | 0 | 11 | 148 | 168 | 97 | 71 | 22 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module ParseEmailHtml where
import Control.Applicative
import qualified Data.ByteString as BS
import Data.Text.Encoding
import qualified Data.Text as T
-- import System.IO
import Data.Maybe
import Network.HTTP.Types.URI
import Text.HTML.TagSoup
parseEmailHtml
:: T.Text -> [BS.B... | habbler/immo | ParseEmailHtml.hs | mit | 1,314 | 0 | 18 | 411 | 376 | 195 | 181 | 30 | 4 |
{-# LANGUAGE OverloadedStrings #-}
module Net.WebServer where
import Web.Scotty
import Data.Monoid (mconcat)
main = scotty 3000 $ do
get "/:word" $ do
beam <- param "word"
html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"] | korczis/skull-haskell | src/Lib/Net/WebServer.hs | mit | 239 | 0 | 13 | 48 | 73 | 38 | 35 | 8 | 1 |
module System.SshdLint.CheckSpec (spec) where
import Test.Hspec
import System.SshdLint.Check
import qualified Data.Set as Set
import qualified Data.Map as Map
spec :: Spec
spec =
describe "normalizing and validating settings" $ do
describe "duplicatedValues" $ do
it "returns a list of keys found multi... | stackbuilders/sshd-lint | spec/System/SshdLint/CheckSpec.hs | mit | 2,190 | 0 | 18 | 556 | 478 | 265 | 213 | 43 | 1 |
{- |
Module : Sonnex-Generator
Description : Takes a rules file and compiles it into PHP code
Copyright : (c) Frédéric BISSON, 2016
License : GPL-3
Maintainer : zigazou@free.fr
Stability : experimental
Portability : POSIX
-}
module Main where
import Text.ParserCombinators.Parsec (parse)
import Parser.Pa... | Zigazou/Sonnex-Generator | src/Main.hs | gpl-2.0 | 731 | 0 | 11 | 159 | 116 | 61 | 55 | 11 | 2 |
--
-- hsExpand.hs
--
-- Copyright 2014 Mark Kolloros <uvthenfuv@gmail.com>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of t... | uvthenfuv/HsExpand | hsExpand.hs | gpl-2.0 | 9,237 | 0 | 17 | 1,937 | 2,381 | 1,225 | 1,156 | 119 | 3 |
{-# LANGUAGE FlexibleContexts #-}
module Error (
InterpreterError,
underflow, multipleAssign, lookupNonString, bindNonString, builtInError,
libraryError, unboundVariable, indexWithNoNumber, executeNonCode) where
import Object
import Control.Monad.Except
import Text.Parsec
data InterpreterError e a
= ... | kavigupta/N-programming-language | src/Error.hs | gpl-3.0 | 1,826 | 0 | 8 | 303 | 518 | 281 | 237 | 39 | 1 |
import System.Process
-- import GHC.Exts
-- import Data.Char
import Data.List
import System.FilePath
import Control.Applicative
-- import Control.Monad
-- import System.Directory
-- import System.Posix.Files
import System.Environment
import Control.Concurrent.Async
import Control.Concurrent.BoundedChan
import Control.C... | mjansen/document-repository-tool | merge-into-repository.hs | gpl-3.0 | 1,598 | 0 | 14 | 299 | 471 | 236 | 235 | 36 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
module Game.Regret.Internal (playouts) where
import Control.Monad (forM, forM_, replicateM_)... | davidspies/regret-solver | regret/src/Game/Regret/Internal.hs | gpl-3.0 | 5,599 | 0 | 21 | 1,209 | 2,194 | 1,112 | 1,082 | 117 | 3 |
module HeroesAndCowards.HACFrontend where
import Data.IORef
import qualified Graphics.Gloss as GLO
winSizeX :: Int
winSizeX = 800
winSizeY :: Int
winSizeY = 800
agentSize :: Float
agentSize = 1
display :: GLO.Display
display = (GLO.InWindow "Heroes & Cowards CONC (Gloss)" (winSizeX, winSizeY) (0, 0))
renderFrame ... | thalerjonathan/phd | public/ArtIterating/code/haskell/PureAgentsConc/src/HeroesAndCowards/HACFrontend.hs | gpl-3.0 | 980 | 0 | 12 | 193 | 318 | 174 | 144 | 24 | 1 |
module Foundation where
import Prelude
import Yesod
import Yesod.Static
--import Yesod.Auth
--import Yesod.Auth.BrowserId
import Yesod.Default.Config
import Yesod.Default.Util (addStaticContentExternal)
import Network.HTTP.Client.Conduit (Manager, HasHttpManager (getHttpManager))
import qualified Settings
import Setti... | c0c0n3/audidoza | Foundation.hs | gpl-3.0 | 4,930 | 0 | 15 | 1,025 | 651 | 367 | 284 | -1 | -1 |
-- this is adapted from ghc/syslib-hbc
module Parse(
Parser, (+.+), (..+), (+..), (|||), (>>>), (||!), (|!!), (.>),
into, lit, litp, many, many1, succeed, sepBy, count, sepBy1, testp, token, recover,
ParseResult, parse, sParse, simpleParse,
act, failP
) where
infixr 8 +.+ , ..+ , +..
infix 6 `act` , >>>, `... | jwaldmann/rx | src/Parse.hs | gpl-3.0 | 8,506 | 78 | 23 | 2,667 | 4,424 | 2,294 | 2,130 | 193 | 7 |
module Test.Benchmark.Function where
import Text.Printf
import Data.Time
import System.IO
import Data.Char
import System.Random
runData f = do
randomChar <- randomIO
if (last (show f)) == randomChar then return () else return ()
timeAction action = do
t1 <- getCurrentTime
g <- action
t2 <- getCurrentTime
... | xpika/Benchmark-Function | Test/Benchmark/Function.hs | gpl-3.0 | 577 | 0 | 12 | 108 | 203 | 99 | 104 | 20 | 2 |
module System.DevUtils.Base.Url.Auth (
Auth(..),
defaultAuth
) where
data Auth = Auth {
_user :: String,
_pass :: Maybe String
} deriving (Show, Read)
defaultAuth :: Auth
defaultAuth = Auth { _user = "unknown", _pass = Nothing }
| adarqui/DevUtils-Base | src/System/DevUtils/Base/Url/Auth.hs | gpl-3.0 | 235 | 0 | 9 | 43 | 80 | 50 | 30 | 9 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-file/gen/Network/Google/Resource/File/Projects/Locations/List.hs | mpl-2.0 | 6,662 | 0 | 20 | 1,558 | 1,043 | 602 | 441 | 144 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.DFAReportin... | brendanhay/gogol | gogol-dfareporting/gen/Network/Google/DFAReporting/Types/Product.hs | mpl-2.0 | 852,224 | 0 | 75 | 205,679 | 157,411 | 90,579 | 66,832 | 17,661 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/NotificationChannelDescriptors/Get.hs | mpl-2.0 | 5,872 | 0 | 15 | 1,244 | 705 | 414 | 291 | 111 | 1 |
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE FlexibleContexts #-}
module X where
import Parser (IniAsNestedMap,
parseIniToNestedMap)
import Tortellini
--------------------------------------------------------------------------... | haroldcarr/learn-haskell-coq-ml-etc | haskell/topic/generics/ghc-generics/2017-12-justin-woo-two-tortellini/src/X.hs | unlicense | 1,309 | 0 | 11 | 342 | 285 | 149 | 136 | 30 | 3 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Cloud.Haskzure.Resources.Networking where
import qualified Data.ByteString.Char8 as BS
import GHC.Generics (Generic)
import Cloud.Haskzure.Core.Utils ()
impo... | aznashwan/haskzure | Cloud/Haskzure/Resources/Networking.hs | apache-2.0 | 1,686 | 0 | 10 | 427 | 342 | 197 | 145 | 38 | 0 |
import Sprockell
import Data.Char
{-|
This program demonstrates the character IO system.
We ask the users name.
And print a custom greeting.
-}
prog :: [Instruction]
prog =
writeString "What is your name? " ++
[ Load (ImmValue $ ord '\n') regE -- ASCII code newline in regE for later reference
... | wouwouwou/2017_module_8 | src/haskell/PP-project-2017/lib/sprockell-2017/src/DemoCharIO.hs | apache-2.0 | 2,495 | 0 | 15 | 637 | 505 | 272 | 233 | 40 | 2 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
import Graphics.GL.Pal
import Graphics.GL.Freetype
import Graphics.GL.TextBuffer
import Graphics.VR.Pal
import SDL hiding (get)
import Control.Monad.State
import Control.Monad.Read... | lukexi/text-gl | test/TestScroll.hs | bsd-2-clause | 4,050 | 0 | 16 | 1,009 | 942 | 467 | 475 | 78 | 1 |
module QACG.CircGen.Mult.SimpleMult
( simpleMult
,mkSimpleMult
) where
import QACG.CircUtils.Circuit
import QACG.CircUtils.CircuitState
import Control.Monad.State
import QACG.CircGen.Add.SimpleRipple
import QACG.CircGen.Bit.Toffoli
import Control.Exception(assert)
-- | Generates a simple addition based multiplica... | aparent/qacg | src/QACG/CircGen/Mult/SimpleMult.hs | bsd-3-clause | 1,362 | 0 | 16 | 434 | 545 | 279 | 266 | 29 | 4 |
{-# LANGUAGE PatternGuards, ViewPatterns, NamedFieldPuns #-}
module Converter
( convert
) where
import Parse
import Smart (TaskChan, restart, interp)
import Result (hasError)
import Html
import Lang
import Args
import Hash
import qualified Language.Haskell.Exts.Pretty as HPty
import qualified Language.Haske... | divipp/ActiveHs | Converter.hs | bsd-3-clause | 9,683 | 0 | 18 | 3,116 | 3,070 | 1,598 | 1,472 | 199 | 15 |
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Stack.Dot (dot
,listDependencies
,DotOpts(..)
,resolveDependencies
,printGraph
,pruneGraph
) where
import ... | phadej/stack | src/Stack/Dot.hs | bsd-3-clause | 11,387 | 0 | 21 | 3,410 | 2,959 | 1,550 | 1,409 | 211 | 3 |
import Prelude hiding (return)
import Data.Char
type Parser a = String -> [(a, String)]
-- This parser consumes the first char and returns a sigleton list
item :: Parser Char
item = \input -> case input of
[] -> []
(x:xs) -> [(x, xs)]
-- This parser always fails
failure :: Parse... | guhemama/moocs | FP101x.DelftX.edX/Week4/Parser.hs | bsd-3-clause | 685 | 2 | 10 | 182 | 201 | 111 | 90 | 13 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving, TupleSections #-}
module MatchEval (match) where
import Data.Accessor
import Data.Accessor.Basic
import qualified Data.Map as M
import Control.Applicative
import Control.Monad
import Control.Monad.Error
import Control.Monad.Reader
import Syscall
import Match
import MatchFun... | ratatosk/traceblade | MatchEval.hs | bsd-3-clause | 2,736 | 0 | 12 | 545 | 1,075 | 539 | 536 | 69 | 2 |
---------------------------------------------------------------------------------
-- |
-- Module : Data.SBV.Bridge.Z3
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : erkokl@gmail.com
-- Stability : experimental
--
-- Interface to the Z3 SMT solver. Import this module if you want to ... | dylanmc/cryptol | sbv/Data/SBV/Bridge/Z3.hs | bsd-3-clause | 4,925 | 0 | 14 | 1,362 | 675 | 384 | 291 | 56 | 1 |
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE RecordWildCards #-}
module Write.TypeConverter
( TypeConverter
, TypeEnv
, TypeInfo(..)
, cTypeToHsTypeString
, cTypeToHsType
, cTypeDependencyNames
, cTypeInfo
, buildTypeEnvFromSpec
, buildTypeEnvFromSpecGraph
, getTypeI... | oldmanmike/vulkan | generate/src/Write/TypeConverter.hs | bsd-3-clause | 13,839 | 0 | 16 | 4,512 | 3,376 | 1,716 | 1,660 | 295 | 13 |
module Weapons (Weapon(..), genWeapon, getWeapon, weaponsIn) where
import GameModes
import RpsElements
import System.Random
data Weapon = Rock
| Paper
| Scissors
| Fire
| Sponge
| Air
| Water
| Human
... | joelchelliah/rock-paper-scissors-hs | src/Weapons.hs | bsd-3-clause | 2,945 | 0 | 12 | 923 | 1,099 | 586 | 513 | 88 | 2 |
{-# LANGUAGE TemplateHaskell, TypeFamilies, FlexibleInstances, CPP #-}
{-# OPTIONS_GHC -funbox-strict-fields #-}
#ifdef VACUUM
import System.Vacuum.Cairo
#endif
import UnboxedPair
$(definePair [t| Pair Int Int |])
-- unfortunately doesn't unpack, due to <http://hackage.haskell.org/trac/ghc/ticket/3990>
-- $(definePai... | reinerp/th-unboxing | examples/Main.hs | bsd-3-clause | 688 | 1 | 9 | 105 | 95 | 55 | 40 | 7 | 1 |
{-# LANGUAGE RecordWildCards, ScopedTypeVariables, BangPatterns, CPP #-}
--
-- | Interacting with the interpreter, whether it is running on an
-- external process or in the current process.
--
module GHCi
( -- * High-level interface to the interpreter
evalStmt, EvalStatus_(..), EvalStatus, EvalResult(..), EvalEx... | mettekou/ghc | compiler/ghci/GHCi.hs | bsd-3-clause | 21,638 | 0 | 23 | 4,373 | 4,486 | 2,284 | 2,202 | 347 | 5 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Happstack.StaticRouting.Test where
import Happstack.Server
( FilterMonad, Response, ServerPartT, nullConf, simpleHTTP
)
import qualified Data.ListTrie.Map as Trie
import qualified Happstack.Server as ... | scrive/happstack-static-routing | src/Happstack/StaticRouting/Test.hs | bsd-3-clause | 2,281 | 0 | 16 | 778 | 908 | 444 | 464 | 54 | 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. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
module Duckling.T... | rfranek/duckling | tests/Duckling/Temperature/FR/Tests.hs | bsd-3-clause | 612 | 0 | 9 | 96 | 80 | 51 | 29 | 11 | 1 |
{-# LANGUAGE FlexibleContexts #-}
-- | Type unification.
module Compiler.TypeChecking.Unify
(
-- * Unification
unify
)
where
import Control.Monad.Except
import qualified Data.Set as Set
import Compiler.AST
import Compiler.TypeChecking.Error
import Compiler.TypeChecking.Free
import Compiler.TypeC... | vituscze/norri | src/Compiler/TypeChecking/Unify.hs | bsd-3-clause | 1,469 | 0 | 10 | 342 | 438 | 224 | 214 | 28 | 1 |
{-# LANGUAGE QuasiQuotes #-}
module Main where
import Control.Monad.Cont
import System.Environment (getArgs)
import Atomo
import Atomo.Core
import Atomo.Load
import Atomo.Parser
import Atomo.PrettyVM
import Atomo.Run
import qualified Atomo.Kernel as Kernel
main :: IO ()
main = do
args <- getArgs
case args ... | Mathnerd314/atomo | src/Main.hs | bsd-3-clause | 1,677 | 7 | 17 | 562 | 527 | 263 | 264 | 55 | 8 |
module Main where
import System.Environment
import Bomcheck.Bomcheck( bomcheck )
-- Todo loop this if requested
main :: IO ()
main = do
args <- getArgs
putStrLn bomcheck
-- Tell bomcheck lib the location we want as well as what we want
-- Go though args here, let the lib just return the data
-- Pretty pri... | ShadowCreator/bomcheck | src/Main.hs | bsd-3-clause | 344 | 0 | 7 | 74 | 51 | 29 | 22 | 7 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.SGIX.Framezoom
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
-... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/SGIX/Framezoom.hs | bsd-3-clause | 779 | 0 | 4 | 94 | 55 | 44 | 11 | 7 | 0 |
--
-- Unshipping Docker
--
-- Copyright © 2014 Operational Dynamics Consulting, 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.... | afcowie/detour | lib/Linux/Containers.hs | bsd-3-clause | 400 | 0 | 4 | 76 | 28 | 23 | 5 | 3 | 0 |
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
{-# LANGUAGE FlexibleContexts #-} --for swapFront
module Data.Shapely.Category
where
-- ========================================================================
-- private module, copy-pasted from Edward A. Kmett's "categories" package,
-- version 1.0.... | jberryman/shapely-data | src/Data/Shapely/Category.hs | bsd-3-clause | 2,809 | 0 | 11 | 624 | 1,204 | 641 | 563 | -1 | -1 |
module Lc.Arbitrary where
import qualified Data.Map as Map
import qualified Data.Set as Set
import Language.Lc
import Test.QuickCheck
--------------------------------------------------------------
-- QuickCheck - Arbitratry
--------------------------------------------------------------
-- use some globals otherw... | d-dorazio/lc | test/Lc/Arbitrary.hs | bsd-3-clause | 1,157 | 0 | 13 | 219 | 355 | 185 | 170 | 27 | 1 |
{-# LANGUAGE CPP, DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.Haskell.Exts.Fixity
-- Copyright : (c) Niklas Broberg 2009
-- License : BSD-style (see the file LICENSE.txt)
--
-- Maintainer : Niklas Broberg, d00nibro@chalme... | rodrigogribeiro/mptc | src/Language/Haskell/Exts/Fixity.hs | bsd-3-clause | 16,996 | 0 | 22 | 5,176 | 5,724 | 2,814 | 2,910 | 276 | 38 |
-- Countdown example from chapter 11 of Programming in Haskell,
-- Graham Hutton, Cambridge University Press, 2007.
module Countdown where
import System.CPUTime
import Numeric
import System.IO
-- Expressions
-----------
data Op = Add | Sub | Mul | Div
valid :... | ltfschoen/HelloHaskell | src/Chapter2/Section2/Countdown.hs | mit | 13,214 | 0 | 19 | 6,336 | 2,388 | 1,243 | 1,145 | 142 | 3 |
--
--
--
-----------------
-- Exercise 6.30.
-----------------
--
--
--
module E'6'30 where
import B'C'6
(
Position
, Image
)
changePosition :: Image -> Position -> Image
changePosition ( picture , ( oldX , oldY ) ) ( newX , newY )
= ( picture , ( newX , newY ) )
| pascal-knodel/haskell-craft | _/links/E'6'30.hs | mit | 288 | 0 | 7 | 77 | 77 | 51 | 26 | 8 | 1 |
--
--
--
----------------
-- Exercise 9.1.
----------------
--
--
--
module E'9''1 where
import Prelude hiding ( or )
fac :: Integer -> Integer
fac n
| n == 0 = 1
| otherwise = n * fac ( n - 1 )
-- 4 > 2 || ( fac ( -1 ) == 17 )
-- ~> True || ( fac ( -1 ) == 17 )
-- ~> True
-- Note... | pascal-knodel/haskell-craft | _/links/E'9''1.hs | mit | 954 | 0 | 9 | 294 | 121 | 75 | 46 | 9 | 1 |
module Simple where
main = 2 + 4
| roberth/uu-helium | docs/wiki-material/Simple1.hs | gpl-3.0 | 35 | 0 | 5 | 10 | 13 | 8 | 5 | 2 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Network.HTTP
import Data.Aeson
import Control.Applicative
import Data.ByteString.Lazy (pack)
import Data.ByteString.Internal
import Data.Map.Strict (Map, fromList, (!), adjust)
data Light = Light
{ state :: LightState
} deriving Show
instance FromJSON Light where
par... | 3amice/PhueControl | phue.hs | bsd-3-clause | 1,714 | 0 | 19 | 565 | 454 | 248 | 206 | 44 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
-- safe inferred, with no pkg trust reqs
module Check08_A where
a :: a -> a
a n = n
| sdiehl/ghc | testsuite/tests/safeHaskell/check/Check08_A.hs | bsd-3-clause | 122 | 0 | 5 | 27 | 23 | 14 | 9 | 4 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Haskus.System.Linux.Graphics.Entities
( -- * IDs
EntityID (..)
, FrameSourceID
, ControllerID
, ConnectorID
, EncoderID
, PlaneID
-- * Connector
, Connector (..)
, Connection (..)
, ConnectedDevice (..)
... | hsyl20/ViperVM | haskus-system/src/lib/Haskus/System/Linux/Graphics/Entities.hs | bsd-3-clause | 6,944 | 0 | 9 | 1,624 | 885 | 593 | 292 | 114 | 0 |
module Cabal2Nix.Name ( toNixName, toNixName', libNixName, buildToolNixName ) where
import Data.Char
-- | Map Cabal names to Nix attribute names.
toNixName :: String -> String
toNixName = id
-- | The old mapping function. This may be useful to generate a compatibility layer.
toNixName' :: String -> String
toNixName'... | jb55/cabal2nix | src/Cabal2Nix/Name.hs | bsd-3-clause | 10,443 | 0 | 10 | 4,533 | 1,753 | 827 | 926 | 152 | 4 |
-- Copyright 2013 Thomas Szczarkowski
{-# LANGUAGE ScopedTypeVariables #-}
module OpenSSL.Random(cryptoRandomBytes) where
import qualified Data.ByteString as ByteString
import Foreign
import Foreign.C.Types
import Foreign.C.String
import Foreign.Marshal.Alloc
import Control.Monad
import Control.Exception
import Ope... | tom-szczarkowski/matasano-crypto-puzzles-solutions | set6/OpenSSL/Random.hs | mit | 799 | 0 | 12 | 160 | 214 | 113 | 101 | 19 | 2 |
{- |
Module : $Header$
Description : resolve type constraints
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
constraint resolution
-}
module HasCASL.Constra... | keithodulaigh/Hets | HasCASL/Constrain.hs | gpl-2.0 | 17,895 | 242 | 22 | 6,852 | 6,091 | 3,228 | 2,863 | 387 | 20 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric #-}
module Domen where
import GHC.Generics
import Data.Aeson (FromJSON, ToJSON)
data PhotoStruct = PhotoStruct {
userName :: String,
image_src :: String,
dat... | OurPrInstH/InstH | src/Domen.hs | bsd-3-clause | 694 | 8 | 8 | 264 | 142 | 82 | 60 | 20 | 0 |
{-# LANGUAGE CPP #-}
-- | Fortune.hs, quote the fortune file
module Plugin.Quote.Fortune where
import Config
import Lambdabot.Util (stdGetRandItem, split)
import qualified Lambdabot.Util hiding (stdGetRandItem)
import Data.List
import Control.Monad
import System.Directory
import qualified Control.OldException as C (... | dmalikov/lambdabot | Plugin/Quote/Fortune.hs | mit | 2,055 | 0 | 15 | 392 | 402 | 222 | 180 | 31 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.