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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Feature.QueryLimitedSpec where
import Network.Wai (Application)
import Network.HTTP.Types
import Test.Hspec
import Test.Hspec.Wai
import Test.Hspec.Wai.JSON
import Protolude hiding (get)
import SpecHelper
spec :: SpecWith ((), Application)
spec =
describe "Requesting many items with server limits(max-rows... | steve-chavez/postgrest | test/Feature/QueryLimitedSpec.hs | mit | 2,608 | 0 | 15 | 665 | 460 | 262 | 198 | -1 | -1 |
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ViewPatterns #-}
module Data.FingerTree.Lazy
( FingerTree
, Measured (..)
, fromFoldable
, Split (..)
, splitTree
, split
) where
import Prelude hiding (foldl, foldr)
import Data.FingerTree.Internal... | meimisaki/FingerTree | Data/FingerTree/Lazy.hs | mit | 4,293 | 0 | 13 | 1,230 | 2,391 | 1,200 | 1,191 | 102 | 4 |
module Oczor.Test.Tests where
import Oczor.Parser.Parser
import Oczor.Syntax.Syntax
import ClassyPrelude
import Oczor.Test.TestEngine
import Oczor.Test.Files
import Oczor.Infer.Infer
import Oczor.Converter.Converter
import Oczor.Converter.Rewriter as Rewriter
import Oczor.CodeGen.CodeGenJs
import Oczor.Test.TestCompil... | ptol/oczor | src/Oczor/Test/Tests.hs | mit | 2,000 | 0 | 12 | 329 | 700 | 377 | 323 | -1 | -1 |
conceito :: Bool -> Bool -> String
conceito _ True = "O"
conceito True False = "A"
conceito False False = "R"
main = do
putStrLn "Entre com a nota: "
line <- getLine
let nota = read line
putStrLn "Entre com limiar: "
line <- getLine
let limiar = read line
putStrLn "... | folivetti/PI-UFABC | AULA_02/Haskell/NotaConceito.hs | mit | 616 | 0 | 13 | 206 | 207 | 97 | 110 | 19 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGTextPositioningElement
(js_getX, getX, js_getY, getY, js_getDx, getDx, js_getDy, getDy,
js_getRotate, getRotate, SVGTextPositioningElement,
castToSVGTextPositioningElement, gTypeSVGTextPo... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/SVGTextPositioningElement.hs | mit | 3,586 | 30 | 11 | 507 | 778 | 448 | 330 | 61 | 1 |
module Graph.Type.DenseList where
type Vertex = Int
type Vertices = [Bool]
data Graph = Graph [Vertices] deriving (Eq, Show)
type Clique = [Int]
| banacorn/Graphentheoretische-Paralleler-Algorithmus | src/Graph/Type/DenseList.hs | mit | 148 | 0 | 7 | 26 | 54 | 34 | 20 | 5 | 0 |
------------------------------------------------------------------------------
-- | A better prelude.
module Game.Prelude
(
-- * New modules
module Prelude
-- * Booleans
, iff
, (?)
-- * Composition
, owl
, dot
, swing
-- * Functors
, map
, twimap
, (... | zmthy/vicarious | src/Game/Prelude.hs | mit | 4,333 | 0 | 11 | 774 | 976 | 572 | 404 | 67 | 2 |
{-# htermination minimum :: (Ord a, Ord k) => [(a,k)] -> (a,k) #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_minimum_12.hs | mit | 67 | 0 | 2 | 13 | 3 | 2 | 1 | 1 | 0 |
module Board where
import Control.Monad
import Control.Applicative
import Control.Arrow
import Data.Maybe
import Math.Geometry.Grid.Hexagonal
import Math.Geometry.Grid.HexagonalInternal
import Math.Geometry.GridInternal
import Math.Geometry.GridMap ((!))
import qualified Math.Geometry.GridMap as M
import qualified Mat... | joom/civ | src/Board.hs | mit | 8,732 | 0 | 14 | 2,345 | 1,661 | 930 | 731 | 165 | 3 |
-- Copyright (C) 2005 Benedikt Schmidt
--
-- 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, or (at your option)
-- any later version.
--
-- This program is distributed in the ... | DavidAlphaFox/darcs | src/Darcs/Util/CommandLine.hs | gpl-2.0 | 5,153 | 0 | 13 | 1,455 | 875 | 474 | 401 | 59 | 2 |
{- dfsbuild: CD image builder
Copyright (c) 2006 John Goerzen
Please see COPYRIGHT for more details
-}
module Bootloader.Grub where
import Utils
import System.Cmd.Utils
import System.Path
import System.Posix.Files
import System.Posix.Directory
import System.Path.Glob
import Data.ConfigFile
import System.FilePath
impor... | jgoerzen/dfsbuild | Bootloader/Grub.hs | gpl-2.0 | 3,793 | 0 | 22 | 1,118 | 870 | 439 | 431 | 71 | 2 |
module Tema_2_Spec (main, spec) where
import Tema_2
import Test.Hspec
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "doble" $
it "e1" $
doble 3 `shouldBe` 6
describe "cuadruple" $
it "e1" $
cuadruple 3 `shouldBe` 12
describe "factorial" $
it "e1" $
factorial 4 ... | jaalonso/I1M-Cod-Temas | test/Tema_2_Spec.hs | gpl-2.0 | 407 | 0 | 10 | 119 | 161 | 82 | 79 | 19 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module FuncTorrent.PeerThreadMain
( peerThreadMain
) where
import Prelude hiding (readFile)
import Control.Concurrent
import Control.Monad hiding (forM, forM_, mapM, mapM_, msum, sequence, sequence_)
import Data.IORef
import FuncTorrent.PeerThreadData
-- Sequence of events in... | harshavardhana/functorrent | src/FuncTorrent/PeerThreadMain.hs | gpl-3.0 | 2,294 | 0 | 15 | 476 | 432 | 226 | 206 | 40 | 7 |
module PutJSON where
import Data.List (intercalate)
import SimpleJSON
renderJValue :: Jvalue -> String
renderJValue (JString s) = show s
renderJValue (JNumber n) = show n
renderJValue (JBool True) = "true"
renderJValue (JBool False) = "false")
renderJValue JNull = "null"
renderJValue (JOBject o)= ... | jtwool/haskell-sandbox | PutJSON.hs | gpl-3.0 | 713 | 1 | 10 | 192 | 266 | 133 | 133 | -1 | -1 |
module Helpers where
import Data.Monoid ((<>))
hello :: String -> String
hello s = "Hello .jhkjhf.. " <> s
| dominicusin/gasta | src/Utils/Helpers.hs | gpl-3.0 | 107 | 0 | 5 | 19 | 37 | 22 | 15 | 4 | 1 |
module Test.Examples where
-- generic programming subroutine example
generic_ex1 :: Intly Agent
generic_ex1 =
do
u1 <- primary user
p <- current program
ctxs <- current context
checkIf (hasIntentFor ctxs) p u1 $
(\i -> (case i of
Notify msg -> do
dAll <-... | mpahrens/Intentionally | Test/Example.hs | gpl-3.0 | 2,407 | 15 | 14 | 1,097 | 724 | 339 | 385 | -1 | -1 |
module Language.SMTLib2.Internals.Expression where
import Language.SMTLib2.Internals.Type hiding (Field)
import qualified Language.SMTLib2.Internals.Type as Type
import Language.SMTLib2.Internals.Type.Nat
import Language.SMTLib2.Internals.Type.List (List(..),CList(..))
import qualified Language.SMTLib2.Internals.Type.... | hguenther/smtlib2 | Language/SMTLib2/Internals/Expression.hs | gpl-3.0 | 42,677 | 0 | 17 | 12,708 | 17,987 | 8,912 | 9,075 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-ec2/gen/Network/AWS/EC2/AttachInternetGateway.hs | mpl-2.0 | 4,240 | 0 | 9 | 923 | 469 | 286 | 183 | 59 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-plus/gen/Network/Google/Resource/Plus/Comments/Get.hs | mpl-2.0 | 2,563 | 0 | 12 | 601 | 302 | 186 | 116 | 48 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-iam/gen/Network/Google/Resource/IAM/IAMPolicies/LintPolicy.hs | mpl-2.0 | 5,260 | 0 | 16 | 1,158 | 711 | 418 | 293 | 104 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module LambdaQ (Expr(..), lambda) where
import Text.Parsec
import Text.Parsec.String (Parser)
import Text.Parsec.Language (emptyDef)
import qualified Text.Parsec.Token as Tok
import Data.Data (Data, Typeable)
import Language.Haskell.TH (loc_filename, location)
import Language.Haskel... | scturtle/fun.hs | LambdaQ.hs | unlicense | 1,450 | 5 | 16 | 315 | 461 | 255 | 206 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
-- Copyright 2014 (c) Diego Souza <dsouza@c0d3.xxx>
--
-- 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.... | locaweb/leela | src/warpdrive/src/Leela/Data/LQL.hs | apache-2.0 | 13,303 | 0 | 17 | 5,572 | 4,155 | 2,157 | 1,998 | 246 | 21 |
module Coins.A265400Spec (main, spec) where
import Test.Hspec
import Coins.A265400 (a265400)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A265400" $
it "correctly computes the first 20 elements" $
take 20 (map a265400 [1..]) `shouldBe` expectedValue where
expectedValue = [0,0,0,1,0,1,0,1,... | peterokagey/haskellOEIS | test/Coins/A265400Spec.hs | apache-2.0 | 345 | 0 | 10 | 59 | 160 | 95 | 65 | 10 | 1 |
-- Copyright 2015 Peter Harpending
--
-- Licensed under the Apache License, Version 2.0 (the "License"); you
-- may not use this file except in compliance with the License. You
-- may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agre... | pharpend/editor-open | skel/Skel.hs | apache-2.0 | 874 | 0 | 2 | 164 | 26 | 25 | 1 | 1 | 0 |
{-# LANGUAGE Arrows #-}
{- | An experiment in using Haskell Arrows, see <http://www.haskell.org/arrows/>,
to automagically compute Lipschitz constants of maps. Something like this can
also be used to compute derivatives of functions.
Here we use floats, but later we intend to replace them with exact reals.
-... | andrejbauer/marshall | etc/haskell/Lipschitz.hs | bsd-2-clause | 1,452 | 0 | 13 | 460 | 506 | 287 | 219 | 20 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
-- |
-- Module : Statistics.Distribution.ChiSquared
-- Copyright : (c) 2010 Alexey Khudyakov
-- License : BSD3
--
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portability : portable
--
-- The chi-squared distribution. This is a continuous probability
-- d... | 00tau/statistics | Statistics/Distribution/ChiSquared.hs | bsd-2-clause | 2,825 | 0 | 12 | 625 | 662 | 352 | 310 | 60 | 1 |
{-# OPTIONS_HADDOCK ignore-exports #-}
-- | This module contains some utility functions and wrappers around Gloss for
-- dealing with drawing stuff on the screen.
module Game.Glow.Render (
render, drawText
) where
import Graphics.Gloss.Data.Color (Color, makeColor)
import Graphics.Gloss.Data.Pi... | sulami/glow | lib/Game/Glow/Render.hs | bsd-3-clause | 1,449 | 0 | 15 | 358 | 305 | 172 | 133 | 19 | 1 |
-- TODO: There is quite a bit of duplication between the various .Mirror.*
-- modules and Distribution.Client. This should be removed where possible.
-- (One symptom of this is the frequent need to use explicit import or hiding
-- lists for imports of Distribution.Client in the Mirror.* modules.)
{-# LANGUAGE DeriveDat... | ocharles/hackage-server | Distribution/Client/Mirror/Session.hs | bsd-3-clause | 18,326 | 0 | 21 | 4,484 | 4,121 | 2,142 | 1,979 | -1 | -1 |
module Utils.NumRomans where
import Data.Char
toRomanUpper :: Int -> String
toRomanUpper n = concat $ map convert $ zip ns [tns-1, tns-2 .. 0]
where (ns, tns) = let ns = show n
in (map digitToInt ns, length ns)
convert (nchg, np) = case np of
0 ... | carliros/Simple-San-Simon-Functional-Web-Browser | src/Utils/NumRomans.hs | bsd-3-clause | 1,406 | 0 | 16 | 579 | 561 | 319 | 242 | 20 | 5 |
-- Module: Instruments.Utils.InterestRate
-- Copyright: (c) Johan Astborg, Andreas Bock
-- License: BSD-3
-- Maintainer: Johan Astborg <joastbg@gmail.com>
-- Portability: portable
--
-- Types and functions for working with interest rates,
-- compounding and discounting.
module Instruments.Utils.InterestRat... | HIPERFIT/HQL | src/Instruments/Utils/InterestRate.hs | bsd-3-clause | 2,895 | 5 | 16 | 618 | 641 | 359 | 282 | 53 | 1 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell #-}
module Text.Printf.Safe.CombinatorsSpec (main, spec) where
import Text.Printf.Safe (Printf (..), printf)
import Text.Printf.Safe.Combinators
import Test.Hspec
import Test.Hspec.QuickCheck (prop)
main :: IO ()
main = hspec spec
_b :: Bool -> String
_b =... | konn/safe-printf | test/Text/Printf/Safe/CombinatorsSpec.hs | bsd-3-clause | 1,947 | 0 | 18 | 541 | 772 | 405 | 367 | 44 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Text.XmlHtml.XML.Render where
import Blaze.ByteString.Builder
import Data.Char
import Data.Maybe
import Data.Monoid
import Text.XmlHtml.Common
import Data.Text (Text)
import qualified Data.Text as T
--------------... | 23Skidoo/xmlhtml | src/Text/XmlHtml/XML/Render.hs | bsd-3-clause | 7,043 | 0 | 15 | 2,437 | 1,810 | 944 | 866 | 112 | 2 |
{-# OPTIONS_HADDOCK hide #-}
module Rosterium.Dealer where
import qualified Data.Map.Strict as Map
import Data.Vector (Vector)
import qualified Data.Vector as V
import Data.Word
import System.Random.MWC
allocateN :: Int -> [p] -> [p] -> GenIO -> IO ([p],[p])
allocateN count leftover bench gen = do
list <- shuffl... | afcowie/rosterium | lib/Rosterium/Dealer.hs | bsd-3-clause | 1,046 | 0 | 13 | 266 | 335 | 175 | 160 | 27 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
module Response where
import Lib.Prelude
import Servant (Handler, (:~>)(NT))
import qualified Database as Db (Connections)
type Response = ReaderT Env Handler
newtype Env = Env { dbConnections :: Db.Connections }
responseToHandler :: Env -> Response :~>... | Unisay/dancher | src/Response.hs | bsd-3-clause | 384 | 0 | 7 | 65 | 100 | 62 | 38 | 10 | 1 |
module Parameters
(
getParameters
) where
import Data.Monoid ((<>))
import Options.Applicative
import Types
getParameters :: ParserInfo Parameters
getParameters = info p idm
where p = hsubparser
( command "run" runHelper <> command "test" testHelper )
... | vonavi/hcloud | src/Parameters.hs | bsd-3-clause | 1,232 | 0 | 13 | 540 | 255 | 127 | 128 | 28 | 1 |
import Control.Applicative
import Foreign.Ptr
import Foreign.StorableMonad
data Foo = Foo Int Char
instance Storable Foo where
alignment _ = alignment (undefined::Ptr ())
sizeOf _ = sizeOf (undefined::Int) + sizeOf (undefined::Char)
peek = runStorable (Foo <$> peekS <*> peekS)
poke ptr (Foo x y) = runStorable... | acowley/StorableMonad | examples/Example.hs | bsd-3-clause | 345 | 1 | 9 | 60 | 145 | 73 | 72 | 9 | 0 |
{-# LANGUAGE ViewPatterns, PatternGuards #-}
{-# LANGUAGE PackageImports, GeneralizedNewtypeDeriving #-}
{-# OPTIONS_GHC -fno-warn-overlapping-patterns #-}
{-# LANGUAGE FlexibleInstances, TypeSynonymInstances, MultiParamTypeClasses #-}
module Reductions
( Reduceron, reduce, noenv
, whnf, whnftw
, whnf1, ... | pqwy/redex | src/Reductions.hs | bsd-3-clause | 7,932 | 0 | 14 | 2,493 | 2,497 | 1,326 | 1,171 | 111 | 2 |
{-# LANGUAGE QuasiQuotes, OverloadedStrings #-}
module TestPrograms where
import NeatInterpolation
import Text.Regex
import Data.Cmm.QuasiQuoter
import Data.Cmm.AST
in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14 :: String
in1 =
[string|
x := a * b;
if (a * b) > (20 * c) then
y :... | adamschoenemann/asa-analysis | test/TestPrograms.hs | bsd-3-clause | 3,232 | 0 | 11 | 1,456 | 392 | 277 | 115 | 45 | 1 |
-- |
-- Module : Core.Vector.List
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : portable
--
module Core.Collection.List
( wordsWhen
) where
import qualified Data.List
import Core.Internal.Base
-- | Simple helper to... | vincenthz/hs-xyz-test | Core/Collection/List.hs | bsd-3-clause | 608 | 0 | 13 | 186 | 156 | 88 | 68 | 12 | 2 |
module HDevs.Composition where
import HDevs.Atomic
import Data.These
compose ::
Model input intermediate -> LastEventTime -> NextEventTime ->
Model intermediate output -> LastEventTime -> NextEventTime ->
Model input output
compose model1 tL1 tN1 model2 tL2 tN2 = Atomic deltaInt' deltaExt' deltaCon' ta'... | sglumac/HDevs | src/HDevs/Composition.hs | bsd-3-clause | 9,358 | 0 | 17 | 4,494 | 2,553 | 1,266 | 1,287 | 226 | 12 |
{-#LANGUAGE RecordWildCards #-}
module FileServer where
import Network hiding (accept, sClose)
import Network.Socket hiding (send, recv, sendTo, recvFrom, Broadcast)
import Network.Socket.ByteString
import Data.ByteString.Char8 (pack, unpack)
import System.Environment
import System.IO
import Control.Concurrent
impor... | Garygunn94/DFS | .stack-work/intero/intero26493An0.hs | bsd-3-clause | 5,400 | 96 | 15 | 1,237 | 1,256 | 665 | 591 | 98 | 4 |
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Available conduit combinators to process data from *.osm file.
-- For the best performance, use any of conduitNodes/Ways/Relations/NWR.
-- Example:
--
-- > import qualified Data.Conduit.List as CL
-- > import Text.XML.Stream.Parse (parseFile, def)
-- > printNodes filepath = pa... | przembot/osm-conduit | src/Data/Conduit/OSM.hs | bsd-3-clause | 5,281 | 0 | 15 | 1,343 | 1,454 | 741 | 713 | 95 | 4 |
module Language.Modelica.Parser.ClassDefinition where
import Language.Modelica.Syntax.Modelica
import Language.Modelica.Parser.Parser (Parser)
import Language.Modelica.Parser.Lexer
import Language.Modelica.Parser.Expression
import Language.Modelica.Parser.Modification
import Language.Modelica.Parser.ComponentClause
... | xie-dongping/modelicaparser | src/Language/Modelica/Parser/ClassDefinition.hs | bsd-3-clause | 5,298 | 0 | 14 | 755 | 1,282 | 685 | 597 | 138 | 2 |
module Problem64 where
import ContinuedFraction
main :: IO ()
-- if period is odd then total terms in continued fraction representation will be even
main =
print
. length
. filter (even . length . continuedFractionSqrt)
. filter (\x -> let root = floor . sqrt . fromIntegral $ x in root * r... | adityagupta1089/Project-Euler-Haskell | src/problems/Problem64.hs | bsd-3-clause | 353 | 0 | 16 | 98 | 101 | 54 | 47 | 9 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad.Catch
import Control.Monad (when, unless, forever, replicateM_)
import Control.Monad.IO.Class
import Control.Error hiding (err)
import Data.Foldable
import qualified Data.Map.Strict as M
import Data.Time.Clock
import Data.Time.For... | bgamari/tpar | Main.hs | bsd-3-clause | 18,217 | 168 | 17 | 5,988 | 5,172 | 2,544 | 2,628 | 389 | 12 |
;
; HSP help managerp HELP\[Xt@C
; (檪u;vÌsÍRgƵijêÜ·)
;
%type
g£½ß
%ver
3.3
%note
llmod3.hspðCN[h·éBKvɶÄlistview.hsp,progbox.hsp,trackbox.hsp,treebox.hsp,udbtn.hspðCN[h·é
%date
2009/08/01
%author
tom
%dll
llmod3
%url
http://www5... | zakki/openhsp | package/hsphelp/llmod3_objects.hs | bsd-3-clause | 26,454 | 8,414 | 17 | 3,994 | 15,088 | 10,802 | 4,286 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
import System.IO (hFlush, stdout)
import System.Environment (getArgs)
import Control.Monad (unless, forever)
import Control.Monad.IO.Class (liftIO)
import Control.Distributed.Process (Process, expect)
import Control.Distributed.Process.Closure (remotable, mkClosure)
import Control.Dist... | haskell-distributed/distributed-process-azure | demos/Echo.hs | bsd-3-clause | 1,506 | 1 | 18 | 329 | 439 | 218 | 221 | 36 | 2 |
{-# LANGUAGE QuasiQuotes #-}
-- small test for playing around with exports.
import LiquidHaskell
import Language.Haskell.Liquid.Prelude
data Goo = G Int
[lq| data Goo = G (x :: {v:Int | v > 0}) |]
[lq| f :: Goo -> Goo |]
f (G n)
| n > 0 = G (n + 1)
| otherwise = liquidError "ad"
| spinda/liquidhaskell | tests/gsoc15/unknown/pos/exp0.hs | bsd-3-clause | 302 | 2 | 8 | 80 | 83 | 45 | 38 | 9 | 1 |
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies, FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances, UndecidableInstances #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS -Wall #-}
module RegisterMachine.Machine (
RM(RM), IsHalt(isHaltInstr), RM1
) where
import Basic.Types (Trans, EndCond(endcond), GetValue(re... | davidzhulijun/TAM | RegisterMachine/Machine.hs | bsd-3-clause | 1,809 | 2 | 9 | 276 | 461 | 269 | 192 | 37 | 0 |
module TwoStepsForward (solve) where
import Data.List (intersect, foldl', maximumBy)
import Data.Ord (comparing)
import Data.Maybe (fromJust, mapMaybe)
import Data.Bits ((.&.), shiftR)
import Data.Word (Word8)
import qualified Data.ByteString as B
import Data.ByteString.Char8 (pack)
import Crypto.Hash.MD5 (hash)
impor... | cjlarose/advent-2016 | src/TwoStepsForward.hs | bsd-3-clause | 3,080 | 0 | 11 | 705 | 1,382 | 763 | 619 | 58 | 1 |
{-# Language OverloadedStrings #-}
{-|
Module : Client.Hooks
Description : Available hooks
Copyright : (c) Dan Doel, 2016
License : ISC
Maintainer : dan.doel@gmail.com
The collection of all hooks available in the client.
-}
module Client.Hooks
( messageHooks
) where
import Data.Text
import Data.Has... | glguy/irc-core | src/Client/Hooks.hs | isc | 756 | 0 | 9 | 121 | 130 | 81 | 49 | 16 | 1 |
module FloatUnaryMinus2 where
main :: Int
main = case -.2.0 of
3.0 -> 0
2.0 -> 1
1.0 -> 2
_ -> 3
| roberth/uu-helium | test/correct/FloatUnaryMinus2.hs | gpl-3.0 | 140 | 1 | 7 | 66 | 46 | 25 | 21 | -1 | -1 |
module Distribution.Simple.GHCJS (
configure, getInstalledPackages, getPackageDBContents,
buildLib, buildExe,
replLib, replExe,
startInterpreter,
installLib, installExe,
libAbiHash,
hcPkgInfo,
registerPackage,
componentGhcOptions,
getLibDir... | trskop/cabal | Cabal/Distribution/Simple/GHCJS.hs | bsd-3-clause | 40,695 | 0 | 23 | 13,058 | 8,035 | 4,195 | 3,840 | 700 | 6 |
{-# LANGUAGE PatternGuards #-}
module Distribution.Client where
import Network.HTTP
import Network.Browser
import Network.URI (URI(..), URIAuth(..), parseURI)
import Distribution.Server.LegacyImport.UploadLog as UploadLog (read, Entry(..))
import Distribution.Server.Users.Types (UserId(..), UserName(UserName))
import... | isomorphism/hackage2 | Distribution/Client.hs | bsd-3-clause | 10,985 | 0 | 21 | 2,812 | 3,440 | 1,742 | 1,698 | 239 | 5 |
{-# LANGUAGE ScopedTypeVariables #-}
module Main ( main ) where
import Control.Applicative
import Control.Exception as C (SomeException,
catch, evaluate)
import Control.Monad (unless)
imp... | ezyang/binary | tests/QC.hs | bsd-3-clause | 19,615 | 0 | 20 | 6,519 | 4,897 | 2,650 | 2,247 | -1 | -1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Sandbox
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- UI for the sandboxing functionality.
----------------------------------------------------------... | x-y-z/cabal | cabal-install/Distribution/Client/Sandbox.hs | bsd-3-clause | 37,285 | 0 | 19 | 10,121 | 5,801 | 3,039 | 2,762 | 545 | 6 |
module UnitTests.Distribution.Client.UserConfig
( tests
) where
import Control.Exception (bracket)
import Data.List (sort, nub)
import Data.Monoid
import System.Directory (getCurrentDirectory, removeDirectoryRecursive, createDirectoryIfMissing)
import System.FilePath (takeDirectory)
import Test.Framework as T... | christiaanb/cabal | cabal-install/tests/UnitTests/Distribution/Client/UserConfig.hs | bsd-3-clause | 3,720 | 0 | 14 | 722 | 866 | 449 | 417 | 72 | 1 |
module Releases2016 where
import PlatformDB
import Types
releases2016 :: [Release]
releases2016 = [hp_8_0_1, hp_8_0_2]
hp_8_0_1 :: Release
hp_8_0_1 =
releaseWithMinimal "8.0.1"
[ incGHC "8.0.1"
, incGHCLib "Cabal" "1.24.0.0"
, incGHCLib "array"... | erantapaa/haskell-platform | hptool/src/Releases2016.hs | bsd-3-clause | 8,908 | 0 | 8 | 4,233 | 1,063 | 547 | 516 | 135 | 1 |
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
{-# LANGUAGE MultiParamTypeClasses, Rank2Types #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.Groups.Wmii
-- Copyright : Quentin Moser <moserq@gmail.com>
-- License : BSD-style (see LICENSE)... | MasseR/xmonadcontrib | XMonad/Layout/Groups/Wmii.hs | bsd-3-clause | 4,589 | 0 | 16 | 1,267 | 472 | 294 | 178 | 49 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TupleSections #-}
module Language.Haskell.Liquid.Bare.OfType (
ofBareType
, ofMeaSort
, ofBSort
, ofBPVar
, mkSpecType
, mkSpecType'
) where
import BasicTypes
import Name
import TyCon hiding (synTyConRhs_maybe)
import Type (expandTypeSynonyms)
i... | mightymoose/liquidhaskell | src/Language/Haskell/Liquid/Bare/OfType.hs | bsd-3-clause | 8,130 | 0 | 16 | 2,028 | 3,081 | 1,550 | 1,531 | 185 | 17 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.HashTable
-- Copyright : (c) The University of Glasgow 2003
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : provisional
-- Portabili... | urbanslug/ghc | testsuite/tests/programs/maessen-hashtab/Data/HashTab.hs | bsd-3-clause | 11,368 | 46 | 23 | 2,272 | 2,572 | 1,394 | 1,178 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
module Futhark.Actions
( printAction
, interpretAction
, impCodeGenAction
, kernelImpCodeGenAction
, rangeAction
)
where
import Control.Monad
import Control.Monad.IO.Class
import Data.List
import Data.Maybe
import Data.Word
import qualified Data.Text as T
import qualified ... | ihc/futhark | src/Futhark/Actions.hs | isc | 4,933 | 0 | 18 | 1,334 | 1,267 | 670 | 597 | 102 | 13 |
-- | Compile and execute programs in Orchid language.
module Orchid.Executor
( executeProgram
, Optimization (..)
, Optimizations
) where
import Data.Bifunctor (first)
import Data.String.Conversions (convertString)
import Data.Text (Text... | gromakovsky/Orchid | src/Orchid/Executor.hs | mit | 1,299 | 0 | 15 | 485 | 273 | 152 | 121 | 29 | 2 |
module Pyrec.CPS where
import Data.Word
import Pyrec.Misc
data Name
= Name String Unique
| Gen Word
deriving (Show, Eq, Ord)
data Val
= Var Name
| Num Double
| Str String
| Cont Name Expr
deriving (Show, Eq)
data Expr
= App Val [Val] (Val, Val)
| Continue Val Val
| Fix [Fun] Expr
deriving (S... | kmicklas/pyrec | src/Pyrec/CPS.hs | mit | 399 | 0 | 7 | 102 | 169 | 97 | 72 | 21 | 0 |
module Geometry
( sphereVolume
, sphereArea
, cubeVolume
, cubeArea
, cuboidArea
, cuboidVolume
) where
sphereVolume :: Floating a => a -> a
sphereVolume r = 4/3 * pi * r^3
sphereArea :: Floating a => a -> a
sphereArea r = 4 * pi * r^2
cubeVolume :: Num a => a -> a
cubeVolume a = cuboidVolume a a a
cu... | RAFIRAF/HASKELL | Geometry.hs | mit | 655 | 0 | 10 | 170 | 312 | 157 | 155 | 21 | 1 |
module Euler.E20 where
import Data.Char
euler20 :: Integer -> Int
euler20 n = sum $ map digitToInt $ show $ product [1..n]
main :: IO ()
main = print $ euler20 100
| D4r1/project-euler | Euler/E20.hs | mit | 166 | 0 | 8 | 34 | 73 | 38 | 35 | 6 | 1 |
module Text.Serialization.Grammar where
import Control.Exception.Base
import Data.List as List
import Data.Map as Map
import Text.Parser as Parser
import Text.Scanner as Scanner
import qualified Text.Serialization.Tokens as Tokens
begin_tree = (terminalParser Tokens.begin_tree)
tree = (sequenceParser [begin_tree, id... | stevedonnelly/haskell | code/Text/Serialization/Grammar.hs | mit | 864 | 0 | 12 | 129 | 260 | 154 | 106 | 24 | 1 |
{-
Copyright (c) 2015 Nils 'bash0r' Jonsson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distr... | project-horizon/framework | src/lib/Language/Transformation/Semantics/FullyQualifiedName.hs | mit | 1,854 | 0 | 7 | 343 | 68 | 42 | 26 | 6 | 0 |
module Settings.StaticFiles where
import qualified Yesod.Static as Static
import Settings (appStaticDir, compileTimeAppSettings)
-- | use this to create your static file serving site
-- staticSite :: IO Static.Static
-- staticSite = if development then Static.staticDevel staticDir
-- else ... | collaborare/antikythera | src/Settings/StaticFiles.hs | mit | 725 | 0 | 7 | 137 | 47 | 31 | 16 | -1 | -1 |
{-# LANGUAGE
OverloadedStrings
#-}
{-|
Module : Test.Printer
Description : The Printer tests
Copyright : (c) Andrew Burnett 2014-2015
Maintainer : andyburnett88@gmail.com
Stability : experimental
Portability : Unknown
Contains the tests for the Printer type.
-}
module Test.Printer (
tests -- :: T... | aburnett88/HSat | tests-src/Test/Printer.hs | mit | 1,114 | 0 | 18 | 271 | 223 | 120 | 103 | 28 | 3 |
module Cycles.IO where
import Cycles.Aux
import Cycles.Findcy
import Cycles.Maxcy
import Control.Exception ( SomeException, throwIO, catch )
import Control.Monad ( liftM, Monad((>>=), return), when, mapM_, mapM, filterM )
import Data.Char (ord)
import System.Directory ( removeFile, removeDirectoryRecursive, getDirect... | michaeljklein/HCy2C | Cycles/IO.hs | mit | 8,478 | 0 | 18 | 1,718 | 1,871 | 937 | 934 | 126 | 2 |
module Main where
import Data.Foldable (foldl', traverse_)
import Data.List (sort)
import Data.Maybe (mapMaybe)
data OpenClose = Open | Close deriving Eq
data Item = Paren | Bracket | Brace | Angle deriving (Eq, Enum)
cToPair :: Char -> (OpenClose, Item)
cToPair '(' = (Open, Paren)
cToPair ')' = (Close, Paren... | genos/online_problems | advent_of_code_2021/day10/Main.hs | mit | 1,732 | 0 | 12 | 455 | 734 | 397 | 337 | 45 | 5 |
{-# LANGUAGE PackageImports #-}
{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-}
-- | Reexports "Data.Functor.Identity.Compat"
-- from a globally unique namespace.
module Data.Functor.Identity.Compat.Repl.Batteries (
module Data.Functor.Identity.Compat
) where
import "this" Data.Functor.Identity.C... | haskell-compat/base-compat | base-compat-batteries/src/Data/Functor/Identity/Compat/Repl/Batteries.hs | mit | 326 | 0 | 5 | 31 | 32 | 25 | 7 | 5 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE Strict #-}
module Model.Camera
( Camera (..)
, viewMatrix
, CState (..)
, initCam... | achirkin/qua-view | src/Model/Camera.hs | mit | 13,197 | 0 | 17 | 3,648 | 2,989 | 1,682 | 1,307 | 252 | 2 |
{-# INCLUDE "klee/klee.h" #-}
{-# LANGUAGE ForeignFunctionInterface, MagicHash, BangPatterns #-}
module Test.Scher.Klee.Pure
( range
, int
, integer
, M
, run
) where
import Foreign.C
import Foreign.C.String
import Foreign.C.Types
import System.IO.Unsafe
foreign import capi "klee/klee.h klee_range" c_klee... | m-alvarez/scher | Test/Scher/Klee/Pure.hs | mit | 1,156 | 0 | 11 | 237 | 380 | 201 | 179 | -1 | -1 |
import Prelude hiding (gcd,lcm)
import Data.List (foldl')
gcd a b =
if b == 0
then a
else gcd b (a `mod` b)
lcm a b = (a * b) `div` (gcd a b)
solution = foldl' lcm 1 [1..20]
main = do print solution
| drcabana/euler-fp | source/hs/P05.hs | epl-1.0 | 216 | 0 | 8 | 62 | 118 | 65 | 53 | 9 | 2 |
module Main where
import Control.Applicative
import Data.List (sort)
import System.IO (print)
main = print $ answer 1
answer n = if sameDigits n
then n
else answer (n+1)
sameDigits :: Int -> Bool
sameDigits n = and $ map (((==) . sort . show)... | t00n/ProjectEuler | Euler/Euler52/main.hs | epl-1.0 | 369 | 0 | 12 | 133 | 150 | 83 | 67 | 10 | 2 |
{-# LANGUAGE DeriveFunctor #-}
module Threal.ThrealM where
import Threal.Base
import Data.HashMap.Strict (HashMap)
import qualified Data.HashMap.Strict as M
import Control.Monad.Free
import Control.Monad.Reader (Reader, ask)
import Control.Monad.State (State, get, gets, put, runState, evalState, StateT, liftIO, evalS... | nomicflux/threals | src/Threal/ThrealM.hs | gpl-2.0 | 5,193 | 5 | 28 | 1,505 | 1,737 | 890 | 847 | 110 | 2 |
{-# LANGUAGE DoAndIfThenElse
, OverloadedStrings
, RecordWildCards #-}
module CreateSendAPI.V3.PagedResult where
import Control.Applicative ((<$>), (<*>))
import Data.Aeson (FromJSON, (.:))
import qualified Data.Aeson as JSON
import Data.Default (Default (..))
import Data.T... | pavpen/createsend-haskell | src/CreateSendAPI/V3/PagedResult.hs | gpl-2.0 | 2,541 | 68 | 15 | 436 | 566 | 350 | 216 | 57 | 2 |
import Data.Char
import qualified Data.Map as M
import qualified Data.Vector as V
clean :: String -> String
clean = filter (\x -> x `elem` "><+-.,[]")
mapBracket :: String -> [(Int, Int)]
mapBracket prog = aux prog 0 [] []
where aux [] _ _ ret = ret
aux ('[':ps) cur stack ret = ... | m00nlight/hackerrank | functional/Interpreter-and-Compiler/BrainF__k-Interpreter/main.hs | gpl-2.0 | 2,743 | 13 | 17 | 1,180 | 1,183 | 626 | 557 | 59 | 10 |
--project euler problem 20
{--
n! means n × (n − 1) × ... × 3 × 2 × 1
Find the sum of the digits in the number 100!
--}
import Char
fac 0 = 1
fac n = n * (fac (n-1))
main = print $ sum $ map digitToInt $ show (fac 100)
| goalieca/haskelling | 020.hs | gpl-3.0 | 229 | 0 | 9 | 59 | 69 | 35 | 34 | 4 | 1 |
data Procompose q p a b where
Procompose :: q a c -> p c b -> Procompose q p a b | hmemcpy/milewski-ctfp-pdf | src/content/3.10/code/haskell/snippet18.hs | gpl-3.0 | 84 | 1 | 5 | 25 | 40 | 22 | 18 | -1 | -1 |
module PropT30 where
import Prelude(Bool(..))
import Zeno
-- Definitions
True && x = x
_ && _ = False
False || x = x
_ || _ = True
not True = False
not False = True
-- Nats
data Nat = S Nat | Z
(+) :: Nat -> Nat -> Nat
Z + y = y
(S x) + y = S (x + y)
(*) :: Nat -> Nat -> Nat
Z * _ = Z
(S x) * y = y + (x... | danr/hipspec | testsuite/prod/zeno_version/PropT30.hs | gpl-3.0 | 2,963 | 0 | 11 | 915 | 1,995 | 1,038 | 957 | 114 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Versions/Create.hs | mpl-2.0 | 6,629 | 5 | 23 | 1,665 | 1,016 | 590 | 426 | 148 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/CreativeFieldValues/Update.hs | mpl-2.0 | 6,131 | 0 | 21 | 1,448 | 905 | 522 | 383 | 134 | 1 |
{-# LANGUAGE DataKinds, OverloadedStrings #-}
module Model.Ingest
( IngestKey
, lookupIngestContainer
, addIngestContainer
, lookupIngestRecord
, addIngestRecord
, lookupIngestAsset
, addIngestAsset
, replaceSlotAsset
, checkDetermineMapping
, attemptParseRows
, extractColumnsDistinctSampleJson
... | databrary/databrary | src/Model/Ingest.hs | agpl-3.0 | 24,695 | 0 | 23 | 8,173 | 4,073 | 2,294 | 1,779 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module ProjectM36.Client.Json where
import Data.Aeson
import ProjectM36.Server.RemoteCallTypes.Json ()
import ProjectM36.Client
import ProjectM36.TransactionGraph
import Control.Exception (IOException)
instance ToJSON EvaluatedNotification
instance FromJSON EvaluatedNotification
... | agentm/project-m36 | src/bin/ProjectM36/Client/Json.hs | unlicense | 478 | 0 | 9 | 51 | 100 | 54 | 46 | 13 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
------------------------------------------------------------------------------
-- Copyright 2012 Microsoft Corporation.
--
-- This is free software; you can redistribute it and/or modify it under the
-- terms of the Apache License, Version 2.0. A copy of the License can be
--... | lpeterse/koka | src/Interpreter/Interpret.hs | apache-2.0 | 21,575 | 144 | 29 | 8,445 | 5,001 | 2,603 | 2,398 | 330 | 27 |
{-
Copyright 2015 Rafał Nowak
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | rafalnowak/RaytracaH | src/RaytracaH/Screen.hs | apache-2.0 | 855 | 0 | 10 | 175 | 109 | 61 | 48 | 11 | 0 |
module Miscellaneous.A329110Spec (main, spec) where
import Test.Hspec
import Miscellaneous.A329110 (a329110)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A329110" $
it "correctly computes the first 20 elements" $
map a329110 [1..20] `shouldBe` expectedValue where
expectedValue = [1,3,5,9,... | peterokagey/haskellOEIS | test/Miscellaneous/A329110Spec.hs | apache-2.0 | 372 | 0 | 8 | 57 | 154 | 92 | 62 | 10 | 1 |
module External.A181534 (a181534, a181534_list) where
import HelperSequences.A000217 (a000217)
import Data.List (find)
import Data.Maybe (fromJust)
a181534 :: Int -> Integer
a181534 n = a181534_list !! (n - 1)
a181534_list :: [Integer]
a181534_list = 1 : seqTail 2 1 where
seqTail n l = a_n : seqTail (n + 1) a_n whe... | peterokagey/haskellOEIS | src/External/A181534.hs | apache-2.0 | 389 | 0 | 15 | 73 | 163 | 89 | 74 | 10 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE FlexibleContexts #-}
module Agent.Intelligent.Perception (
perception,
) where
import Prelude hiding (log)
import Control.Lens
import Data.Maybe
import Typ... | jtapolczai/wumpus | Agent/Intelligent/Perception.hs | apache-2.0 | 4,837 | 0 | 20 | 1,101 | 1,598 | 816 | 782 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
{-| Utility functions. -}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code mus... | apyrgio/snf-ganeti | src/Ganeti/Utils.hs | bsd-2-clause | 20,617 | 0 | 20 | 5,092 | 4,537 | 2,440 | 2,097 | 321 | 4 |
-- | Paragon Abstract Syntax Tree. Expressions.
module Language.Java.Paragon.Syntax.Expressions
(
module Language.Java.Paragon.Syntax.Expressions
, module Language.Java.Paragon.Syntax.Names
, module Language.Java.Paragon.Syntax.Types
) where
import Language.Java.Paragon.Syntax.Names
import Language.Java.Pa... | bvdelft/paragon | src/Language/Java/Paragon/Syntax/Expressions.hs | bsd-3-clause | 5,113 | 0 | 9 | 1,416 | 968 | 585 | 383 | 104 | 0 |
{-# LANGUAGE TypeOperators, KindSignatures, OverloadedStrings, GADTs, ScopedTypeVariables, MultiParamTypeClasses, FlexibleInstances #-}
module Square where
import Data.Aeson
import Control.Natural
import Control.Wakarusa.Pointed1
import Control.Wakarusa.Session
import Control.Wakarusa.JsonRpc
data Square :... | ku-fpg/wakarusa | wakarusa-examples/json-rpc/Square.hs | bsd-3-clause | 925 | 0 | 12 | 234 | 257 | 133 | 124 | 24 | 1 |
import Music.Prelude
import qualified Music.Score
{-
W.A. Mozart: Ave Verum (excerpt)
Transcribed from autograph, see
http://imslp.org/wiki/Ave_verum_corpus,_K.618_(Mozart,_Wolfgang_Amadeus)
Divided as follows (including preceding accompaniement):
stanza1: Ave verum corpus na... | music-suite/music-preludes | examples/mozart.hs | bsd-3-clause | 4,626 | 0 | 17 | 1,698 | 1,711 | 851 | 860 | -1 | -1 |
{-# LANGUAGE MagicHash, OverloadedStrings #-}
-- Blender's file format parsing library.
--
-- This library provides data structures to represent the main
-- parts of a blend-file, associated functions and Data.Binary parsers
-- to actually read a file into those data structures. Additionally
-- functions to generate Ha... | noteed/hblend | Data/Blend.hs | bsd-3-clause | 10,766 | 0 | 31 | 2,564 | 2,371 | 1,209 | 1,162 | 170 | 17 |
{-# LANGUAGE OverloadedStrings, RankNTypes #-}
module Qualys.Internal.ParseWebApp
( parseWebApps
, parseWebApp
) where
import Control.Applicative hiding (many)
import Control.Monad (join)
import Control.Monad.Catch (MonadThrow)
import Control.Monad.IO.Class (MonadIO)... | ahodgen/qualys | Qualys/Internal/ParseWebApp.hs | bsd-3-clause | 3,908 | 0 | 45 | 839 | 981 | 496 | 485 | 81 | 2 |
{-# LANGUAGE FlexibleContexts, RankNTypes #-}
module GL.Exception where
import Control.Exception
import Control.Monad
import Data.Functor.Union
import Data.Typeable
import Foreign.Ptr
import GHC.Stack
import Graphics.GL.Core41
import Graphics.GL.Types
checkStatus
:: InUnion fs IO
=> (GLenum -> GLuint -> Ptr GLint... | robrix/ui-effects | src/GL/Exception.hs | bsd-3-clause | 1,977 | 0 | 15 | 391 | 632 | 309 | 323 | 59 | 7 |
{-# LANGUAGE CPP #-}
module Data.Iteratee.IO.Base (
#if defined(USE_WINDOWS)
module Data.Iteratee.IO.Windows,
#endif
#if defined(USE_POSIX)
module System.Posix,
#else
FileOffset
#endif
)
where
#if defined(USE_WINDOWS)
import Data.Iteratee.IO.Windows
#endif
-- Provide the FileOffset type, which is available in ... | JohnLato/iteratee | src/Data/Iteratee/IO/Base.hs | bsd-3-clause | 437 | 0 | 5 | 60 | 50 | 39 | 11 | 4 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.