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 FlexibleContexts #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Tree.Lens
-- Copyright : (C) 2012-14 Edward Kmett
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : provisio... | hvr/lens | src/Data/Tree/Lens.hs | bsd-3-clause | 934 | 0 | 7 | 172 | 147 | 88 | 59 | 13 | 1 |
{-
Author: Wishnu Prasetya
Copyright 2011 Utrecht University
The use of this sofware is free under the Modified BSD License.
-}
{- |
This module provides a type representing serialized objects which
are to be read from a log, and:
* a parser to read from semi compressed raw log.
* X... | aelyasov/Haslog | src/Eu/Fittest/Logging/XML/Value.hs | bsd-3-clause | 16,933 | 218 | 23 | 6,144 | 3,802 | 2,091 | 1,711 | 281 | 6 |
{-# LANGUAGE TemplateHaskell #-}
module Reify where
import Language.Haskell.TH
import Control.Applicative
testReify :: Q [Con]
testReify = do
DataConI _ (ConT n) _ _ <- reify 'True
TyConI (DataD _ _ _ c _) <- reify n
return c
noOthers :: Pat -> Q Bool
noOthers (LitP _) = return True
noOthers (VarP _) = return Tr... | YoshikuniJujo/papillon | test/templateHaskell/Reify.hs | bsd-3-clause | 471 | 0 | 10 | 89 | 195 | 96 | 99 | 15 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module MultisetExample where
import qualified Data.MultiSet as MultiSet
import qualified Data.Text.Lazy as LazyText
import qualified Data.Text.Lazy.Builder as LazyBuilder
import Data.Text.Lazy.Builder.Int (decimal)
import Data.Ord (Down(..))
import qualified Data.Char as Char
import... | FranklinChen/twenty-four-days2015-of-hackage | src/MultisetExample.hs | bsd-3-clause | 1,533 | 0 | 13 | 227 | 344 | 196 | 148 | 38 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveDataTypeable #-}
import GHC.Conc (numCapabilities)
import System.FilePath.Posix ((</>))
import System.Directory (getDirectoryContents)
import System.IO (hPutStrLn, stderr)
import qualified System.Console.CmdArgs as A
import System.Console.CmdArgs ((&=))
import Search... | jdimond/diplomarbeit | tools/LookupComplexity.hs | bsd-3-clause | 8,221 | 70 | 19 | 2,323 | 2,730 | 1,383 | 1,347 | 185 | 4 |
{-# LANGUAGE NoMonomorphismRestriction #-}
module Main (
main
) where
import qualified Data.Vector.Unboxed as V
import Data.Random.Source.PureMT
import Data.Random
import Control.Monad.State
import System.Environment(getArgs)
import Data.Colour.Names
import Data.Colour
import Control.Lens
import Data.Default... | idontgetoutmuch/StochVol | LinRegSingle.hs | bsd-3-clause | 1,583 | 0 | 21 | 366 | 453 | 246 | 207 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
-----------------------------------------------------------------------------
-- |
-- Module :... | jgm/pandoc-citeproc | src/Text/CSL/Input/Bibtex.hs | bsd-3-clause | 67,033 | 20 | 21 | 23,000 | 15,903 | 8,097 | 7,806 | 1,426 | 406 |
{-# LANGUAGE TupleSections #-}
module Language.DemonL.Script where
import Control.Applicative
import Control.Monad
import Data.List
import qualified Data.Map as M
import Math.SMT.Yices.Syntax
import Language.DemonL.AST
import Language.DemonL.Goal
import Language.DemonL.TypeCheck (ProcedureT)
generateScript goal d... | scottgw/demonL | Language/DemonL/Script.hs | bsd-3-clause | 3,179 | 0 | 13 | 816 | 1,125 | 560 | 565 | 73 | 3 |
module Problem36 where
import Data.Digits
isPalindrome :: [Int] -> Bool
isPalindrome [_] = True
isPalindrome xs = isPalindrome' xs []
where
isPalindrome' xs@(h:t) rxs
| length xs > length rxs = isPalindrome' t (h:rxs)
| length xs < length rxs = isPalindrome' xs (tail rxs)
| otherwise ... | noraesae/euler | src/Problem36.hs | bsd-3-clause | 537 | 0 | 11 | 122 | 216 | 107 | 109 | 13 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE... | Apsod/fixed | Data/Vector/Fixed/Linear.hs | bsd-3-clause | 4,138 | 0 | 14 | 1,102 | 1,936 | 1,020 | 916 | 85 | 1 |
import Bayesian.CheckedError
import Bayesian.Factor
import Bayesian.Variable
import Bayesian.Inference.VariableElimination
import Data.Either
import Data.List
main :: IO ()
main = do
print vePr1Test1
print vePr1Test2
print vePr1Test3
print vePr1Test4
variableA :: Variable
variableA = createVariable "A" ["0", ... | sebassimoes/haskell-bayesian | test/VariableEliminationTestSuite.hs | bsd-3-clause | 1,746 | 0 | 10 | 331 | 499 | 266 | 233 | 44 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import System.Environment (getArgs)
import System.Directory (doesFileExist, doesDirectoryExist)
import Data.List (isSuffixOf)
import Control.Monad (liftM2, void)
import Control.Monad.Trans
import Control.Monad.Trans.Maybe... | froozen/landrover | Main.hs | bsd-3-clause | 3,504 | 0 | 13 | 816 | 828 | 429 | 399 | 73 | 4 |
module X ( foo,
bar,
baz
) where
foo = 10
| itchyny/vim-haskell-indent | test/module/export_lines_paren_where.out.hs | mit | 66 | 0 | 4 | 35 | 20 | 13 | 7 | 4 | 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="tr-TR">
<title>Hızlı Başlat | ZAP uzantısı</title>
<maps>
<homeID>top</homeID>
<mapref... | veggiespam/zap-extensions | addOns/diff/src/main/javahelp/org/zaproxy/zap/extension/diff/resources/help_tr_TR/helpset_tr_TR.hs | apache-2.0 | 985 | 80 | 66 | 160 | 431 | 217 | 214 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Snap.Intern... | snapframework/snap-core | src/Snap/Internal/Util/FileUploads.hs | bsd-3-clause | 43,905 | 0 | 17 | 10,219 | 6,535 | 3,634 | 2,901 | 576 | 3 |
{-# OPTIONS_GHC -cpp #-}
-- #hide
module Distribution.Compat.RawSystem (rawSystem) where
#if __GLASGOW_HASKELL__ && __GLASGOW_HASKELL__ < 602
import Data.List (intersperse)
import System.Cmd (system)
import System.Exit (ExitCode)
#else
import System.Cmd (rawSystem)
#endif
#if __GLASGOW_HASKELL__ && __GLASGOW_HASKELL_... | alekar/hugs | packages/Cabal/Distribution/Compat/RawSystem.hs | bsd-3-clause | 528 | 0 | 9 | 80 | 122 | 70 | 52 | 3 | 0 |
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE helpset
PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 1.0//EN"
"http://java.sun.com/products/javahelp/helpset_1_0.dtd">
<helpset version="1.0">
<title>PetClinic Help</title>
<maps>
<mapref location="map.jhm"/... | springrichclient/springrcp | spring-richclient-samples/spring-richclient-samples-petclinic/petclinic-gui/src/main/resources/help/helpset.hs | apache-2.0 | 728 | 53 | 44 | 206 | 277 | 141 | 136 | -1 | -1 |
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a temporary kludge.
-- While working on this module you are encouraged to remove it and
-- detab the module (please do the detabbing in a separate patch). See
-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
-- fo... | nomeata/ghc | compiler/nativeGen/RegAlloc/Graph/ArchX86.hs | bsd-3-clause | 3,557 | 216 | 15 | 873 | 1,219 | 690 | 529 | 87 | 14 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Stack.UploadSpec (spec) where
import RIO
import RIO.Directory
import RIO.FilePath ((</>))
import Stack.Upload
import Test.Hspec
import System.Permissions (osIsWindows)
import System.PosixCompat.Files (getFileStatus, fileMode)
import Data.Bits... | juhp/stack | src/test/Stack/UploadSpec.hs | bsd-3-clause | 897 | 0 | 18 | 167 | 250 | 132 | 118 | 25 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.Trans
-- Copyright : (c) Andy Gill 2001,
-- (c) Oregon Graduate Institute of Science and Technology, 2001
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer : libraries... | johanneshilden/principle | public/mtl-2.2.1/Control/Monad/Trans.hs | bsd-3-clause | 1,329 | 0 | 5 | 226 | 65 | 54 | 11 | 5 | 0 |
module SDL.Raw.Power (
-- * Power Management Status
getPowerInfo
) where
import Control.Monad.IO.Class
import Foreign.C.Types
import Foreign.Ptr
import SDL.Raw.Enum
foreign import ccall "SDL.h SDL_GetPowerInfo" getPowerInfoFFI :: Ptr CInt -> Ptr CInt -> IO PowerState
getPowerInfo :: MonadIO m => Ptr CInt -> Ptr ... | Velro/sdl2 | src/SDL/Raw/Power.hs | bsd-3-clause | 421 | 0 | 8 | 67 | 115 | 62 | 53 | 10 | 1 |
import Test.Cabal.Prelude
main = setupAndCabalTest $ do
skipUnless =<< ghcVersionIs (>= mkVersion [7,9])
withDirectory "p" $ do
r <- fails $ setup' "configure" ["--cabal-file", "p.cabal.fail-missing"]
assertOutputContains "Missing" r
| mydaum/cabal | cabal-testsuite/PackageTests/ReexportedModules/setup-fail-missing.test.hs | bsd-3-clause | 258 | 0 | 14 | 52 | 79 | 39 | 40 | 6 | 1 |
{-# OPTIONS_GHC -Wall #-}
module Completesig11 where
data A = A | B
{-# COMPLETE A, B #-}
foo :: A -> ()
foo A = ()
foo B = ()
foo A = ()
| ezyang/ghc | testsuite/tests/pmcheck/complete_sigs/completesig14.hs | bsd-3-clause | 142 | 0 | 6 | 38 | 57 | 32 | 25 | 8 | 1 |
{-# LANGUAGE MagicHash #-}
module LiteralsTest2 where
x,y :: Int
x = 0003
y = 0x04
s :: String
s = "\x20"
c :: Char
c = '\x20'
d :: Double
d = 0.00
blah = x
where
charH = '\x41'#
intH = 0004#
wordH = 005##
floatH = 3.20#
doubleH = 04.16##
-- int64H = 00456L#
-- word64H = 00456L##
... | olsner/ghc | testsuite/tests/printer/Ppr038.hs | bsd-3-clause | 326 | 0 | 6 | 103 | 91 | 57 | 34 | 18 | 1 |
{-# LANGUAGE TupleSections, OverloadedStrings #-}
module Handler.Home where
import Import
getHomeR :: Handler Html
getHomeR = do
defaultLayout $ do
setTitleI MsgHomeTitle
$(widgetFile "homepage")
| lulf/wishsys | Handler/Home.hs | mit | 218 | 0 | 12 | 46 | 46 | 23 | 23 | 8 | 1 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE OverloadedStrings #-}
module RenderHtml where
import Data.String
import Data.List (intersperse)
import Control.Monad
import Text.Blaze.Html5 (Html, (!))
import qualified Text.Blaze.Html5 as H
import qualified Text.Bl... | ulrikrasmussen/BoxProver | src/RenderHtml.hs | mit | 13,283 | 0 | 28 | 3,873 | 4,790 | 2,401 | 2,389 | 274 | 10 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
import Data.OpenUnion
type MyUnion = Union '[Char, Int, [()]]
showMyUnion :: MyUnion -> String
showMyUnion
= (\(c :: Char) -> "char: " ++ show c)
@> (\(i :: Int) -> "int: " ++ show i)
@> (\(l :: [()]) -> "list length: " ++ show (length l))
... | rimmington/open-union | example.hs | mit | 598 | 0 | 13 | 137 | 233 | 126 | 107 | 16 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
import System.IO (stderr, hPrint, hPutStrLn)
import qualified Vision.Image as I
import Vision.Image.Storage.DevIL (Autodetect (..), load, save)
import Options.Applicative (header, progDesc, Parser, argument, option, str,
metavar, long, eitherReader, value, short, help, showDefa... | afiodorov/keepOneColor | Main.hs | mit | 2,944 | 0 | 17 | 917 | 963 | 494 | 469 | 71 | 3 |
module GitHub.Git.References where
import GitHub.Internal
refs o r = ownerRepo o r <> "/git/refs"
ref o r r' = refs o r <> "/" <> r'
--| GET /repos/:owner/:repo/git/refs/:ref
getReference ::
OwnerName ->
RepoName ->
Ref ->
GitHub ReferenceData
getReference o r r' = get [] $ ref o r r'
--| GET /repos/:owner/:repo... | SaneApp/github-api | src/GitHub/Git/References.hs | mit | 933 | 38 | 12 | 171 | 481 | 234 | 247 | -1 | -1 |
import Trace (traceJS)
import System.Environment (getArgs)
main :: IO ()
main = getArgs >>= readFile . head >>= putStrLn . traceJS
| heyLu/tracing-js | Main.hs | mit | 132 | 0 | 8 | 22 | 50 | 27 | 23 | 4 | 1 |
-- ghc interactive_script.hs -o i
-- echo "10 10 10" | ./i
main :: IO ()
main = interact ( (\finalOutput -> finalOutput ++ "\n") . show . sum . map read . words)
| raventid/coursera_learning | haskell/interactive_script.hs | mit | 163 | 0 | 13 | 35 | 55 | 29 | 26 | 2 | 1 |
module Main where
import Monad
import System.Environment
import Text.ParserCombinators.Parsec hiding (spaces)
main :: IO ()
main = do args <- getArgs
putStrLn (readExpr (args !! 0))
symbol :: Parser Char
symbol = oneOf "!$%&|*+-/:<=>?@^_~#"
readExpr input = case parse parseExpr "lisp" input of
Left err... | tismith/tlisp | write-yourself-a-scheme/listings/listing3.3.hs | mit | 1,299 | 0 | 11 | 457 | 386 | 193 | 193 | 39 | 3 |
{-# LANGUAGE OverloadedStrings #-}
import BT.Global
import BT.Mining
import BT.User
import qualified Data.ByteString.Char8 as BC
import System.Environment (getArgs)
import Control.Monad (liftM)
import Control.Exception (catch)
import BT.Util (elogCatch)
main :: IO ()
main = do
conn <- makeCons
username <- li... | c00w/BitToll | haskell/MineUserTest.hs | mit | 656 | 0 | 13 | 143 | 200 | 100 | 100 | 21 | 1 |
-- Problem 6
-- (*) Find out whether a list is a palindrome. A palindrome can be read forward or backward; e.g. (x a m a x).
--
-- > isPalindrome "madamimadam"
-- True
isPalindrome :: Eq a => [a] -> Bool
isPalindrome [] = True
isPalindrome [x] = True
isPalindrome xs = (head xs == last xs) && isPalindrome (tail $ init... | usami-k/H-99-Ninety-Nine-Haskell-Problems | 01-10/06.hs | mit | 326 | 0 | 9 | 67 | 84 | 44 | 40 | 4 | 1 |
module Main where
import Game (Game, Position, Coordinate, move, isFinished, start, bounds, marks)
import Opponent (randomMove)
import Control.Monad (join)
import Data.Maybe (fromJust, isJust)
import System.IO (hFlush, stdout)
import Text.Read (readMaybe)
main :: IO ()
main =
putDoubleLine >>
getTurns >>= \tur... | amar47shah/NICTA-TicTacToe | app/Main.hs | mit | 2,077 | 0 | 11 | 494 | 894 | 459 | 435 | 62 | 1 |
module Object
(
Object(..),
Value(..),
call,
genObject,
genNilObject,
genIntObject,
genStringObject,
genBoolObject,
genFunctionObject
) where
import AST
import qualified Data.Map as Map
type Env = Map.Map String Object
data Value = IntValue Integer
| StringValue String
| BoolV... | NKMR6194/carrot | src/Object.hs | mit | 5,675 | 0 | 13 | 1,447 | 2,006 | 1,099 | 907 | 142 | 2 |
{-# LANGUAGE OverloadedStrings, NoImplicitPrelude, GeneralizedNewtypeDeriving, DeriveGeneric #-}
{-# LANGUAGE RecordWildCards, TypeFamilies,DeriveDataTypeable,ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
{-|
This module defines the types used in the Template haskell routine in order to automate the c... | plow-technologies/simple-cell-types | src/SimpleStore/Cell/Types.hs | mit | 5,847 | 0 | 14 | 1,681 | 1,041 | 606 | 435 | 101 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-tags.html
module Stratosphere.ResourceProperties.AutoScalingAutoScalingGroupTagProperty where
import Stra... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/AutoScalingAutoScalingGroupTagProperty.hs | mit | 2,844 | 0 | 13 | 277 | 357 | 203 | 154 | 35 | 1 |
{-
Copyright (C) 2012 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 distr... | timtylin/scholdoc-texmath | src/Text/TeXMath/Writers/OMML.hs | gpl-2.0 | 10,068 | 0 | 18 | 4,084 | 3,183 | 1,556 | 1,627 | 184 | 27 |
-- Check that the agent's observation is intuitively correct.
module T where
import Tests.KBPBasis
kbpt = kTest ("kbp" `knows_hat` "bit")
kbp = agent "kbp" kbpt
c = proc () ->
do boot <- delayAC falseA trueA -< ()
bit <- nondetBitA -< ()
obs <- andA -< (boot, bit)
probeA "bit" -< bi... | peteg/ADHOC | Tests/10_Knowledge/024_agent_obs_rev_boot.hs | gpl-2.0 | 1,175 | 1 | 16 | 231 | 420 | 213 | 207 | -1 | -1 |
module Main where
-- This program is provided to convert an XML file containing a DTD
-- into a Haskell module containing data/newtype definitions which
-- mirror the DTD. Once you have used this program to generate your type
-- definitions, you should import Xml2Haskell wherever you intend
-- to read and write XML f... | jgoerzen/dtmconv | HaXml-1.12/src/tools/DtdToHaskell.hs | gpl-2.0 | 1,869 | 0 | 20 | 424 | 509 | 277 | 232 | 35 | 5 |
{-# LANGUAGE OverloadedStrings #-}
module Web.Crew.Templates.Renderer (
blaze,
blazePretty
) where
import Web.Scotty
import Text.Blaze.Html (Html)
import qualified Text.Blaze.Html.Renderer.Utf8 as Utf8
import qualified Text.Blaze.Html.Renderer.Pretty as Pretty
import qualified Data.ByteString.L... | schell/scottys-crew | Web/Crew/Templates/Renderer.hs | gpl-3.0 | 607 | 0 | 9 | 113 | 157 | 91 | 66 | 17 | 1 |
{-# OPTIONS_GHC -F -pgmF tasty-discover -optF --tree-display #-}
| Kyarigwo/ki-component-store | test/Spec.hs | gpl-3.0 | 67 | 0 | 2 | 10 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-fitness/gen/Network/Google/Resource/Fitness/Users/Sessions/Update.hs | mpl-2.0 | 4,163 | 0 | 16 | 985 | 562 | 331 | 231 | 85 | 1 |
-- comment
{ id x = x; const x y = x } | metaborg/jsglr | org.spoofax.jsglr/tests-offside/terms/doaitse/explicit1.hs | apache-2.0 | 38 | 2 | 5 | 12 | 25 | 13 | 12 | 1 | 1 |
module Step_1_7 where
-- Time to write your our first function
input :: String
input = "`Twas brillig, and the slithy toves\n"
++ "Did gyre and gimble in the wabe;\n"
++ "All mimsy were the borogoves,\n"
++ "And the mome raths outgrabe.\n"
output :: String
output = output1
oneNumber :: Int -> String -> ... | mzero/barley | seed/Chapter1/Step_1_7.hs | apache-2.0 | 644 | 0 | 10 | 148 | 191 | 102 | 89 | 19 | 2 |
-- Copyright (c) 2013-2014 PivotCloud, Inc.
--
-- Aws.Lambda.Commands.ListFunctions
--
-- Please feel free to contact us at licensing@pivotmail.com with any
-- contributions, additions, or other feedback; we would love to hear from
-- you.
--
-- Licensed under the Apache License, Version 2.0 (the "License"); you may
--... | alephcloud/hs-aws-lambda | src/Aws/Lambda/Commands/ListFunctions.hs | apache-2.0 | 3,367 | 0 | 13 | 570 | 441 | 263 | 178 | 63 | 1 |
-- 137846528820
import Euler(nChooseK)
nn = 20
-- two choices at each node, 2n nodes to traverse
latticePaths n = nChooseK (n*2) n
main = putStrLn $ show $ latticePaths nn
| higgsd/euler | hs/15.hs | bsd-2-clause | 175 | 0 | 7 | 34 | 52 | 28 | 24 | 4 | 1 |
-- | Benchmarks simple file reading
--
-- Tested in this benchmark:
--
-- * Reading a file from the disk
--
module Benchmarks.FileRead
( benchmark
) where
import Control.Applicative ((<$>))
import Criterion (Benchmark, bgroup, bench, whnfIO)
import qualified Data.ByteString as SB
import qualified Data.ByteStri... | bgamari/text | benchmarks/haskell/Benchmarks/FileRead.hs | bsd-2-clause | 1,136 | 0 | 11 | 220 | 329 | 191 | 138 | 23 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QGraphicsLineItem.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/QGraphicsLineItem.hs | bsd-2-clause | 47,577 | 0 | 17 | 6,879 | 13,337 | 6,759 | 6,578 | -1 | -1 |
{-# LANGUAGE PackageImports #-}
module Numeric.Histogram ( module Histogram ) where
import qualified "Chart" Numeric.Histogram as Histogram
| bgamari/chart-histogram | Numeric/Histogram.hs | bsd-3-clause | 142 | 0 | 4 | 19 | 22 | 16 | 6 | 3 | 0 |
module Matching where
import Syntax
import Pretty
import Text.PrettyPrint
import Control.Monad.State.Lazy
import Control.Monad.Except
import Data.List
import qualified Data.Set as S
import Debug.Trace
-- As we have second-order matching, the state will be a list of
-- all possible success substitutions
-- list of succ... | Fermat/higher-rank | src/Matching.hs | bsd-3-clause | 5,017 | 0 | 18 | 1,446 | 2,453 | 1,311 | 1,142 | 103 | 2 |
{-# LANGUAGE ImplicitParams, RecordWildCards #-}
module Frontend.Inline where
import Data.List
import Data.List.Split
import Data.Maybe
import Data.Tuple.Select
import Control.Monad.State
import Text.PrettyPrint
import qualified Data.Map as M
import qualified Data.Graph.Inductive as G
import Util hiding ... | termite2/tsl | Frontend/Inline.hs | bsd-3-clause | 21,817 | 0 | 20 | 6,402 | 7,228 | 3,698 | 3,530 | 406 | 11 |
{-# LANGUAGE CPP
, UnicodeSyntax
, NoImplicitPrelude
, FlexibleContexts
, ScopedTypeVariables
#-}
--------------------------------------------------------------------------------
-- |
-- Module : System.USB.Safe.Iteratee
-- Copyright : (c) 2011 Bas van Dijk
-- Lic... | basvandijk/usb-safe | System/USB/Safe/Iteratee.hs | bsd-3-clause | 19,490 | 2 | 49 | 7,889 | 2,983 | 1,645 | 1,338 | 96 | 4 |
{-|
Module : Database.Relational.NotNull
Description : Definition of NOT_NULL.
Copyright : (c) Alexander Vieth, 2015
Licence : BSD3
Maintainer : aovieth@gmail.com
Stability : experimental
Portability : non-portable (GHC only)
-}
{-# LANGUAGE AutoDeriveTypeable #-}
module Database.Relational.NotNull (
... | avieth/Relational | Database/Relational/NotNull.hs | bsd-3-clause | 377 | 0 | 5 | 73 | 25 | 17 | 8 | 4 | 0 |
{-# LANGUAGE NoImplicitPrelude #-}
-- |
-- Module: $HEADER$
-- Description: TODO
-- Copyright: (c) 2014, 2015 Peter Trsko
-- License: BSD3
--
-- Maintainer: peter.trsko@gmail.com
-- Stability: experimental
-- Portability: NoImplicitPrelude
--
-- TODO
module Main.Type.OptionsConfig
( OptionsConf... | trskop/skeletos | src/Main/Type/OptionsConfig.hs | bsd-3-clause | 1,537 | 0 | 9 | 305 | 323 | 202 | 121 | 30 | 1 |
{-|
Module : Tree
Description : Tests for Network.Kademlia.Tree
Tests specific to Network.Kademlia.Tree.
-}
module Tree where
import Test.QuickCheck
import qualified Network.Kademlia.Tree as T
import Network.Kademlia.Types
import Control.Monad (liftM)
import Data.List (sortBy)
import Data.Maybe (isJust)
impor... | froozen/kademlia | test/Tree.hs | bsd-3-clause | 3,290 | 0 | 14 | 970 | 934 | 478 | 456 | 54 | 2 |
{-# LANGUAGE TypeOperators #-} -- For :+: in signatures
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
import Data.Char
import Data.Machine
import qualified Data.Map as Map
{-
Simplest possible machine
-------------------------
To do something useful, you need t... | bitemyapp/machines-play | Main.hs | bsd-3-clause | 15,431 | 0 | 13 | 3,436 | 2,012 | 1,070 | 942 | 132 | 2 |
{-# LANGUAGE LambdaCase, TupleSections, RecordWildCards, OverloadedStrings #-}
module Transformations.Optimising.Inlining where
import Debug.Trace
import Text.Printf
import Data.Set (Set)
import qualified Data.Set as Set
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import Data.Functor.Foldable... | andorp/grin | grin/src/Transformations/Optimising/Inlining.hs | bsd-3-clause | 4,299 | 0 | 18 | 876 | 1,328 | 692 | 636 | 78 | 3 |
{-# LANGUAGE FlexibleInstances, GeneralizedNewtypeDeriving #-}
{- |
Module : $Header$
Description : Validation of M4 type statements
Copyright : (c) Galois, Inc.
Validation of M4 type statements
-}
module SCD.M4.CheckTypeStmt(checkInterface) where
import SCD.M4.Syntax(Interface(..), InterfaceElement(..),
I... | GaloisInc/sk-dev-platform | libs/SCD/src/SCD/M4/CheckTypeStmt.hs | bsd-3-clause | 2,201 | 0 | 8 | 580 | 748 | 389 | 359 | 41 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module System.Armory.Types
( Platform(..)
, Version
, Architecture(..)
, Name
, InstructionsMap
, Program(..)
, Config(..)
, makeDefaultConfig
) where
import Control.Applicative ((<$>), (<*>), empty, pure)
import Data.Version (showVersion)
import S... | chrisdotcode/armory | System/Armory/Types.hs | bsd-3-clause | 5,390 | 0 | 14 | 1,553 | 1,476 | 789 | 687 | 135 | 5 |
{-# LANGUAGE TypeFamilies #-}
module EFA.Flow.Storage.Quantity where
import qualified EFA.Flow.Storage.Variable as StorageVar
import qualified EFA.Flow.Storage.Index as StorageIdx
import qualified EFA.Flow.Storage as Storage
import qualified EFA.Flow.Topology.Quantity as FlowTopo
import qualified EFA.Flow.Part.Index ... | energyflowanalysis/efa-2.1 | src/EFA/Flow/Storage/Quantity.hs | bsd-3-clause | 5,354 | 0 | 14 | 1,111 | 1,926 | 994 | 932 | 127 | 2 |
{-# LANGUAGE QuasiQuotes #-}
module Main where
import QuadrapleTH
import TuringMachine
zeroOneDouble :: SimpleMachine
zeroOneDouble = [tm|
-- 0: initial state; seeking '0'
-- 1: seeking first '1'
-- 2: seeking second '2'
-- 3: return to the last 'X'
-- 4: ensuring every '1' replaced by 'Y'
-- 5: accepted.
-- a-... | konn/turing-machine | example.hs | bsd-3-clause | 2,481 | 0 | 11 | 671 | 359 | 198 | 161 | 34 | 1 |
-- (c) The University of Glasgow 2006
-- (c) The GRASP/AQUA Project, Glasgow University, 1992-1998
--
-- The @Class@ datatype
{-# LANGUAGE CPP, DeriveDataTypeable #-}
module Class (
Class,
ClassOpItem, DefMeth (..),
ClassATItem(..),
ClassMinimalDef,
defMethSpecOfDefMeth,
... | green-haskell/ghc | compiler/types/Class.hs | bsd-3-clause | 10,039 | 0 | 12 | 2,853 | 1,577 | 904 | 673 | 132 | 3 |
{-# LANGUAGE CPP
, NoImplicitPrelude
, PackageImports
, TypeFamilies
, UnicodeSyntax
#-}
module Text.Numeral.Exp.Reified ( Exp(..), showExp, Side(L, R) ) where
-------------------------------------------------------------------------------
-- Imports
--------------------... | roelvandijk/numerals-base | src/Text/Numeral/Exp/Reified.hs | bsd-3-clause | 3,845 | 0 | 11 | 939 | 959 | 533 | 426 | 62 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
-- |
-- Module: $HEADER$
-- Description: TODO
-- Copyright: (c) 2015 Jan Šipr, Matej Kollár, Peter Trško
-- License: BSD3
--
-- Stability: experimental
-- Portability: GHC specific language extension... | FPBrno/dht-api | src/Data/DHT/Type/NodeId.hs | bsd-3-clause | 782 | 0 | 8 | 132 | 179 | 109 | 70 | 16 | 0 |
-- !!! Irrefutable patterns + guards
module Read003 where
import Data.OldList; import Prelude hiding (null)
~(a,b,c) | nullity b = a
| nullity c = a
| otherwise = a
where
nullity = null
| jstolarek/ghc | testsuite/tests/parser/should_fail/readFail003.hs | bsd-3-clause | 197 | 6 | 8 | 45 | 79 | 42 | 37 | 6 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Graphics.ChalkBoard.Shader
( gslBoard
, UniformArgument(..)
, Argument(..)
, TextureSize(..)
, board
, buffer
, uniform
) where
import Graphics.ChalkBoard.Internals
--import Graphics.ChalkBoard.Types
import Graphics.ChalkBoard.O.Internals
import Graphics.ChalkBoard... | andygill/chalkboard2 | Graphics/ChalkBoard/Shader.hs | bsd-3-clause | 715 | 6 | 11 | 111 | 174 | 105 | 69 | 14 | 1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
-----------------------------------------------------------------------------
--
-- Stg to C-- code generation: expressions
--
-- (c) The University of Glasgow 2004-2006
--
-----------------------------------------------------------------------------
m... | snoyberg/ghc | compiler/codeGen/StgCmmExpr.hs | bsd-3-clause | 34,704 | 3 | 20 | 9,333 | 4,926 | 2,600 | 2,326 | -1 | -1 |
-- A non-copying cp based on mmap.
import System.IO.Posix.MMap
import Control.Monad
import System.Mem
import qualified Data.ByteString as S
import Text.Printf
import Control.Exception
import System.CPUTime
main = do
--should run in constant space, and be faster:
time $ forM_ [0..1000] $ \_ -> do
unsa... | michaelt/pipes-bytestring-mmap | tests/pressure.hs | bsd-3-clause | 759 | 0 | 14 | 181 | 228 | 116 | 112 | 22 | 1 |
{-# LANGUAGE CPP #-}
module Test.QuickCheck
(
-- * Running tests
quickCheck
, Args(..), Result(..)
, stdArgs
, quickCheckWith
, quickCheckWithResult
, quickCheckResult
-- ** Running tests verbosely
, verboseCheck
, verboseCheckWith
, verboseCheckWithResult
, verboseCheckResult
, verbos... | nh2/quickcheck | Test/QuickCheck.hs | bsd-3-clause | 2,494 | 0 | 6 | 536 | 414 | 293 | 121 | 91 | 0 |
{-# LANGUAGE GADTs, ScopedTypeVariables #-}
module Desysad where
import Control.Monad.State.Strict
import Control.Monad.Error
import System.IO
import System.Directory
import System.Process
import System.Exit
import Control.Concurrent
import Control.Exception as E
--- ONE APPROACH
data Cmd a where
Return :: a -> C... | glutamate/tnutils | Desysad.hs | bsd-3-clause | 3,526 | 0 | 14 | 1,262 | 1,250 | 621 | 629 | 102 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_HADDOCK show-extensions #-}
-- |
-- Module : Yi.Keymap.Vim.StateUtils
-- License : GPL-2
-- Maintainer : yi-devel@googlegroups.com
-- Stability : experimental
-- Portability : portable
module Yi.Keymap.Vim.StateUtils
( switchMode
, switchModeE
... | Fuuzetsu/yi | yi-keymap-vim/src/Yi/Keymap/Vim/StateUtils.hs | gpl-2.0 | 6,122 | 0 | 17 | 1,679 | 1,534 | 820 | 714 | 138 | 11 |
main = (1.0e10, 3.0e-4, 4.5e+2, 1E-4, 2E4, 3.0E+4, 4E-20)
| roberth/uu-helium | test/parser/Exponent.hs | gpl-3.0 | 58 | 0 | 5 | 9 | 27 | 17 | 10 | 1 | 1 |
{- |
== Convenience header for basic GObject-Introspection modules
See the documentation for each individual module for a description and
usage help.
-}
module Data.GI.Base
( module Data.GI.Base.Attributes
, module Data.GI.Base.BasicConversions
, module Data.GI.Base.BasicTypes
, module Data.GI.Base.... | hamishmack/haskell-gi-base | src/Data/GI/Base.hs | lgpl-2.1 | 1,090 | 0 | 6 | 154 | 246 | 176 | 70 | 25 | 0 |
{-# LANGUAGE DeriveGeneric #-}
{- |
Module: Network.SoundCloud.MiniUser
Copyright: (c) 2012 Sebastián Ramírez Magrí <sebasmagri@gmail.com>
License: BSD3
Maintainer: Sebastián Ramírez Magrí <sebasmagri@gmail.com>
Stability: experimental
Minimal representation of an user used when embedd... | sebasmagri/HScD | src/Network/SoundCloud/MiniUser.hs | bsd-3-clause | 1,076 | 0 | 9 | 300 | 152 | 90 | 62 | 15 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : HEP.Data.LHEF.PipesUtil
-- Copyright : (c) 2017 Chan Beom Park
-- License : BSD-style
-- Maintainer : Chan Beom Park <cbpark@gmail.com>
-- Stability : experimental
-- Portability : GHC
--
-- Helper func... | cbpark/hep-kinematics | src/HEP/Data/LHEF/PipesUtil.hs | bsd-3-clause | 2,385 | 0 | 10 | 646 | 440 | 258 | 182 | 31 | 1 |
module Data.Yaml.Union
( decodeBytestrings
, decodeBytestringsEither
, decodeFiles
, decodeFilesEither
) where
import Data.ByteString (ByteString)
import Data.Foldable
import qualified Data.HashMap.Strict as M
import Data.Yaml hiding (decodeFile, decodeFileEither)
import ... | michelk/yaml-overrides.hs | src/Data/Yaml/Union.hs | bsd-3-clause | 2,570 | 0 | 18 | 630 | 919 | 467 | 452 | 70 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Some next-gen helper functions for the scaffolding's configuration system.
module Yesod.Default.Config2
( -- * Locally defined
configSettingsYml
, getDevSettings
, develMainHelper
, makeYesodLogger
-- * Re-exports from Data.Yaml.Co... | s9gf4ult/yesod | yesod/Yesod/Default/Config2.hs | mit | 3,998 | 0 | 14 | 753 | 754 | 423 | 331 | 86 | 2 |
module Main (main) where
import Graphics.UI.Gtk
{-
widgets that go into making a menubar and submenus:
* menu item (what the user wants to select)
* menu (acts as a container for the menu items)
* menubar (container for each of the individual menus)
menuitem widgets are used for two different things:... | phischu/gtk2hs | gtk/demo/menu/MenuDemo.hs | lgpl-3.0 | 2,395 | 0 | 15 | 769 | 350 | 171 | 179 | 35 | 2 |
{-
******************************************************************************
* H M T C *
* *
* Module: TAMCode *
*... | jbracker/supermonad-plugin | examples/monad/hmtc/original/TAMCode.hs | bsd-3-clause | 3,981 | 0 | 6 | 1,890 | 273 | 188 | 85 | 47 | 0 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for the @/proc/diskstats@ parser -}
{-
Copyright (C) 2013 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 Found... | vladimir-ipatov/ganeti | test/hs/Test/Ganeti/Storage/Diskstats/Parser.hs | gpl-2.0 | 4,633 | 0 | 19 | 1,097 | 1,464 | 758 | 706 | 75 | 2 |
{-|
Module : IRTS.Lang
Description : Internal representation of Idris' constructs.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE DeriveFunctor, DeriveGeneric, PatternGuards #-}
module IRTS.Lang where
import Idris.Core.CaseTree
import Idris.Core.TT
import Control.Applicative... | bravit/Idris-dev | src/IRTS/Lang.hs | bsd-3-clause | 16,194 | 0 | 17 | 6,046 | 6,140 | 3,093 | 3,047 | 313 | 22 |
<?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="sr-CS">
<title>AMF Support</title>
<maps>
<homeID>amf</homeID>
<mapref location="map.jh... | kingthorin/zap-extensions | addOns/amf/src/main/javahelp/help_sr_CS/helpset_sr_CS.hs | apache-2.0 | 956 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
module LambdaIn1 where
f z = \y@(j:js) -> j
| SAdams601/HaRe | old/testing/simplifyExpr/LambdaIn1_TokOut.hs | bsd-3-clause | 49 | 0 | 8 | 14 | 27 | 16 | 11 | 2 | 1 |
module T13644B where
data FuncId = FuncId { name :: () }
| ezyang/ghc | testsuite/tests/rename/should_fail/T13644B.hs | bsd-3-clause | 75 | 0 | 9 | 30 | 21 | 13 | 8 | 2 | 0 |
{-# LANGUAGE MultiParamTypeClasses #-}
-- | This module caused a duplicate instance in the documentation for the Foo
-- type.
module Bug7 where
-- | The Foo datatype
data Foo = Foo
-- | The Bar class
class Bar x y
-- | Just one instance
instance Bar Foo Foo
| DavidAlphaFox/ghc | utils/haddock/html-test/src/Bug7.hs | bsd-3-clause | 262 | 0 | 5 | 54 | 35 | 21 | 14 | -1 | -1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Marshal.Utils
-- Copyright : (c) The FFI task force 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer :... | tolysz/prepare-ghcjs | spec-lts8/base/Foreign/Marshal/Utils.hs | bsd-3-clause | 5,752 | 0 | 12 | 1,405 | 1,107 | 604 | 503 | 69 | 1 |
{-# LANGUAGE KindSignatures #-}
module Foo where
data Foo (a :: *) = Foo a
| urbanslug/ghc | testsuite/tests/parser/should_compile/read051.hs | bsd-3-clause | 79 | 0 | 6 | 19 | 21 | 14 | 7 | 3 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ConstraintKinds #-}
-- | Find all Alloc statements and associate their memory blocks with the
-- allocation size.
module Futhark.Optimise.MemoryBlockMerging.Reuse.AllocationSizes
( memBlockSizesFun... | ihc/futhark | src/Futhark/Optimise/MemoryBlockMerging/Reuse/AllocationSizes.hs | isc | 4,478 | 0 | 14 | 1,054 | 1,192 | 615 | 577 | 104 | 3 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -F -pgmF htfpp #-}
module Mock.Connection (
FakeConnection,
newFakeConnection,
prepareMsgToRead,
getSentMsg,
FakeConnections,
sendBuffer,
... | Haskell-Praxis/core-catcher | test/Mock/Connection.hs | mit | 1,689 | 0 | 11 | 381 | 371 | 192 | 179 | 46 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
module Xml.GroupSpec (spec) where
import Lastfm
import Lastfm.Group
import Test.Hspec
import Text.Xml.Lens
import SpecHelper
spec :: Spec
spec = do
it "getHype" $
publicly (getHype <*> groupname)
`shouldHaveXml`
root.node "weeklyartistchart"... | supki/liblastfm | test/api/Xml/GroupSpec.hs | mit | 1,331 | 0 | 12 | 228 | 314 | 160 | 154 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
module Import
( module Import
) where
import Foundation as Import
import Import.NoFoundation as Import
import Import.Utils as Import
import Import.File as Import
import Control.Arrow as Import (first, second, (&&&), (***))
import Databa... | ahushh/Monaba | monaba/src/Import.hs | mit | 28,251 | 0 | 26 | 8,215 | 6,600 | 3,448 | 3,152 | -1 | -1 |
module Grains where
square :: Integer -> Integer
square 1 = 1
square i = 2 * square (i-1)
total :: Integer
total = sum $ map square [1..64]
| tonyfischetti/exercism | haskell/grains/Grains.hs | mit | 143 | 0 | 8 | 32 | 67 | 36 | 31 | 6 | 1 |
module Compiler where
import Codec.Compression.GZip (bestCompression, compressLevel,
compressWith, decompress,
defaultCompressParams)
import Data.Aeson (eitherDecode)
import Data.... | plietar/super-user-spark | src/Compiler.hs | mit | 8,701 | 0 | 26 | 3,157 | 2,384 | 1,184 | 1,200 | 186 | 16 |
module Model.Object
(module Model.Movement
,Object(..)
,Color(..)
,moveObject
,objectHas
,objectCollidingWith
,mergeObjectWith
,increaseObject
)
where
import Model.Movement
{- Naming convention for this module.
* Record field names.
Each name is prefixed by abbreviation of record:
... | wowofbob/circles | src/Model/Object.hs | mit | 6,291 | 0 | 16 | 2,471 | 968 | 514 | 454 | 74 | 2 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DeriveFunctor #-}
module Vegito where
import Control.Applicative (liftA2)
data Step s o r where
Yield :: s -> o -> Step s o r
Skip :: s -> Step s o r
Done :: r -> Step s o r
deriving Functor
data Stre... | snoyberg/vegito | src/Vegito.hs | mit | 3,023 | 1 | 18 | 1,077 | 1,348 | 666 | 682 | 78 | 3 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, ScopedTypeVariables #-}
module Main (main) where
import RAExpr.Row
import RAExpr.RASet
import RAExpr.Value
import RAExpr.Condition
import RAExpr.Expression
import Parser
import Class.Pretty
import System.Environment
import System.IO (hFlush, st... | cameronbwhite/RelationalAlgebra | src/Main.hs | mit | 864 | 0 | 14 | 117 | 253 | 137 | 116 | 26 | 1 |
{-# language OverloadedStrings #-}
module Internal where
import Control.Concurrent.Async (async, wait)
import Control.Exception (bracket, throwIO, try)
import Control.Monad (when)
import Data.Maybe (fromJust)
import Data.String (IsString)
import Data.ByteString (ByteString)
import System.Posix.Files.ByteString (remove... | VyacheslavHashov/haskell-socket-unix | test/Internal.hs | mit | 3,599 | 0 | 19 | 785 | 887 | 445 | 442 | 94 | 2 |
module Rebase.Data.Hashable
(
module Data.Hashable
)
where
import Data.Hashable
| nikita-volkov/rebase | library/Rebase/Data/Hashable.hs | mit | 83 | 0 | 5 | 12 | 20 | 13 | 7 | 4 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.