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 MonoLocalBinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PartialTypeSignatures #-}
module MonoLocalBinds where
monoLoc :: forall a. a -> ((a, String), (a, String))
monoLoc x = (g True , g 'v')
where
-- g :: b -> (a, String) -- #1
g :: b -> (a, _) -- #2
g y = (x, "foo")
-- For #... | urbanslug/ghc | testsuite/tests/partial-sigs/should_compile/MonoLocalBinds.hs | bsd-3-clause | 363 | 0 | 8 | 85 | 93 | 57 | 36 | 8 | 1 |
module ScratchPad where
import Data.List
import Formulas
import Lambda
import Maps
vartps :: ULT -> TCtx
vartps t =
let (_,t') = unlambdas t in
let (_,_,g,_) = synth t' in
g
termsig :: ULT -> [Int]
termsig t =
map length $ map (\(x,tp) -> linearizeType tp) (vartps t)
-- verified for 1<=n<=8
test n =
let ... | noamz/linlam-gos | src/ScratchPad.hs | mit | 888 | 0 | 25 | 246 | 467 | 236 | 231 | 27 | 2 |
{-# LANGUAGE TupleSections #-}
module Examples.Simple where
import Circuit
import Circuit.Builder
import Circuit.Utils
import Control.Monad
export :: Gate g => [(String, [IO (String, Circuit g)])]
export = [ ("simple", [("simple",) <$> return simple])
, ("sub1", [("sub1",) <$> return (subCi... | spaceships/circuit-synthesis | src/Examples/Simple.hs | mit | 4,511 | 0 | 12 | 1,379 | 1,877 | 978 | 899 | 107 | 1 |
module Do1 where
x = do x; x
| Lemmih/haskell-tc | tests/Do1.hs | mit | 30 | 0 | 6 | 9 | 16 | 9 | 7 | 2 | 1 |
{-# LANGUAGE BangPatterns, DataKinds, DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Hadoop.Protos.YarnServerResourceManagerServiceProtos.RefreshQueuesRequestProto (RefreshQueuesRequestProto(..)) where
import Prelude ((+), (/))
import qualified Prelu... | alexbiehl/hoop | hadoop-protos/src/Hadoop/Protos/YarnServerResourceManagerServiceProtos/RefreshQueuesRequestProto.hs | mit | 2,983 | 1 | 16 | 535 | 554 | 291 | 263 | 53 | 0 |
module XMonadConfig
(
Colors(..),
colors
) where
data Colors = Colors
{
normal :: String,
active :: String,
inactive :: String,
urgent :: String,
highlight :: String,
background :: String
}
colors = Colors { normal = "#CCCCCC", active = "#45C0F5", inactive = "#CEFFAC", urgent = "#FF0000", highlight = ... | justinhoward/dotfiles | modules/xmonad/installed-config/lib/XMonadConfig.hs | mit | 355 | 20 | 8 | 71 | 125 | 78 | 47 | 12 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE DeriveGeneric #-}
module Primary where
import Prelude hiding (Word)
import GHC.Generics (Generic)
import Data.Serialize
import Data.Text (Text)
import Data.Text.Encoding (encodeUtf8, decodeUtf8)
instance Serialize Text where
put = put . encodeUtf8
get = decodeUt... | ancientlanguage/haskell-analysis | primary-type/src/Primary.hs | mit | 1,533 | 0 | 9 | 295 | 424 | 244 | 180 | 58 | 0 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.HTMLTrackElement (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.HTMLTrackElement
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
import GHCJS.DOM.JSFFI... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/HTMLTrackElement.hs | mit | 361 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
infixr 5 :::
data CList a = CNil
| a ::: (CList a)
deriving (Show)
toList CNil = []
toList (x ::: rs) = x : toList rs
fromList [] = CNil
fromList (x:rs) = x ::: fromList rs
| Kroisse/haskell_practices | oldies/customlist.hs | mit | 192 | 0 | 8 | 58 | 97 | 51 | 46 | 8 | 1 |
main = do
print $ "abcde"
print $ ['a', 'b', 'c', 'd', 'e']
print $ ['a' .. 'e']
print $ 'a' : "bcde"
print $ 'a' : 'b' : "cde"
print $ "abc" ++ "de"
print $ "abcde" !! 3
| shigemk2/haskell_abc | string.hs | mit | 185 | 0 | 9 | 54 | 96 | 48 | 48 | 8 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.AllVideoCapabilities
(js_getSourceType, getSourceType, js_getSourceId, getSourceId,
js_getWidth, getWidth, js_getHeight, getHeight, js_getFrameRate,
getFrameRate, js_getAspectRatio, getAspec... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/AllVideoCapabilities.hs | mit | 4,340 | 42 | 10 | 634 | 896 | 515 | 381 | 66 | 1 |
{-|
Module : Jupyter.Install.Internal
Description : Utilities for installing Jupyter kernels (internal implementation).
Copyright : (c) Andrew Gibiansky, 2016
License : MIT
Maintainer : andrew.gibiansky@gmail.com
Stability : stable
Portability : POSIX
This module exposes the internal implementation for "... | gibiansky/jupyter-haskell | src/Jupyter/Install/Internal.hs | mit | 16,511 | 0 | 18 | 3,946 | 2,450 | 1,319 | 1,131 | 212 | 5 |
module Site.Types (
Channels,
Streams
) where
-- Channels
import qualified Data.Map as Map
import Control.Concurrent.STM.TChan
import Control.Concurrent.STM.TVar
-- Streams
import qualified System.IO.Streams as S
import qualified Data.ByteString.Char8 as C
-- the websocket server channels
type Channels = TVar (M... | BlackBears/alanduncan.me | Pandoc/Types.hs | mit | 464 | 0 | 9 | 64 | 112 | 72 | 40 | 10 | 0 |
module Q22 where
range :: Int -> Int -> [Int]
range x y = case (rangeTest x y) of Left x -> x
Right y -> error y
rangeTest :: Int -> Int -> Either [Int] String
rangeTest x y =
let
check :: Int -> Int -> Either [Int] String
check x y
| y < x = Right "y < x is no... | cshung/MiscLab | Haskell99/q22.hs | mit | 504 | 0 | 14 | 179 | 232 | 117 | 115 | 14 | 2 |
{-# LANGUAGE MagicHash, RecursiveDo #-}
module History(
truncateHistory, History,
{- Single-stop operations on snapshots. -}
runThread, setRegister, allocateMemory, setMemory, setMemoryProtection,
setTsc,
{- Queries on histories -}
... | sos22/ppres | ppres/driver/History.hs | gpl-2.0 | 56,573 | 24 | 38 | 22,636 | 14,091 | 7,066 | 7,025 | 1,010 | 37 |
-- | Make Lamdu Style
{-# LANGUAGE TemplateHaskell, DisambiguateRecordFields #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
module Lamdu.Style.Make
( make
, mainLoopConfig
) where
import qualified Control.Lens as Lens
import Data.Property (MkProperty)
import qualified Data.Propert... | Peaker/lamdu | src/Lamdu/Style/Make.hs | gpl-3.0 | 6,687 | 0 | 17 | 1,720 | 1,600 | 928 | 672 | -1 | -1 |
module Wordy2 where
import Text.ParserCombinators.Parsec
-- In reality you'd use an Either here so you could cpature the error
answer :: String -> Maybe Integer
answer eq =
case parse parseLine "FAIL" eq of
Right a -> Just a
Left e -> Nothing -- error (show e)
-- Take a line of input, and parse into ... | ciderpunx/exercismo | src/Wordy2.hs | gpl-3.0 | 1,714 | 0 | 14 | 459 | 424 | 210 | 214 | 41 | 5 |
{-# LANGUAGE CPP, DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : Hie.Language.Haskell.Exts.Syntax
-- Copyright : (c) Niklas Broberg 2004-2009,
-- (c) The GHC Team, 1997-2000
-- License : BSD-style (see the file LICENSE.t... | monsanto/hie | Hie/Language/Haskell/Exts/Syntax.hs | gpl-3.0 | 35,625 | 0 | 11 | 9,442 | 5,317 | 3,309 | 2,008 | 450 | 1 |
{-|
Module : Photostrip
Description : Photostrip Module
Copyright : (c) Chris Tetreault, 2014
License : GPL-3
Stability : experimental
The Photostrip module exposes functions relating to transforming images into
a photostrip.
When the camera module begins capturing images, these images will be passed to
the photostr... | christetreault/dmp-photo-booth-prime | DMP/Photobooth/Module/Photostrip.hs | gpl-3.0 | 1,689 | 0 | 7 | 291 | 119 | 73 | 46 | 25 | 1 |
{---------------------------------------------------------------------}
{- Copyright 2015 Nathan Bloomfield -}
{- -}
{- This file is part of Feivel. -}
{- ... | nbloomf/feivel | src/Feivel/Eval/Util.hs | gpl-3.0 | 3,327 | 0 | 12 | 985 | 884 | 476 | 408 | 60 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Rasters/Get.hs | mpl-2.0 | 2,551 | 0 | 12 | 605 | 302 | 186 | 116 | 47 | 1 |
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- Module : Gen.Types.Pager
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : This Source Code... | olorin/amazonka | gen/src/Gen/Types/Pager.hs | mpl-2.0 | 2,060 | 0 | 15 | 603 | 454 | 244 | 210 | 41 | 0 |
{-
Модуль, отвечающий за работу с тематическими тегами и с именами авторов статей.
https://github.com/denisshevchenko/ruhaskell
Все права принадлежат русскоязычному сообществу Haskell-разработчиков, 2015 г.
-}
{-# LANGUAGE OverloadedStrings #-}
module Tags (
buildPostsTags,
buildPostsAuthors,
... | akamch/ruhaskell-old | src/Tags.hs | unlicense | 6,042 | 0 | 19 | 2,140 | 678 | 338 | 340 | 97 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Mdb.Serve.Resource.File ( WithFile, fileResource, File(..), Container(..), Stream(..) ) where
import Control.Monad.Catch (MonadMask)
import Control.Monad.IO.Class (MonadIO)
import Control.Monad.Reade... | waldheinz/mdb | src/lib/Mdb/Serve/Resource/File.hs | apache-2.0 | 5,540 | 6 | 21 | 1,625 | 1,170 | 658 | 512 | 119 | 3 |
{- |
This module provides utilities for easily performing current operations.
Specifically, it provides a way to operate on lists of IO actions much
like `sequence` and `mapM`, but in such a way where the actions are all
performed concurrently. All other semantics are the same: exceptions
encountered concurre... | SumAll/haskell-concurrent-lists | src/Control/Concurrent/ConcurrentLists.hs | apache-2.0 | 3,720 | 0 | 15 | 804 | 816 | 411 | 405 | 63 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
-- | Note: tests here are the same as the tests of the ordinary
-- `Earley` module.
module NLP.TAG.Vanilla.Earley.Pred.Tests where
import Test.Tasty (TestTree)
import NLP.TAG.Vanilla.Earley.Pred (recognize')
import qualified ... | kawu/tag-vanilla | src/NLP/TAG/Vanilla/Earley/Pred/Tests.hs | bsd-2-clause | 488 | 0 | 6 | 87 | 69 | 47 | 22 | 8 | 1 |
-- | Generate Attribute-Relation File Format (ARFF) files.
--
-- ARFF files are used by the WEKA data mining and machine learning framework.
--
-- <http://www.cs.waikato.ac.nz/~ml/weka/>
--
module Text.ARFF (
-- * ARFF relations
Relation,
relation,
encode,
-- * Attribute constructors
Attribute,
... | kaoskorobase/arff | Text/ARFF.hs | bsd-2-clause | 6,699 | 0 | 12 | 1,521 | 1,813 | 991 | 822 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables, DoAndIfThenElse, OverloadedStrings #-}
import System.Environment (getArgs)
import qualified Data.ByteString.Lazy.Char8 as B
import Data.Maybe (fromJust)
import qualified Data.Map as M
import qualified Data.List as L
data Symbol = Procedure Bool B.ByteString
| Variable Bool... | houli/TastierMachine | src/TastierLinker/Main.hs | bsd-3-clause | 6,695 | 4 | 18 | 1,513 | 1,770 | 916 | 854 | 118 | 7 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -O #-}
module Main where
import qualified Data.ByteString.Lazy as BSL
import Data.List ( sortBy )
import Data.Ord ( comparing )
import Data.Char
import Data.Ratio
#ifdef DEBUG
import Debug.Trace
import System.IO
#endif
transUnit :: String -> Integer
transUnit "G" = 1024 * trans... | Tener/haskell-sorty | sorty.hs | bsd-3-clause | 1,906 | 12 | 18 | 732 | 521 | 297 | 224 | 37 | 2 |
module Tisp.CodeGen (codegen, CodeGen) where
import Data.Map.Strict (Map)
import qualified Data.Text as T
import qualified Data.Map.Strict as M
import Data.Maybe (fromJust)
import Control.Monad.Reader hiding (void)
import LLVM.General.AST
import LLVM.General.AST.DataLayout
import LLVM.General.AST.Type
import LLVM.Ge... | Ralith/tisp | src/Tisp/CodeGen.hs | bsd-3-clause | 4,292 | 4 | 20 | 1,023 | 1,636 | 854 | 782 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE QuasiQuotes #-}
-- |
module Network.Libtorrent.Bencode (Bencoded
, entryToBencoded
, bencodedData
) where
import Control.Monad.IO.Class (MonadIO, liftIO)... | eryx67/haskell-libtorrent | src/Network/Libtorrent/Bencode.hs | bsd-3-clause | 1,703 | 0 | 16 | 426 | 338 | 194 | 144 | 37 | 1 |
-- | Color and formatting for terminal output.
-- For Windows systems, any and all formatting are no-ops due to
-- compatibility reasons.
--
-- While formattings can be stacked (i.e. @bold (underline "Hello Joe")@),
-- they do not properly nest: the escape code used to reset formatting at the
-- end of a form... | valderman/shellmate | shellmate/Control/Shell/Color.hs | bsd-3-clause | 1,821 | 0 | 13 | 394 | 382 | 214 | 168 | 34 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Control.Concurrent.SampleVar
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : experimen... | OS2World/DEV-UTIL-HUGS | libraries/Control/Concurrent/SampleVar.hs | bsd-3-clause | 2,853 | 8 | 15 | 666 | 465 | 263 | 202 | 43 | 2 |
{-# LANGUAGE FlexibleInstances #-}
-- |
-- Module : Simulation.Aivika.Branch.Br
-- Copyright : Copyright (c) 2016-2017, David Sorokin <david.sorokin@gmail.com>
-- License : BSD3
-- Maintainer : David Sorokin <david.sorokin@gmail.com>
-- Stability : experimental
-- Tested with: GHC 7.10.3
--
-- This module de... | dsorokin/aivika-branches | Simulation/Aivika/Branch/Br.hs | bsd-3-clause | 1,262 | 0 | 7 | 162 | 179 | 122 | 57 | 23 | 0 |
{-# LANGUAGE DeriveGeneric #-}
module Cataskell.GameData.Resources where
import Cataskell.GameData.Basics
import Data.Monoid
import Data.Set (Set)
import qualified Data.Set as Set
import GHC.Generics (Generic)
data ResourceCount = ResourceCount
{ lumber :: Int
, wool :: Int
, wheat :: Int
, brick :: Int
,... | corajr/cataskell | src/Cataskell/GameData/Resources.hs | bsd-3-clause | 4,346 | 0 | 15 | 1,198 | 1,545 | 811 | 734 | 110 | 7 |
module Text.RSS.Tests where
import Test.Framework (Test, mutuallyExclusive, testGroup)
import Text.RSS.Export.Tests (rssExportTests)
import Text.RSS.Import.Tests (rssImportTests)
import Test.HUnit (Assertion, assertBool)
import Test.Framework.Providers.HUnit (testCase)
import Text.Feed.Export
import Text.Feed.Import
i... | danfran/feed | tests/Text/RSS/Tests.hs | bsd-3-clause | 838 | 0 | 12 | 152 | 186 | 109 | 77 | 22 | 1 |
module Internal.SystemZ.StorableSpec where
import Foreign
import Foreign.C.Types
import Test.Hspec
import Test.QuickCheck
import Hapstone.Internal.SystemZ
import Internal.SystemZ.Default
-- | main spec
spec :: Spec
spec = describe "Hapstone.Internal.SysZ" $ do
syszOpMemStructSpec
csSysZOpSpec
csSysZSpe... | ibabushkin/hapstone | test/Internal/SystemZ/StorableSpec.hs | bsd-3-clause | 2,689 | 0 | 16 | 587 | 869 | 437 | 432 | 63 | 1 |
module Task6
( task6
) where
import Data.Bool
import Text.Printf
type Point = (Double, Double)
task6 :: IO ()
task6
| snd result = printf "Минимум найден в точке (%.4f, %.4f)\n" x y
| otherwise = printf "Минимум не найден, последняя найденная точка: (%.4f, %.4f)\n" x y
where
result... | vsulabs/OptimizationMethodsHs | src/Task6.hs | bsd-3-clause | 1,670 | 0 | 13 | 542 | 558 | 294 | 264 | 31 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Handlers.Actions.Common(
api
,view
,withParams
,withGeneratedCSRF
,withCSRFVerified
,withAuthorization
,withUser
,preloadUser
,generateAuthURL
) where
import qualified Data.Text as T
import qualified Data.Text.Lazy as LT
import qualified Data.Map as M
import ... | DavidAlphaFox/sblog | src/Handlers/Actions/Common.hs | bsd-3-clause | 5,349 | 0 | 15 | 1,058 | 1,772 | 905 | 867 | 144 | 4 |
{-# LANGUAGE FlexibleContexts #-}
module Diagrams.QRCode (pathList, pathMatrix, pathArray, stroke) where
import Control.Arrow ((***))
import Data.Array (assocs, Array, Ix)
import Data.Colour.Names (black, white)
import Data.Monoid (Any, mempty)
import qualified Diagrams.Attributes as D
import qualified Diagrams.Core a... | prowdsponsor/diagrams-qrcode | src/Diagrams/QRCode.hs | bsd-3-clause | 1,986 | 0 | 12 | 460 | 656 | 366 | 290 | 38 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
module Example.Monad.DataTypes where
import Z3.Monad
import Control.Monad.Trans (liftIO)
run :: IO ()
run = evalZ3 datatypeScript
mkCellDatatype :: Z3 Sort
mkCellDatatype = do
-- Create a cell data type of the form:
-- data Cell = Nil | Cons {car :: Cell, cdr :: Cell}
-- ... | sukwon0709/z3-haskell | examples/Example/Monad/DataTypes.hs | bsd-3-clause | 1,864 | 0 | 13 | 390 | 562 | 274 | 288 | 45 | 1 |
{-# LANGUAGE BangPatterns #-}
--
-- (c) The University of Glasgow 2003-2006
--
-- Functions for constructing bitmaps, which are used in various
-- places in generated code (stack frame liveness masks, function
-- argument liveness masks, SRT bitmaps).
module GHC.Data.Bitmap (
Bitmap, mkBitmap,
intsTo... | sdiehl/ghc | compiler/GHC/Data/Bitmap.hs | bsd-3-clause | 4,528 | 0 | 17 | 1,104 | 790 | 431 | 359 | 61 | 1 |
module Bustle.QL.API.Bustle
( BustleAPI(..)
) where
import Control.Monad.IO.Class (liftIO)
import qualified Data.ByteString as B
import Data.Foldable
import Bustle.Env
data BustleAPI = BustleAPI deriving (Eq, Show)
instance GraphQLValue Haxl BustleAPI
instance GraphQLType OBJECT Haxl BustleA... | jqyu/bustle-chi | src/Bustle/QL/API/Bustle.hs | bsd-3-clause | 1,161 | 0 | 17 | 314 | 288 | 143 | 145 | -1 | -1 |
module Quickpull.Render where
import Quickpull.Types
import Quickpull.Formatting
import Data.List
import Data.Ord
metaQual
:: Char
-- ^ Leader character
-> (Meta, Qual)
-> String
metaQual ldr (m, q) = indent 1 $ [ldr] <+> "Decree (" <+>
show m <+> ")" <+> "(" <+> i <+> ")"
where
kind = case q of
... | massysett/quickpull | lib/Quickpull/Render.hs | bsd-3-clause | 1,926 | 0 | 14 | 508 | 639 | 333 | 306 | 57 | 2 |
module Entity.Velocity where
import qualified GameData.Entity as E
import qualified GameData.Animation as A
import qualified Gamgine.Math.Vect as V
velocity :: E.Entity -> V.Vect
velocity E.Player {E.playerVelocity = v } = v
velocity E.Enemy {E.enemyPosition = Left _} = V.v3 0 0 0
velocity E.Enem... | dan-t/layers | src/Entity/Velocity.hs | bsd-3-clause | 591 | 0 | 9 | 145 | 212 | 112 | 100 | 11 | 1 |
module Kata.WonderlandNumberSpec (main, spec) where
import Test.Hspec
import Kata.WonderlandNumber (wonderlandNumber, toDigitSet)
import Data.Foldable (for_)
main :: IO ()
main = hspec spec
spec :: Spec
spec =
describe "WonderlandNumber" $
[2..6] `for_` \n ->
it ("has the same digits when multiplied by... | FranklinChen/wonderland-katas-haskell | test/Kata/WonderlandNumberSpec.hs | bsd-3-clause | 525 | 0 | 12 | 94 | 158 | 88 | 70 | 14 | 1 |
module Math.Probably.GlobalRandoms where
import Data.IORef
import System.IO.Unsafe
import Math.Probably.Sampler
{-# NOINLINE globalSeed #-}
globalSeed :: IORef Seed
globalSeed = unsafePerformIO $ getSeedIO >>= newIORef
{-# NOINLINE sampleN #-}
sampleN :: Int -> Prob a -> [a]
sampleN n = unsafePer... | glutamate/probably-base | Math/Probably/GlobalRandoms.hs | bsd-3-clause | 836 | 0 | 9 | 283 | 93 | 53 | 40 | 10 | 1 |
module AST.Module where
import Data.Binary
import qualified Data.List as List
import qualified Data.Map as Map
import Control.Applicative ((<$>),(<*>))
import qualified AST.Expression.Canonical as Canonical
import qualified AST.Declaration as Decl
import qualified AST.Type as Type
import qualified AST.Variable as Var... | JoeyEremondi/haskelm | src/AST/Module.hs | bsd-3-clause | 4,209 | 0 | 13 | 1,084 | 1,292 | 716 | 576 | 115 | 3 |
{-# LANGUAGE OverloadedStrings, Safe #-}
module Evalso.Cruncher.Language.Haskell (haskell) where
import Evalso.Cruncher.Language (Language (..))
haskell :: Language
haskell = Language {
_codeFilename = "program.hs"
, _compileCommand = Just ["ghc", "program.hs"]
, _compileTimeout = Just 3
, _runCommand = ["... | eval-so/cruncher | src/Evalso/Cruncher/Language/Haskell.hs | bsd-3-clause | 437 | 0 | 8 | 76 | 104 | 67 | 37 | 13 | 1 |
-- | Combinators for executing IO actions in parallel on a thread pool.
--
-- This module just reexports "Control.Concurrent.ParallelIO.Global": this contains versions of
-- the combinators that make use of a single global thread pool with as many threads as there are
-- capabilities.
--
-- For finer-grained control, y... | batterseapower/parallel-io | Control/Concurrent/ParallelIO.hs | bsd-3-clause | 705 | 0 | 5 | 107 | 34 | 27 | 7 | 3 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Text.WildCardMatcher where
import Control.Applicative ((<$>), (<|>), (*>))
import qualified Data.List as L
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BSL
import qual... | asakamirai/hs-wildcard | src/Text/WildCardMatcher.hs | bsd-3-clause | 3,700 | 0 | 12 | 741 | 1,084 | 565 | 519 | 76 | 4 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StandaloneDeriving #-}
module RequestSpec (main, spec) where
import Network.Wai.Handler.Warp.Request
import Network.Wai.Handler.Warp.RequestHeader (parseByteRanges)
import Network.Wai.Handler.Warp.Types
import Test.Hspec
import Test... | sol/wai | warp/test/RequestSpec.hs | mit | 3,566 | 0 | 23 | 1,016 | 1,060 | 543 | 517 | 88 | 2 |
-- | Module containing explorer-specific datatypes
module Pos.Explorer.Core.Types
( TxExtra (..)
, AddrHistory
) where
import Universum
import Pos.Binary.Class (Cons (..), Field (..), deriveSimpleBi)
import Pos.Chain.Block (HeaderHash)
import Pos.Chain.Txp... | input-output-hk/pos-haskell-prototype | explorer/src/Pos/Explorer/Core/Types.hs | mit | 1,003 | 0 | 12 | 287 | 217 | 133 | 84 | -1 | -1 |
{- |
Module : ./Taxonomy/MMiSSOntologyGraph.hs
Copyright : (c) Uni Bremen 2004-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : luecke@informatik.uni-bremen.de
Stability : provisional
Portability : non-portable(uni)
displays an ontology graph
-}
module Taxonomy.MMiSSOntologyGraph (dis... | spechub/Hets | Taxonomy/MMiSSOntologyGraph.hs | gpl-2.0 | 24,216 | 0 | 22 | 7,970 | 7,492 | 3,821 | 3,671 | 521 | 9 |
{- |
Module : ./Common/ATerm/ATermDiffMain.hs
Copyright : (c) C. Maeder, DFKI GmbH 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : experimental
Portability : portable
-}
module Main (main) where
import System.Environment
import ATerm.ReadWrite
im... | spechub/Hets | Common/ATerm/ATermDiffMain.hs | gpl-2.0 | 959 | 0 | 17 | 228 | 269 | 131 | 138 | 24 | 2 |
{-# 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 #-}
-- ... | fmapfmapfmap/amazonka | amazonka-iam/gen/Network/AWS/IAM/ResyncMFADevice.hs | mpl-2.0 | 4,615 | 0 | 9 | 891 | 587 | 356 | 231 | 80 | 1 |
--
-- Copyright (c) 2012 Citrix Systems, Inc.
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any later version.
--
-- Th... | OpenXT/xclibs | xch-rpc/Rpc/Variables.hs | lgpl-2.1 | 8,325 | 0 | 16 | 1,709 | 2,265 | 1,183 | 1,082 | 175 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | Routines for formatting dbus values
--
-- In particular, types and variants
module DBusBrowser.Formatting where
import DBus
import Data.Text (Text)
import qualified Data.Text as T
import Data.Maybe
import Unparse
formatType :: Type -> Text... | hpdeifel/dbus-browser | src/DBusBrowser/Formatting.hs | bsd-3-clause | 1,231 | 0 | 15 | 270 | 353 | 183 | 170 | 36 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.MC
-- Copyright : Copyright (c) 2010, Patrick Perry <patperry@gmail.com>
-- License : BSD3
-- Maintainer : Patrick Perry <patperry@gmail.com>
-- Stability : experimental
--
-- A monad and monad transfor... | beni55/hs-monte-carlo | lib/Control/Monad/MC.hs | bsd-3-clause | 457 | 0 | 5 | 70 | 34 | 27 | 7 | 3 | 0 |
<?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="ar-SA">
<title>JSON View</title>
<maps>
<homeID>jsonview</homeID>
<mapref location="map... | thc202/zap-extensions | addOns/jsonview/src/main/javahelp/help_ar_SA/helpset_ar_SA.hs | apache-2.0 | 959 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
module A2 where
f x y = x + y * 42
| kmate/HaRe | old/testing/comSubexpElim/A2.hs | bsd-3-clause | 38 | 0 | 6 | 15 | 22 | 12 | 10 | 2 | 1 |
module Distribution.Simple.Test.Log
( PackageLog(..)
, TestLogs(..)
, TestSuiteLog(..)
, countTestResults
, localPackageLog
, summarizePackage
, summarizeSuiteFinish, summarizeSuiteStart
, summarizeTest
, suiteError, suiteFailed, suitePassed
, testSu... | rimmington/cabal | Cabal/Distribution/Simple/Test/Log.hs | bsd-3-clause | 6,072 | 0 | 15 | 1,603 | 1,427 | 795 | 632 | 118 | 4 |
{-|
Handles sending packets to galaxies. We need to get their IP addresses
from DNS, which is more complicated.
-- Asynchronous thread per galaxy which handles domain resolution, and can
-- block its own queue of ByteStrings to send.
--
-- Maybe perform the resolution asynchronously, injecting into the resolver
--... | urbit/urbit | pkg/hs/urbit-king/lib/Urbit/Vere/Ames/DNS.hs | mit | 6,887 | 0 | 22 | 1,919 | 1,805 | 914 | 891 | -1 | -1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE... | wz1000/haskell-lsp | lsp-types/src/Language/LSP/Types/Parsing.hs | mit | 13,976 | 224 | 24 | 2,629 | 3,211 | 1,668 | 1,543 | -1 | -1 |
module RecordExplicitUnused where
import Language.Haskell.Names (Symbol (Value, symbolModule, symbolName))
foo = Value {symbolModule = undefined}
| serokell/importify | test/test-data/haskell-names@records/04-RecordExplicitUnused.hs | mit | 158 | 0 | 6 | 27 | 36 | 25 | 11 | 3 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module TestBulletML (
spec
) where
import Control.Monad (unless)
import System.Exit (exitFailure)
import Control.Arrow (arr, returnA)
import Control.Category ((<<<), (>>>))
import Data.Tree.NTree.TypeDefs (NTree)
import Debug.Trace (trace)
import Text.XML.HXT.Arrow.XmlArrow (ArrowXml... | didmar/bulletml-haskell | test/TestBulletML.hs | mit | 2,604 | 0 | 19 | 635 | 541 | 310 | 231 | 45 | 1 |
-- Spirangle.hs
-- copied from https://github.com/sleexyz/hylogen-fun/blob/master/Spirangle.hs
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleContexts #-}
module Spirangle where
import Util
output = toProgram (spirangle osc1)
spirangle draw = rgba where
rgba = (line)
& (over (b2a bb... | lemilonkh/algorithmuss | visuals/Spirangle.hs | mit | 843 | 0 | 18 | 224 | 414 | 225 | 189 | 26 | 1 |
module XMLQuery
where
import XMLQuery.Prelude hiding (Text)
import qualified XMLQuery.Prelude as Prelude
import qualified XMLQuery.AST as AST
-- * Text
-------------------------
-- |
-- Parser in the context of a textual value.
type Text =
Alt AST.Text
-- |
-- Lifts an arbitrary textual parser function to the te... | sannsyn/xml-query | library/XMLQuery.hs | mit | 3,475 | 0 | 13 | 682 | 700 | 382 | 318 | 69 | 2 |
import Text.ParserCombinators.Parsec
import Control.Monad
import System.Cmd
import System.Directory
import System.Environment
import TexParser
import StyleSvg
import Config
main =
do args <- getArgs -- get the list of command line arguments
let configFilePath = case args of
... | dino-r/casttex | src/Main.hs | mit | 4,573 | 0 | 13 | 1,021 | 1,049 | 543 | 506 | 64 | 2 |
module Unison.Test.ResourcePool where
import Control.Concurrent
import Control.Applicative
import Control.Monad
import Data.Functor
import Data.IORef (IORef)
import Data.Maybe
import Data.Time (UTCTime,getCurrentTime, addUTCTime)
import Test.Tasty
import Test.Tasty.HUnit
import qualified Control.Concurrent as CC
impor... | nightscape/platform | node/tests/Unison/Test/ResourcePool.hs | mit | 3,140 | 0 | 13 | 545 | 1,132 | 593 | 539 | 77 | 2 |
module Main where
import Apl1
import BadMonoid
import Control.Applicative
import Data.Monoid
import ListAp
import Test.QuickCheck.Checkers
import Test.QuickCheck.Classes
main :: IO ()
main = do
quickBatch (monoid Twoo)
quickBatch (applicative (... | JoshuaGross/haskell-learning-log | Code/Haskellbook/Applicatives/src/Main.hs | mit | 517 | 0 | 13 | 138 | 178 | 95 | 83 | 15 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- |
-- Module : Test.Tasty.KAT
-- License : MIT
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : Good
--
-- Tasty support for KAT (Known Answer Tests)
--
module Test.Tasty.KAT
(
... | vincenthz/tasty-kat | Test/Tasty/KAT.hs | mit | 3,678 | 0 | 15 | 1,015 | 980 | 530 | 450 | 70 | 3 |
import Haste
import Haste.DOM
import Haste.Graphics.Canvas
import Basal
steps :: Int
steps = 20000
size :: Int
size = 500
main = do
Just canv <- getCanvasById "field"
Just button <- elemById "button"
_ <- onEvent button OnClick (onButtonClick canv steps)
seed <- newSeed
renderRW canv seed steps
... | lesguillemets/schrammloewner | src/LoopErased.hs | mit | 1,282 | 0 | 15 | 378 | 564 | 286 | 278 | 39 | 2 |
module Solidran.Revc.DetailSpec (spec) where
import Solidran.Revc.Detail
import Test.Hspec
spec :: Spec
spec = do
describe "Solidran.Revc.Detail" $ do
describe "complementDna" $ do
it "should do nothing with an empty string" $ do
complementDna "" `shouldBe` ""
it "s... | Jefffrey/Solidran | test/Solidran/Revc/DetailSpec.hs | mit | 526 | 0 | 17 | 183 | 109 | 55 | 54 | 14 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
-- | This module is a duplication of the Control.Monad.Error module from the
--... | oisdk/constrained-monads | src/Control/Monad/Constrained/Error.hs | mit | 3,634 | 0 | 13 | 876 | 1,023 | 556 | 467 | -1 | -1 |
import Typechecker
import Types
import Control.Monad
import Data.Either
import qualified Data.Map as M
import qualified Data.Set as S
testExprs :: [MoleculeExpr]
testExprs = [
EApp (EAbs "x" (EVar "x" :+: EVar "x")) (EInt 10)
, EAbs "x" (EVar "x" :+: EVar "x")
, EApp (EAbs "x" (EVar "x")) (EInt 8)
, EApp (EA... | 5outh/Molecule | Test.hs | gpl-2.0 | 1,474 | 0 | 15 | 347 | 664 | 332 | 332 | 49 | 1 |
{- |
Module : $Header$
Description : abstract syntax for FPL
Copyright : (c) Christian Maeder, DFKI GmbH 2011
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
abstract syntax for FPL, logic for functional programs
as CA... | nevrenato/HetsAlloy | Fpl/As.der.hs | gpl-2.0 | 7,160 | 0 | 17 | 1,652 | 2,624 | 1,292 | 1,332 | 192 | 1 |
module Macro.Todo where
import Types
import Macro.Text
import Macro.Theorem
import Control.Monad (when)
import Control.Monad.Reader (asks)
listoftodos :: Note
listoftodos = do
o <- asks conf_todos
when o $ do
packageDep_ "todonotes"
co... | NorfairKing/the-notes | src/Macro/Todo.hs | gpl-2.0 | 1,907 | 0 | 12 | 477 | 521 | 263 | 258 | 56 | 1 |
--file: ch03/BadIndent.hs
-- This is the left most column
-- Our first declaration is in column 4.
firstBadIndentation = 1
-- Our second is left of the first, which is illegal!
secondBadIndentation = 2
| craigem/RealWorldHaskell | ch03/BadIndent.hs | gpl-3.0 | 217 | 1 | 5 | 49 | 17 | 10 | 7 | -1 | -1 |
module QHaskell.Expression.ADTUntypedNamed
(Exp(..)) where
import QHaskell.MyPrelude
import qualified QHaskell.Type.ADT as TA
data Exp x = ConI Word32
| ConB Bool
| ConF Float
| Var x
| Prm x [Exp x]
| Abs (x , Exp x)
| App (Exp x) (Exp x)
... | shayan-najd/QHaskell | QHaskell/Expression/ADTUntypedNamed.hs | gpl-3.0 | 767 | 0 | 8 | 303 | 299 | 164 | 135 | -1 | -1 |
----------------------------------------------------------------------------
-- |
-- Module : $Header$
-- Copyright : (c) Proyecto Theona, 2012-2013
-- (c) Alejandro Gadea, Emmanuel Gunther, Miguel Pagano
-- License : <license>
--
-- Maintainer : miguel.pagano+theona@gmail.com
-- Stabili... | alexgadea/fun | Fun/Derivation.hs | gpl-3.0 | 7,688 | 0 | 14 | 2,351 | 1,772 | 947 | 825 | -1 | -1 |
{-# language GADTs #-}
{-|
Copyright : (c) Quivade, 2017
License : GPL-3
Maintainer : Jakub Kopański <jakub@quivade.com>
Stability : experimental
Portability : POSIX
This module provides FIRRTL Types definitions.
|-}
module Language.FIRRTL.Types
( Type
, PolyType
, TypeF (..)
, Field (..)
, Ground (... | quivade/screwdriver | src/Language/FIRRTL/Types.hs | gpl-3.0 | 2,132 | 0 | 9 | 510 | 486 | 288 | 198 | 48 | 3 |
module Amoeba.Middleware.Tracing.Log
( setupLogger
, finish
, info
, warning
, debug
, error
, notice ) where
import System.Log.Logger
import System.Log.Handler.Simple
import System.Log.Handler (setFormatter)
import System.Log.Formatter
import Prelude hiding (error)
logFormat = "$utcTime $... | graninas/The-Amoeba-World | src/Amoeba/Middleware/Tracing/Log.hs | gpl-3.0 | 839 | 0 | 10 | 146 | 193 | 105 | 88 | 27 | 1 |
module EmailParser.Lib
--(
-- makeEmailsList
-- ,parseEmails
--)
where
-- currently exporting everything while testing in ghci
-- ======================================================================
import Text.Regex.Posix
import System.Directory
import Data.... | simonced/haskell-kata | email-parser-cabal/src/EmailParser/Lib.hs | gpl-3.0 | 5,274 | 0 | 11 | 1,503 | 936 | 518 | 418 | 64 | 1 |
module TestIntegration
( integrationTests
) where
import Control.Concurrent (forkIO)
import Control.Monad.Except
import Control.Monad.IO.Class (liftIO)
import Crypto.Hash (SHA512(SHA512))
import Crypto.PubKey.RSA (generate)
import qualified Data.ByteString.Char8 as B
import qualified Data.ByteString.Lazy.Char8 as ... | hemio-ev/libghc-acme | test/TestIntegration.hs | lgpl-3.0 | 5,972 | 0 | 18 | 1,273 | 1,675 | 878 | 797 | 159 | 2 |
-- Copyright © 2014 Garrison Jensen
-- License
-- This code and text are dedicated to the public domain.
-- You can copy, modify, distribute and perform the work,
-- even for commercial purposes, all without asking permission.
-- For more information, please refer to <http://unlicense.org/>
-- or the accompanying LI... | GarrisonJ/LambLamb | main.hs | unlicense | 454 | 0 | 9 | 97 | 51 | 29 | 22 | 7 | 1 |
-------------------------------------------------
-- |
-- Module : Crypto.Noise.HandshakePatterns
-- Maintainer : John Galt <jgalt@centromere.net>
-- Stability : experimental
-- Portability : POSIX
--
-- This module contains all of the handshake patterns specified in sections
-- 7.2, 7.3, and 9.4.
module Crypto... | centromere/cacophony | src/Crypto/Noise/HandshakePatterns.hs | unlicense | 13,865 | 0 | 12 | 3,414 | 3,610 | 1,969 | 1,641 | 367 | 1 |
module Testsuite.Dipole72 where
-- standard modules
import qualified Data.Map as Map
import qualified Data.Set as Set
-- local modules
import Basics
import Calculus.Dipole72
-- ----------------------------------------------------------------------------
-- -- Dipole 72 networks
forwardCircle :: Int -> Network [Str... | spatial-reasoning/zeno | src/Testsuite/Dipole72.hs | bsd-2-clause | 2,209 | 0 | 20 | 844 | 674 | 369 | 305 | 39 | 1 |
{-# LANGUAGE PackageImports #-}
import "devsite" Application (getApplicationDev)
import Network.Wai.Handler.Warp
(runSettings, defaultSettings, settingsPort)
import Control.Concurrent (forkIO)
import System.Directory (doesFileExist, removeFile)
import System.Exit (exitSuccess)
import Control.Concurrent (threadDelay... | pbrisbin/devsite | devel.hs | bsd-2-clause | 708 | 0 | 10 | 123 | 186 | 101 | 85 | 23 | 2 |
{-# LANGUAGE LambdaCase #-}
import Graphics.UI.GLFW.Pal
import Graphics.GL
main :: IO ()
main = withWindow "GLFW Pal" 640 480 $ \(win, eventsChan) -> do
glClearColor 1 1 0 1
whileWindow win $ do
events <- gatherEvents
forM_ events (closeOnEscape win)
glClear GL_COLOR_BUFFER_BIT
... | lukexi/glfw-pal | test/test.hs | bsd-2-clause | 342 | 0 | 14 | 91 | 102 | 51 | 51 | 11 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module BaseSpec where
import Web.Twitter.Conduit.Base
import Web.Twitter.Conduit.Response
import Control.Applicative
import Control.Lens
import Data.Aeson
import Data.Aeson.Lens
import Data.Conduit
import qualified Data.Conduit.Attoparsec as CA
import Data.Maybe
import qualified Da... | himura/twitter-conduit | tests/BaseSpec.hs | bsd-2-clause | 3,690 | 0 | 24 | 1,229 | 820 | 408 | 412 | -1 | -1 |
{- |
Module : Data.Graph.Analysis.Algorithms.Common
Description : Algorithms for all graph types.
Copyright : (c) Ivan Lazar Miljenovic 2009
License : 2-Clause BSD
Maintainer : Ivan.Miljenovic@gmail.com
Defines algorithms that work on both undirected and
directed graphs.
-}
module Dat... | ivan-m/Graphalyze | Data/Graph/Analysis/Algorithms/Common.hs | bsd-2-clause | 10,348 | 0 | 12 | 2,725 | 2,630 | 1,389 | 1,241 | 142 | 2 |
module Main where
import Lib
main :: IO ()
main = someFunc "Haskell"
| pdmurray/haskell-book-ex | app/Main.hs | bsd-3-clause | 71 | 0 | 6 | 15 | 25 | 14 | 11 | 4 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) - 2017 Róman Joost <roman@bromeco.de>
This file is part of gtfsschedule.
gtfsschedule 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 3 of the ... | romanofski/gtfsbrisbane | src/GTFS/Realtime/Message/Schedule.hs | bsd-3-clause | 4,171 | 0 | 13 | 1,200 | 675 | 380 | 295 | 63 | 2 |
{-# OPTIONS_GHC -fplugin-opt=LiquidHaskell.Plugin:no-termination #-}
{-# LANGUAGE QuasiQuotes #-}
module Fixme where
import LiquidHaskell
import LiquidHaskell.Prelude
data Binder n = B | M (TT n)
data TT n = V Int | Other | Bind (Binder n) (TT n)
[lq| measure binderContainsV :: Binder n -> Bool |]
binderCon... | spinda/liquidhaskell | tests/gsoc15/working/pos/MeasureContains.hs | bsd-3-clause | 758 | 0 | 12 | 173 | 210 | 115 | 95 | 16 | 1 |
{-# LANGUAGE TypeFamilies, TypeOperators, DataKinds #-}
{-# LANGUAGE UndecidableInstances #-}
module Data.Nat (
PNat (..), type (+), type (*), type (^), type (-)
, Fact (..)
, LTE (..)
, One, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten
) where
import Data.Type.Equality (gcastWith, (:~:) (Refl))
impor... | bmsherman/haskell-vect | Data/Nat.hs | bsd-3-clause | 1,743 | 7 | 10 | 462 | 834 | 494 | 340 | -1 | -1 |
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAG... | music-suite/music-score | src/Music/Score/Export/ArticulationNotation.hs | bsd-3-clause | 5,552 | 0 | 12 | 1,281 | 1,518 | 850 | 668 | 110 | 9 |
module AERN2.Frac.Eval
(
evalDirect
, evalDI
, evalDf
, evalLip
)
where
import MixedTypesNumPrelude
import AERN2.MP.Dyadic
import AERN2.MP.Ball
import AERN2.RealFun.Operations
import AERN2.Poly.Cheb (ChPoly)
import qualified AERN2.Poly.Cheb as Cheb
import AERN2.Frac.Type
instance
(CanApply (ChPoly c) t... | michalkonecny/aern2 | aern2-fun-univariate/src/AERN2/Frac/Eval.hs | bsd-3-clause | 1,603 | 0 | 11 | 345 | 686 | 358 | 328 | -1 | -1 |
{-#Language DeriveFunctor
, DeriveFoldable
, DeriveTraversable
#-}
module Language.TheExperiment.Inferrer.Type where
import Language.TheExperiment.CodeGen.Type
import Data.Foldable
import Data.Traversable
import qualified Data.Map as Map
data Type a = TypeName String
| Std S... | jvranish/TheExperiment | src/Language/TheExperiment/Inferrer/Type.hs | bsd-3-clause | 1,988 | 0 | 9 | 663 | 334 | 199 | 135 | 29 | 1 |
{-# LANGUAGE CPP #-}
module Calculi.Lambda.Cube.TH (
-- sfo
sf
, stlc
) where
import qualified Language.Haskell.TH as TH
import qualified Language.Haskell.TH.Quote as TH
import qualified Language.Haskell.TH.Syntax as TH
import qualified Compiler.Typesystem.SystemFOmega as SFO
import qualified Compiler.T... | Lokidottir/typerbole | src/Calculi/Lambda/Cube/TH.hs | bsd-3-clause | 5,059 | 0 | 17 | 1,282 | 836 | 447 | 389 | 69 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.