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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{- lat - tool to track alerts from LWN.
- Copyright (C) 2010 Magnus Therning
-
- 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, version 3 of the License.
-
- This program is distributed i... | magthe/lat | src/Types.hs | gpl-3.0 | 2,806 | 0 | 13 | 737 | 525 | 282 | 243 | 50 | 1 |
module Data.Range where
-- | VHDL Range type
data RangeT = RangeT {
rbegin :: Int
, rend :: Int
} | UnconstrT
| NullRangeT
deriving(Show)
inner_of NullRangeT _ = True
inner_of _ UnconstrT = True
inner_of UnconstrT _ = False
inner_of _ NullRangeT = False
inner_of (RangeT b1 e1) (R... | grwlf/vsim | src_r/Data/Range.hs | gpl-3.0 | 795 | 0 | 8 | 208 | 315 | 166 | 149 | 23 | 1 |
{-Key/Value pairs -}
module KV where
import Data.List (intercalate)
import Data.List.Split (splitOn)
type Pair = (String, String)
data KVMap = KVMap [Pair]
toJSON :: KVMap -> String
toJSON (KVMap ps) = "{" ++ (intercalate ","
(map (\(k,v) -> k ++ ": '" ++ v ++"'") ps)) ++"}"
toCoo... | CharlesRandles/cryptoChallenge | kv.hs | gpl-3.0 | 900 | 0 | 15 | 202 | 407 | 222 | 185 | 24 | 1 |
module Lecture5' (solveAndShow', genProblem', blockConstrnt) where
import Data.List
import System.Random
import Lecture5NRC (blocksNRC)
-- | Refactored code
type Position = (Row,Column)
type Constrnt = [[Position]]
rowConstrnt, columnConstrnt, blockConstrnt, nrcConstrnt, allConstrnt :: Constrnt
rowConstrnt = [[(r,c)... | vdweegen/UvA-Software_Testing | Lab5/Final/Lecture5'.hs | gpl-3.0 | 10,707 | 0 | 16 | 3,025 | 5,643 | 3,193 | 2,450 | 272 | 5 |
module Hython.BuiltinTypes.Dict
where
import qualified Data.IntMap as IntMap
import Hython.Ref
import Hython.Types
dictNew :: MonadInterpreter m => m Object
dictNew = do
r <- newRef IntMap.empty
return $ Dict r
dictClear :: MonadInterpreter m => DictRef -> m Object
dictClear ref = do
writeRef ref IntMap... | mattgreen/hython | src/Hython/BuiltinTypes/Dict.hs | gpl-3.0 | 1,554 | 0 | 12 | 405 | 571 | 269 | 302 | 44 | 2 |
-- -*-haskell-*-
-- Vision (for the Voice): an XMMS2 client.
--
-- Author: Oleg Belozeorov
-- Created: 12 Jul. 2010
--
-- Copyright (C) 2010, 2011 Oleg Belozeorov
--
-- 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... | upwawet/vision | src/Properties/Impex.hs | gpl-3.0 | 6,871 | 0 | 22 | 1,623 | 1,975 | 1,018 | 957 | -1 | -1 |
{-# LANGUAGE UnicodeSyntax #-}
{-# LANGUAGE OverloadedStrings #-}
module Game.Osu.OszLoader.OsuParser.EditorSpec (spec) where
import Data.Attoparsec.Text
import Data.Text
import Game.Osu.OszLoader.OsuParser.Editor
import Game.Osu.OszLoader.Types
import Test.Hspec
import Test.QuickCheck
editorSample ∷ Text
editorSam... | Fuuzetsu/osz-loader | test/Game/Osu/OszLoader/OsuParser/EditorSpec.hs | gpl-3.0 | 1,701 | 0 | 21 | 433 | 453 | 242 | 211 | 42 | 1 |
{-# LANGUAGE FlexibleInstances #-}
-- The purpose of ShowADL is to print things in Ampersand source format.
-- Rule: The semantics of each fSpec produced by the compiler is identical to the semantics of (parse (showADL fSpec)).
-- Rule: The standard show is used only for simple error messages during testing.
-... | guoy34/ampersand | src/Database/Design/Ampersand/FSpec/ShowADL.hs | gpl-3.0 | 25,493 | 1 | 26 | 7,385 | 8,881 | 4,466 | 4,415 | 417 | 18 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-servicemanagement/gen/Network/Google/Resource/ServiceManagement/Services/List.hs | mpl-2.0 | 7,399 | 0 | 21 | 1,835 | 1,136 | 658 | 478 | 154 | 1 |
{-# LANGUAGE OverloadedStrings, DoAndIfThenElse #-}
module Codec.Chunky.Internal
( Chunk (..)
, readChunks
, putChunks
, expectStr
, expectStrLn
, putStr
, putStrLn
, readStr
, readStrLn
, putStrPadded
, putStrLnPadded
, readStrPadded
, readStrLnPadded
)
where
import Prelude hiding (putSt... | phile314/chunky | src/lib/Codec/Chunky/Internal.hs | lgpl-3.0 | 3,679 | 0 | 15 | 867 | 1,310 | 655 | 655 | 116 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Haskoin.Crypto.Mnemonic.Units (tests) where
import Data.ByteString (ByteString)
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as C
import Data.Either (fromRigh... | xenog/haskoin | test/bitcoin/Network/Haskoin/Crypto/Mnemonic/Units.hs | unlicense | 13,955 | 0 | 16 | 2,814 | 1,012 | 583 | 429 | 162 | 2 |
module Coins.A265415Spec (main, spec) where
import Test.Hspec
import Coins.A265415 (a265415)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A265415" $
it "correctly computes the first 10 elements" $
take 10 (map a265415 [1..]) `shouldBe` expectedValue where
expectedValue = [1,10,21,31,37,10... | peterokagey/haskellOEIS | test/Coins/A265415Spec.hs | apache-2.0 | 339 | 0 | 10 | 59 | 130 | 75 | 55 | 10 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TemplateHaskell #-}
module Worker where
import Control.Concurrent (threadDelay)
import Control.Applicative
import Control.Monad
import Control.Monad.Trans.Except
import Control.Distributed.Process
import Control.Distributed.Process.Clos... | SKA-ScienceDataProcessor/RC | MS1/distributed-dot-product/Worker.hs | apache-2.0 | 2,242 | 0 | 16 | 526 | 660 | 342 | 318 | 51 | 3 |
{-# LANGUAGE TemplateHaskell, QuasiQuotes, OverloadedStrings #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
module Handler.Root where
import Model.Accessor
import Foundation
import Control.Applicative
import Data.Text (Text, pack, unpack)
import Text.Blaze
import qualified Data.Text as T
-- This is a handler funct... | masaedw/Yiki | Handler/Root.hs | bsd-2-clause | 6,292 | 0 | 18 | 1,383 | 993 | 525 | 468 | 87 | 2 |
module P011 where
import Arrays
run :: IO ()
run = print . maximum . map product $ groups
where
groups = concatMap (($ grid) . ($ 4)) [verticalWindow, horizontalWindow, forwardDiagWindow, backwardDiagWindow]
grid :: [[Integer]]
grid = [[08, 02, 22, 97, 38, 15, 00, 40, 00, 75, 04, 05, 07, 78, 52, 12, 50, 77, 91... | tyehle/euler-haskell | src/P011.hs | bsd-3-clause | 2,018 | 0 | 10 | 579 | 1,352 | 894 | 458 | 26 | 1 |
module GameData.Animation where
import qualified Data.List as L
import Gamgine.Math.Vect as V
data Animation = Animation {
currentPosition :: V.Vect,
currentVelocity :: V.Vect,
velocity :: Double,
path :: [V.Vect],
bidirectional :: Bool,
movingToPathIdx :: Int,
finished ... | dan-t/layers | src/GameData/Animation.hs | bsd-3-clause | 2,114 | 0 | 17 | 594 | 647 | 360 | 287 | 42 | 4 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-missing-fields #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-------------------... | futufeld/eclogues | eclogues-impl/gen-hs/AuroraSchedulerManager_Client.hs | bsd-3-clause | 13,610 | 0 | 12 | 1,836 | 4,134 | 2,051 | 2,083 | 273 | 1 |
module Main where
import Lib
main :: IO ()
main = tokenizerMain
| NogikuchiKBYS/hsit-sandbox | app/Tokenizer.hs | bsd-3-clause | 67 | 0 | 6 | 15 | 22 | 13 | 9 | 4 | 1 |
{-# LANGUAGE TypeOperators, ScopedTypeVariables #-}
-- |
-- Module : Data.Array.Accelerate.Prelude
-- Copyright : [2010..2011] Manuel M T Chakravarty, Gabriele Keller, Ben Lever
-- [2009..2012] Manuel M T Chakravarty, Gabriele Keller, Trevor L. McDonell
-- License : BSD3
--
-- Maintainer : Man... | robeverest/accelerate | Data/Array/Accelerate/Prelude.hs | bsd-3-clause | 26,223 | 2 | 18 | 7,739 | 7,832 | 4,125 | 3,707 | 390 | 1 |
module Onedrive.Session (Session, newSessionWithToken, newSessionWithRenewableToken, getAccessToken, tryRenewToken) where
import Control.Concurrent.STM (atomically)
import Control.Concurrent.STM.TVar (TVar, newTVar, readTVar, writeTVar)
import Data.Text (Text)
data Session
= SessionWithToken Text
| SessionWithR... | asvyazin/hs-onedrive | src/Onedrive/Session.hs | bsd-3-clause | 1,214 | 0 | 9 | 155 | 307 | 157 | 150 | 26 | 1 |
-- Enter your code here. Read input from STDIN. Print output to STDOUT
is_function :: [(Int, Int)] -> Bool
is_function pairs = no_dups (map fst pairs)
no_dups :: Eq a => [a] -> Bool
no_dups [] = True
no_dups (x:xs) = (not (x `elem` xs)) && (no_dups xs)
swap f = \y -> \x -> f x y
for = swap map
list2pair :: [a] ... | capn-freako/Haskell_Misc | HackerRank/function_test.hs | bsd-3-clause | 715 | 1 | 16 | 199 | 312 | 161 | 151 | 19 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Seeds (users) where
import Data.Time
import UserService.Types
user1 = User "burt" "bobby" email theirAddress "218-222-5555" theirDob
where
email = "derp@gmail.com"
theirDob = fromGregorian 2012 1 1
theirAddress = Address "Sttreet" "LA" "CA" "#1" "90210"
user2 =... | tippenein/user_clone | src/Seeds.hs | bsd-3-clause | 565 | 0 | 7 | 105 | 137 | 74 | 63 | 13 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude, CApiFFI #-}
-----------------------------------------------------------------------------
-- |
-- Module : System.IO
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maint... | sdiehl/ghc | libraries/base/System/IO.hs | bsd-3-clause | 22,275 | 0 | 26 | 5,582 | 2,338 | 1,367 | 971 | 247 | 5 |
-- A little benchmark adapted from attoparsec
module Main where
import Control.Monad
-- import qualified Data.ByteString.Lazy as L
import System.Environment
import Data.IterIO
import Data.IterIO.Parse
iterio :: IO ()
iterio = do
args <- getArgs
forM_ args $ \arg -> do
result <- enumFile' arg |$ p
... | scslab/iterIO | tests/bench.hs | bsd-3-clause | 595 | 0 | 13 | 158 | 213 | 107 | 106 | 18 | 1 |
-----------------------------------------------------------------------------
-- TIMain: Type Inference Algorithm
--
-- Part of `Typing Haskell in Haskell', version of November 23, 2000
-- Copyright (c) Mark P Jones and the Oregon Graduate Institute
-- of Science and Technology, 1999-2000
--
-- This program is distrib... | yu-i9/thih | src/Thih/TI/TIMain.hs | bsd-3-clause | 9,988 | 0 | 16 | 3,836 | 3,489 | 1,841 | 1,648 | 183 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
module Diff2Html where
import Data.Foldable
import Data.Monoid
import qualified Data.Text as T
import qualified Data.Algorithm.Patience as P
import Lucid
import Chunk
import Diff
import Utils (breakWith)
chunksToTable :: [Chunk] -> Html ()
chunksT... | bgamari/diff-utils | src/Diff2Html.hs | bsd-3-clause | 2,790 | 0 | 15 | 791 | 1,367 | 692 | 675 | 67 | 9 |
module GalFld.GalFld
( module X
, factorP
, extendFFBy
) where
import GalFld.Core as X
import GalFld.Algorithmen as X
-- |Nimmt einen Grad `d` und ein Element `e` eines Endlichen Körpers und bildet
-- über den Endlichen Körper, dass das Element enthält eine Erweiterun von Grad
-- `d`.
-- Das übergebene Eleme... | maximilianhuber/softwareProjekt | src/GalFld/GalFld.hs | bsd-3-clause | 838 | 0 | 11 | 172 | 229 | 126 | 103 | 12 | 1 |
-- |
-- Module : $Header$
-- Copyright : (c) 2013-2014 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
{-# LANGUAGE Safe #-}
{-# LANGUAGE PatternGuards #-}
module Cryptol.Eval (
moduleEnv
, EvalEnv()
, emptyEnv
, eval... | dylanmc/cryptol | src/Cryptol/Eval.hs | bsd-3-clause | 6,625 | 0 | 17 | 1,769 | 1,903 | 958 | 945 | 119 | 19 |
module Reporting.Annotation where
import Prelude hiding (map)
import qualified Reporting.Region as R
import qualified Data.String as String
-- ANNOTATION
data Located a =
A R.Region a
deriving (Eq)
instance (Show a) => Show (Located a) where
showsPrec p (A r a) = showParen (p > 10) $
showStrin... | rgrempel/frelm.org | vendor/elm-format/parser/src/Reporting/Annotation.hs | mit | 1,260 | 0 | 13 | 365 | 540 | 276 | 264 | 36 | 1 |
{-# LANGUAGE StandaloneDeriving #-}
module TreeDB(
DirList,
dlEmpty, dlByExt, dlByExts, dlAdd, dlAddByExt,
TreeDB,
tdbEmpty, tdbByDir, tdbAdd, tdbAddDir,
tdbBuild, tdbMerge,
tdbByDirExt, tdbByDirExts
)
where
import qualified Data.ByteString.Char8 as C
import Data.List
import Data.Trie(Tr... | kishoredbn/barrelfish | hake/TreeDB.hs | mit | 3,589 | 0 | 12 | 802 | 1,101 | 590 | 511 | 76 | 3 |
{- |
Module : ./SoftFOL/tests/PrintTests.hs
Copyright : (c) C. Maeder, DFKI GmbH 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : experimental
Portability : portable
-}
module Main where
import Test.HUnit
import SoftFOL.Sign
import SoftFOL.Print
... | spechub/Hets | SoftFOL/tests/PrintTests.hs | gpl-2.0 | 16,893 | 0 | 27 | 5,184 | 3,836 | 2,083 | 1,753 | 277 | 1 |
-- | This module provide a totally partial and incomplete maping
-- of Exif values. Used for Tiff parsing and reused for Exif extraction.
module Codec.Picture.Metadata.Exif ( ExifTag( .. )
, ExifData( .. )
, tagOfWord16
... | clinty/Juicy.Pixels | src/Codec/Picture/Metadata/Exif.hs | bsd-3-clause | 5,379 | 0 | 10 | 1,210 | 1,164 | 638 | 526 | 211 | 51 |
module CmmMachOp
( MachOp(..)
, pprMachOp, isCommutableMachOp, isAssociativeMachOp
, isComparisonMachOp, machOpResultType
, machOpArgReps, maybeInvertComparison
-- MachOp builders
, mo_wordAdd, mo_wordSub, mo_wordEq, mo_wordNe,mo_wordMul, mo_wordSQuot
, mo_wordSRem, mo_wordSNeg, mo_wordUQu... | mcmaniac/ghc | compiler/cmm/CmmMachOp.hs | bsd-3-clause | 14,455 | 0 | 10 | 4,149 | 2,965 | 1,606 | 1,359 | 306 | 43 |
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module: Trace.Hpc.Coveralls
-- Copyright: (c) 2014-2015 Guillaume Nargeot
-- License: BSD3
-- Maintainer: Guillaume Nargeot <guillaume+hackage@nargeot.com>
-- Stability: experimental
--
-- Functions for converting and sending hpc output to coveralls.io.
module ... | jdnavarro/hpc-coveralls | src/Trace/Hpc/Coveralls.hs | bsd-3-clause | 7,216 | 0 | 17 | 1,894 | 1,574 | 845 | 729 | -1 | -1 |
main = putStrLn "hello"
foo x = y + 3
y = 7
| ankhers/haskell-ide-engine | test/testdata/HaReDemote.hs | bsd-3-clause | 47 | 1 | 5 | 16 | 29 | 13 | 16 | 3 | 1 |
{-# LANGUAGE TypeFamilies, EmptyDataDecls, GADTs #-}
module T4484 where
import Data.Kind (Type)
type family F f :: Type
data Id c = Id
type instance F (Id c) = c
data C :: Type -> Type where
C :: f -> C (W (F f))
data W :: Type -> Type
fails :: C a -> C a
fails (C _)
= -- We know (W (F f) ~ a)
C Id -- W... | sdiehl/ghc | testsuite/tests/indexed-types/should_compile/T4484.hs | bsd-3-clause | 714 | 0 | 11 | 273 | 180 | 102 | 78 | -1 | -1 |
-- | Comment on the first declaration
main = return ()
| sdiehl/ghc | testsuite/tests/haddock/should_compile_flag_haddock/T17561.hs | bsd-3-clause | 55 | 0 | 6 | 11 | 12 | 6 | 6 | 1 | 1 |
{-# LANGUAGE UnicodeSyntax #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module T5886a where
import Language.Haskell.TH
class C α where
type AT α ∷ ★
bang ∷ DecsQ
bang = return [InstanceD Nothing [] (AppT (ConT ''C) (ConT ''Int))
[TySynInstD ''AT (TySynEqn [ConT ''Int] (ConT '... | olsner/ghc | testsuite/tests/th/T5886a.hs | bsd-3-clause | 337 | 0 | 14 | 69 | 114 | 62 | 52 | 10 | 1 |
import qualified Barcode
main :: IO ()
main = Barcode.main
| pauldoo/scratch | RealWorldHaskell/ch12/Main.hs | isc | 61 | 0 | 6 | 12 | 22 | 12 | 10 | 3 | 1 |
module Main where
import CommandLine
import Control.Monad
import Data.Char
import Expense
import Parser
import PetParser
import System.Environment
import System.Exit
import System.IO
main :: IO ()
main = do opts <- getArgs >>= p... | fredmorcos/attic | projects/pet/archive/pet_haskell_petparser/Main.hs | isc | 1,853 | 0 | 14 | 585 | 617 | 313 | 304 | 43 | 3 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Time.LocalTime
import Data.Time.Clock
import Data.Maybe
import Control.Monad
import System.Environment
import qualified Data.Configurator as CFG
import Data.Configurator.Types
import Format
import System.Console.Terminfo.PrettyPrint
import Data.Time.Calendar
import Data.T... | dagle/hs-xmltv | src/Tv.hs | mit | 3,493 | 0 | 15 | 915 | 1,277 | 654 | 623 | 91 | 3 |
module Data.Vector.Generic.Lifted (
unsafeFreeze
, read
, write
, new
, freeze
, replicate
, mapM
, thaw
, forM
) where
import Prelude hiding (mapM, read, replicate)
import Control.Monad.Trans (MonadTrans, lift)
import Data.Vector.Generic (Mutable, Vector)
import qualified D... | NicolasT/reedsolomon | src/Data/Vector/Generic/Lifted.hs | mit | 1,742 | 0 | 12 | 388 | 799 | 427 | 372 | 43 | 1 |
-- |
-- Module: Math.NumberTheory.ArithmeticFunctions.NFreedom
-- Copyright: (c) 2018 Alexandre Rodrigues Baldé
-- Licence: MIT
-- Maintainer: Alexandre Rodrigues Baldé <alexandrer_b@outlook.com>
--
-- N-free number generation.
--
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
m... | Bodigrim/arithmoi | Math/NumberTheory/ArithmeticFunctions/NFreedom.hs | mit | 5,954 | 0 | 16 | 1,486 | 909 | 525 | 384 | 75 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Database.Selda.SQL.Print.Config (PPConfig (..), defPPConfig) where
import Data.Text (Text)
import qualified Data.Text as T
import Database.Selda.SqlType
import Database.Selda.Table
-- | Backend-specific configuration for the SQL pretty-printer.
data PPConfig = PPConfig
{ -- ... | valderman/selda | selda/src/Database/Selda/SQL/Print/Config.hs | mit | 3,457 | 0 | 14 | 814 | 531 | 312 | 219 | 48 | 1 |
module Main where
import Control.Monad
import Data.IORef
import Data.Tuple.HT
import FRP.Yampa
import Graphics
import Graphics.Rendering.OpenGL
import Graphics.UI.GLUT
import System.Exit
import Types
import Simulation
-- Entry point.
main :: IO ()
main = do
newInput <- newIORef NoEvent
oldTime <- newIORef (0 :: ... | fatuhoku/haskell-yampa-bouncing-ball | src/Main.hs | mit | 1,480 | 0 | 17 | 360 | 480 | 236 | 244 | 38 | 3 |
import System.Random
main = do
gen <- getStdGen
putStr $ take 20 (randomRs ('a', 'z') gen)
| UoBCS/haskell-diary | monads/random/random_string.hs | mit | 102 | 0 | 11 | 27 | 44 | 22 | 22 | 4 | 1 |
module Feature.User.PG where
import ClassyPrelude
import Feature.User.Types
import Feature.Auth.Types
import Platform.PG
import Database.PostgreSQL.Simple
-- * UserRepo
findUserByAuth :: PG r m => Auth -> m (Maybe (UserId, User))
findUserByAuth (Auth email pass) = do
results <- withConn $ \conn -> query conn qry (... | eckyputrady/haskell-scotty-realworld-example-app | src/Feature/User/PG.hs | mit | 3,969 | 0 | 14 | 922 | 1,074 | 548 | 526 | 69 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import qualified Control.Foldl as Fold
import Data.List (genericLength)
import Data.Maybe (catMaybes)
import Data.Text (unpack)
import System.Exit (exitFailure, exitSuccess)
import Te... | tylerjl/adventofcode | test/Haddock.hs | mit | 1,020 | 0 | 14 | 300 | 326 | 176 | 150 | 27 | 2 |
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
{-# LANGUAGE UnicodeSyntax #-}
-- From: Herbert P. Sander. A logic of functional programs with an
-- application to concurrency. PhD thesis, Chalmers University of
-- Technology and University of Gothenburg, Department of Computer
-- Sciences, 1992. pp. 12-13.
module... | asr/fotc | notes/Berry/Berry.hs | mit | 905 | 0 | 9 | 288 | 146 | 86 | 60 | 10 | 1 |
{-# LANGUAGE BangPatterns
, FlexibleContexts
, TypeFamilies
, MultiParamTypeClasses
, FunctionalDependencies
, TypeSynonymInstances
, FlexibleInstances #-}
module RobotVision.ImageRep.Utility
( fromChannels
, toChannels
, getNotBoundaryPoint... | eklinkhammer/haskell-vision | RobotVision/ImageRep/Utility.hs | mit | 2,685 | 0 | 13 | 757 | 1,217 | 651 | 566 | 66 | 3 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module Models where
... | erlandsona/caldwell-api | library/Models.hs | mit | 1,186 | 0 | 7 | 237 | 120 | 69 | 51 | 24 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module ParseCommand (
parseCommand
) where
import Data.ByteString (ByteString)
import qualified Data.ByteString as B
import qualified Data.ByteString.UTF8 as UTF8
import Data.List
import Text.Parsec
import Text.Parsec.ByteString
import Types
parseCommand :: [CommandDef] -> Byte... | sproctor/dirtywater | src/ParseCommand.hs | gpl-2.0 | 1,581 | 0 | 14 | 268 | 517 | 269 | 248 | 38 | 2 |
{-| Algorithm Options for HTools
This module describes the parameters that influence the balancing
algorithm in htools.
-}
{-
Copyright (C) 2014 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Fo... | ribag/ganeti-experiments | src/Ganeti/HTools/AlgorithmParams.hs | gpl-2.0 | 2,195 | 0 | 8 | 413 | 206 | 127 | 79 | 24 | 1 |
import Data.Maybe (fromJust)
import Network.Circus
handleEvent :: EventFunction
handleEvent _ ev = case eType ev of
Privmsg -> putStrLn $ fromJust (eNick ev) ++ " said in " ++ fromJust (eChannel ev) ++ ": " ++ head (eArgs ev)
_ -> print ev
main ... | DasAsozialeNetzwerk/circus | example.hs | gpl-3.0 | 472 | 0 | 15 | 142 | 148 | 76 | 72 | 9 | 2 |
module Problem39 where
import Problem31(isPrime)
primesR :: Int -> Int -> [Int]
primesR x y = filter isPrime [x..y] | wando-hs/H-99 | src/Problem39.hs | gpl-3.0 | 117 | 0 | 7 | 20 | 48 | 27 | 21 | 4 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Risk where
import Control.Monad
import Control.Monad.Random
import Data.List
------------------------------------------------------------
-- Die values
newtype DieValue = DV { unDV :: Int }
deriving (Eq, Ord, Show, Num)
first :: (a -> b) -> (a, c) -> (b, c)
fir... | lifengsun/haskell-exercise | upenn-cis-194/12/Risk.hs | gpl-3.0 | 2,053 | 0 | 14 | 734 | 693 | 357 | 336 | 45 | 2 |
module Main where
import qualified Web.BitTorrent.Tracker.Tracker as Tracker
main = Tracker.main | greatest-ape/hs-bt-tracker | app/Main.hs | gpl-3.0 | 98 | 0 | 5 | 12 | 21 | 15 | 6 | 3 | 1 |
module Color
( colorString
, Color(..)
)
where
data Color =
-- Bold Colors
BoldBlack
| BoldRed
| BoldGreen
| BoldYellow
| BoldBlue
| BoldMagenta
| BoldCyan
| BoldWhite
| Black
--... | cdepillabout/haskell-git-too-many-cherry-picks | Color.hs | gpl-3.0 | 1,496 | 0 | 7 | 548 | 318 | 175 | 143 | 49 | 18 |
{-# LANGUAGE FlexibleContexts #-}
module Application.KMeans.Conduit where
import Control.Monad.IO.Class
import Control.Monad.Trans.Resource
import Data.Array.Repa as R
import Data.Binary
import Data.Conduit
import Data.Conduit.List as... | XinhuaZhang/PetaVisionHaskell | Application/KMeans/Conduit.hs | gpl-3.0 | 1,556 | 0 | 14 | 529 | 416 | 220 | 196 | 49 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE OverloadedStrings #-}
import System.FilePath
import System.Directory
import qualified Data.ByteString.Lazy as BS
import System.FilePath.Glob (namesMatching)
import Text.Read
impor... | deber/GPL_Torture | backend/language/haskell/src/app/Torture2.hs | gpl-3.0 | 3,315 | 0 | 22 | 630 | 1,005 | 521 | 484 | 74 | 2 |
{- | This module contains a purely Haskell implementation of dyadic rationals, suitable
for interval arithmetic. A faster implementation of dyadic rationals would use
a fast arbitrary-precision floating-point library, such as MPFR and the related
hmpfr Haskell bindings for it.
A dyadic number is a ratio... | aljosaVodopija/eksaktnaRealna | Dyadic.hs | gpl-3.0 | 11,910 | 0 | 16 | 3,287 | 3,499 | 1,839 | 1,660 | 205 | 4 |
{-# LANGUAGE QuasiQuotes, RecordWildCards, NoCPP #-}
{-|
The @cashflow@ command prints a simplified cashflow statement. It just
shows the change in all "cash" accounts for the period (without the
traditional segmentation into operating, investing, and financing
cash flows.)
-}
module Hledger.Cli.Commands.Cashflow (... | ony/hledger | hledger/Hledger/Cli/Commands/Cashflow.hs | gpl-3.0 | 1,370 | 0 | 9 | 205 | 176 | 109 | 67 | 25 | 1 |
{-|
Module : Devel.Compile
Description : For building and running your WAI application.
Copyright : (c)
License : GPL-3
Maintainer : njagi@urbanslug.com
Stability : experimental
Portability : POSIX
-}
{-# LANGUAGE RecordWildCards #-}
module Devel.Build (build) where
import IdeSession hiding (getEnv)
im... | bitemyapp/wai-devel | src/Devel/Build.hs | gpl-3.0 | 4,199 | 0 | 15 | 920 | 911 | 451 | 460 | 68 | 4 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
import qualified Network.WebSockets as WS
import qualified Data.Text as T
import qualified Data.Text.IO as T
import Control.Monad (forever)
import Control.Concurrent (forkIO)
import Network
import System.IO
import Text.Printf
import System.Environ... | r24y/wsirc | src/Main.hs | gpl-3.0 | 1,822 | 0 | 13 | 612 | 520 | 263 | 257 | 42 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.CloudKMS.Types
-- Copyright : (c) 2015-2016 Brendan Ha... | brendanhay/gogol | gogol-cloudkms/gen/Network/Google/CloudKMS/Types.hs | mpl-2.0 | 9,121 | 0 | 7 | 2,153 | 960 | 669 | 291 | 254 | 1 |
module Widgets.Time where
-- TODO make this prettier
import Import
import Data.Time
import System.Locale
import Data.List
renderTime :: UTCTime -> Widget
renderTime time = do
now <- liftIO getCurrentTime
let render (UTCTime (ModifiedJulianDay 0) 0) = preEscapedToMarkup ("(soon)" :: Text);
render t... | Happy0/snowdrift | Widgets/Time.hs | agpl-3.0 | 528 | 0 | 14 | 116 | 130 | 68 | 62 | -1 | -1 |
{-# language ScopedTypeVariables, OverloadedStrings #-}
module Base.Renderable.Header (header, headerHeight) where
import Data.Abelian
import Graphics.Qt
import Utils
import Base.Types
import Base.Constants
import Base.Prose
import Base.Font
import Base.Pixmap
import Base.Renderable.HBox
import Base.Renderable.C... | nikki-and-the-robots/nikki | src/Base/Renderable/Header.hs | lgpl-3.0 | 2,152 | 0 | 20 | 498 | 526 | 271 | 255 | 57 | 4 |
#!/usr/bin/env runhaskell
import Data.List (foldl', group)
import System.Environment (getArgs)
digits :: Integer -> [Int]
digits 0 = [0]
digits n = reverse (extract n)
where extract 0 = []
extract x = (fromIntegral x `mod` 10) : extract (fromIntegral x `div` 10)
fromDigits :: [Int] -> Integer
fromDigits d ... | jajakobyly/looknsay | haskell/looknsay.hs | unlicense | 1,275 | 0 | 16 | 390 | 510 | 263 | 247 | 28 | 6 |
module HelperSequences.A112798 (a112798, a112798_row) where
import HelperSequences.A027746 (a027746_row)
import Data.Maybe (fromJust)
import Data.List (elemIndex)
import HelperSequences.A000040 (a000040_list)
a112798 :: Int -> Int
a112798 n = a112798_tabl !! (n - 2)
a112798_tabl :: [Int]
a112798_tabl = concatMap a11... | peterokagey/haskellOEIS | src/HelperSequences/A112798.hs | apache-2.0 | 482 | 0 | 9 | 72 | 170 | 94 | 76 | 13 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
-- | Data types for the K3 effect system
module Language.K3.Analysis.SEffects.Core where
import Control.DeepSeq
import GHC.Generics (Generic)
import Data.Binary
import Data.Serialize
i... | DaMSL/K3 | src/Language/K3/Analysis/SEffects/Core.hs | apache-2.0 | 5,420 | 0 | 18 | 1,600 | 1,342 | 709 | 633 | 115 | 1 |
-- parse nested parens into a tree structure
-- Exercise 1 from chapter 8 of Basics of Haskell
-- https://www.schoolofhaskell.com/school/starting-with-haskell/basics-of-haskell/8_Parser
data Token = TokLParen | TokRParen | TokEnd
deriving (Show, Eq)
lookAhead :: String -> Token
lookAhead [] = TokEnd
lookAhead (c... | cbare/Etudes | haskell/parse_parens.hs | apache-2.0 | 1,526 | 0 | 17 | 633 | 442 | 229 | 213 | 31 | 4 |
import Control.Parallel.Strategies
power5 x = x * x * x * x * x
digitSumPower5 n = sum $ map power5 $ map (\x -> read [x] :: Int) $ show n
isSameAsDigitSumPower5 n = (n == digitSumPower5 n)
main = do
let base = [2..10000000]
let filtered = filter isSameAsDigitSumPower5 base
let cs = filtered `using` par... | ulikoehler/ProjectEuler | Euler30.hs | apache-2.0 | 355 | 0 | 11 | 84 | 157 | 78 | 79 | 9 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module DBusTests.TH where
import DBus.Generation
import DBusTests.Generation
generateClient defaultGenerationParams testIntrospectionInterface
generateSignalsFromInterface defaultGenerationParams testIntrospectionInterface
| rblaze/haskell-dbus | tests/DBusTests/TH.hs | apache-2.0 | 259 | 0 | 5 | 20 | 33 | 17 | 16 | 6 | 0 |
-- | Specific configuration for Joey Hess's sites. Probably not useful to
-- others except as an example.
{-# LANGUAGE FlexibleContexts, TypeFamilies #-}
module Propellor.Property.SiteSpecific.JoeySites where
import Propellor.Base
import qualified Propellor.Property.Apt as Apt
import qualified Propellor.Property.Fil... | ArchiveTeam/glowing-computing-machine | src/Propellor/Property/SiteSpecific/JoeySites.hs | bsd-2-clause | 36,052 | 388 | 86 | 5,154 | 6,496 | 3,576 | 2,920 | -1 | -1 |
module BookCalendar where
import Data.Time
import Data.Time.Calendar.WeekDate
currentWordCount :: Integer
currentWordCount = 14700
wordsPerDay :: Integer
wordsPerDay = 333
isWeekend :: Day -> Bool
isWeekend d =
let (_,_,dow) = toWeekDate d
in dow > 5
addToDay :: UTCTime -> Integer -> Day
addToDay today days = ... | steveshogren/haskell-katas | src/BookCalendar.hs | bsd-3-clause | 1,058 | 0 | 13 | 202 | 399 | 208 | 191 | 30 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
The @TyCon@ datatype
-}
{-# LANGUAGE CPP, FlexibleInstances #-}
module TyCon(
-- * Main TyCon data types
TyCon, AlgTyConRhs(..), visibleDataCons,
AlgTyConFlav(..), isNoParent,
FamTyConFlav... | vTurbine/ghc | compiler/types/TyCon.hs | bsd-3-clause | 89,529 | 2 | 16 | 25,435 | 10,609 | 5,995 | 4,614 | 943 | 7 |
{-# LANGUAGE TypeOperators #-}
module Main where
import Control.Applicative ((<*>))
import Data.OI hiding (openFile)
import System.IO (IOMode (..), Handle)
import qualified System.IO as IO
import Prelude hiding (readFile, writeFile)
main :: IO ()
main = runInteraction pmain
pmain :: (([String],Either ((Handle, Strin... | nobsun/oi | sample/cats2.hs | bsd-3-clause | 1,078 | 0 | 16 | 196 | 405 | 229 | 176 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans
-fno-warn-incomplete-patterns
-fno-warn-deprecations
-fno-warn-unused-binds #-} --FIXME
module UnitTests.Distribution.Version (versionTests) where
import Distribution.Version
import Distribution.Text
import Text.Pre... | sopvop/cabal | Cabal/tests/UnitTests/Distribution/Version.hs | bsd-3-clause | 26,798 | 0 | 16 | 6,085 | 6,148 | 3,179 | 2,969 | -1 | -1 |
{-# LANGUAGE QuasiQuotes #-}
-- | Simple C runtime representation.
module Futhark.CodeGen.Backends.SimpleRepresentation
( sameRepresentation
, tupleField
, tupleFieldExp
, funName
, defaultMemBlockType
, builtInFunctionDefs
, intTypeToCType
, floatTypeToCType
, primTypeToCType
-- * Primitive valu... | CulpaBS/wbBach | src/Futhark/CodeGen/Backends/SimpleRepresentation.hs | bsd-3-clause | 11,377 | 0 | 13 | 3,293 | 2,323 | 1,378 | 945 | 202 | 4 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Geometry where
import GHC.Generics
import Data.Aeson
data Point = Point1D {xp :: Double}
| Point2D {xp :: Double, yp :: Double}
| Point3D {xp :: Double, yp :: Double, zp :: Double}
deriving (Eq, Ord, Show, Gen... | adrienhaxaire/funfem | Geometry.hs | bsd-3-clause | 925 | 0 | 8 | 238 | 245 | 136 | 109 | 22 | 1 |
import Test.Framework (defaultMain)
import qualified Database.Sqroll.Pure.Tests
import qualified Database.Sqroll.Sqlite3.Tests
import qualified Database.Sqroll.Table.Naming.Tests
import qualified Database.Sqroll.TH.Tests
import qualified Database.Sqroll.Json.Tests
import qualified Database.Sqroll.Tests
import qualifie... | pacak/sqroll | tests/TestSuite.hs | bsd-3-clause | 674 | 0 | 7 | 80 | 141 | 99 | 42 | 17 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- | RequestTests runs as a standalone executable so that developers can change
-- TestConfig to whatever settings they want.
module Main where
import Blaze.ByteString.Builder
import Control.Applicative
import Control.Monad
import Control.Monad.IO.Class
import qualified Data.ByteSt... | anchor/haskell-opensrs | tests/RequestTests.hs | bsd-3-clause | 13,098 | 0 | 33 | 5,272 | 2,889 | 1,380 | 1,509 | 237 | 27 |
{-# LANGUAGE ExtendedDefaultRules #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module ChartSpec where
import Test.Hspec
import Graphics.HSD3.Chart
import Graphics.HSD3.Theme
import Utils
spec :: Spec
spec = describe "Chart" $ do
d... | Soostone/hs-d3 | test/suite/ChartSpec.hs | bsd-3-clause | 5,451 | 0 | 22 | 1,849 | 2,103 | 1,226 | 877 | 84 | 1 |
module PrefStringUtil where
import Data.List
import Data.List.Split
import Data.Char (isSpace)
import Data.Maybe
-- | This is a quick and dirty "Trim whitespace from both sides" function", that is taken straight outta
-- <http://stackoverflow.com/questions/6270324/in-haskell-how-do-you-trim-whitespace-from-the-beginn... | peterkmurphy/preference | src/PrefStringUtil.hs | bsd-3-clause | 1,809 | 0 | 10 | 325 | 330 | 170 | 160 | 26 | 1 |
{-|
Module : Database.Relational.Update
Description : Definition of UPDATE and friends.
Copyright : (c) Alexander Vieth, 2015
Licence : BSD3
Maintainer : aovieth@gmail.com
Stability : experimental
Portability : non-portable (GHC only)
-}
{-# LANGUAGE AutoDeriveTypeable #-}
module Database.Relational.Upd... | avieth/Relational | Database/Relational/Update.hs | bsd-3-clause | 423 | 0 | 6 | 81 | 34 | 23 | 11 | 4 | 0 |
module Language.TNT.Token
( Token (..)
) where
import Prelude hiding (Bool (..))
data Token = Name String
| Operator String
| Number Double
| String String
| Char Char
| Import
| As
| Var
| Fun
| If
... | sonyandy/tnt | Language/TNT/Token.hs | bsd-3-clause | 984 | 0 | 6 | 598 | 186 | 121 | 65 | 47 | 0 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-|
Module : Game.GoreAndAsh.Resources.Module
Description : Monad transformer and instance for core module
Copyright : (c) Anton Gushcha, 2016
License : BSD3
Maintainer : ncrashed@gmail.com
Stability : experimental
Portability : POSIX
-}
module Game.GoreAndAsh.Resourc... | Teaspot-Studio/gore-and-ash-resources | src/Game/GoreAndAsh/Resources/Module.hs | bsd-3-clause | 1,734 | 0 | 11 | 305 | 305 | 177 | 128 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ViewPatterns #-}
-----------------------------------------------------------------------------
-- |
-- This module rexposes wrapped parsers from the GHC API. Along with
-- returning the parse result, the corresponding annotations are also
-- returned such that it is then easy to modify... | mpickering/ghc-exactprint | src/Language/Haskell/GHC/ExactPrint/Parsers.hs | bsd-3-clause | 9,633 | 0 | 16 | 2,150 | 1,946 | 1,055 | 891 | 155 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-|
Module : Network.Linode
License : BSD3
Stability : experimental
This package contains some helpers to create and configure <https://www.linode.com/ Linode> instances. They all require an API key, which can be created on the Linod... | Helkafen/haskell-linode | src/Network/Linode.hs | bsd-3-clause | 15,875 | 0 | 27 | 3,599 | 3,993 | 2,022 | 1,971 | 234 | 3 |
-- | Special retrieval queries to build 'ClockTable's using 'HeadingFilter's.
--
-- 'ClockTable' is not a type saved directly in the database, it's a combination
-- type used for presenting org-mode data.
-- Should work similarly to
-- <http://orgmode.org/manual/The-clock-table.html The clock table in emacs>.
--
-- = U... | rzetterberg/orgmode-sql | lib/Database/OrgMode/Export/ClockTable.hs | bsd-3-clause | 5,556 | 0 | 18 | 1,304 | 1,029 | 551 | 478 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RankNTypes #-}
#if defined(__GL... | phaazon/linear | src/Linear/Affine.hs | bsd-3-clause | 7,173 | 2 | 12 | 1,468 | 2,186 | 1,169 | 1,017 | -1 | -1 |
module Physics.Falling.Collision.Detection.GJK
(
distanceToOrigin
, distance
, algorithmGJK
, closestPoints
, initialSimplexResult
, SimplexResult
)
where
import Physics.Falling.Math.Error
import Physics.Falling.Math.Transform hiding(distance)
import Physics.Falling.Math.AnnotatedVector
import Physics.Falling.Shape.Im... | sebcrozet/falling | Physics/Falling/Collision/Detection/GJK.hs | bsd-3-clause | 5,672 | 0 | 16 | 2,080 | 1,266 | 690 | 576 | 81 | 2 |
import Test.QuickCheck
main :: IO ()
main = putStrLn "Test suite not yet implemented"
| nozaq/programming-in-haskell | test/Spec.hs | mit | 87 | 0 | 6 | 15 | 24 | 12 | 12 | 3 | 1 |
-- | Modular wrapper around Posix signal handlers
--
-- This module is only included in the .cabal file when we are not on Windows.
module Pos.Infra.Util.SigHandler
( Signal(..)
, installHandler
, uninstallAllHandlers
) where
import Universum
import Control.Concurrent (... | input-output-hk/pos-haskell-prototype | infra/src/Pos/Infra/Util/SigHandler.hs | mit | 3,250 | 0 | 16 | 609 | 528 | 285 | 243 | 42 | 3 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : $Header$
Copyright : (c) Dominik Luecke, Felix Gabriel Mance
License : GPLv2 or higher, see LICENSE.txt
Maintainer : f.mance@jacobs-university.de
Stability : provisional
Portability : portable
Complexity analysis of OWL2
-}
module OWL2.Sublogic w... | keithodulaigh/Hets | OWL2/Sublogic.hs | gpl-2.0 | 8,944 | 0 | 17 | 2,028 | 2,737 | 1,416 | 1,321 | 204 | 13 |
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Trustworthy #-}
module Network.Tox.NodeInfo.NodeInfoSpec where
import Test.Hspec
import qualified Data.Binary as Binary (get)
import qualified Data.Binary.Get as Binary (Get)
import Data.Proxy (Proxy (..))... | iphydf/hs-toxcore | test/Network/Tox/NodeInfo/NodeInfoSpec.hs | gpl-3.0 | 955 | 0 | 11 | 230 | 206 | 114 | 92 | 21 | 1 |
-- |
-- Module : Criterion.Main
-- Copyright : (c) 2009-2014 Bryan O'Sullivan
--
-- License : BSD-style
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portability : GHC
--
-- Wrappers for compiling and running benchmarks quickly and easily.
-- See 'defaultMain' below for an example.
mo... | paulolieuthier/criterion | Criterion/Main.hs | bsd-2-clause | 7,392 | 0 | 17 | 1,787 | 981 | 584 | 397 | 77 | 4 |
-------------------------------------------------------------------------------
--
-- Module : Yesod.Feed
-- Copyright : Patrick Brisbin
-- License : as-is
--
-- Maintainer : Patrick Brisbin <me@pbrisbin.com>
-- Stability : Stable
-- Portability : Portable
--
-- Generic Feed and Feed Entry dat... | chreekat/yesod | yesod-newsfeed/Yesod/Feed.hs | bsd-2-clause | 1,220 | 0 | 10 | 233 | 222 | 129 | 93 | 19 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1998
\section[PatSyn]{@PatSyn@: Pattern synonyms}
-}
{-# LANGUAGE CPP #-}
module PatSyn (
-- * Main data types
PatSyn, mkPatSyn,
-- ** Type deconstruction
patSynName, patSynArity, patSynIsInfix,
... | shlevy/ghc | compiler/basicTypes/PatSyn.hs | bsd-3-clause | 16,364 | 0 | 14 | 5,031 | 1,530 | 915 | 615 | 141 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE Constr... | juhp/stack | src/Stack/Types/Package.hs | bsd-3-clause | 16,867 | 0 | 20 | 4,482 | 3,157 | 1,717 | 1,440 | 403 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.