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 : $Header$
Description : utility functions for edges of development graphs
Copyright : (c) Jorina F. Gerken, Till Mossakowski, Uni Bremen 2002-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : non-portable(Logic)... | nevrenato/Hets_Fork | Proofs/EdgeUtils.hs | gpl-2.0 | 9,559 | 0 | 22 | 2,091 | 2,417 | 1,270 | 1,147 | 152 | 4 |
{-# LANGUAGE OverloadedStrings, RankNTypes #-}
module Lib.Timeout
( execute, warning
, picos, nanos, micros, millis, seconds
) where
import Control.Concurrent (threadDelay)
import Control.Concurrent.Async (withAsyncWithUnmask)
import Control.Monad (forever)
import Data.ByteString (ByteString)
import Data.Monoid ... | nadavshemer/buildsome | src/Lib/Timeout.hs | gpl-2.0 | 1,305 | 0 | 13 | 236 | 401 | 221 | 180 | 34 | 1 |
{- |
Module : ./OWL2/Theorem.hs
Copyright : (c) Felix Gabriel Mance
License : GPLv2 or higher, see LICENSE.txt
Maintainer : f.mance@jacobs-university.de
Stability : provisional
Portability : portable
Adds the "implied" annotation - for specifying theorems
-}
module OWL2.Theorem where
import Comm... | spechub/Hets | OWL2/Theorem.hs | gpl-2.0 | 12,567 | 0 | 15 | 2,662 | 4,068 | 1,932 | 2,136 | 161 | 40 |
{-#LANGUAGE FlexibleContexts #-}
module Carnap.Calculi.NaturalDeduction.Parser.Lemmon
where
import Data.Tree
import Data.Typeable
import Data.List (sort,(\\),nub)
import Text.Parsec
import Carnap.Core.Data.Types
import Carnap.Calculi.Util
import Carnap.Calculi.NaturalDeduction.Syntax
import Carnap.Calculi.NaturalDedu... | opentower/carnap | Carnap/src/Carnap/Calculi/NaturalDeduction/Parser/Lemmon.hs | gpl-3.0 | 6,963 | 120 | 16 | 2,373 | 2,041 | 1,061 | 980 | 102 | 7 |
{-# LANGUAGE TupleSections #-}
module TagSet (
TagSet,
emptyTagSet,
fromFiles, queryTags,
queryFiles, queryFilesSet,
tags, files,
addTag, removeTag, setTags,
addFile, removeFile,
createTag, wipeTag,
getTagAssocs, craftTagSet
) where
import Prelude hiding (any)
import Data.Set (Set)
import qualified Data.Set a... | ffwng/tagfs | TagSet.hs | gpl-3.0 | 4,328 | 22 | 16 | 922 | 1,358 | 711 | 647 | 54 | 1 |
module Tests.Main where
import Hakyll.Shortcode
import Tests.Hakyll.Shortcode.Service.YouTube
import Tests.Hakyll.Shortcode.Service.GeoGebra
import Test.Tasty
import Test.Tasty.HUnit
main :: IO ()
main = defaultMain $ testGroup "Shortcode Tests"
[ service_test_youtube
, service_test_geogebra
]
| nbloomf/hakyll-shortcode | test/Tests/Main.hs | gpl-3.0 | 305 | 0 | 7 | 39 | 68 | 42 | 26 | 10 | 1 |
{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
{-
hbot - a simple Haskell chat bot for Hipchat
Copyright (C) 2014 Louis J. Scoras
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 Foundati... | ljsc/hbot | src/Hbot/ChatNotification.hs | gpl-3.0 | 3,628 | 0 | 10 | 749 | 516 | 307 | 209 | 43 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Jumpie.Platform where
import Jumpie.Types
import Jumpie.GameConfig
import Jumpie.TileIncrement
import Jumpie.MoveableObject
import Jumpie.Geometry.Rect
import Control.Lens(Getter,to,(^.),(&),(+~))
import Control.Lens.TH(makeLense... | pmiddend/jumpie | lib/Jumpie/Platform.hs | gpl-3.0 | 1,407 | 0 | 16 | 285 | 425 | 238 | 187 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/StopInstance.hs | mpl-2.0 | 3,467 | 0 | 9 | 708 | 352 | 217 | 135 | 47 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-datapipeline/gen/Network/AWS/DataPipeline/DeletePipeline.hs | mpl-2.0 | 3,386 | 3 | 9 | 711 | 355 | 217 | 138 | 47 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-blogger/gen/Network/Google/Resource/Blogger/Pages/Update.hs | mpl-2.0 | 5,506 | 0 | 21 | 1,447 | 1,013 | 584 | 429 | 144 | 1 |
module ImageTools where
import Codec.Picture
import Codec.Picture.Types
-- |Converts image to 8-bit grayscale.
dynToGrayscale :: DynamicImage -> Image Pixel8
dynToGrayscale img = case img of
-- Some shortcuts
ImageY8 a -> extractLumaPlane a
ImageYA8 a -> extractLumaPlane a
-- And generic form
a ->... | HacklabJKL/telepulssi-arduino | tools/ImageTools.hs | agpl-3.0 | 355 | 0 | 9 | 71 | 79 | 41 | 38 | 8 | 3 |
module UniquePrefix where
import Data.List
import qualified Data.Set as S
import qualified Data.Text as T
import qualified Data.CaseInsensitive as CI
uniquePrefix txts = helper [] $ map (S.fromList . map CI.mk . tail . T.inits) txts
helper done (prefixes:otherPrefixes) =
(foldl' S.difference prefixes (done ++ other... | singpolyma/cheogram | UniquePrefix.hs | agpl-3.0 | 425 | 2 | 12 | 62 | 148 | 82 | 66 | 9 | 1 |
{-# LANGUAGE MultiWayIf, UnboxedTuples #-}
module Math.Topology.KnotTh.Tabulation.TangleDiagramsCascade.RootingTest
( rootingSymmetryTest
, rootCodeLeg
) where
import Control.Monad (when, guard)
import qualified Control.Monad.ST as ST
import Data.Bits (shiftL)
import Data.Function (fix)
import Data.List (m... | mishun/tangles | src/Math/Topology/KnotTh/Tabulation/TangleDiagramsCascade/RootingTest.hs | lgpl-3.0 | 14,033 | 9 | 28 | 5,814 | 3,829 | 1,885 | 1,944 | -1 | -1 |
--相似與幾何圖形
module Similar
( Sim, M2, Shape(Square,Rectangle,Triangle), (~~), perimeter, area ) where
class (Eq a) => Sim a where
(~~) :: a -> a -> Bool
class M2 a where
perimeter :: a -> Float
area :: a -> Float
data Shape = Square Float | Rectangle Float Float | Triangle Float Float Float
derivi... | bestian/haskell-sandbox | Similar.hs | unlicense | 1,537 | 0 | 12 | 430 | 819 | 413 | 406 | 40 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# OPTIONS_HADDOCK hide #-}
-- | Description of DNA DSL as operational monad
module DNA.DSL (
-- * Base DSL
DNA(..)
, DnaF(..)
... | SKA-ScienceDataProcessor/RC | MS6/dna/core/DNA/DSL.hs | apache-2.0 | 25,358 | 0 | 13 | 6,501 | 3,836 | 2,167 | 1,669 | 359 | 1 |
-- TODO: Fix this
module Camfort.FunctionalitySpec (spec) where
import System.Directory (copyFile, doesDirectoryExist)
import System.FilePath ((</>))
import System.IO.Silently (capture_)
import System.IO.Temp (withSystemTempDirectory)
import Test.Hspec hiding (Spec)
import qualified Test.Hspec as Test
i... | dorchard/camfort | tests/Camfort/FunctionalitySpec.hs | apache-2.0 | 5,265 | 0 | 15 | 900 | 766 | 423 | 343 | 66 | 1 |
import Control.Applicative ((<$>))
import System.Environment (getArgs)
import Text.Regex.Applicative (findLongestInfix)
import Data.SRX (SRX(..), mergeBy)
import Text.SRX (parseSRX)
import Text.Regex.Parse (parseRegex)
import Data.Regex.Parse (mkToks, mkRE)
main = do
[srxPath, inPath] <- getArgs
-- srx <... | kawu/tokenize | examples/Test.hs | bsd-2-clause | 658 | 0 | 12 | 140 | 214 | 115 | 99 | 16 | 1 |
--
-- Copyright © 2013-2015 Anchor Systems, Pty Ltd and Others
--
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms of
-- the 3-clause BSD licence.
--
-- /Description/
-- Common Ceilo... | anchor/ceilometer-common | lib/Ceilometer/Types/Base.hs | bsd-3-clause | 4,159 | 0 | 12 | 1,093 | 842 | 477 | 365 | 76 | 1 |
module Main
( main
) where
import MC.Protocol
import MC.Host
import MC.Utils
import Data.Serialize (Get)
import qualified Data.Serialize as SE
import Data.IterIO
import qualified Data.IterIO.Iter as Iter
import System.IO
import System.Environment
import System.Exit
import Network
analyse :: (Packet a, Show a) =>... | ehird/mchost | Main.hs | bsd-3-clause | 1,082 | 0 | 18 | 211 | 375 | 196 | 179 | 28 | 4 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fplugin Brisk.Plugin #-}
module ImportMe where
import Brisk.Annotations
import Brisk.Model.Types hiding (Process)
{-# ANN module SpecModule #-}
{-# ANN ap_spec (Assume '($)) #-}
ap_spec :: (a -> b) -> a -> b
ap_spec f x = f x
{-# ANN flip_spec (Assume 'flip) #-}
flip_... | abakst/brisk-prelude | examples/ImportMe.hs | bsd-3-clause | 381 | 0 | 8 | 73 | 104 | 59 | 45 | 12 | 1 |
import Common.List (maximumBy')
import Data.Function (on)
rMax :: Int -> Int
rMax a = f $ maximumBy' (compare `on` f) $ take m $ iterate (\(x, y) -> (x * (a - 1) `mod` m, y * (a + 1) `mod` m)) (1, 1)
where
m = a*a
f (a, b) = (a + b) `mod` m
main = print $ sum $ map rMax [3 .. 1000]
| foreverbell/project-euler-solutions | src/120.hs | bsd-3-clause | 296 | 0 | 13 | 81 | 193 | 109 | 84 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Insomnia.Typecheck.Query where
import Data.Monoid ((<>))
import Insomnia.Common.ModuleKind
import Insomnia.ModuleType
import Insomnia.Query
import Insomnia.Typecheck.Env
import Insomnia.Typecheck.LookupModuleSigPath (lookupModuleSigPath)
checkQueryExpr :: QueryExpr -> TC Qu... | lambdageek/insomnia | src/Insomnia/Typecheck/Query.hs | bsd-3-clause | 769 | 0 | 14 | 175 | 182 | 96 | 86 | 17 | 3 |
{-# LANGUAGE DeriveGeneric #-}
module Lib.Swagger.ResourceListing where
import qualified Data.ByteString.Lazy as LazyBytes
import GHC.Generics
import Data.Aeson
import Data.Text (Text)
import Data.HashMap.Strict (HashMap)
import qualified Data.HashMap.Strict as Map
import Data.Aeson.Types (Parser)
import Data.Foldabl... | pbogdan/swagger | src/Lib/Swagger/ResourceListing.hs | bsd-3-clause | 5,269 | 0 | 17 | 1,282 | 1,294 | 684 | 610 | 128 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Hasmin.Parser.Dimension
-- Copyright : (c) 2017 Cristian Adrián Ontivero
-- License : BSD3
-- Stability : experimental
-- Portability : unknown
--
-- Parsers for CSS dimensions, i.e. \<length>, \<time>, etc.
--
-... | contivero/hasmin | src/Hasmin/Parser/Dimension.hs | bsd-3-clause | 2,437 | 0 | 12 | 461 | 570 | 318 | 252 | 48 | 4 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
module Sachverhalt.Server.Monad where
import Control.Monad.Trans
import Control.Monad.Trans.Reader
import Control.Monad.Trans.State
import Control.Monad.Except
import Control.Applicative
import Data.Aeson
import Data.Aeson.Types (parseMayb... | firecoders/sachverhalt-server | src/Sachverhalt/Server/Monad.hs | bsd-3-clause | 3,213 | 0 | 15 | 771 | 983 | 509 | 474 | 66 | 3 |
{-# LANGUAGE CPP #-}
#ifdef LANGUAGE_DataKinds
{-# LANGUAGE PolyKinds #-}
#endif
{-# LANGUAGE TypeOperators #-}
module Data.Proxy
( Proxy (..)
, proxy
, reproxy
, reproxyRep
, reproxyK1
, reproxyM1
, reproxyFst
, reproxySnd
) where
import GHC.Generics
dat... | sonyandy/var | src/Data/Proxy.hs | bsd-3-clause | 909 | 0 | 10 | 232 | 278 | 153 | 125 | 34 | 1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Math.Combinatorics.Species.CycleIndex
-- Copyright : (c) Brent Yorgey 2010
-- License : BSD-style (see LICENSE)
-- Maintainer : byorgey@cis.upenn.edu
-- Stability : experimental
--
-- A... | timsears/species | Math/Combinatorics/Species/Unlabeled.hs | bsd-3-clause | 3,585 | 0 | 11 | 754 | 460 | 270 | 190 | 38 | 1 |
-- x and y coordinates or lengths.
data Cartesian2D = Cartesian2D Double Double
deriving (Eq, Show)
-- Angle and distance (magnitude)
data Polar2D = Polar2D Double Double
deriving (Eq, Show)
| NeonGraal/rwh-stack | ch03/AlgebraicVector.hs | bsd-3-clause | 226 | 0 | 6 | 65 | 47 | 26 | 21 | 4 | 0 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# OPTIONS_GHC -Wall #-}
module ConstMath.PrimRules.V706 (
unaryPrimRules
, binaryPrimRules
) where
unaryPrimRules :: [(String, (forall a. RealFloat a => a -> a))]
unaryPrimRules =
[ ("GHC.Prim.expDouble#" , exp)
, ("GHC.Prim.logDouble#" ... | kfish/const-math-ghc-plugin | ConstMath/PrimRules/V706.hs | bsd-3-clause | 1,417 | 0 | 11 | 359 | 338 | 221 | 117 | 36 | 1 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE TupleSections #-}
module NormalizedSyntax where
import Data.List.NonEmpty (NonEmpty (..), toList)
import Syntax
import Text.Printf
import Control.Monad.State
import Data.List.NonEmpty.Extra (fromList)
import Data.List (intercalate)
import Debug.Trace (trace)
data Goal a = ... | kajigor/uKanren_transformations | src/NormalizedSyntax.hs | bsd-3-clause | 4,865 | 0 | 18 | 1,203 | 1,955 | 993 | 962 | 115 | 2 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module UnitTests.Distribution.Client.ProjectConfig (tests) where
#if !MIN_VERSION_base(4,8,0)
import Data.Monoid
import Control.Applicative
#endif
import Data.Map (Map)
import qualified Data.Map as Map
import Data.List
import Distribution.Package
import Dist... | kolmodin/cabal | cabal-install/tests/UnitTests/Distribution/Client/ProjectConfig.hs | bsd-3-clause | 22,156 | 0 | 53 | 6,728 | 4,878 | 2,665 | 2,213 | 493 | 2 |
{-# LANGUAGE NoMonomorphismRestriction #-}
import Diagrams.Prelude
import Diagrams.Backend.Cairo.CmdLine
env = getEnvelope (FLinear (p2 (2,3)) (p2 (5,8)))
main = defaultMain (square 2 ||| mempty # withEnvelope env ||| square 2) | diagrams/diagrams-test | misc/FixedSeg.hs | bsd-3-clause | 230 | 1 | 10 | 31 | 89 | 46 | 43 | 5 | 1 |
{-# LANGUAGE BangPatterns #-}
module Data.Conduit.Utils where
-------------------------------------------------------------------------------
import Control.Monad
import Control.Monad.Trans
import Data.Conduit
-----------------------------------------------------------------------------... | Soostone/conduit-utils | src/Data/Conduit/Utils.hs | bsd-3-clause | 823 | 0 | 18 | 259 | 181 | 93 | 88 | 19 | 2 |
-------------------------------------------------------------
-- Parser for Tiger from Appel's book on compilers.
-- Semantic checks have been omitted for now.
-- Scope rules and such are as a consequence not implemented.
-------------------------------------------------------------
module Tiger( prettyTigerFromFile )... | FranklinChen/hugs98-plus-Sep2006 | packages/parsec/examples/tiger/Tiger.hs | bsd-3-clause | 11,010 | 10 | 14 | 4,201 | 2,198 | 1,149 | 1,049 | 200 | 2 |
module Hive.WebSocketServer.Room where
import Mitchell.Prelude
import Hive.WebSocketServer.Client
import Hive
data Room = Room
{ roomPlayer1 :: TMVar (Maybe Client)
, roomPlayer2 :: TMVar (Maybe Client)
, roomGame :: TVar GameState
}
newRoom :: IO Room
newRoom = Room
<$> newEmptyTMVarIO
<*> newEmpty... | mitchellwrosen/hive | hive-websocket-server/src/Hive/WebSocketServer/Room.hs | bsd-3-clause | 373 | 0 | 11 | 69 | 105 | 58 | 47 | 13 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Convert a #nixos log from http://nixos.org/irc/logs to ZNC
-- format.
--
module Main where
import Control.Concurrent.Async
import Control.Exception
import Control.Monad
import Data.ByteString.Char8 (By... | chrisdone/ircbrowse | src/Convert.hs | bsd-3-clause | 3,727 | 0 | 26 | 1,634 | 905 | 482 | 423 | 78 | 15 |
module Main where
import Task6
main :: IO()
main = task6
| vsulabs/OptimizationMethodsHs | app/Main6.hs | bsd-3-clause | 59 | 0 | 6 | 13 | 22 | 13 | 9 | 4 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUA... | joozek78/stack | src/Stack/Config.hs | bsd-3-clause | 21,229 | 0 | 30 | 6,455 | 4,635 | 2,325 | 2,310 | 413 | 11 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Control.Monad.ST.Strict
import Criterion.Main
import qualified Data.Vector as Vector
import qualified Data.Vector.Unboxed as VectorU
import qualified Data.CVector as CVector
import qualified Data.CVector.Mutable as C... | michalt/cvector | benchmarks/Benchmarks.hs | bsd-3-clause | 2,167 | 0 | 13 | 487 | 667 | 344 | 323 | 50 | 1 |
module API.Bindings (
reshape,
updateKeysBindings,
keyboardMouse,
mouseMotion,
moveObject)
where
import Graphics.UI.GLUT
import Graphics.UI.GLUT.Callbacks
import Data.IORef
import Data.Fixed
import Data.Bool
import Control.Concurrent
import Text.Printf
import Data.Map
import Data.List hiding (look... | Zielon/Bounce | src/API/Bindings.hs | bsd-3-clause | 4,354 | 0 | 20 | 1,077 | 1,722 | 857 | 865 | 98 | 7 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : $Header$
Description : positions, simple and mixfix identifiers
Copyright : (c) Klaus Luettich and Christian Maeder and Uni Bremen 2002-2003
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Por... | mariefarrell/Hets | Common/Id.hs | gpl-2.0 | 15,124 | 0 | 22 | 3,798 | 4,482 | 2,365 | 2,117 | 307 | 5 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS... | Rizary/hackage-matrix-builder | src-lib/PkgId.hs | gpl-3.0 | 10,354 | 0 | 20 | 2,363 | 2,653 | 1,396 | 1,257 | 214 | 1 |
{- arch-tag: Tests main file
Copyright (C) 2005 John Goerzen <jgoerzen@complete.org>
This code is under a 3-clause BSD license; see COPYING for details.
-}
module Tests(tests) where
import Test.HUnit
import qualified Inittest
test1 = TestCase ("x" @=? "x")
tests = TestList [TestLabel "test1" test1,
... | jgoerzen/magic-haskell | testsrc/Tests.hs | bsd-3-clause | 376 | 0 | 8 | 90 | 60 | 34 | 26 | 6 | 1 |
{-# LANGUAGE PackageImports #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Generics.Product
-- Copyright : (C) 2020 Csongor Kiss
-- License : BSD3
-- Maintainer : Csongor Kiss <kiss.csongor.kiss@gmail.com>
-- Stability : experimental
-- Portabi... | kcsongor/generic-lens | generic-optics/src/Data/Generics/Product.hs | bsd-3-clause | 1,382 | 0 | 5 | 177 | 156 | 121 | 35 | 19 | 0 |
module System.Console.CmdArgs.Test.All(test,demo,Demo,runDemo) where
import System.Console.CmdArgs.Explicit
import System.Console.CmdArgs.Test.Util
import qualified System.Console.CmdArgs.Test.Explicit as Explicit
import qualified System.Console.CmdArgs.Test.Implicit as Implicit
import qualified System.Console.CmdArg... | copland/cmdargs | System/Console/CmdArgs/Test/All.hs | bsd-3-clause | 614 | 0 | 7 | 76 | 153 | 97 | 56 | 16 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
TcSplice: Template Haskell splices
-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE InstanceSigs #-}
{-# OPTIONS_GHC -fno-warn-orphans... | siddhanathan/ghc | compiler/typecheck/TcSplice.hs | bsd-3-clause | 65,008 | 0 | 18 | 20,326 | 1,261 | 708 | 553 | 76 | 4 |
<?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="ru-RU">
<title>Надстройка поддержки SOAP </title>
<maps>
<homeID>soap</homeID>
<mapref ... | thc202/zap-extensions | addOns/soap/src/main/javahelp/org/zaproxy/zap/extension/soap/resources/help_ru_RU/helpset_ru_RU.hs | apache-2.0 | 1,023 | 82 | 52 | 158 | 482 | 250 | 232 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Compat.ReadP
-- Copyright : (c) The University of Glasgow 2002
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Portability : portable
--
-... | DavidAlphaFox/ghc | libraries/Cabal/Cabal/tests/UnitTests/Distribution/Compat/ReadP.hs | bsd-3-clause | 4,200 | 0 | 12 | 867 | 756 | 421 | 335 | 55 | 1 |
{-# OPTIONS_GHC -fglasgow-exts -ddump-types #-}
-- See Trac #1456
-- The key thing here is that foo should get the type
-- foo :: forall b s t1. (Zork s (Z [Char]) b)
-- => Q s (Z [Char]) t1 -> ST s ()
-- Note the quantification over 'b', which was previously
-- omitted; see Note [Important subtlety in oclos... | hvr/jhc | regress/tests/1_typecheck/2_pass/ghc/uncat/tc231.hs | mit | 577 | 0 | 9 | 152 | 147 | 82 | 65 | -1 | -1 |
{-# LANGUAGE OverlappingInstances , UndecidableInstances, EmptyDataDecls #-}
{-# LANGUAGE RankNTypes, KindSignatures, MultiParamTypeClasses, FlexibleInstances #-}
-- Works with new constraint solver
module T3018 where
import Control.Monad
-- minimal Data/Rep classes
data Rep (ctx :: * -> *) a
class Data (ctx :: * ... | frantisekfarka/ghc-dsi | testsuite/tests/typecheck/should_compile/T3018.hs | bsd-3-clause | 3,507 | 0 | 13 | 809 | 380 | 210 | 170 | -1 | -1 |
module Internal (
A (A)
) where
data A = A
| urbanslug/ghc | testsuite/tests/driver/T3007/A/Internal.hs | bsd-3-clause | 54 | 0 | 5 | 22 | 20 | 13 | 7 | 5 | 0 |
{-
Module : EU4.Decisions
Description : Feature handler for Europa Universalis IV decisions
-}
module EU4.Decisions (
parseEU4Decisions
, writeEU4Decisions
) where
import Debug.Trace (trace, traceM)
import Control.Arrow ((&&&))
import Control.Monad (foldM, forM)
import Control.Monad.Except (Exc... | HairyDude/pdxparse | src/EU4/Decisions.hs | mit | 7,802 | 0 | 21 | 2,228 | 1,826 | 1,004 | 822 | -1 | -1 |
myReverse :: [a] -> [a]
myReverse [] = []
myReverse (x:[]) = x:[]
myReverse (x:xs) = myReverse xs ++ [x]
mySum :: Num a => [a] -> a
mySum (x:xs) = x + mySum xs
mySum [] = 0
myAnd :: [Bool] -> Bool
myAnd (b:bs) = b && myAnd bs
myAnd [] = True
myAnd2 :: [Bool] -> Bool
myAnd2 xs = foldr (&&) True xs
myAppend :... | strburst/haskell-stuff | recursive.hs | mit | 400 | 0 | 8 | 100 | 260 | 137 | 123 | 15 | 1 |
module BackEnd.GenerateJson
( generateJson
, generateJsonWithLock ) where
import System.Directory
import System.IO
import Control.Monad.IO.Class
#if __GLASGOW_HASKELL__ <= 704
import Prelude hiding (catch)
#else
import Prelude
#endif
import Data.IORef
import Data.Aeson (Value)
import BackEnd.Type
import BackEnd.Fil... | cosmo0920/FileDeliverServer | src/BackEnd/GenerateJson.hs | mit | 1,150 | 0 | 9 | 167 | 314 | 153 | 161 | -1 | -1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
module Chart.Heatmap where
import Data.Rect
import Chart.Render
import Chart.Types
import Control.Appl... | tonyday567/hdcharts | src/Chart/Heatmap.hs | mit | 4,332 | 0 | 14 | 966 | 1,271 | 674 | 597 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
{-
The responsibility of the baker is to turn raw deployments into baked
deployments. This takes care of everything that couldn't happen during
compilation yet. The differences between raw deployments and baked
deployments are:
- Baked deployments only deal with abs... | NorfairKing/super-user-spark | src/SuperUserSpark/Bake.hs | mit | 3,648 | 0 | 16 | 735 | 825 | 416 | 409 | 71 | 4 |
module CalcInptStoreModule ( Store, initial, valueS, update ) where
import CalcInptType ( Expr (..), Ops (..), Parse )
type Var = String
newtype Store = Store [(Expr, Var)]
initial :: Store
initial = Store []
valueS :: Store -> Var -> Expr
valueS (Store []) _ = Var "Fail"
val... | tonyfloatersu/solution-haskell-craft-of-FP | CalcInptStoreModule.hs | mit | 524 | 0 | 10 | 175 | 222 | 123 | 99 | 12 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
-----------------------------------------------------------------------------
-- |
-- Module : Main
-- Author : Troels Henriksen <athas@sigkill.dk>
-- License : MIT-style (see LICENSE)
--
-- Stability ... | Athas/gsmenu | Main.hs | mit | 16,800 | 2 | 23 | 5,890 | 5,445 | 2,865 | 2,580 | 348 | 17 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell #-}
module Web.Slack.Types.Channel where
import Data.Aeson
import Data.Aeson.Types
import Control.Applicative
import Data.Text (Text)
import Control.Lens.TH
import Data.Maybe (fromMaybe)
import Web.Slack.Types.Id
import Web.Slack.Types.Time
import Web.Slack.Types.Topic
... | mpickering/slack-api | src/Web/Slack/Types/Channel.hs | mit | 1,946 | 0 | 30 | 812 | 395 | 222 | 173 | 37 | 1 |
-- |The Protocol module allows for direct, low-level communication with a
-- PostgreSQL server over TCP/IP. You probably don't want to use this module
-- directly.
module Database.TemplatePG.Protocol ( PGException(..)
, pgConnect
, pgDisconnect
... | jekor/templatepg | Database/TemplatePG/Protocol.hs | mit | 16,387 | 0 | 21 | 5,811 | 3,120 | 1,621 | 1,499 | 256 | 20 |
{-# Language TemplateHaskell, QuasiQuotes, FlexibleContexts #-}
module TreeConfigNginxFiller where
--{{{ Module imports
import TypesAndFunctions
---}}}
--{{{ Haskell imports
import Text.Peggy
import Data.Either
import Data.Maybe
---}}}
--{{{ Definition of the parser using Peggy
[peggy|
configFileNginx :: TreeFile
... | prl-tokyo/bigul-configuration-adaptation | Transformations/Parsers/Nginx_Parser/TreeConfigNginxFiller.hs | mit | 1,831 | 2 | 13 | 389 | 152 | 82 | 70 | 16 | 2 |
module Light.Shape.UnionShape
-- ADT
( UnionShape, unionShape, unionShapes
)
where
import Data.List
import Data.Ord
import Light.Geometry
import Light.Shape
data UnionShape = UnionShape { unionTransform :: Transform
, unionShapes :: [ShapeBox]
}
... | jtdubs/Light | src/Light/Shape/UnionShape.hs | mit | 1,354 | 0 | 16 | 412 | 531 | 277 | 254 | 27 | 1 |
module NginxDefaultValues where
import TypeFiles.NginxTypes
data DefaultValues = DefaultValues {
d_accept_mutex :: String,
d_accept_mutex_delay :: String,
d_access_log :: String,
d_access_rule :: String,
d_add_header :: String,
d_aio :: String,
d_alias :: String,
d_ancient_browser :: String,
d_ancient_browse... | prl-tokyo/bigul-configuration-adaptation | Transformations/NginxDefaultValues.hs | mit | 10,302 | 700 | 8 | 1,434 | 2,825 | 1,764 | 1,061 | 354 | 1 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
module Store.SQL.Util.LookupTable where
{--
Okay, this was supposed to be a different exercise, but I keep plumbing depths
to writing log entries to a data table, a supposedly simple and easy thing, but
here we are.
Today's Haskell exercise: now that we have lookup dat... | geophf/1HaskellADay | exercises/HAD/Store/SQL/Util/LookupTable.hs | mit | 2,820 | 0 | 19 | 484 | 563 | 313 | 250 | -1 | -1 |
module Atomo.Error where
import Atomo.Internals
import Control.Monad.Error
liftThrows :: ThrowsError a -> IOThrowsError a
liftThrows (Left err) = throwError err
liftThrows (Right val) = return val
runIOThrows :: IOThrowsError AtomoVal -> IO AtomoVal
runIOThrows a = runErrorT (trapError a) >>= return . extractValue
... | vito/atomo-old | Atomo/Error.hs | mit | 511 | 0 | 9 | 77 | 172 | 87 | 85 | 12 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS -Wall -Werror -funbox-strict-fields #-}
module FP.ImportWizard.Foundation... | teuffy/min-var-ci | src/FP/ImportWizard/Foundation.hs | mit | 2,463 | 0 | 15 | 942 | 157 | 87 | 70 | -1 | -1 |
module Crypto.Boring.Test.Digest
( mkDigestTests
) where
import Control.Monad
import Data.Proxy
import Path
import Test.Tasty
import Test.Tasty.HUnit
import Data.Conduit
import qualified Data.Conduit.List as CL
import Crypto.Boring.Digest
import Crypto.Boring.Test.TestVectors
mkTests :: forall algo. HashAlgorit... | chpatrick/boring-crypto | test/Crypto/Boring/Test/Digest.hs | mit | 3,556 | 0 | 20 | 688 | 1,221 | 594 | 627 | -1 | -1 |
{-# htermination succ :: Enum a => a -> a #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_succ_2.hs | mit | 46 | 0 | 2 | 11 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, TypeSynonymInstances #-}
module Perl.Eval
( PerlEvalable (..)
, voidEval
, Retrievable (..)
) where
import Perl.Call
| CindyLinz/Haskell-Perl | src/Perl/Eval.hs | mit | 181 | 0 | 5 | 29 | 31 | 21 | 10 | 6 | 0 |
import Language.PiCalc.Syntax.Congruence
main = sequence_ $ map print $ [stressPrl t | t <- [15,20..50] ] ++ [stressNest t | t <- [1..12]]
| bordaigorl/jamesbound | src/Benchmark.hs | gpl-2.0 | 140 | 0 | 10 | 24 | 69 | 37 | 32 | 2 | 1 |
-- |
-- Module: Utils.DayCount
-- Copyright: (c) Johan Astborg, Andreas Bock
-- License: BSD-3
-- Maintainer: Andreas Bock <bock@andreasbock.dk>
-- Stability: experimental
-- Portability: portable
--
-- Defines types and classes for computing day count modifiers
module Utils.DayCount where
import qualifie... | andreasbock/hql | src/Utils/DayCount.hs | gpl-2.0 | 1,571 | 0 | 12 | 417 | 478 | 253 | 225 | 28 | 1 |
--
-- Statistics collection
--
-- Copyright © 2012 Operational Dynamics Consulting, Pty Ltd
--
-- The code in this file, and the program it is a part of, is made available
-- to you by its authors as open source software: you can redistribute it
-- and/or modify it under the terms of the GNU General Public License vers... | afcowie/metrics | src/ParseCommandParsec.hs | gpl-2.0 | 3,366 | 0 | 10 | 645 | 615 | 341 | 274 | 53 | 1 |
{-# OPTIONS_GHC -Wall -fwarn-tabs -Werror #-}
-------------------------------------------------------------------------------
-- |
-- Module : Graphics
-- Copyright : Copyright (c) 2014 Michael R. Shannon
-- License : GPLv2 or Later
-- Maintainer : mrshannon.aerospace@gmail.com
-- Stability : unstab... | mrshannon/trees | src/Graphics.hs | gpl-2.0 | 661 | 0 | 8 | 101 | 64 | 43 | 21 | 8 | 1 |
module Main where
import Test.Framework
import Test.Framework.Providers.QuickCheck2 ()
import GRSynth.StatesTest (testList)
import GRSynth.GameStructureTest
import GRSynth.SynthesisTest
import Test.QuickCheck ()
main :: IO ()
main = defaultMain tests
tests :: [Test]
tests = [ testGroup "States and Transitions" GRSyn... | johnbcoughlin/mucalc | test/TestMain.hs | gpl-2.0 | 489 | 0 | 7 | 74 | 111 | 65 | 46 | 13 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Optimization.BasicBlocks
Description :
Copyright : 2014, Jonas Cleve
License : GPL-3
-}
module Optimization.BasicBlocks (
renderGraph, dotGraph, tacToGraph, graphToTac
) where
import Interface.TAC (
TAC, Command (..), Label,
isGoto, getLabelF... | Potregon/while | src/Optimization/BasicBlocks.hs | gpl-3.0 | 4,484 | 0 | 16 | 1,369 | 1,646 | 926 | 720 | 99 | 12 |
import Data.List (union)
import qualified Data.Text as T
import Data.Text.IO (getLine, putStrLn)
import System.Environment (getArgs)
import System.IO (hPutStrLn, stderr, isEOF)
import Text.Parsec.Char (char, digit, string)
import Text.Parsec.Combinator (choice, sepBy1, many1, eof, option)
import Text.Parsec.Prim (parse... | jekor/jcoreutils | chop/chop.hs | gpl-3.0 | 1,986 | 0 | 16 | 462 | 760 | 407 | 353 | 47 | 3 |
module TB.WYAH.Parsing.NanoParsec.Calculator (
Expr (..),
eval,
int,
expr,
term,
factor,
infixOp,
addOp,
mulOp,
run
) where
{-
number = [ ”-” ] digit { digit }.
digit = ”0” | ”1” | ... | ”8” | ”9”.
expr = term { addop term }.
term = factor { mulop factor }.
factor = ”(” expr ”)” | number.
addop = ”... | adarqui/ToyBox | haskell/sdiehl/wyah/src/TB/WYAH/Parsing/NanoParsec/Calculator.hs | gpl-3.0 | 1,214 | 0 | 10 | 296 | 431 | 229 | 202 | 44 | 4 |
module Circuits.Encoder where
-- TODO
| jgraydus/circuits | src/Circuits/Encoder.hs | gpl-3.0 | 39 | 0 | 3 | 6 | 7 | 5 | 2 | 1 | 0 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE DataKinds, PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, FlexibleContext... | michaelt/extensible-streaming | Data/Functor/Effs.hs | gpl-3.0 | 8,696 | 0 | 14 | 2,011 | 1,557 | 825 | 732 | -1 | -1 |
{-# 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/Layers/Patch.hs | mpl-2.0 | 2,824 | 0 | 13 | 684 | 386 | 232 | 154 | 59 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-logging/gen/Network/Google/Resource/Logging/BillingAccounts/Locations/Buckets/Create.hs | mpl-2.0 | 6,546 | 0 | 18 | 1,409 | 869 | 508 | 361 | 131 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.SiteVerification.Types.Sum
-- Copyright : (c) 2015-201... | brendanhay/gogol | gogol-siteverification/gen/Network/Google/SiteVerification/Types/Sum.hs | mpl-2.0 | 621 | 0 | 5 | 101 | 35 | 29 | 6 | 8 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-run/gen/Network/Google/Resource/Run/Namespaces/Revisions/Delete.hs | mpl-2.0 | 6,545 | 0 | 21 | 1,543 | 1,028 | 595 | 433 | 143 | 1 |
module DB (DB, Key(..), byJid, byNode, mk, get, getEnum, del, set, setEnum, sadd, srem, smembers, foldKeysM, hset, hdel, hgetall) where
import Prelude ()
import BasicPrelude
import GHC.Stack (HasCallStack)
import Network.Protocol.XMPP (JID(..), strNode)
import qualified Database.Redis as Redis
import qualified Data.... | singpolyma/cheogram | DB.hs | agpl-3.0 | 4,187 | 28 | 15 | 778 | 1,725 | 887 | 838 | -1 | -1 |
{-# language ScopedTypeVariables, MultiParamTypeClasses, DeriveDataTypeable #-}
module Sorts.Box (sorts) where
import Data.Typeable
import Data.Abelian
import System.FilePath
import Physics.Chipmunk as CM
import Graphics.Qt
import Utils
import Base
-- Configuration
names =
("box-wood-small", 125) :
(... | nikki-and-the-robots/nikki | src/Sorts/Box.hs | lgpl-3.0 | 2,954 | 0 | 17 | 772 | 896 | 470 | 426 | 75 | 1 |
module Ui.Menu
( uiMenuClear
, uiMenuSwitch
, uiMenuInterceptKeycode
, uiMenuOptions
)
where
import Control.Lens
import Control.Monad.State
import Data.Biapplicative
import Data.List
import SDL
import Coordinate
import Game
import Object
import Ui
import World
-- | Clear all visible menus from a ... | nitrix/lspace | legacy/Ui/Menu.hs | unlicense | 4,111 | 0 | 24 | 1,598 | 683 | 360 | 323 | 66 | 11 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ParallelListComp #-}
{-# LANGUAGE RecordWildCards #-}
-------------------------------------------------------------------------------
-- | Additional entry points and ... | alphalambda/codeworld | codeworld-base/src/Extras/Cw.hs | apache-2.0 | 28,117 | 1 | 18 | 7,695 | 7,028 | 4,056 | 2,972 | 306 | 19 |
-- | A BSON document is a JSON-like object with a standard binary encoding
-- defined at bsonspec.org. This implements version 1.0 of that spec.
--
-- Use the GHC language extension /OverloadedStrings/ to automatically convert
-- String literals to Text
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANG... | mongodb-haskell/bson | Data/Bson.hs | apache-2.0 | 16,221 | 7 | 15 | 4,305 | 4,789 | 2,543 | 2,246 | 326 | 20 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Data.Frequency.Hertz where
import Data.Frequency.Meters
newtype Hertz = Hertz { getHertz :: Double }
deriving ( Enum
, Eq
, Floating
, Fractional
, Num
... | relrod/frequency | src/Data/Frequency/Hertz.hs | bsd-2-clause | 771 | 0 | 8 | 352 | 155 | 85 | 70 | 22 | 0 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.QcSuite where
import Data.Suite
import Test.QuickCheck
import Test.QuickCheck.All
import Data.Monoid
import Arbitrary.Suite
import Prelude hiding (FilePath)
import Control.Monad
main :: IO ()
main = void $quickCheckAll
instance Arbitr... | jfeltz/tasty-integrate | tests/Data/QcSuite.hs | bsd-2-clause | 617 | 0 | 10 | 108 | 180 | 95 | 85 | 21 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable, ScopedTypeVariables, NoMonomorphismRestriction #-}
-- | Higher-level functions to interact with CouchDB views.
--
-- To automate creation of CouchDB Query Options see
-- "Database.CouchDB.Conduit.View.Query"
--
-- To manipulate view... | lostbean/neo4j-conduit | src/Database/CouchDB/Conduit/View.hs | bsd-2-clause | 7,060 | 0 | 18 | 2,026 | 1,237 | 694 | 543 | 100 | 4 |
module Foundation
( App (..)
, Route (..)
, AppMessage (..)
, resourcesApp
, Handler
, Widget
, Form
, maybeAuth
, requireAuth
, module Settings
, module Model
, getExtra
) where
import Prelude
import Yesod
import Yesod.Static
import Yesod.Auth
import Yesod.Auth.Brow... | seizans/yesod-tutorial | Foundation.hs | bsd-2-clause | 6,089 | 0 | 17 | 1,319 | 846 | 475 | 371 | -1 | -1 |
-- 9110846700
import Euler(modPow)
nn = 1000
kk = 10
sumSelfPowers n k = s `mod` p
where p = 10^k
s = sum [modPow x x p | x <- [1..n]]
main = putStrLn $ show $ sumSelfPowers nn kk
| higgsd/euler | hs/48.hs | bsd-2-clause | 197 | 0 | 11 | 58 | 96 | 52 | 44 | 7 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QFile.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:36
Warning : this file is machine generated - do not mod... | keera-studios/hsQt | Qtc/Enums/Core/QFile.hs | bsd-2-clause | 8,116 | 0 | 18 | 1,732 | 2,194 | 1,125 | 1,069 | 238 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Main
-- Copyright : (c) David Himmelstrup 2005
-- License : BSD-like
--
-- Maintainer : lemmih@gmail.com
-- Stability : provisional
-- Portability : portable
--
-- Entry point to the default cabal-install ... | yihuang/cabal-install | Main.hs | bsd-3-clause | 17,728 | 0 | 17 | 4,297 | 3,970 | 2,085 | 1,885 | 335 | 8 |
module Lab where
import Control.Monad
data Concurrent a = Concurrent ((a -> Action) -> Action)
data Action
= Atom (IO Action)
| Fork Action Action
| Stop
instance Show Action where
show (Atom x) = "atom"
show (Fork x y) = "fork " ++ show x ++ " " ++ show y
show Stop = "stop"
-- ============... | paulkeene/FP101x | chapter11/Lab.hs | bsd-3-clause | 2,751 | 0 | 12 | 578 | 1,033 | 555 | 478 | 53 | 1 |
module Snap.Internal.Http.Server.Backend where
{-
The server backend is made up of two APIs.
+ The ListenSocket class abstracts the reading and writing from the network.
We have seperate implementations of ListenSocket for http and https.
+ The EventLoop function is the interface to accept on the socket.
The Ev... | janrain/snap-server | src/Snap/Internal/Http/Server/Backend.hs | bsd-3-clause | 3,229 | 0 | 14 | 1,009 | 355 | 202 | 153 | 34 | 0 |
{-|
Module : Idris.Elab.Clause
Description : Code to elaborate clauses.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE PatternGuards #-}
module Idris.Elab.Clause where
import Idris.AbsSyntax
import Idris.ASTUtils
import Idris.DSL
import Idris.Error
import Idris.Delaborate
impo... | enolan/Idris-dev | src/Idris/Elab/Clause.hs | bsd-3-clause | 54,729 | 509 | 27 | 21,729 | 8,902 | 5,665 | 3,237 | 854 | 51 |
{-|
Module : Diplomacy.Aligned
Description : Align a value to a 'GreatPower'.
Copyright : (c) Alexander Vieth, 2015
Licence : BSD3
Maintainer : aovieth@gmail.com
Stability : experimental
Portability : non-portable (GHC only)
-}
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Stand... | avieth/diplomacy | Diplomacy/Aligned.hs | bsd-3-clause | 981 | 0 | 8 | 196 | 228 | 120 | 108 | 22 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.