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 NoImplicitPrelude #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MonoLocalBinds #-}
module DataTypes (module DataTypes) where
import Categories
import Groups
import Order
import VectorS... | Crazycolorz5/AlgebraicPrelude | DataTypes.hs | mit | 2,500 | 0 | 13 | 628 | 1,194 | 648 | 546 | 70 | 1 |
module Toolkit
( Builder
, none
, (<>)
, build
, encodeJSON
, decodeDouble
, decodePoint
, decodePolyline
) where
import Data.Aeson (ToJSON)
import Data.ByteString (ByteString)
import Data.ByteString.Builder (Builder)
import Data.Text (Text)
import qualified Data.Aeson as J
import qualified Data.Byte... | mietek/gml-explorer | src/Toolkit.hs | mit | 1,527 | 0 | 12 | 379 | 486 | 272 | 214 | 56 | 3 |
module Routes (Request(..), Response(..)) where
import BasePrelude
import Data.Text (Text)
import qualified Data.Text.Lazy as Lazy
import Types
type Name = Text
data Request = GetPost ID
| ListPosts PostQuery
| CreatePost (Maybe ID) Token Text
| Cr... | jackbowman/basilica | Routes.hs | mit | 866 | 0 | 8 | 348 | 161 | 100 | 61 | 25 | 0 |
apply func arg = func arg
| scravy/nodash | doc/Function/apply.hs | mit | 26 | 0 | 5 | 6 | 14 | 6 | 8 | 1 | 1 |
module Network.Skype.Command.ChatMember where
import Control.Monad.Trans
import Control.Monad.Trans.Control
import Data.Monoid ((<>))
import Network.Skype.Command.Utils
import Network.Skype.Core
import Network.Skype.Protocol
import qualified Data.ByteString.Char8 as BC
getAllMembers :: (MonadBaseControl IO m, MonadI... | emonkak/skype4hs | src/Network/Skype/Command/ChatMember.hs | mit | 2,372 | 0 | 12 | 665 | 657 | 339 | 318 | -1 | -1 |
module Language.STL.Lex.Normalize (normalize) where
import Data.Function
import Data.List
import Language.STL.Lex
type TokenTrans = TokenStream -> TokenStream
normalize :: TokenTrans
normalize = collapseSeps
. dropWhile ((== Separator) . tTok)
. filter (\x -> case tTok x of Comment _ -> False; _ ... | pikajude/stl | src/Language/STL/Lex/Normalize.hs | mit | 481 | 0 | 13 | 105 | 172 | 98 | 74 | 12 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Web.Common where
import Prelude
import Text.Blaze.Html5
import qualified Text.Blaze.Html5 as H
import Text.Blaze.Html5.Attributes as A
--instance ToMarkup S3Error where
-- toMarkup err = H.div ! class_ "row" $ do
-- H.h3 "S3 Err... | schell/caltrops | src/Web/Common.hs | mit | 4,058 | 0 | 18 | 1,294 | 494 | 263 | 231 | 47 | 1 |
{-# LANGUAGE MagicHash #-}
module EmptyStageApp where
import Prelude hiding (show)
import Java
-- import javafx.stage.Stage;
import JavaFX.Types
-- import javafx.application.Application;
import JavaFX.Methods
-- public class Empty extends Application {
data {-# CLASS "org.eta.EmptyStageApp extends javafx.application... | filippovitale/eta-playground | javafx-empty-stage/src/EmptyStageApp.hs | mit | 910 | 1 | 8 | 162 | 106 | 67 | 39 | -1 | -1 |
import Geometry
import Drawing
main = drawPicture myPicture
myPicture points =
drawCircle (a,b) &
drawLine (c,d) &
drawPoints [a,b,c,d] &
drawLabels [a,b,c,d] ["A","B","C","D"] &
drawLabels intersects ["X","Y"] &
drawPoints intersects &
message "Line-Circle Intersection"
where [a,b,c,... | alphalambda/k12math | contrib/MHills/GeometryLessons/code/student/lesson2c.hs | mit | 396 | 0 | 12 | 100 | 173 | 96 | 77 | 13 | 1 |
-- awesome.hs
module Awesome where
addBang input = input ++ "!"
takeFour input = (!!) input 4
dropNine input = drop 9 input
returnThirdChar :: String -> Char
returnThirdChar input = (!!) input 2
myString :: String
myString = "Curry is awesome!"
letterIndex :: Int -> Char
letterIndex index = (!!) myString index
r... | doylew/practice | haskell/awesome.hs | mit | 419 | 0 | 11 | 81 | 164 | 89 | 75 | 11 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.UIRequestEvent
(js_getReceiver, getReceiver, UIRequestEvent, castToUIRequestEvent,
gTypeUIRequestEvent)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/UIRequestEvent.hs | mit | 1,394 | 6 | 10 | 165 | 371 | 236 | 135 | 24 | 1 |
module Ohua.ALang.Refs where
import Ohua.Types
id :: QualifiedBinding
id = "ohua.lang/id"
-- transforms into `ifFun` and `select`
ifThenElse :: QualifiedBinding
ifThenElse = "ohua.lang/if"
-- TODO: maybe these functions belong into the concrete passes
-- semantically a different function from `ifThenElse`
ifFun :: ... | ohua-dev/ohua-core | core/src/Ohua/ALang/Refs.hs | epl-1.0 | 1,134 | 0 | 4 | 157 | 141 | 89 | 52 | 26 | 1 |
module Main
where
import Control.Exception (SomeException)
import Control.Monad (void, when)
import Control.Monad.Catch (catchAll)
import Data.Conduit (($$), ($=), Conduit, awaitForever, yield)
import Data.List (isPrefixOf)
import System.Environment (getEnv)
import Web.HZulip
main :: IO ()
main = withZulipEnv $ do... | yamadapc/hzulip | examples/src/ZulipConduitBot.hs | gpl-2.0 | 1,937 | 0 | 21 | 600 | 574 | 287 | 287 | 46 | 3 |
{-
Haskell implementation of yes tool.
http://linux.die.net/man/1/yes
-}
module Main where
import System.Environment(getArgs)
main:: IO ()
main = do as <- getArgs
--mapM_ putStrLn $ repeat $ if as == [] then "y" else (head as)
(mapM_ putStrLn).repeat $ if as == [] then "y" else (head as)
| huseyinyilmaz/hs-gnu-core-utils | src/yes.hs | gpl-2.0 | 311 | 0 | 10 | 70 | 73 | 40 | 33 | 5 | 2 |
{-# LANGUAGE ScopedTypeVariables, OverloadedStrings #-}
{-
Copyright (C) 2006-2014 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, ... | bgamari/pandoc | src/Text/Pandoc/Readers/LaTeX.hs | gpl-2.0 | 43,124 | 0 | 29 | 11,599 | 14,992 | 7,704 | 7,288 | 1,103 | 5 |
{-# LANGUAGE ScopedTypeVariables #-}
{-
Copyright (C) 2009 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any l... | thielema/gitit | Network/Gitit/Framework.hs | gpl-2.0 | 13,760 | 0 | 20 | 4,259 | 2,846 | 1,480 | 1,366 | 244 | 4 |
{-# LANGUAGE DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : HEP.Physics.Analysis.Common.Prospino
-- Copyright : (c) 2013 Ian-Woo Kim
--
-- License : GPL-3
-- Maintainer : Ian-Woo Kim <ianwookim@gmail.com>
-- Stability : experimental
-... | wavewave/lhc-analysis-collection | lib/HEP/Physics/Analysis/Common/Prospino.hs | gpl-3.0 | 1,170 | 0 | 8 | 387 | 116 | 78 | 38 | 13 | 0 |
module Network.AMQP.Utils.Options where
import qualified Data.ByteString.Char8 as BS
import Data.Default.Class
import Data.Int (Int64)
import qualified Data.Map as M
import Data.Maybe
import Data.Text (Text, pack)
import Data.Versi... | woffs/haskell-amqp-utils | Network/AMQP/Utils/Options.hs | gpl-3.0 | 13,445 | 0 | 18 | 4,937 | 4,252 | 2,372 | 1,880 | 467 | 2 |
{- ============================================================================
| Copyright 2011 Matthew D. Steele <mdsteele@alum.mit.edu> |
| |
| This file is part of Fallback. |
... | mdsteele/fallback | src/Fallback/Mode/SaveGame.hs | gpl-3.0 | 5,000 | 0 | 21 | 1,532 | 832 | 438 | 394 | 65 | 4 |
import System.Process
import System.Directory
main = do
path <- findExecutable "ls"
case path of
Nothing -> error "ls doesn't exist"
Just _ -> createProcess (proc "ls" ["-a", "-l", "-h"])
| daewon/til | haskell/haskell_by_example/exec.hs | mpl-2.0 | 214 | 0 | 13 | 55 | 71 | 35 | 36 | 7 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-genomics/gen/Network/Google/Resource/Genomics/References/Bases/List.hs | mpl-2.0 | 8,120 | 0 | 23 | 1,999 | 1,255 | 723 | 532 | 169 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-cloudformation/gen/Network/AWS/CloudFormation/SignalResource.hs | mpl-2.0 | 4,976 | 0 | 9 | 1,141 | 541 | 334 | 207 | 67 | 1 |
{-# LANGUAGE OverloadedStrings, TypeOperators #-}
module Controller.Paths
( pathId
, PartyTarget(..)
, pathPartyTarget
, AuthorizeTarget(..)
, pathAuthorizeTarget
, VolumeAccessTarget(..)
, pathVolumeAccessTarget
, pathSegment
, pathSlotId
, TagId(..)
, pathTagId
) where
import qualified Data.I... | databrary/databrary | src/Controller/Paths.hs | agpl-3.0 | 3,723 | 0 | 14 | 782 | 936 | 538 | 398 | -1 | -1 |
module Main where
import System.Environment
import Control.Applicative
main :: IO ()
main = do
args <- getArgs
let firstArg = getFirstArg args
let primeFactor = largestPrimeFactorV1 firstArg
putStrLn (show primeFactor)
toInt n = read n :: Integer
getFirstArg :: [String] -> Integer
getFirstArg args ... | karun012/projecteuler-haskell | src/PrimeFactors.hs | unlicense | 1,025 | 9 | 14 | 178 | 400 | 197 | 203 | 26 | 1 |
ans l = product $ map sum l
main = do
_ <- getLine
c <- getContents
let i = map (map read) $ map words $ lines c :: [[Int]]
o = ans i
print o
| a143753/AOJ | 2922.hs | apache-2.0 | 157 | 0 | 14 | 52 | 92 | 43 | 49 | 7 | 1 |
module Example.LocalCounters where
import Control.Concurrent
import Control.Concurrent.Chan
import Control.Monad
import Control.Monad.Crdt
import Control.Monad.Reader
import Data.Crdt.Counter
import Data.Crdt.Transport.Local
action :: Crdt Counter ()
action = update $ CounterUpdate 1
thread :: CrdtVar Counter -> Int... | edofic/crdt | src/Example/LocalCounters.hs | apache-2.0 | 885 | 0 | 12 | 191 | 318 | 149 | 169 | 33 | 1 |
{-
We slightly instrument the OpenDatatype version. The example touches
upon some feature interaction between multiparameter type classes,
overlapping instances and existential quantification. The code has
been tested with GHC 6.10.4, and the current behavior of GHC has been
like this for a while now.
See this discus... | egaburov/funstuff | Haskell/tytag/xproblem_src/samples/shapes/Haskell/FeatureInteraction/Main.hs | apache-2.0 | 3,928 | 0 | 13 | 829 | 773 | 399 | 374 | 62 | 2 |
{-# LANGUAGE FlexibleInstances #-}
module Auth0.Types where
--------------------------------------------------------------------------------
import Data.Aeson
import Data.ByteString (ByteString)
import Servant.API hiding (Verb)
import Data.Text
import Data.Tagged
----------------------------------------------------... | alasconnect/auth0 | src/Auth0/Types.hs | apache-2.0 | 1,540 | 0 | 6 | 244 | 311 | 175 | 136 | -1 | -1 |
module Ovid.Run where
import Control.Monad.State.Strict
import qualified Data.Map as M
import Data.Maybe (fromJust)
import Ovid.Environment (extendedStaticEnvironment,Ann,AdditionalAnnotation(..))
import Framework (evalCounter)
import Ovid.Constraints
import WebBits.JavaScript.JavaScript
import CFA
import CFA.Labels (... | brownplt/ovid | src/Ovid/Run.hs | bsd-2-clause | 3,478 | 0 | 20 | 906 | 1,012 | 531 | 481 | 65 | 4 |
module Test where
test :: Int
test = 100
| chip2n/clementine | Test.hs | bsd-3-clause | 42 | 0 | 4 | 10 | 14 | 9 | 5 | 3 | 1 |
module Text.FastAleck.ByteString.Lazy
( module Text.FastAleck
, fastAleck
) where
--------------------------------------------------------------------------------
import qualified Data.ByteString.Lazy as BL
--------------------------------------------------------------------------------
import ... | jaspervdj/fast-aleck-hs | src/Text/FastAleck/ByteString/Lazy.hs | bsd-3-clause | 630 | 0 | 10 | 76 | 94 | 58 | 36 | 9 | 1 |
import Language.MiniStg.Parser (parseStg)
main = do
s <- getLine
let t = parseStg s
putStrLn . show $ t
| Neuromancer42/ministgwasm | app/stgParse.hs | bsd-3-clause | 129 | 0 | 10 | 44 | 47 | 23 | 24 | 5 | 1 |
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE ViewPatterns #-}
{-# language DuplicateRecordFields #-}
{-# language OverloadedStrings #-}
module Main where
import Control.Arrow ((&&&))
imp... | isovector/we-can-really-solve-this | src/Main.hs | bsd-3-clause | 7,593 | 0 | 67 | 2,874 | 2,133 | 1,089 | 1,044 | -1 | -1 |
module Lib where
import Types
f = 1
| theor/zorkell | src/Lib.hs | bsd-3-clause | 37 | 0 | 4 | 9 | 12 | 8 | 4 | 3 | 1 |
-- | This module exports the Filter type used to create read and facet queries.
module Data.Factual.Shared.Filter
(
-- * Filter type
Field
, Filter(..)
-- * Helper functions
, filtersPair
) where
import Data.List.Utils (join, replace)
-- | A Field is a String representation of the field name.
type... | rudyl313/factual-haskell-driver | Data/Factual/Shared/Filter.hs | bsd-3-clause | 5,050 | 0 | 12 | 1,205 | 1,461 | 767 | 694 | 58 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances, UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- |
-- Module : Text.Syntax.Poly.Parser.ReadP
-- Copyright : 2012 Kei Hibino
-- License : BSD3
--
-- Maintainer : ex8k.hibino@gmail.com
-- Stability : experimental
-- Por... | schernichkin/haskell-invertible-syntax-poly | src/Text/Syntax/Parser/ReadP.hs | bsd-3-clause | 1,156 | 0 | 11 | 185 | 209 | 127 | 82 | 18 | 2 |
{-# language CPP #-}
-- | = Name
--
-- VK_ANDROID_external_memory_android_hardware_buffer - device extension
--
-- == VK_ANDROID_external_memory_android_hardware_buffer
--
-- [__Name String__]
-- @VK_ANDROID_external_memory_android_hardware_buffer@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registe... | expipiplus1/vulkan | src/Vulkan/Extensions/VK_ANDROID_external_memory_android_hardware_buffer.hs | bsd-3-clause | 59,777 | 0 | 17 | 9,967 | 7,605 | 4,437 | 3,168 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE TypeApplications #-}
module Biscuits where
import Control.Lens
import D... | kcsongor/generic-lens | generic-lens/examples/Biscuits.hs | bsd-3-clause | 3,926 | 0 | 10 | 819 | 849 | 493 | 356 | 58 | 1 |
module Main ( main ) where
-- import System.Exit
-- import TinyASM.Instruction
import TinyASM.Parser
import TinyASM.Compiler
import TinyASM.VM
import System.Directory
import System.FilePath.Posix (pathSeparator)
import Data.List (isInfixOf)
main :: IO ()
main = do
-- let files = [
-- "test-suite\\p... | ocus/TinyASM_Haskell | test-suite/TinyASM.Parser.hs | bsd-3-clause | 1,724 | 0 | 17 | 461 | 357 | 189 | 168 | 28 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module Hslogic.Types where
import Text.PrettyPrint((<>), hcat, text, Doc, char,punctuate)
import Data.Hashable
import qualified Data.HashMap.Lazy as H
data VarName = VarName String deriving (Eq, Read)
instance Show VarName where
show (VarName v) = v
instance Hashable VarName wh... | abailly/hslogic | src/Hslogic/Types.hs | bsd-3-clause | 2,635 | 0 | 15 | 723 | 888 | 461 | 427 | 64 | 1 |
-- |
-- Module : Data.ByteString.UTF8.Normalize
-- Copyright : (c) 2016 Harendra Kumar
--
-- License : BSD-3-Clause
-- Maintainer : harendra.kumar@gmail.com
-- Stability : experimental
-- Portability : GHC
--
-- Unicode normalization for @ByteString@ data type.
--
module Data.ByteString.UTF8.Normalize
... | harendra-kumar/unicode-transforms | Data/ByteString/UTF8/Normalize.hs | bsd-3-clause | 981 | 0 | 9 | 170 | 122 | 82 | 40 | 11 | 1 |
{-
Based on [1]. The calculation of planetary and luni-solar terms are
kept separate as a optimization. Probably premature since I'm not
sure how much it buys us but is should save some 7000 multiplications
and additions per evaluation of the nutation parameters.
Any reference to chapters, sections, or equations are ... | bjornbm/astro | src/IAU2000/Nutation.hs | bsd-3-clause | 2,820 | 0 | 15 | 474 | 500 | 275 | 225 | 22 | 1 |
{-# OPTIONS_GHC -Wno-orphans #-}
module ArbitraryTypes where
import System.Random
import Test.QuickCheck
import Model
instance Arbitrary Character where
arbitrary = do
Positive hp <- arbitrary
Positive ac <- arbitrary
c <- arbitrary
return Character
{ hitPoints ... | camelpunch/rhascal | test/ArbitraryTypes.hs | bsd-3-clause | 453 | 0 | 11 | 135 | 105 | 55 | 50 | 16 | 0 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Type subsumption and unification
-}
{-# LANGUAGE CPP, MultiWayIf, TupleSections #-}
module TcUnify (
-- Full-blown subsumption
tcWrapResult, tcWrapResultO, tcSkolemise,
tcSubTypeHR, tcSubType, tcSubType_NC, tcSubTy... | gridaphobe/ghc | compiler/typecheck/TcUnify.hs | bsd-3-clause | 65,150 | 240 | 42 | 20,041 | 8,790 | 4,774 | 4,016 | -1 | -1 |
{-# LANGUAGE CPP,TemplateHaskell,DeriveDataTypeable #-}
{- | This module implements Windows Codepage number 1257 which encodes the estonian, latvian and lithuanian language.
See <http://en.wikipedia.org/wiki/CP1257> for more information.
-}
module Data.Encoding.CP1257
(CP1257(..)) where
import Data.Array ((!),A... | abuiles/turbinado-blog | tmp/dependencies/encoding-0.4.1/Data/Encoding/CP1257.hs | bsd-3-clause | 1,069 | 2 | 14 | 150 | 291 | 163 | 128 | 23 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module GlobWorks ( script ) where
import Prelude
import Data.Monoid
import Shell
-- This test ensures that globs actually work
-- have an embedded glob.
script :: ShellM ()
script = do
run $ command "echo" ["README" <> anyChars]
return ()
| travitch/shellDSL | tests/inputs/GlobWorks.hs | bsd-3-clause | 280 | 0 | 10 | 51 | 65 | 36 | 29 | 9 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module Color where
import Control.Applicative ((<$>), (<*>))
import Data.Monoid (mappend)
import Data.Semigroup (Semigroup, (<>))
import Data.Vector (Vector)
import Data.Word (Word8)
import Test.QuickCheck.Arbitrary (Arbitrary(..))
-- | an RGB value
data RGB a = RGB
{ r... | n-heptane-lab/blinkomatic | Color.hs | bsd-3-clause | 2,996 | 0 | 16 | 1,049 | 1,548 | 808 | 740 | 85 | 1 |
module Main where
import System.Environment
import Data.Maybe (fromMaybe)
import Control.Monad (when)
import Control.Monad.Except
import System.IO
import System.Exit
import System.Directory
import Control.Exception (try, SomeException)
import VersionManager as VM
import App
import Server
import Config
empty :: App -... | lambda-zorn/det | src/Main.hs | bsd-3-clause | 1,236 | 0 | 14 | 349 | 430 | 213 | 217 | 41 | 10 |
-- |
-- Module : $Header$
-- Copyright : (c) 2013-2014 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
module Cryptol.TypeCheck.Solver.Selector (tryHasGoal) where
import Cryptol.TypeCheck.AST
import Cryptol.TypeCheck.InferTypes... | TomMD/cryptol | src/Cryptol/TypeCheck/Solver/Selector.hs | bsd-3-clause | 4,366 | 0 | 30 | 1,585 | 1,476 | 730 | 746 | 96 | 13 |
module Test.Category.Properties.Monad where
import Test.QuickCheck
import Test.QuickCheck.Function
import qualified Control.Category.Hask.Laws.Monad as Laws
etaNaturalityWith gen_fab gen_a eq =
forAll gen_fab $ \(Fun _ fab) ->
forAll gen_a $ \a ->
Laws.etaNaturalityWith eq fab a
muNaturalityWith gen_fab gen_... | andorp/category-test-laws | src/Test/Category/Properties/Monad.hs | bsd-3-clause | 791 | 0 | 10 | 145 | 266 | 138 | 128 | 26 | 1 |
{-# LANGUAGE OverloadedStrings #-}
--------------------------------------------------------------------
-- |
-- Module : Data.Minecraft.Types
-- Copyright : (c) 2016 Michael Carpenter
-- License : BSD3
-- Maintainer : Michael Carpenter <oldmanmike.dev@gmail.com>
-- Stability : experimental
-- Po... | oldmanmike/hs-minecraft-protocol | src/Data/Minecraft/Types.hs | bsd-3-clause | 5,454 | 0 | 18 | 1,160 | 1,627 | 900 | 727 | 194 | 3 |
module Scurry.Comm.Util (
readLength,
DestAddr(..),
-- debugFrame,
bsToEthHdr,
) where
import Data.Binary
import qualified Data.ByteString.Lazy as BS
import qualified Data.ByteString as BSS
import Scurry.Types.Network
readLength :: Int
readLength = 1560
data DestAddr = DestSingle EndPoint
... | dmagyar/scurry | src/Scurry/Comm/Util.hs | bsd-3-clause | 685 | 0 | 8 | 129 | 120 | 75 | 45 | 15 | 1 |
--
--
--
-----------------
-- Exercise 11.6.
-----------------
--
--
--
module E'11''6 where
import Prelude hiding ( id )
id :: a -> a
id x = x
f :: Int -> Bool -- Example "f":
f 0 = False
f 1 = True
f _ = undefined
-- Behaviour and type instance of "(id $ f)" :
-------------------------------------... | pascal-knodel/haskell-craft | _/links/E'11''6.hs | mit | 2,206 | 0 | 5 | 741 | 132 | 104 | 28 | 8 | 1 |
{-# LANGUAGE PackageImports #-}
import "HackVote" Application (getApplicationDev)
import Network.Wai.Handler.Warp
(runSettings, defaultSettings, setPort)
import Control.Concurrent (forkIO)
import System.Directory (doesFileExist, removeFile)
import System.Exit (exitSuccess)
import Control.Concurrent (threadDelay)
m... | MaxGabriel/hackvote-yesod | devel.hs | cc0-1.0 | 679 | 0 | 10 | 104 | 186 | 100 | 86 | 21 | 2 |
{- |
Module : ./Common/LaTeX_funs.hs
Description : auxiliary functions for LaTeX printing
Copyright : (c) Klaus Luettich, Uni Bremen 2002-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
Auxiliary functions for La... | spechub/Hets | Common/LaTeX_funs.hs | gpl-2.0 | 11,851 | 0 | 18 | 3,111 | 2,836 | 1,544 | 1,292 | 256 | 9 |
{- |
Module : ./Static/FromXmlUtils.hs
Description : theory datastructure for development graphs
Copyright : (c) Christian Maeder, Simon Ulbricht, Uni Bremen 20011
License : GPLv2 or higher, see LICENSE.txt
Maintainer : maeder@dfki.de
Stability : provisional
Portability : non-portable(Logic)
theor... | spechub/Hets | Static/FromXmlUtils.hs | gpl-2.0 | 4,409 | 0 | 33 | 1,218 | 1,267 | 630 | 637 | 90 | 10 |
{- |
Module : $Header$
Description : Gtk GUI for the consistency checker
Copyright : (c) Thiemo Wiedemeyer, Uni Bremen 2009
License : GPLv2 or higher, see LICENSE.txt
Maintainer : raider@informatik.uni-bremen.de
Stability : provisional
Portability : portable
This module provides a GUI for the con... | mariefarrell/Hets | GUI/GtkConsistencyChecker.hs | gpl-2.0 | 15,640 | 307 | 20 | 4,036 | 4,019 | 2,155 | 1,864 | 331 | 6 |
-- | Initialize a database, populating it with "freshdb.json" if needed
module Lamdu.Data.Db.Init
( initDb
) where
import qualified Data.Property as Property
import qualified GUI.Momentu.State as M
import qualified Lamdu.Data.Anchors as Anchors
import Lamdu.Data.Db.Layout (DbM)
import qualified Lamdu... | lamdu/lamdu | src/Lamdu/Data/Db/Init.hs | gpl-3.0 | 2,792 | 0 | 17 | 657 | 671 | 343 | 328 | 56 | 1 |
module Main where
import Song
import Grammar
import Util
import System.Random.MWC.Monad
import System.IO
import Data.List.Split(splitEvery)
import Data.Time
import System.Locale
import System.Process
import System.Directory
import System.FilePath
import Control.Monad
import Haskore.Interface.MIDI.Render as R
import... | Tener/ProCoGraM | src/GenerateSampleTones.hs | bsd-3-clause | 2,610 | 0 | 31 | 777 | 665 | 375 | 290 | 54 | 1 |
module GHC.Primitives where
import Utilities
data PrimOp = Add | Subtract | Multiply | Divide | Modulo | Equal | LessThan | LessThanEqual
deriving (Eq, Ord, Show)
data Literal = Int Integer
deriving (Eq, Show)
instance Pretty PrimOp where
pPrint Add = text "(+)"
pPrint Su... | beni55/cps-core | GHC/Primitives.hs | bsd-3-clause | 827 | 0 | 11 | 273 | 248 | 124 | 124 | 18 | 0 |
{-# LANGUAGE ParallelArrays #-}
{-# OPTIONS -fvectorise #-}
module Vectorised (sumSq) where
import Data.Array.Parallel
import Data.Array.Parallel.Prelude.Int as I
import Data.Array.Parallel.Prelude.Double as D
import qualified Prelude
sumSq :: Int -> Double
{-# NOINLINE sumSq #-}
sumSq n
= D.sumP
(mapP (\x -> ... | mainland/dph | dph-examples/examples/smoke/prims/SumSquares/dph/Vectorised.hs | bsd-3-clause | 368 | 14 | 11 | 61 | 118 | 71 | 47 | 14 | 1 |
module Main (main) where
import Text.ParserCombinators.Parsec ( parse )
import Text.ParserCombinators.Parsec.Rfc2821
-- Read an SMTP command from standard input, parse it,
-- return the result, and loop until EOF.
main :: IO ()
main = do
input <- getContents
mapM_ (print . parse smtpCmd "") [ l ++ "\r\n" | l <- ... | meteogrid/mime-mail-parser | example/smtp-test.hs | bsd-3-clause | 334 | 0 | 11 | 62 | 89 | 49 | 40 | 7 | 1 |
-- |
-- Module : Crypto.Number.Prime
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : Good
{-# LANGUAGE BangPatterns #-}
module Crypto.Number.Prime
(
generatePrime
, generateSafePrime
, isProbablyPrime
, findPrimeF... | vincenthz/cryptonite | Crypto/Number/Prime.hs | bsd-3-clause | 9,982 | 0 | 19 | 3,223 | 2,763 | 1,622 | 1,141 | 161 | 5 |
-- |
-- Copyright : Anders Claesson 2017
-- Maintainer : Anders Claesson <anders.claesson@gmail.com>
-- License : BSD-3
--
module HOPS.GF.Hankel
( hankelMatrix
, hankel
, hankel1
) where
import Data.Vector (Vector)
import qualified Data.Vector as V
import HOPS.GF.Rat
import HOPS.Utils.Matrix (d... | akc/gfscript | HOPS/GF/Hankel.hs | bsd-3-clause | 712 | 0 | 11 | 146 | 249 | 136 | 113 | 16 | 1 |
module Adjrn.Crypto where
import Crypto.Cipher.AES (AES256)
import Crypto.Cipher.Types
import Crypto.Data.Padding
import Crypto.Error
import Crypto.Hash (hashWith, SHA256(..))
import Crypto.Random.Types
import Data.ByteArray
import Data.By... | timds/adjourn | src/Adjrn/Crypto.hs | bsd-3-clause | 1,828 | 0 | 13 | 431 | 504 | 263 | 241 | 38 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Build
-- Copyright : Isaac Jones 2003-2005,
-- Ross Paterson 2006,
-- Duncan Coutts 2007-2008, 2012
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.or... | bennofs/cabal | Cabal/Distribution/Simple/Build.hs | bsd-3-clause | 25,910 | 0 | 18 | 7,107 | 5,494 | 2,821 | 2,673 | 435 | 7 |
<?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="sk-SK">
<title>Reveal | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref locat... | thc202/zap-extensions | addOns/reveal/src/main/javahelp/org/zaproxy/zap/extension/reveal/resources/help_sk_SK/helpset_sk_SK.hs | apache-2.0 | 967 | 83 | 52 | 158 | 394 | 208 | 186 | -1 | -1 |
module ListWatched where
import qualified Github.Repos.Watching as Github
import Data.List (intercalate)
import Data.Maybe (fromMaybe)
main = do
possibleRepos <- Github.reposWatchedBy "mike-burns"
putStrLn $ either (("Error: "++) . show)
(intercalate "\n\n" . map formatRepo)
... | olorin/github | samples/Repos/Watching/ListWatched.hs | bsd-3-clause | 948 | 0 | 22 | 197 | 311 | 159 | 152 | 22 | 1 |
{-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving, DeriveDataTypeable #-}
module Lamdu.Data.DbLayout
( DbM, runDbTransaction
, ViewM, runViewTransaction
, CodeProps, codeProps, codeIRefs
, RevisionProps, revisionProps, revisionIRefs
, module Lamdu.Data.Anchors
) where
import Control.Applicative (... | BrennonTWilliams/lamdu | Lamdu/Data/DbLayout.hs | gpl-3.0 | 2,344 | 0 | 11 | 344 | 693 | 401 | 292 | 54 | 1 |
import Test.Hspec
import BTree
main :: IO ()
main = hspec $ do
describe "insert" $ do
it "inserts a value into a tree" $ do
let value = (1::Int)
tree = insert value empty in
member value tree `shouldBe` True
describe "balance" $ do
it "balances a tr... | tsujigiri/btree-hs | spec/Spec.hs | mit | 1,238 | 0 | 20 | 405 | 557 | 301 | 256 | 28 | 1 |
module Data.Map.Extensions where
import Data.List as List
import Data.List.Extensions as ListExt
import Data.Map as Map
import Data.Maybe as Maybe
import Debug.Trace as Trace
import Prelude.Extensions as PreludeExt
notNull :: Map a b -> Bool
notNull = ((.) not Map.null)
lookupIf :: Ord a => a -> (Map a b) -> (Bool,... | stevedonnelly/haskell | code/Data/Map/Extensions.hs | mit | 3,835 | 1 | 17 | 792 | 1,929 | 1,024 | 905 | -1 | -1 |
{- Author: Jeff Newbern
Maintainer: Jeff Newbern <jnewbern@nomaware.com>
Time-stamp: <Fri Jul 25 10:05:53 2003>
License: GPL
-}
{- DESCRIPTION
Example 12 - Using the MonadError class
Usage: Compile the code and execute the resulting program
with various arguments. For each argument that is
... | maurotrb/hs-exercises | AllAboutMonads/examples/example12.hs | mit | 2,752 | 4 | 13 | 649 | 453 | 240 | 213 | 27 | 2 |
-----------------------------------------------------------------------------
--
-- Module : Language.PureScript.Sugar.Names.Exports
-- License : MIT (http://opensource.org/licenses/MIT)
--
-- Maintainer : Phil Freeman <paf31@cantab.net>, Gary Burgess <gary.burgess@gmail.com>
-- Stability : experimental... | michaelficarra/purescript | src/Language/PureScript/Sugar/Names/Exports.hs | mit | 11,875 | 0 | 20 | 2,258 | 2,975 | 1,561 | 1,414 | 140 | 10 |
{-
-}
import Control.Monad
import Data.Either
import Data.Foldable as D
import Data.List ()
import qualified Data.Sequence as SEQ
import Text.Printf
import Shuffle
data Suit = Clubs | Diamonds | Hearts | Spades
deriving (Eq)
instance Show Suit where
... | dougfort/fog-cards | cards.hs | mit | 10,715 | 0 | 18 | 4,050 | 3,946 | 1,940 | 2,006 | 283 | 10 |
{-# LANGUAGE CPP #-}
module Melchior.Dom.Internal.Fragments (
Html
, Fragment
#ifdef __UHC_TARGET_JS__
, Text
, JDiv
, JSpan
, Attribute
#endif
, addClassTo
, addAttribute
) where
import Melchior.Data.String (JSString, stringToJSString, jsStringToString)
type Html = JSString
data Fragment = Text ... | kjgorman/melchior | Melchior/Dom/Internal/Fragments.hs | mit | 1,836 | 0 | 15 | 363 | 877 | 470 | 407 | 40 | 3 |
module Tools (AppConfig(..), appConfig
, InMemStorage, newStorage, writeToStorage, readFromStorage
, logIt, errorToString
) where
-- This module helps us keep the rest of the code beginner-friendly
import Control.Monad.Trans
import Control.Monad.Trans.Either
import Control.Error ... | miciek/mr-stats-haskell-servant | src/Tools.hs | mit | 1,986 | 0 | 11 | 406 | 577 | 293 | 284 | 51 | 2 |
module Y2018.M03.D14.Exercise where
{--
Today's Haskell exercise we pull from the community:
http://www.glc.us.es/~jalonso/exercitium/suma-de-las-sumas-de-los-cuadrados-de-los-divisores/
The sums of the sums of the squares of the divisors of n, or:
--}
sumaSumasCuadradosDivisores :: Integer -> Integer
sumaSumasCuad... | geophf/1HaskellADay | exercises/HAD/Y2018/M03/D14/Exercise.hs | mit | 514 | 0 | 5 | 74 | 29 | 19 | 10 | 3 | 1 |
isPalindrome :: (Eq a) => [a] -> Bool
isPalindrome xs = xs == reverse xs
euler004 :: Int -> Integer
euler004 n = maximum [ z | x <- [upper,upper-1..lower],
y <- [upper,upper-1..x],
let z = x*y,
isPalindrome $ show z ]
where
upper = ... | marknsikora/euler | euler004/euler004.hs | mit | 399 | 0 | 11 | 160 | 181 | 95 | 86 | 11 | 1 |
-- building-functions-5.hs
module Rvrs where
rvrs :: String -> String
rvrs x = concat [lastWord, " ", middleWord, " ", firstWord] where
firstWord = take 5 x
middleWord = take 2 $ drop 6 x
lastWord = drop 9 x
main :: IO ()
main = print $ rvrs "Curry is awesome" | RazvanCosmeanu/Haskellbook | ch03/building-functions-5.hs | mit | 283 | 0 | 8 | 74 | 101 | 54 | 47 | 8 | 1 |
{-# LANGUAGE BangPatterns #-}
import qualified BigTable.Blaze as Blaze
import qualified BigTable.Lucid as Lucid
import qualified BigTable.Nice as Nice
import Control.Monad (forM_)
import qualified Data.Text.Lazy.IO as T
import qualified Weigh as Mem
{-# NOINLINE rows #-}... | TransportEngineering/nice-html | benchmarks/Mem.hs | mit | 1,012 | 0 | 14 | 307 | 168 | 96 | 72 | 17 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE LambdaCase, OverloadedStrings #-}
import qualified Data.ByteString.Char8 as BC
import qualified Data.ByteString.Lazy.Char8 as BLC
import qualified Data.Text as T
import Control.Monad (liftM2)
import Data.Attoparsec.ByteString.Lazy (eitherResult, parse)
import Data.Binary.Put (Pu... | MadSciGuys/protodb | csv-to-proto.hs | mit | 3,247 | 0 | 17 | 558 | 1,049 | 563 | 486 | 71 | 4 |
-- Copyright (c) 2016-present, SoundCloud Ltd.
-- All rights reserved.
--
-- This source code is distributed under the terms of a MIT license,
-- found in the LICENSE file.
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
module Kubern... | soundcloud/haskell-kubernetes | lib/Kubernetes/Model/V1/EventList.hs | mit | 1,971 | 0 | 14 | 749 | 351 | 210 | 141 | 43 | 1 |
{- |
module: $Header$
description: Primitive natural number functions
license: MIT
maintainer: Joe Leslie-Hurd <joe@gilith.com>
stability: provisional
portability: portable
-}
module OpenTheory.Primitive.Natural
( Natural,
shiftLeft,
shiftRight )
where
import Data.Bits
import qualified Data.Maybe as Maybe
i... | gilith/opentheory | data/haskell/opentheory-primitive/src/OpenTheory/Primitive/Natural.hs | mit | 2,855 | 0 | 13 | 697 | 990 | 497 | 493 | 71 | 1 |
module Main where
import Test.Framework as TF (defaultMain, testGroup, Test)
import qualified Light.Geometry.VectorTest as VT
import qualified Light.Geometry.PointTest as PT
import qualified Light.Geometry.MatrixTest as MT
tests :: [TF.Test]
tests = [ testGroup "Vector" VT.tests
, testGroup "Point" PT.test... | jtdubs/Light | testsuite/Tests.hs | mit | 411 | 0 | 7 | 82 | 112 | 69 | 43 | 11 | 1 |
{-# LANGUAGE RecordWildCards #-}
{- | All the concrete options.
Notes:
* The term \"option\" refers to a flag or combination of flags that
together form a part of a command's configuration. Ideally, options
should be orthogonal to each other, so we can freely combine them.
* A primitive (indivisible) opt... | DavidAlphaFox/darcs | src/Darcs/UI/Options/All.hs | gpl-2.0 | 43,966 | 0 | 13 | 8,501 | 10,982 | 5,891 | 5,091 | -1 | -1 |
module Chess.Internal.FEN where
import Chess.Internal.Move
import Chess.Internal.Board
import Chess.Internal.Piece
import Data.List
import Data.Char
writeBoard :: Board -> String
writeBoard = intercalate "/" . lines . concatMap emptyToNum . group . printBoardCompact
where emptyToNum str@(' ':_) = show $ length st... | nablaa/hchesslib | src/Chess/Internal/FEN.hs | gpl-2.0 | 3,387 | 0 | 10 | 1,145 | 981 | 491 | 490 | 69 | 5 |
{-# LANGUAGE ExistentialQuantification, DeriveDataTypeable
, GeneralizedNewtypeDeriving #-}
{- |
Module : ./Static/GTheory.hs
Description : theory datastructure for development graphs
Copyright : (c) Till Mossakowski, Uni Bremen 2002-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@i... | gnn/Hets | Static/GTheory.hs | gpl-2.0 | 17,192 | 0 | 26 | 4,499 | 4,611 | 2,341 | 2,270 | 327 | 4 |
-- |
-- Copyright : (c) 2011,2012 Simon Meier
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
-- Portability : GHC only
--
-- Big-step proofs using case distinctions on the possible sources of a fact.
module Theory.Constraint.Solver.CaseDistinctions (
-- * Precomputed case... | samscott89/tamarin-prover | lib/theory/src/Theory/Constraint/Solver/CaseDistinctions.hs | gpl-3.0 | 16,809 | 0 | 21 | 4,745 | 3,938 | 2,092 | 1,846 | 264 | 11 |
elementAt :: [a] -> Int -> a
elementAt xs n = xs !! (n-1)
| medik/lang-hack | Haskell/Ninety-Nine_Haskell_Problems/3.hs | gpl-3.0 | 58 | 0 | 7 | 14 | 38 | 20 | 18 | 2 | 1 |
module Colors (green, red, normal)
where
esc :: String
esc = "\x1b"
normal :: String
normal = esc ++ "[0m"
green :: String
green = esc ++ "[32m"
red :: String
red = esc ++ "[31m"
| seppeljordan/haskell-calendar | src/Colors.hs | gpl-3.0 | 187 | 0 | 5 | 44 | 67 | 40 | 27 | 9 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-
Problem: The file farm.csv contains data on the US farm population
(millions of persons) from 1935 to 1980. Make a scatterplot of these
data and include the least-squares regression line of farm population
on year. (Moore, David S. The Basic Practice of Statistics. 4th
ed. New Y... | benjamingeer/StatsRecipes | haskell/simple-linear-regression/Farm.hs | gpl-3.0 | 3,893 | 0 | 16 | 932 | 968 | 517 | 451 | 66 | 3 |
{-# OPTIONS -fno-warn-orphans #-}
{-# LANGUAGE TemplateHaskell #-}
module Lamdu.Config (Layers(..), Config(..), delKeys) where
import Data.Aeson (ToJSON(..), FromJSON(..))
import Data.Aeson.TH (deriveJSON)
import Data.Vector.Vector2 (Vector2(..))
import Foreign.C.Types (CDouble)
import Graphics.DrawingCombinators.Util... | sinelaw/lamdu | Lamdu/Config.hs | gpl-3.0 | 5,566 | 0 | 10 | 949 | 1,376 | 848 | 528 | 154 | 1 |
{-# LANGUAGE ScopedTypeVariables, OverloadedStrings #-}
module Database.Design.Ampersand.FSpec.ToFSpec.Calc
( deriveProofs
, showProof, showPrf, assembleECAs, conjuncts, genPAclause
, commaEngPandoc, commaNLPandoc, commaEngPandoc', commaNLPandoc', commaPandocAnd --TODO: this shouldt ... | DanielSchiavini/ampersand | src/Database/Design/Ampersand/FSpec/ToFSpec/Calc.hs | gpl-3.0 | 56,338 | 0 | 33 | 20,488 | 13,447 | 7,033 | 6,414 | 531 | 37 |
-- -*-haskell-*-
-- Vision (for the Voice): an XMMS2 client.
--
-- Author: Oleg Belozeorov
-- Created: 28 Jun. 2010
--
-- Copyright (C) 2010 Oleg Belozeorov
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License as
-- published by the F... | upwawet/vision | src/Location/View.hs | gpl-3.0 | 4,131 | 0 | 18 | 961 | 932 | 466 | 466 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/SetAvailableProductSet.hs | mpl-2.0 | 4,053 | 0 | 16 | 885 | 465 | 277 | 188 | 75 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-pubsub/gen/Network/Google/Resource/PubSub/Projects/Topics/Delete.hs | mpl-2.0 | 5,955 | 0 | 17 | 1,409 | 863 | 506 | 357 | 120 | 1 |
{- |
Module : LoadCallbacks
Description : Loads callbacks from file (needed due to TH stage restriction).
License : Apache
Stability : experimental
Portability : unportable
-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANG... | Motions/motions | LoadCallbacks.hs | apache-2.0 | 652 | 0 | 4 | 87 | 30 | 25 | 5 | 13 | 0 |
module KthDifferences.A327460Spec (main, spec) where
import Test.Hspec
import KthDifferences.A327460 (a327460, a327460_list)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A327460" $ do
it "correctly computes the first 10 elements" $
map a327460 [1..10] `shouldBe` [1, 3, 9, 5, 12, 10, 23, 8, 22, ... | peterokagey/haskellOEIS | test/KthDifferences/A327460Spec.hs | apache-2.0 | 410 | 0 | 11 | 79 | 142 | 80 | 62 | 11 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QFont.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:20
Warning : this file is machine generated - do not mod... | keera-studios/hsQt | Qtc/Gui/QFont.hs | bsd-2-clause | 19,563 | 0 | 15 | 3,508 | 6,827 | 3,506 | 3,321 | -1 | -1 |
{-# LANGUAGE DataKinds, EmptyDataDecls, TypeOperators, UndecidableInstances #-}
module HaskHOL.Lib.TypeQuant.Context
( TypeQuantType
, TypeQuantThry
, TypeQuantCtxt
, ctxtTypeQuant
) where
import HaskHOL.Core
import HaskHOL.Lib.Simp
import HaskHOL.Lib.Trivia.Context
-- New Theory Type and Constr... | ecaustin/haskhol-deductive | src/HaskHOL/Lib/TypeQuant/Context.hs | bsd-2-clause | 1,165 | 1 | 9 | 204 | 252 | 146 | 106 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.