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 OverloadedStrings #-}
import Control.Monad
import Control.Monad.Random
import Control.Applicative
import Control.Concurrent.ParallelIO
import Data.List (zipWith, sortBy, replicate, intercalate)
import Data.IORef
import Data.List.Split (splitOn)
import qualified Data.ByteString.Lazy as T
import qualifi... | zombiecalypse/SexSelect | src/SexSelect.hs | mit | 7,319 | 44 | 16 | 2,070 | 2,710 | 1,356 | 1,354 | 177 | 2 |
-- InfTreeNode.hs ---
--
-- Filename: InfTreeNode.hs
-- Description:
-- Author: Manuel Schneckenreither
-- Maintainer:
-- Created: Mon Oct 6 13:20:02 2014 (+0200)
-- Version:
-- Package-Requires: ()
-- Last-Updated: Tue Apr 11 14:34:02 2017 (+0200)
-- By: Manuel Schneckenreither
-- Update #: 7
-- URL:
--... | ComputationWithBoundedResources/ara-inference | src/Data/Rewriting/ARA/ByInferenceRules/InfTreeNode.hs | mit | 989 | 0 | 5 | 175 | 103 | 88 | 15 | 7 | 0 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Save changes to a new or existing site
--
-- License: MIT
-- Maintainer: Montez Fitzpatrick
-- Stability: experimental
-- APIVersion: 1.1
--
module Nexpose.API.SiteSave where
-- (
-- * Main Datatypes
--... | m15k/hs-nexpose-client | nexpose/src/Nexpose/API/SiteSave.hs | mit | 1,546 | 0 | 12 | 291 | 366 | 211 | 155 | 45 | 1 |
{-# htermination (*) :: Num a => a -> a -> a #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_STAR_1.hs | mit | 49 | 0 | 2 | 13 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE MultiWayIf #-}
module Main where
import Control.Monad
import Data.Char
import Language.Formura.Parser.Combinator
verbatim :: Char -> String
verbatim c
| c == '|' = "\\verb+" ++ [c] ++ "+"
| otherwise = "\\verb|" ++ [c] ++ "|"
main :: IO ()
main = do
putStrLn "\\begin{tabular}{cccccccccccccccc}"
... | nushio3/formura | exe-src/formura-list-reserved-char.hs | mit | 1,167 | 0 | 19 | 357 | 359 | 171 | 188 | 28 | 6 |
type Node = Int
start :: Node
start = 16
operator :: Node -> [Node]
operator x =
| x > 5 = [x-3, x - 5]
| x > 3 = [x-3]
| otherwise = []
terminal :: Node -> Boolean
terminal n = (operator n == [])
alphabeta :: [State] -> Int -> Int -> Int -> Boolean -> Int
alphabeta [x] d a b player = x
alphabeta (x:x... | fultonms/artificial-intelligence | exam/minmax.hs | mit | 711 | 6 | 12 | 204 | 422 | 211 | 211 | -1 | -1 |
module Solidran.Prot.Detail (encode) where
import Data.Map (Map)
import qualified Data.Map as Map
import Solidran.List (groupEvery)
codonTable :: Map String Char
codonTable =
Map.fromList
[ ("UUU", 'F')
, ("CUU", 'L')
, ("AUU", 'I')
, ("GUU", 'V')
, ("UUC", 'F')
, (... | Jefffrey/Solidran | src/Solidran/Prot/Detail.hs | mit | 1,868 | 0 | 10 | 779 | 720 | 462 | 258 | 77 | 1 |
{- Using textures instead of surfaces -}
{-# LANGUAGE OverloadedStrings #-}
module Lesson07 where
--
import qualified SDL
import Linear.V4 (V4(..))
--
import Control.Monad (unless,when)
--
import qualified Config
--
lesson07 :: IO ()
lesson07 = do
-- initialize SDL
SDL.initialize [SDL.InitVideo]
-- create wi... | rueshyna/sdl2-examples | src/Lesson07.hs | mit | 1,682 | 0 | 18 | 390 | 315 | 159 | 156 | 30 | 1 |
module Tracer.Color ( Color(..) ) where
import Data.Vect
data Color = Color Float Float Float deriving Eq
instance Pointwise Color where
pointwise (Color r g b) (Color r' g' b') = Color (r*r') (g*g') (b*b')
instance AbelianGroup Color where
(&+) (Color r1 g1 b1) (Color r2 g2 b2) = Color (r1+r2) (g1+g2... | sdeframond/haskell-tracer | src/Tracer/Color.hs | mit | 625 | 0 | 8 | 165 | 383 | 202 | 181 | 13 | 0 |
--
-- this version takes each line individually
--
isPalindrome :: String -> String
isPalindrome input
| input == reverse input = "palindrome!\n"
| otherwise = "boo\n"
-- main = do
-- line <- getLine
-- putStr $ isPalindrome line
-- main
--
-- this version takes everything in ... | adizere/nifty-tree | playground/palindrome.hs | mit | 587 | 3 | 10 | 146 | 104 | 55 | 49 | 8 | 1 |
module LispParser where
import Text.ParserCombinators.Parsec
-- magic :: a
-- magic = error "Not implemented yet."
-- AST for a simple lisp
type LSymbol = String
data LAtom = LSymbol LSymbol | LString String | LInt Int deriving Show
data LProg = LAtom LAtom | LList [LProg] | LQuote LProg deriving Show
-- Parser ... | totherme/Toys | Parsec/LispParser.hs | gpl-2.0 | 2,219 | 0 | 15 | 588 | 716 | 361 | 355 | 58 | 1 |
module Blaaargh.Internal.Time where
import Data.Time.Clock
import Data.Time.Format
import Data.Time.LocalTime
import System.Locale
import Text.Printf
formatAtomTime :: TimeZone -> UTCTime -> String
formatAtomTime tz = fmt . utcToLocalTime tz
where
fmt t = form... | gregorycollins/blaaargh | src/Blaaargh/Internal/Time.hs | gpl-2.0 | 834 | 0 | 11 | 248 | 221 | 120 | 101 | 18 | 2 |
{-# LANGUAGE DeriveDataTypeable, TemplateHaskell #-}
{-# LANGUAGE MultiParamTypeClasses, DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances, DeriveDataTypeable #-}
module Petri.Property where
import Petri.Type
import Autolib.Reporter
import Autolib.ToDoc
import Autolib.Reader
import qualified Data.Map as M
imp... | Erdwolf/autotool-bonn | src/Petri/Property.hs | gpl-2.0 | 4,239 | 2 | 25 | 1,621 | 1,243 | 604 | 639 | 84 | 8 |
-- Copyright (c) 2011-16, Nicola Bonelli
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- t... | pfq/PFQ | user/lib/Haskell/Network/PFQ/Lang/Experimental.hs | gpl-2.0 | 8,924 | 0 | 7 | 1,920 | 2,307 | 1,242 | 1,065 | 112 | 1 |
import Text.Pandoc2
import Criterion.Main
import Data.List (isSuffixOf)
import Text.JSON.Generic
import Data.Text.Encoding (decodeUtf8)
import Data.ByteString as B
main = do
inp <- B.readFile "README.markdown"
let poptions' = poptions
let convert :: B.ByteString -> Maybe Blocks
convert = markdownDoc poptio... | jgm/pandoc2 | Benchmark.hs | gpl-2.0 | 401 | 1 | 11 | 66 | 128 | 65 | 63 | 12 | 1 |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings #-}
-- | Manage, read, write lambda-associated param lists
module Lamdu.Sugar.Convert.ParamList
( ParamList, loadForLambdas
) where
import qualified Control.Lens as Lens
import Control.Lens.Operators
import Control.Monad.Trans.Class (MonadTr... | da-x/lamdu | Lamdu/Sugar/Convert/ParamList.hs | gpl-3.0 | 2,764 | 0 | 20 | 753 | 682 | 386 | 296 | -1 | -1 |
module SolvePCP where
--
-- SolvePCP -- Solve a given instance of PCP
--
import Control.Arrow
import Data.List (isPrefixOf)
import Data.Maybe (fromMaybe)
import Data.Tree
import System.Environment (getArgs, getProgName)
-- define PCP instances
type WordPair = (String, String)
type PCPInstance = [WordPair]
instance... | mzq42/PCPPlayground | Haskell/SolvePCP.hs | gpl-3.0 | 3,676 | 0 | 12 | 984 | 1,224 | 668 | 556 | 75 | 3 |
import Data.Char
l1 = [1, 1, 2, 3, 5]
mul x n = x * n
pow x n = x ^ n
doubleList = map (*2) l1
doubleList' = map (\x -> x * 2) l1
doubleList'' = map (mul 2) l1
doubleList''' = map (\x -> mul 2 x) l1
squareList = map (^2) l1
squareList' = map (\x -> x * x) ... | graninas/Haskell-Algorithms | Tests/Lessons/ListMap.hs | gpl-3.0 | 673 | 6 | 8 | 241 | 339 | 171 | 168 | 19 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Jumpie.TileIncrement where
import ClassyPrelude hiding(Real)
import Jumpie.Types
import Jumpie.GameConfig
newtype TileIncrement = TileIncrement { tileIncrementRelative :: Int } deriving(Num)
tileIncrementAbsReal :: TileIncrement -> Real
tileIncrementAbsReal = fromIn... | pmiddend/jumpie | lib/Jumpie/TileIncrement.hs | gpl-3.0 | 367 | 0 | 7 | 39 | 72 | 45 | 27 | 8 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-youtube/gen/Network/Google/Resource/YouTube/PlayLists/List.hs | mpl-2.0 | 10,275 | 0 | 25 | 2,400 | 1,426 | 832 | 594 | 188 | 1 |
module Rendering ( fromToFieldPos
, draw
, DrawSettings(..)
) where
import Data.Default
import Data.Maybe
import Control.Monad
import Data.Colour.RGBSpace as Colour
import qualified GI.Cairo.Render as Cairo
import Player
import Field
data DrawSettings = DrawSettings ... | kurnevsky/missile | src/Rendering.hs | agpl-3.0 | 8,511 | 0 | 23 | 2,719 | 2,709 | 1,382 | 1,327 | 145 | 9 |
module Paths_bitrest where
getDataFileName :: FilePath -> IO FilePath
getDataFileName = return
| bitraten/bitrest | src/Paths_bitrest.hs | agpl-3.0 | 96 | 0 | 6 | 13 | 21 | 12 | 9 | 3 | 1 |
module Fibonacci where
import Data.List
import Data.Bits
fibonacci :: Int -> Integer
fibonacci n = snd . foldl' fib' (1, 0) . dropWhile not $
[testBit n k | k <- let s = finiteBitSize n in [s - 1, s - 2 .. 0]]
where fib' (f, g) p
|p = (f * (f + 2 * g), ss)
|otherwise = (ss, g * (2 * f ... | ice1000/OI-codes | codewars/1-100/the-millionth-fibonacci-kata.hs | agpl-3.0 | 547 | 0 | 13 | 179 | 292 | 150 | 142 | 15 | 1 |
{-# LANGUAGE ExistentialQuantification,
TypeFamilies,
GADTs,
RankNTypes,
ScopedTypeVariables,
DeriveDataTypeable,
StandaloneDeriving,
MultiParamTypeClasses,
FlexibleInstances #-}
{-# LANGUAGE DeriveFunctor #-}
{- # L... | alanz/haxl-play | src/simple.hs | unlicense | 8,454 | 58 | 24 | 2,180 | 2,367 | 1,186 | 1,181 | 179 | 5 |
{-# LANGUAGE DeriveDataTypeable, FunctionalDependencies, MultiParamTypeClasses,
RecordWildCards #-}
-- |
-- Module: Network.Riak.Types.Internal
-- Copyright: (c) 2011 MailRank, Inc.
-- License: Apache
-- Maintainer: Bryan O'Sullivan <bos@mailrank.com>
-- Stability: experimental
-- Portability: porta... | bumptech/riak-haskell-client | src/Network/Riak/Types/Internal.hs | apache-2.0 | 7,635 | 0 | 10 | 1,959 | 1,383 | 801 | 582 | -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="hu-HU">
<title>Passive Scan Rules - Alpha | ZAP Extension</title>
<maps>
<homeID>top</homeI... | 0xkasun/security-tools | src/org/zaproxy/zap/extension/pscanrulesAlpha/resources/help_hu_HU/helpset_hu_HU.hs | apache-2.0 | 988 | 92 | 29 | 163 | 409 | 216 | 193 | -1 | -1 |
module Chapter2.DataModels where
data Client = GovOrg String
| Company String Integer Person String
| Individual Person Bool
deriving (Show)
data Person = Person String String Gender
deriving Show
data Gender = Male | Female | Unknown
derivi... | zer/BeginningHaskell | src/Chapter2/DataModels.hs | apache-2.0 | 584 | 0 | 7 | 186 | 126 | 74 | 52 | 14 | 0 |
-- Language extensions {{{
{-# LANGUAGE UnicodeSyntax #-}
-- }}} Language extensions
-- Imports {{{
import Criterion.Main
import Data.Quantum.Small.Operator
import Data.Quantum.Small.Operator.SubsystemCode
import Data.Quantum.Small.Operator.ReducedEschelonForm
-- }}} Imports
main = defaultMain
-- Benchmarks {{... | gcross/PauliQSC | benchmark.hs | bsd-2-clause | 5,473 | 1 | 11 | 2,477 | 1,065 | 546 | 519 | 162 | 1 |
module Mockup.server where
| klangner/splayer | test-src/Mockup/Server.hs | bsd-2-clause | 28 | 1 | 5 | 4 | 10 | 4 | 6 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | An simple, experimental tree generation module.
module NLP.TAG.Vanilla.Gen
( GenConf (..)
, gener... | kawu/tag-vanilla | src/NLP/TAG/Vanilla/Gen.hs | bsd-2-clause | 12,041 | 3 | 17 | 3,330 | 3,204 | 1,687 | 1,517 | 201 | 4 |
{-
Verified Koopa Troopa Movement
Toon Nolten
-}
{-# LANGUAGE GADTs, DataKinds, KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
module Koopa where
data Nat = Z | S Nat
data Natty :: Nat -> * where
Zy :: Natty Z
Sy :: Natty n -> Natty (S n)
natter :: Natty n -> Nat
... | toonn/haskell-casestt | koopa.hs | bsd-2-clause | 10,152 | 0 | 26 | 3,151 | 5,041 | 2,534 | 2,507 | -1 | -1 |
-- This module generates the files src/Extra.hs and test/TestGen.hs.
-- Either call "runghc Generate" or start "ghci" and use ":generate".
module Generate(main) where
import Data.List.Extra
import System.IO.Extra
import Control.Exception
import Control.Monad.Extra
import System.FilePath
import System.Directory
import... | ndmitchell/extra | Generate.hs | bsd-3-clause | 4,343 | 0 | 24 | 1,121 | 1,226 | 647 | 579 | 89 | 3 |
{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveGeneric #-}
module Aws.DynamoDb.Commands.Table(
-- * Commands
CreateTable(..)
, CreateTableResult(..)
, DescribeTable(..)
, DescribeTableResult(..)
, UpdateTable(..)
, UpdateTableResult(..)
, DeleteTable(..)
, DeleteTableResult(..)
, ListTables(..)
... | RayRacine/aws | Aws/DynamoDb/Commands/Table.hs | bsd-3-clause | 17,659 | 0 | 30 | 4,619 | 3,334 | 1,849 | 1,485 | -1 | -1 |
{-# LANGUAGE CPP, GADTs, NondecreasingIndentation #-}
-----------------------------------------------------------------------------
--
-- Generating machine code (instruction selection)
--
-- (c) The University of Glasgow 1996-2004
--
-----------------------------------------------------------------------------
-- Th... | holzensp/ghc | compiler/nativeGen/X86/CodeGen.hs | bsd-3-clause | 109,961 | 14 | 23 | 36,616 | 28,761 | 14,178 | 14,583 | -1 | -1 |
-- | This module provides the JBC-'Program' type and functionality to compute
-- and set additional information (eg. super classes, fields of a class wrt to
-- its super classes).
module Jinja.Program.Data
(
Program (..)
, Class (..)
, Field (..)
, Method (..)
, Type (..)
, Value (..)
, PC
, Var (.... | ComputationWithBoundedResources/jat | src/Jinja/Program/Data.hs | bsd-3-clause | 8,171 | 0 | 16 | 2,101 | 2,684 | 1,395 | 1,289 | 205 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
module Structure.Monadiclasses.Functor.Monad.Continuation (
Continuation(..)
) where
import Structure.Function
import Structure.Monadiclasses.Functor
import Structure.Monadiclasses.Functor.Monad
class (Monad m) => Continuation m where
callCC :: ((a -> m b... | Hexirp/monadiclasses | src/Structure/Monadiclasses/Functor/Monad/Continuation.hs | bsd-3-clause | 363 | 0 | 12 | 75 | 92 | 54 | 38 | 9 | 0 |
--
-- String munging common across modules.
--
-- (c) 2015 Galois, Inc.
--
module Tower.AADL.Names
( periodicEmitter
, periodicCallback
, signalEmitter
, signalCallback
, systemInit
, initEmitter
, initCallback
, prettyTime
, threadFile
, threadEmitterHeader
, smaccmPrefix
) where
import quali... | GaloisInc/tower | tower-aadl/src/Tower/AADL/Names.hs | bsd-3-clause | 1,612 | 0 | 8 | 234 | 347 | 202 | 145 | 39 | 1 |
module MB.Gen.RSS
( generateRssFeed
)
where
import Control.Applicative ((<|>))
import Data.Time.Format
( formatTime
, parseTime
)
import System.Locale
( rfc822DateFormat
)
import Data.Time.Format (defaultTimeLocale)
import MB.Types
import MB.Processing ( getRawPostTitle )
import MB.Template... | jtdaugherty/mathblog | src/MB/Gen/RSS.hs | bsd-3-clause | 1,198 | 0 | 12 | 311 | 332 | 175 | 157 | 31 | 1 |
module Numeric.MaxEnt.Deconvolution (
module Numeric.MaxEnt.Deconvolution.Internal
) where
import Numeric.MaxEnt.Deconvolution.Internal | jfischoff/Sharpen | src/Numeric/MaxEnt/Deconvolution.hs | bsd-3-clause | 139 | 0 | 5 | 12 | 24 | 17 | 7 | 3 | 0 |
-- 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.
module Duckling.Duration.AR.Tests
( tests
) where
import Data.String
import Prelude
import Test.Tasty
impor... | facebookincubator/duckling | tests/Duckling/Duration/AR/Tests.hs | bsd-3-clause | 509 | 0 | 9 | 80 | 79 | 50 | 29 | 11 | 1 |
module Language.Iso.Target.Scheme where
import Language.Iso.App
import Language.Iso.Fls
import Language.Iso.Ite
import Language.Iso.Lam
import Language.Iso.Tru
import Language.Iso.Var
newtype Scheme = Scheme { runScheme :: String }
instance Show Scheme where
show (Scheme ps) = ps
instance Var ... | joneshf/iso | src/Language/Iso/Target/Scheme.hs | bsd-3-clause | 813 | 0 | 12 | 228 | 272 | 143 | 129 | 25 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Netsuite.Restlet.Response (
RestletResponse (..),
RestletError (..),
interpretError
) where
import Data.Aeson
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BSL
import qualified Data.HashMap.Strict as HM
import Data.Monoid
import q... | anchor/haskell-netsuite | lib/Netsuite/Restlet/Response.hs | bsd-3-clause | 3,543 | 0 | 17 | 988 | 854 | 445 | 409 | 67 | 8 |
{-# LANGUAGE TemplateHaskell #-}
module Orbits.Simulation
( Simulation(Simulation)
, getBodies
, getEnergy
, doStep
) where
import Control.Lens
import Data.Vector (Vector)
import Numeric.Units.Dimensional (Time)
import Numeric.Units.Dimensional.Quantities (Energy)
import Orbits.System (Body)
-- | A simul... | bjoeris/orbits-haskell-tensorflow | src/Orbits/Simulation.hs | bsd-3-clause | 781 | 0 | 13 | 150 | 152 | 91 | 61 | 19 | 0 |
{-# LANGUAGE CPP #-}
{- |
Module : System.Log.Handler.Log4jXML
Copyright : Copyright (C) 2007-2011 John Goerzen
License : BSD3
Portability: GHC only?
log4j[1] XMLLayout log handlers.
Written by Bjorn Buckwalter, bjorn.buckwalter\@gmail.com
-}
module System.Log.Handler.Log4jXML (
-- * Intro... | jgoerzen/hslogger | src/System/Log/Handler/Log4jXML.hs | bsd-3-clause | 8,330 | 0 | 16 | 2,270 | 1,011 | 539 | 472 | 69 | 6 |
-- | Base import. Imports the flexible version of the library which uses
-- Repa co-ordinates for access (allowing you to express moves in greater
-- than 3 dimensions and to perform analysis on the underlying Repa
-- representation of the board, if you want).
--
-- If you want a simpler interface using (x, y) tuples ... | dpwright/igo | src/Game/Go.hs | bsd-3-clause | 569 | 0 | 5 | 100 | 54 | 39 | 15 | 7 | 0 |
module Brain.Nop where
import Logic
import Brain
-- | The brain that always suggests 'nop'.
nopBrain :: Brain
nopBrain = simpleBrain (const nop)
| sjoerdvisscher/icfp2011 | src/Brain/Nop.hs | bsd-3-clause | 147 | 0 | 7 | 25 | 32 | 19 | 13 | 5 | 1 |
module Servant (
-- | This module and its submodules can be used to define servant APIs. Note
-- that these API definitions don't directly implement a server (or anything
-- else).
module Servant.API,
-- | For implementing servers for servant APIs.
module Servant.Server,
-- | Using your types in request p... | derekelkins/servant-server | src/Servant.hs | bsd-3-clause | 727 | 0 | 5 | 125 | 98 | 68 | 30 | 15 | 0 |
import System.IO
import Data.Char (ord)
import Data.Binary
import qualified Data.ByteString as S
import qualified Data.ByteString.Lazy as L
eurusdFileP = "EurUsdPacked.bin"
main :: IO ()
main = do
hp <- openFile eurusdFileP ReadMode
-- get all chars
L.hGet hp 3 >>= print
-- get last char ('R') of EUR... | thlorenz/Pricetory | src/spikes/ReadByteStringFromFile.hs | bsd-3-clause | 376 | 0 | 9 | 85 | 110 | 59 | 51 | 12 | 1 |
module Emx.Track where
data Track = Tr {artist, album, title, ext, dlurl, label, arturl,
tracknum, genre :: String,
disccount, discnum, trackcount :: Int } deriving Show
| bwo/getemx | Emx/Track.hs | bsd-3-clause | 205 | 0 | 8 | 61 | 50 | 39 | 11 | 4 | 0 |
module Str where
import Language.Haskell.TH
import Language.Haskell.TH.Quote
str :: QuasiQuoter
str = QuasiQuoter
{ quoteExp = stringE
, quotePat = undefined
, quoteType = undefined
, quoteDec = undefined
}
| m-schmidt/fuzzer | src/Str.hs | bsd-3-clause | 232 | 0 | 6 | 55 | 53 | 35 | 18 | 9 | 1 |
{-# LANGUAGE TemplateHaskell
,ExistentialQuantification
,PolyKinds
,DataKinds #-}
module UnitB.FunctionTable.Spec.Doc where
import Control.Lens
import Control.Lens.Bound
import Control.Monad.Writer hiding (All)
import Data.Bitraversable
import Data.Char
import Data.Constraint
import Data.Existe... | unitb/logic-function-tables | src/UnitB/FunctionTable/Spec/Doc.hs | bsd-3-clause | 7,029 | 0 | 14 | 1,828 | 2,458 | 1,291 | 1,167 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
module Penny.Price.Internal where
import Control.Lens
import Penny.Commodity
import Data.Map (Map)
import qualified Data.Map as M
import Data.Time
import Penny.Decimal
type FromCy = Commodity
type ToCy = Commodity
data... | massysett/penny | penny/lib/Penny/Price/Internal.hs | bsd-3-clause | 2,082 | 0 | 17 | 468 | 668 | 348 | 320 | 67 | 3 |
{-# LANGUAGE TypeFamilies, ConstraintKinds, PatternSynonyms #-}
-- | This module is used for defining Shake build systems. As a simple example of a Shake build system,
-- let us build the file @result.tar@ from the files listed by @result.txt@:
--
-- @
-- import "Development.Shake"
-- import "Development.Shake.FileP... | ndmitchell/shake | src/Development/Shake.hs | bsd-3-clause | 11,664 | 0 | 8 | 1,950 | 1,007 | 719 | 288 | 86 | 1 |
-- | Config helpers
module Pos.Util.Config
( embedYamlConfigCT
, embedYamlObject
, parseYamlConfig
, ConfigurationException (..)
) where
import Universum
import qualified Data.Map as Map
import qualified Data.Yaml as Y
import qualified Language.Haskell.TH.Syntax as TH
imp... | input-output-hk/pos-haskell-prototype | lib/src/Pos/Util/Config.hs | mit | 2,969 | 0 | 18 | 787 | 755 | 380 | 375 | -1 | -1 |
module Test.Hspec.Expectations.Matcher (matchList) where
import Prelude hiding (showList)
import Data.List
matchList :: (Show a, Eq a) => [a] -> [a] -> Maybe String
xs `matchList` ys
| null extra && null missing = Nothing
| otherwise = Just (err "")
where
extra = xs \\ ys
missing =... | soenkehahn/hspec-expectations | src/Test/Hspec/Expectations/Matcher.hs | mit | 927 | 0 | 11 | 252 | 303 | 153 | 150 | 20 | 2 |
{-# LANGUAGE UnboxedTuples #-}
module JavaScript.Object ( Object
, create
, getProp, unsafeGetProp
, setProp, unsafeSetProp
, allProps, listProps
, isInstanceOf
) where
... | ghcjs/ghcjs-base | JavaScript/Object.hs | mit | 2,598 | 0 | 6 | 631 | 88 | 61 | 27 | 13 | 0 |
{-|
Module : Translation.TypeInference
Description : Type inference for expressions
Maintainer : Josh Acay <cacay@cmu.edu>
Stability : experimental
-}
module Translation.TypeInference (Context, Error, infer) where
import Control.Monad
import Control.Monad.Error (throwError)
import Control.Monad.Reader (ReaderT... | oulgen/CudaPy | py2cuda/src/Translation/TypeInference.hs | mit | 5,941 | 0 | 13 | 1,377 | 2,276 | 1,183 | 1,093 | 143 | 12 |
{- |
Module : ./CASL/Fold.hs
Description : folding functions for CASL terms and formulas
Copyright : (c) Christian Maeder, Uni Bremen 2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
folding functions for CASL ter... | spechub/Hets | CASL/Fold.hs | gpl-2.0 | 6,792 | 0 | 13 | 1,793 | 2,544 | 1,319 | 1,225 | 135 | 15 |
module Nirum.Constructs.TypeExpression ( TypeExpression ( ListModifier
, MapModifier
, OptionModifier
, SetModifier
... | spoqa/nirum | src/Nirum/Constructs/TypeExpression.hs | gpl-3.0 | 1,933 | 0 | 8 | 911 | 351 | 209 | 142 | 36 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Network.AWS.CognitoIdentity.Types.Sum... | fmapfmapfmap/amazonka | amazonka-cognito-identity/gen/Network/AWS/CognitoIdentity/Types/Sum.hs | mpl-2.0 | 1,499 | 0 | 12 | 284 | 200 | 110 | 90 | 27 | 0 |
module QR.Pancakes where
import Data.List
type SleepCount = Either String Int
getCodejam :: String -> IO String
getCodejam xs = do
putStrLn xs
let out = getPanCakes xs
putStrLn out
return out
getPanCakes :: String -> String
getPanCakes xs =
let inputs = words xs
ys = head inputs
y = read (las... | lihlcnkr/codejam | src/QR/Pancakes.hs | apache-2.0 | 1,686 | 0 | 21 | 524 | 515 | 260 | 255 | 35 | 6 |
<?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-SP">
<title>Bug Tracker</title>
<maps>
<homeID>top</homeID>
<mapref location="map.j... | veggiespam/zap-extensions | addOns/bugtracker/src/main/javahelp/org/zaproxy/zap/extension/bugtracker/resources/help_sr_SP/helpset_sr_SP.hs | apache-2.0 | 957 | 79 | 66 | 157 | 409 | 207 | 202 | -1 | -1 |
{-# LANGUAGE CPP #-}
module GHC.Prof
( decode
, decode'
-- * Parser
, profile
-- * Cost-centre tree
, CostCentreTree
, aggregatedCostCentres
, aggregatedCostCentresOrderBy
, costCentres
, costCentresOrderBy
, aggregateCallSites
, aggregateCallSitesOrderBy
, callSites
, callSitesOrderBy
,... | maoe/ghc-time-alloc-prof | src/GHC/Prof.hs | bsd-3-clause | 1,314 | 0 | 9 | 230 | 290 | 181 | 109 | 38 | 2 |
--------------------------------------------------------------------------------
-- |
-- Module : HEP.Kinematics.Variable
-- Copyright : (c) 2015-2020 Chan Beom Park
-- License : BSD-style
-- Maintainer : Chan Beom Park <cbpark@gmail.com>
-- Stability : experimental
-- Portability : GHC
--
-- Variou... | cbpark/hep-kinematics | src/HEP/Kinematics/Variable.hs | bsd-3-clause | 4,533 | 0 | 13 | 1,386 | 596 | 354 | 242 | 70 | 1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[RnSource]{Main pass of renamer}
-}
{-# LANGUAGE CPP #-}
module Eta.Rename.RnTypes (
-- Type related stuff
rnHsType, rnLHsType, rnLHsTypes, rnContext,
rnHsKind, rnLHsKind, rnLHsMaybeKind,
rnHsSigType, rnLHsInstType, r... | rahulmutt/ghcvm | compiler/Eta/Rename/RnTypes.hs | bsd-3-clause | 45,197 | 0 | 22 | 13,150 | 12,072 | 6,160 | 5,912 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Hooks.DynamicBars
-- Copyright : (c) Ben Boeckel 2012
-- License : BSD-style (as xmonad)
--
-- Maintainer : mathstuf@gmail.com
-- Stability : unstable
-- Portability : unportable
--
-- Manage per-sc... | markus1189/xmonad-contrib-710 | XMonad/Hooks/DynamicBars.hs | bsd-3-clause | 4,571 | 0 | 19 | 848 | 966 | 507 | 459 | -1 | -1 |
-- | Properties that specify the appearance of the GUI elements.
-- The specification is inspired by CSS. All properties
-- are set in the cascade manner. For example, if you want to change the font type
-- for all elements you should set this property only for the top-most GUI element.
-- If the property is set on th... | isomorphism/csound-expression | src/Csound/Control/Gui/Props.hs | bsd-3-clause | 831 | 0 | 5 | 165 | 116 | 83 | 33 | 9 | 0 |
module FunIn4 where
--Default parameters can be added to definition of functions and simple constants.
--In this example: add parameter 'y' to 'foo'
main::Int
main = sum [x+4 |let foo =[1..4], x<-foo]
| kmate/HaRe | test/testdata/AddOneParameter/FunIn4.hs | bsd-3-clause | 205 | 0 | 11 | 36 | 49 | 28 | 21 | 3 | 1 |
{-# LANGUAGE GADTs, DataKinds, KindSignatures, PolyKinds, FlexibleContexts, RankNTypes, ScopedTypeVariables #-}
module T9725 where
data En = M Bool
class Kn (l :: En)
instance Kn (M b)
data Fac :: En -> * where
Mo :: Kn (M b) => Fac (M b)
data Fm :: * -> * where
HiF :: Kn (ent b) => Fm (Fac (ent b)) -> Fm (O en... | shlevy/ghc | testsuite/tests/polykinds/T9725.hs | bsd-3-clause | 1,547 | 0 | 14 | 520 | 431 | 222 | 209 | -1 | -1 |
{-# LANGUAGE TypeFamilies, ConstraintKinds #-}
import qualified Data.Set as S
import GHC.Exts ( Constraint )
class RMonad m where
type RMonadCtxt m a :: Constraint
returnR :: (RMonadCtxt m a) => a -> m a
bindR :: (RMonadCtxt m a, RMonadCtxt m b) => m a -> (a -> m b) -> m b
instance RMonad [] where
t... | olsner/ghc | testsuite/tests/typecheck/should_run/tcrun044.hs | bsd-3-clause | 806 | 0 | 13 | 235 | 370 | 194 | 176 | 20 | 1 |
module Imp10 where
import {-# SOURCE #-} Imp10Aux
| siddhanathan/ghc | testsuite/tests/rename/should_compile/rn009.hs | bsd-3-clause | 50 | 0 | 3 | 8 | 8 | 6 | 2 | 2 | 0 |
module Euler.Problem010Test (suite) where
import Test.Tasty (testGroup, TestTree)
import Test.Tasty.HUnit
import Euler.Problem010
suite :: TestTree
suite = testGroup "Problem010"
[ testCase "ceiling of 10" test10
]
test10 :: Assertion
test10 = 17 @=? solution 10
| whittle/euler | test/Euler/Problem010Test.hs | mit | 303 | 0 | 7 | 75 | 75 | 43 | 32 | 9 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
module Bio.Data.Bed.Types
( BEDLike(..)
, BEDConvert(..)
, BED(..)
, BED3(..)
, BEDGraph(..)
, bdgValue
, NarrowPeak(..)
, npSignal
, npPval... | kaizhang/bioinformatics-toolkit | bioinformatics-toolkit/src/Bio/Data/Bed/Types.hs | mit | 12,918 | 0 | 19 | 3,810 | 4,441 | 2,394 | 2,047 | 283 | 1 |
{-# htermination (ord :: Char -> MyInt) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
data Char = Char MyInt ;
data MyInt = Pos Nat | Neg Nat ;
data Nat = Succ Nat | Zero ;
primCharToInt :: Char -> MyInt;
primCharToInt (Char x) = x;
fromEnumChar :: Char ->... | ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/ord_1.hs | mit | 404 | 0 | 8 | 95 | 131 | 78 | 53 | 12 | 1 |
-- Haskell version of bst.ps with `seq` to try to improve performance
data Bst = Mt | Node Bst Int Bst
type Ints = [Int]
list_bst :: Ints -> Bst
list_bst xs = list_bst_acc xs Mt
list_bst_acc :: Ints -> Bst -> Bst
list_bst_acc xs t0 =
case xs of
(x:xs1) ->
let t1 = bst_insert x t0
... | lee-naish/Pawns | bench/hssbst.hs | mit | 1,284 | 0 | 13 | 451 | 376 | 200 | 176 | 28 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Stockfighter
import Stockfighter.UI
main :: IO ()
main = runStockfighter "API_KEY" (withLevel "first_steps" startBlotter)
| cnr/stockfighter-hs | app/Main.hs | mit | 185 | 0 | 7 | 25 | 41 | 23 | 18 | 6 | 1 |
-- sum of all the primes less than two million
module Main where
import Data.List
-- utility functions
slice :: (Int,Int) -> [b] -> [b]
slice (a,b) list = map (list !!) [a..b]
fstTrue :: (a -> Bool) -> [a] -> a
fstTrue test list = head $ filter test list
safeElemIndex :: Eq a => a -> [a] -> Int
safeElemIndex item... | ron-wolf/haskeuler | src/10.hs | mit | 1,717 | 0 | 8 | 383 | 662 | 352 | 310 | 35 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE BangPatterns #-}
module Statistics.Correlation.Spearman
( spearman
, spearmanMatrix
) where
import Data.Ord
import qualified Data.Vector.Unboxed as U
import Data.Vector.Generic ((!))
import qualified Data.Vector.Generic as G
import... | kaizhang/statistics-correlation | Statistics/Correlation/Spearman.hs | mit | 3,992 | 0 | 19 | 1,377 | 1,157 | 629 | 528 | 86 | 3 |
module Main where
import Config
main :: IO ()
main = do
putStrLn "InstaHuskee 🐕 "
showBogusSettings :: IO ()
showBogusSettings = do
code <- lookupSetting "IG_CODE" "default-code"
secret <- lookupSetting "IG_SECRET" "default-secret"
clientId <- lookupSetting "IG_CLIENT_ID" "default-client-id"
red... | dzotokan/instahuskee | app/Main.hs | mit | 546 | 0 | 8 | 105 | 143 | 66 | 77 | 16 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Language.PureScript.CoreFn.Literals
-- Copyright : (c) 2013-14 Phil Freeman, (c) 2014 Gary Burgess, and other contributors
-- License : MIT
--
-- Maintainer : Phil Freeman <paf31@cantab.net>, Gary Burgess <gary.... | michaelficarra/purescript | src/Language/PureScript/CoreFn/Literals.hs | mit | 1,224 | 0 | 8 | 232 | 135 | 96 | 39 | 11 | 0 |
import qualified Data.Map as M
type PersonName = String
type PhoneNumber = String
type BillingAddress = String
data MobileCarrier = Honest_Bobs_Phone_Network
| Morrisas_Marvelous_Mobiles
| Peters_Plutocratic_Phones
deriving (Eq, Ord)
findCarrierBillingAddress :... | zhangjiji/real-world-haskell | ch14/Carrier.hs | mit | 579 | 0 | 10 | 222 | 96 | 53 | 43 | 13 | 0 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Text
import Data.Aeson
import Control.Monad
import Control.Applicative
data Neighbor = Neighbor
{ ip :: Text
, port :: Int
, revision :: Int
} deriving (Eq, Show)
instance FromJSON Neighbor where
parseJSON (Object v) = Neighbor <$>
... | adizere/nifty-tree | playground/aeson.hs | mit | 988 | 0 | 11 | 274 | 203 | 109 | 94 | 25 | 1 |
module Move where
import Text.ParserCombinators.Parsec
import Data.Char (toUpper)
import Data.Maybe (fromJust)
import System.IO
data PlayerResponse = Position Coord | MetaResponse Option | Invalid
data Coord = Coord (Int, Int) deriving (Eq, Ord)
data Option = Pass | Exit | Save deriving Show
data Player = White | Bl... | JonHarder/haskell-go | Move.hs | gpl-2.0 | 1,940 | 0 | 12 | 397 | 718 | 369 | 349 | 54 | 3 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverlappingInstances #-}
{-# LANGUAGE TemplateHaskell #-}
module Reg where
import Text.Show.Functions
import qualified Data.List as L
data RegTerm = Is Char | OneOf [Char] | NoneOf [Char] | Any deriving (Eq)
data RegExp = Or [Eit... | pocket7878/min-tokenizer | src/Reg.hs | gpl-3.0 | 1,809 | 0 | 12 | 461 | 879 | 474 | 405 | 58 | 1 |
--------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings,FlexibleContexts #-}
import Hakyll
import Data.Monoid ((<>), mconcat, mappend)
import Data.List (isInfixOf)
import System.FilePath.Posix (takeBaseName,takeDirectory,(</>),splitFileName)
import Text.Pandoc
-... | wfaler/recursivity-com | recursivity-site.hs | gpl-3.0 | 8,350 | 0 | 23 | 1,966 | 1,716 | 826 | 890 | 168 | 2 |
module WordCount where
import Data.List (sort, group)
import Data.Char (isAlphaNum, toLower)
import Data.Map (fromList)
wordCount xs =
fromList [ (head x, length x) | x <- group . sort . map (map toLower) $ words' xs]
words' :: String -> [String]
words' s =
case dropWhile (not . isAlphaNum) s of
"" -> [... | ciderpunx/exercismo | src/WordCount.hs | gpl-3.0 | 397 | 0 | 13 | 101 | 174 | 92 | 82 | 12 | 2 |
-- Problem 8
-- (0.00 secs, 2,602,832 bytes)
import Data.Char (digitToInt)
import Data.List (tails, transpose)
e008 = do
n <- readFile "../res/e008.txt"
print . maximum . map product . transpose
. take 13 . tails . map digitToInt
. concat . lines $ n | synndicate/euler | solutions/e008.hs | gpl-3.0 | 282 | 0 | 15 | 75 | 89 | 45 | 44 | 7 | 1 |
{-# OPTIONS_GHC -F -pgmF htfpp #-}
{-
# This file is part of matrix-arbitrary. #
# #
# matrix-arbitrary is free software: you can redistribute it and/or modify #
# it under the terms of the GNU Gener... | weissi/matrix-arbitrary | test/SimpleMatrixTests.hs | gpl-3.0 | 2,550 | 0 | 15 | 1,001 | 386 | 210 | 176 | 35 | 1 |
{-| Module : Lexer
License : GPL
Maintainer : helium@cs.uu.nl
Stability : experimental
Portability : portable
-}
module Helium.Parser.Lexer
( lexer, strategiesLexer
, Token, Lexeme(..)
, lexemeLength
, checkTokenStreamForClassOrInstance
, module Helium.Parser.Lexer... | roberth/uu-helium | src/Helium/Parser/Lexer.hs | gpl-3.0 | 13,062 | 0 | 21 | 3,790 | 4,013 | 2,041 | 1,972 | 306 | 9 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-logging/gen/Network/Google/Resource/Logging/BillingAccounts/Sinks/List.hs | mpl-2.0 | 6,266 | 0 | 18 | 1,406 | 894 | 520 | 374 | 129 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | olorin/amazonka | amazonka-ec2/gen/Network/AWS/EC2/RequestSpotInstances.hs | mpl-2.0 | 10,637 | 0 | 15 | 2,071 | 1,333 | 805 | 528 | 145 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
module Dyno.Nlp
( Bounds
, Nlp(..), NlpIn(..), NlpOut(..)
) where
import GHC.Generics ( Generic )
import Casadi.Viewable ( Viewable )
import qualified Data.Vector as V
impo... | ghorn/dynobud | dynobud/src/Dyno/Nlp.hs | lgpl-3.0 | 1,358 | 0 | 14 | 370 | 509 | 292 | 217 | 37 | 0 |
module Network.Haskoin.Transaction.Types
( Tx(..)
, TxIn(..)
, TxOut(..)
, OutPoint(..)
, CoinbaseTx(..)
, txHash
, nosigTxHash
, cbHash
) where
import Control.DeepSeq (NFData, rnf)
import Control.Monad (liftM2, replicateM, forM_, unless)
import Control.Applicative ((<$>),(<*>))
import Data.Aeson (Value(String), Fr... | nuttycom/haskoin | Network/Haskoin/Transaction/Types.hs | unlicense | 7,645 | 0 | 14 | 2,359 | 1,771 | 940 | 831 | 187 | 1 |
module Functor where
-- Fixed point on functors
data Fix f = In (f (Fix f))
unIn (In x) = x
-- Sum of functors
data SumF f g x = LeftF (f x) | RightF (g x)
instance (Functor f, Functor g) => Functor (SumF f g)
where
fmap f (LeftF x) = LeftF $ fmap f x
fmap f (RightF x) = RightF $ fmap f x
bimap f g (Lef... | egaburov/funstuff | Haskell/tytag/xproblem_src/samples/expressions/Haskell/FunctorialStyle/Functor.hs | apache-2.0 | 468 | 0 | 10 | 133 | 255 | 132 | 123 | 11 | 1 |
{-
Copyright 2018 The CodeWorld Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicab... | tgdavies/codeworld | funblocks-client/Setup.hs | apache-2.0 | 657 | 0 | 4 | 121 | 12 | 7 | 5 | 2 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
{-| Exposes some of Spark's joining algorithms.
-}
module Spark.Core.Internal.Joins(
join,
join',
joinInner,
joinInner',
joinObs,
joinObs'
) where
import qualified Data.Aeson as A
import qualified Data.Vector as V
import Control.Arrow
im... | krapsh/kraps-haskell | src/Spark/Core/Internal/Joins.hs | apache-2.0 | 3,452 | 0 | 14 | 552 | 886 | 471 | 415 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
module ArchitectureDiagram.Target.Dot
( nodeStatement
, NodeLeafest
, toGraph
, nodeLeafest
, edgeStatement
, listAllNodes
) where
import qualified Language.Dot.Syntax as Dot
import qualified Data.Map as ... | cjdev/architecture-diagram | src/ArchitectureDiagram/Target/Dot.hs | bsd-3-clause | 5,762 | 0 | 17 | 1,091 | 1,908 | 1,010 | 898 | 131 | 5 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import qualified Data.ByteString.Char8 as S
import Data.Maybe (isJust)
import qualified Data.Vector as V
import GitHub
import System.Environment
import Shlurp.Config
import Shlurp.Operations
main :: IO ()
main = do
config <- loadSettings "afcowie" "tablinator... | afcowie/shlurp | tests/Snippet.hs | bsd-3-clause | 549 | 0 | 9 | 97 | 132 | 72 | 60 | 16 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Bootstrap.Components where
import Bootstrap.Util
import Snap
import Heist
import Heist.Interpreted
import qualified Text.XmlHtml as X
import Data.Maybe (fromMaybe)
import Data.Monoid
dividerSplice :: MonadSnap m => ... | kylcarte/qclib | src/Bootstrap/Components.hs | bsd-3-clause | 4,932 | 0 | 17 | 1,536 | 1,506 | 791 | 715 | 154 | 1 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
module Main where
import Control.Monad.State
import System.Console.Haskeline
import System.Console.Haskeline.MonadException
import System.Exit
import System.FilePath
import Unbound.LocallyNameless.Subst
import qual... | heades/Agda-LLS | Source/ALL/Main.hs | bsd-3-clause | 10,446 | 0 | 20 | 3,152 | 1,876 | 1,029 | 847 | 107 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.