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 RecordWildCards, OverloadedStrings, DeriveDataTypeable, NamedFieldPuns #-}
module Network.Wai.Handler.Hope where
import Network.Wai
import qualified Data.Vault as V
import Network.HTTP.Types ( Status(..), HttpVersion(..) )
import qualified Network.HTTP.Types as H
import Blaze.ByteString.Builder ( toByteS... | kolmodin/spdy | Network/Wai/Handler/Hope.hs | bsd-3-clause | 19,162 | 0 | 27 | 5,123 | 5,759 | 2,895 | 2,864 | 399 | 11 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module Complex.Entity
( EntityModel (..)
, FieldModel (..)
, Entity (..)
, Field (..)
) where
import Data.Int (Int8, Int16, Int32, Int64)
import Data.Word (Word, Word8, ... | yulii/complex | src/Complex/Entity.hs | bsd-3-clause | 1,390 | 0 | 8 | 366 | 378 | 208 | 170 | 41 | 0 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Init
-- Copyright : (c) Brent Yorgey 2009
-- License : BSD-like
--
-- Maintainer : cabal-devel@haskell.org
-- Stability : provisional
-- Portability : portable
--
-... | mightybyte/cabal | cabal-install/Distribution/Client/Init.hs | bsd-3-clause | 36,471 | 0 | 22 | 10,681 | 8,732 | 4,459 | 4,273 | 682 | 17 |
module EAFIT.CB0081.Data.NFA.Examples where
import EAFIT.CB0081.Data.NFA ( NFA(MkNFA) )
import Data.Set ( fromList, Set, singleton )
states :: Set Int
states = fromList [0,1,2,3,4]
symbols :: Set Char
symbols = fromList "ab"
initialState :: Int
initialState = 0
finalStates :: Set Int
finalStates = fro... | afl-eafit/2013-2-lab1 | src/EAFIT/CB0081/Data/NFA/Examples.hs | bsd-3-clause | 1,016 | 0 | 9 | 252 | 389 | 204 | 185 | 31 | 6 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
module HipChat.Types.Webhook where
import Data.Aeson
import Data.Aeson.Casing
import Data.Aeson.Types
import Data.Monoid
import ... | oswynb/hipchat-hs | lib/HipChat/Types/Webhook.hs | bsd-3-clause | 3,001 | 0 | 16 | 632 | 677 | 372 | 305 | 75 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
module Control.Monad.Effect (
-- * The Effe... | YellPika/effin | src/Control/Monad/Effect.hs | bsd-3-clause | 7,284 | 0 | 15 | 1,645 | 1,974 | 1,064 | 910 | -1 | -1 |
module WeiXin.PublicPlatform.Security
( module WeiXin.PublicPlatform.Security
, module WeiXin.PublicPlatform.Types
) where
-- {{{1 imports
import ClassyPrelude
#if MIN_VERSION_base(4, 13, 0)
import Control.Monad (MonadFail(..))
#else
import Control.Monad.Reader (asks)
#endif
import qualifie... | yoo-e/weixin-mp-sdk | WeiXin/PublicPlatform/Security.hs | mit | 9,768 | 0 | 18 | 3,058 | 2,283 | 1,177 | 1,106 | -1 | -1 |
module Root.Src.P1.C (bar) where bar = do putStrLn "Hello P1.C" | codeboardio/kali | test/src_examples/haskell/several_files_folders2/Root/Src/P1/C.hs | mit | 63 | 0 | 7 | 9 | 24 | 14 | 10 | 1 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-sts/gen/Network/AWS/STS/AssumeRoleWithWebIdentity.hs | mpl-2.0 | 15,028 | 0 | 19 | 2,871 | 1,239 | 766 | 473 | 125 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-elasticache/gen/Network/AWS/ElastiCache/CreateReplicationGroup.hs | mpl-2.0 | 20,526 | 0 | 13 | 4,031 | 2,416 | 1,476 | 940 | 260 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ViewPatterns #-}
-- |
-- Module : Data.Array.Accelerate.Trafo.Algebra
-- Copyright : [2012..2014] Manuel M T... | rrnewton/accelerate | Data/Array/Accelerate/Trafo/Algebra.hs | bsd-3-clause | 24,446 | 0 | 15 | 6,912 | 8,355 | 4,013 | 4,342 | 422 | 60 |
module TestFW.GCMCheck where
import Control.Monad
import Data.List (isPrefixOf)
import qualified Test.QuickCheck as QC
import Compile0
import TestFW.GCMP
import Data.Aeson
import qualified Data.ByteString.Lazy.Char8 as BS
import qualified Data.Map as M
type Solution = M.Map String Bool
-- | GCM property run functio... | GRACeFUL-project/GRACe | src/TestFW/GCMCheck.hs | bsd-3-clause | 1,536 | 0 | 14 | 326 | 407 | 209 | 198 | 33 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-elasticache/gen/Network/AWS/ElastiCache/CreateSnapshot.hs | mpl-2.0 | 3,867 | 0 | 9 | 837 | 487 | 297 | 190 | 60 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns #-}
module TH where
import Data.Char (toUpper)
import Language.Haskell.TH.Lib (DecsQ)
import Language.Haskell.TH.Syntax
import Lens.Micro
import Lens.Micro.TH hiding (makeLenses)
makeLenses :: Name -> DecsQ
makeLenses =
makeLensesWith
(camelCaseFiel... | k-bx/riak-haskell-client | protobuf-lens/app/TH.hs | apache-2.0 | 696 | 0 | 18 | 191 | 231 | 127 | 104 | 21 | 3 |
{-# LANGUAGE TemplateHaskell, TypeApplications, PolyKinds
, TypeFamilies, DataKinds #-}
module T12045TH2 where
import Data.Kind
import Language.Haskell.TH hiding (Type)
import System.IO
type family Foo (a :: k) :: Type where
Foo @Type a = Bool
type family Baz (a :: k)
type instance Baz @(Type->Type->... | sdiehl/ghc | testsuite/tests/th/T12045TH2.hs | bsd-3-clause | 1,189 | 2 | 19 | 325 | 425 | 217 | 208 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Bead.View.Style where
import Control.Monad (join)
import Data.List (intersperse)
import Data.Monoid
import Data.String (fromString)
import Text.Blaze.Html5 (Attribute, (!))
import Text.Blaze.Internal (Attributable)
i... | pgj/bead | src/Bead/View/Style.hs | bsd-3-clause | 3,630 | 0 | 10 | 708 | 1,015 | 551 | 464 | 89 | 1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1993-1998
\section[SimplStg]{Driver for simplifying @STG@ programs}
-}
{-# LANGUAGE CPP #-}
module ETA.SimplStg.SimplStg ( stg2stg ) where
#include "HsVersions.h"
import ETA.StgSyn.StgSyn
import ETA.Profiling.CostCentre ( CollectedCCs )
import ETA.Profiling... | alexander-at-github/eta | compiler/ETA/SimplStg/SimplStg.hs | bsd-3-clause | 3,136 | 0 | 16 | 978 | 604 | 334 | 270 | 55 | 3 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, NoImplicitPrelude
, BangPatterns
, AutoDeriveTypeable
#-}
{-# OPTIONS_GHC -fno-warn-identities #-}
-- Whether there are identities depends on the platform
{-# OPTIONS_HADDOCK hide #-}
----------------------------------------------------... | holzensp/ghc | libraries/base/GHC/IO/FD.hs | bsd-3-clause | 23,294 | 3 | 17 | 5,997 | 4,294 | 2,241 | 2,053 | 324 | 5 |
module Compose where
import Prelude hiding (Functor, Monad)
data ST s a = ST {runState :: s -> (a,s)}
{-@ data ST s a <p :: s -> Prop, q :: s -> s -> Prop, r :: s -> a -> Prop>
= ST (runState :: x:s<p> -> (a<r x>, s<q x>)) @-}
{-@ runState :: forall <p :: s -> Prop, q :: s -> s -> Prop, r :: s -> a -> Prop>. ST ... | abakst/liquidhaskell | tests/todo/SuperClassBounds.hs | bsd-3-clause | 1,283 | 0 | 14 | 450 | 264 | 140 | 124 | 11 | 0 |
import Data.List
main = print (sort [100,99..1])
| holzensp/ghc | testsuite/tests/ghci/scripts/ghci004.hs | bsd-3-clause | 49 | 0 | 8 | 7 | 28 | 15 | 13 | 2 | 1 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.StorageEvent (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.StorageEvent
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
import GHCJS.DOM.JSFFI.Generat... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/StorageEvent.hs | mit | 349 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
module Tarefa1_2017li1g180 where
import LI11718
import Data.Typeable
import GHC.Generics (Generic, Generic1)
import Control.DeepSeq -- package "deepseq"
import Text.PrettyPrint -- package "pretty"
import Text.PrettyPrint.GenericPretty -- package "GenericPretty"
import Safe
constroi :: Caminho -> Mapa
constroi c =... | hpacheco/HAAP | examples/plab/svn/2017li1g180/src/Tarefa1_2017li1g180.hs | mit | 6,533 | 0 | 12 | 1,184 | 2,566 | 1,478 | 1,088 | 105 | 1 |
module Vacivity.FOV.Common where
import qualified Antiqua.Data.Array2d as A2D
type Mask = A2D.Array2d Bool
| olive/vacivity | src/Vacivity/FOV/Common.hs | mit | 110 | 0 | 6 | 16 | 27 | 18 | 9 | 3 | 0 |
{-# LANGUAGE DeriveGeneric, DeriveDataTypeable, TypeFamilies, Arrows, RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Client.Player(
ClientPlayer(..)
, clientPlayerId
, PlayerMsg(..)
, player
, playerFromMsg
, module P
) where
import Client.Camera
import Control.DeepSeq
import Core
i... | NCrashed/sinister | src/client/Client/Player.hs | mit | 1,970 | 1 | 14 | 377 | 475 | 263 | 212 | 54 | 1 |
-- |
-- Module: Math.NumberTheory.ArithmeticFunctions.Standard
-- Copyright: (c) 2016 Andrew Lelechenko
-- Licence: MIT
-- Maintainer: Andrew Lelechenko <andrew.lelechenko@gmail.com>
--
-- Textbook arithmetic functions.
--
{-# LANGUAGE ScopedTypeVariables #-}
module Math.NumberTheory.ArithmeticFunctions.S... | cartazio/arithmoi | Math/NumberTheory/ArithmeticFunctions/Standard.hs | mit | 13,109 | 0 | 17 | 2,569 | 3,936 | 2,124 | 1,812 | 230 | 6 |
{-# LANGUAGE OverloadedStrings #-}
-- | This provides a simple representation of the request data for a Slack
-- /incoming/ integration- the means via which Haskbot replies to Slack.
-- Currently only simple text replies are supported, but this will be
-- expanded to support fully-Slack-formatted messages in the... | bendyworks/haskbot-plugins | haskbot-core-0.2/src/Network/Haskbot/Incoming.hs | mit | 3,402 | 0 | 17 | 770 | 897 | 485 | 412 | 72 | 2 |
module Utils where
import Types
yieldMaybe :: (Monad m) => Maybe b -> Proxy a' a () b m ()
yieldMaybe Nothing = return ()
yieldMaybe (Just a) = yield a
fstPicker :: Monad m => Pipe (a, b) a m ()
fstPicker = forever $ do
(a, _) <- await
yield a
sndPicker :: Monad m => Pipe (a, b) b m ()
sndPicker =... | NorfairKing/hess | src/Utils.hs | mit | 366 | 0 | 9 | 105 | 189 | 96 | 93 | 13 | 1 |
module Main where
import Lib
main :: IO ()
main = do
contents <- readFile "../data/product-bins.tsv"
let m = parseFile contents
putStrLn $ show m
| NashFP/pick-and-grin | mark_wutka+hakan+kate+haskell/app/Main.hs | mit | 160 | 0 | 10 | 39 | 54 | 26 | 28 | 7 | 1 |
{-
- Copyright (c) 2017 M. 'howlingmad' Neifer.
-
- Adapted from http://learnyouahaskell.com/input-and-output
-}
main = do
putStrLn "Hello, what's your name?"
name <- getLine
putStrLn ("Hey " ++ name ++ ", you rock!")
| mhneifer/haskell-examples | snippets/HelloYou.hs | mit | 241 | 0 | 10 | 57 | 37 | 17 | 20 | 4 | 1 |
module Main (main) where
import Primes
import Control.DeepSeq
import Control.Monad
import Control.Monad.Par
import Control.Concurrent
import Data.List
import Data.List.Split
import System.Environment
import System.IO
import System.Exit
import Data.Char
import Network
import GetOptions (Options(..), startOptions, optio... | Joss-Steward/Primality | main.hs | mit | 2,293 | 0 | 17 | 509 | 673 | 336 | 337 | 55 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleInstances #-}
module Galua.Reference
( AllocRef
, AllocType
, referenceId
, prettyRef
, addRefFinalizer
, referenceLoc
, newRefId
, newRefWithId
, newRef
, lookupRef
, newAllocRef
) where
import Data.Functor (void)
import Data... | GaloisInc/galua | galua-rts/src/Galua/Reference.hs | mit | 4,241 | 0 | 18 | 1,020 | 1,364 | 717 | 647 | 116 | 2 |
-- Banker's Plan
-- http://www.codewars.com/kata/56445c4755d0e45b8c00010a/
module Codewars.G964.Bankerplan where
fortune :: Int -> Double -> Int -> Int -> Double -> Bool
fortune f0 p c0 n i = (>=n) . length . takeWhile ((>0) . fst) . iterate f $ (f0, c0)
where i' = 1 + 0.01*i
p' = 1 + 0.01*p
... | gafiatulin/codewars | src/6 kyu/Bankerplan.hs | mit | 466 | 0 | 12 | 141 | 189 | 106 | 83 | 8 | 1 |
module Feature.ProxySpec where
import Network.Wai (Application)
import Test.Hspec hiding (pendingWith)
import Protolude
import SpecHelper
spec :: SpecWith Application
spec =
describe "GET / with proxy" $
it "returns a valid openapi spec with proxy" $
validateOpenApiResponse [("Accept", "application/open... | diogob/postgrest | test/Feature/ProxySpec.hs | mit | 332 | 0 | 8 | 54 | 72 | 41 | 31 | 10 | 1 |
module Y2017.M01.D04.Exercise where
import Codec.Compression.GZip
-- below imports availabe via 1HaskellADay git repository
import Data.SAIPE.USStates
import Graph.ScoreCard
import Y2016.M12.D21.Exercise
{--
Today we're going to go back an relook the SAIPE/poverty data posted at:
Y2016/M12/D15/SAIPESNC_15DEC16_11... | geophf/1HaskellADay | exercises/HAD/Y2017/M01/D04/Exercise.hs | mit | 791 | 0 | 7 | 118 | 65 | 42 | 23 | 7 | 1 |
module Language.Binal.CLI where
import Language.Binal.Types
import qualified Language.Binal.Util as Util
import qualified Language.Binal.PrettyPrint as PP
import qualified Language.Binal.Verifier as V
checkAST :: AST -> IO (Maybe TypedAST)
checkAST ast = do
case V.examineForms ast of
[] -> do
ca... | pasberth/binal1 | Language/Binal/CLI.hs | mit | 1,895 | 0 | 24 | 466 | 749 | 368 | 381 | 48 | 4 |
module ConsoleChess.Utils where
takeUntil :: (a -> Bool) -> [a] -> [a]
takeUntil _ [] = []
takeUntil p (x:xs) = x : if p x then []
else takeUntil p xs
-- | TakeUntil with an other predicate (`hard` constraint) that doesn't take the last element
takeUntilWithHard :: (a -> Bool) -> (a ->... | RomainGehrig/ConsoleChess | src/ConsoleChess/Utils.hs | mit | 587 | 0 | 9 | 219 | 198 | 107 | 91 | 10 | 3 |
module Sieve where
import Data.Array.IO
import qualified Data.Vector as V
sieve lim = do arr <- newArray (1,lim) 0 :: IO (IOArray Int Int)
ars <- iter 1 lim arr
sums <- outer 1 lim ars 0
print sums
where iter i j refs
| i == j = do ret... | zeniuseducation/poly-euler | Alfa/ml/sieve.hs | epl-1.0 | 1,477 | 0 | 15 | 824 | 483 | 226 | 257 | 29 | 1 |
module H09 where
empacar (Eq a) | dmunguia/H-99 | src/H09.hs | gpl-2.0 | 36 | 0 | 7 | 10 | 16 | 8 | 8 | -1 | -1 |
{-|
Module : Bench
Description : Benchmark of Multilinear library
Copyright : (c) Artur M. Brodzki, 2018
License : BSD3
Maintainer : artur@brodzki.org
Stability : experimental
Portability : Windows/POSIX
-}
module Main (
main
) where
import Control.DeepSeq
import Multilinear.Cla... | ArturB/Multilinear | benchmark/multicore/profile/Bench.hs | gpl-3.0 | 725 | 0 | 13 | 166 | 173 | 92 | 81 | 12 | 1 |
import Control.Concurrent
import Control.Monad
import System.Process
main :: IO b
main = do
void $ forkIO $ schedule 1 $ echo "frequent process"
void $ forkIO $ schedule 3 $ slow "less frequent..."
void $ forkIO $ schedule 10 ls
forever $ threadDelay 1000
where
schedule :: Int -> IO a -> IO ()
... | mattraibert/hron | Main.hs | gpl-3.0 | 770 | 0 | 12 | 201 | 334 | 161 | 173 | 24 | 1 |
module DigitSolve (firstPrime, isPrime, eulerApprox, toDecimalString,
findDigitSum, digitSum) where
import Data.Ratio
import Data.Char
{-
Returns the first prime number in the given string which has
the given number of digits.
@param input the string to parse for prime numbers
@param digits the number of digi... | faf0/DigitSolve | src/DigitSolve.hs | gpl-3.0 | 4,571 | 0 | 14 | 1,196 | 946 | 485 | 461 | 62 | 3 |
module System.DevUtils.MySQL.Include (
) where
| adarqui/DevUtils-MySQL | src/System/DevUtils/MySQL/Include.hs | gpl-3.0 | 47 | 0 | 3 | 5 | 11 | 8 | 3 | 1 | 0 |
{-# LANGUAGE NoMonomorphismRestriction, ViewPatterns #-}
import Codec.Rga.Parser
import Data.Vect.Double hiding((.*))
import EdgeCentered
import Test.QuickCheck
import Data.Map as M
import MathUtil
import Blender
import Latexable
import Triangulation
import VerboseDD
import PrettyUtil
import ExampleTriangulations
tr ... | DanielSchuessler/hstri | bin/example_haken.hs | gpl-3.0 | 1,258 | 0 | 14 | 273 | 255 | 144 | 111 | 26 | 1 |
{-# LANGUAGE NoImplicitPrelude, TemplateHaskell, DeriveFunctor, DeriveGeneric, FlexibleContexts, RecordWildCards, LambdaCase, PatternGuards #-}
module Graphics.UI.Bottle.EventMap
( KeyEvent(..)
, InputDoc, Subtitle, Doc(..), docStrs
, MaybeWantsClipboard(..)
, EventMap, lookup, emTickHandlers
, emDo... | da-x/lamdu | bottlelib/Graphics/UI/Bottle/EventMap.hs | gpl-3.0 | 12,395 | 0 | 15 | 3,039 | 3,811 | 1,942 | 1,869 | -1 | -1 |
-- Category Module
-- By Gregory W. Schwartz
{- | Collects all functions pertaining to the categorization of nucleotides
- or amino acids
-}
module Data.Fasta.Category where
-- Algebraic
data Hydrophobicity = Hydrophobic | Neutral | Hydrophilic
deriving (Eq, Ord, Read, Show)
-- | Returns the h... | GregorySchwartz/fasta | src/Data/Fasta/Category.hs | gpl-3.0 | 629 | 0 | 8 | 146 | 136 | 73 | 63 | 9 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-iam/gen/Network/AWS/IAM/CreateSAMLProvider.hs | mpl-2.0 | 6,558 | 0 | 13 | 1,211 | 655 | 405 | 250 | 83 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.PubSub.Type... | rueshyna/gogol | gogol-pubsub/gen/Network/Google/PubSub/Types/Product.hs | mpl-2.0 | 41,084 | 0 | 14 | 9,226 | 6,112 | 3,546 | 2,566 | 683 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.DoubleClickSearch
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mo... | brendanhay/gogol | gogol-doubleclick-search/gen/Network/Google/DoubleClickSearch.hs | mpl-2.0 | 6,703 | 0 | 12 | 1,447 | 719 | 513 | 206 | 180 | 0 |
{-# LANGUAGE TypeFamilies, OverloadedStrings #-}
module Model.Notification.Types
( module Model.Notification.Notice
, Notification(..)
, blankNotification
) where
import Model.Time
import Model.Id.Types
import Model.Kind
import Model.Party
import Model.Volume.Types
import Model.Container.Types
import Model.Seg... | databrary/databrary | src/Model/Notification/Types.hs | agpl-3.0 | 1,898 | 0 | 11 | 289 | 401 | 241 | 160 | 60 | 1 |
{-# LANGUAGE TupleSections #-}
module Interleave where
import Control.Arrow ((>>>))
-- >>> mkVarNumsPerShard [1,3,5]
-- [[1],[1,2,3],[1,2,3,4,5]]
mkVarNumsPerShard :: [Int] -> [[Int]]
mkVarNumsPerShard = map (\x -> [1..x])
-- >>> associateCharPerShard [[1],[1,2,3],[1,2,3,4,5]]
-- [('a',[1]),('b',[1,2,3]),('c',[1,2... | haroldcarr/learn-haskell-coq-ml-etc | haskell/playpen/misc/src/Interleave.hs | unlicense | 3,160 | 0 | 10 | 381 | 459 | 268 | 191 | 24 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE LiberalTypeSynonyms #-}
{-|
Grants access to the internal parts of ringlike structures, allowing
the circumvention of the static type checks and the queryi... | jtapolczai/algebra | Ringlike/Internal.hs | apache-2.0 | 26,974 | 0 | 13 | 5,539 | 6,029 | 3,177 | 2,852 | -1 | -1 |
quicksort :: (Ord a) => [a] -> [a]
quicksort [] = []
quicksort [x] = [x]
quicksort (x:xs) =
let smallerSorted = quicksort [ a | a <- xs, a <= x]
biggerSorted = quicksort [a | a <- xs, a > x]
in smallerSorted ++ [x] ++ biggerSorted
| Oscarzhao/haskell | learnyouahaskell/quicksort.hs | apache-2.0 | 248 | 0 | 12 | 66 | 137 | 72 | 65 | 7 | 1 |
module HelperSequences.A051516Spec (main, spec) where
import Test.Hspec
import HelperSequences.A051516 (a051516)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A051516" $
it "correctly computes the first 20 elements" $
take 20 (map a051516 [1..]) `shouldBe` expectedValue where
expectedValue... | peterokagey/haskellOEIS | test/HelperSequences/A051516Spec.hs | apache-2.0 | 365 | 0 | 10 | 59 | 160 | 95 | 65 | 10 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Data.MInfo.Utils where
import Data.ByteString.Lazy.Builder
import Data.Monoid ( mappend, Monoid )
import Data.Time
import Numeric ( showGFloat )
getCurrentYear :: IO Integer
getCurrentYear = do
(year, _, _) <- fmap (toGregorian . utctDay) getCurrentTime
return year
... | kongo2002/minfo | Data/MInfo/Utils.hs | apache-2.0 | 878 | 0 | 11 | 208 | 338 | 177 | 161 | 29 | 1 |
import Control.Monad
import Data.Aeson
import Data.ByteString.Internal
import Data.ByteString.Lazy
import Data.String
import Data.Text
import qualified Data.HashMap.Strict as DHS
import Network.HTTP
import System.Environment
import Text.Pandoc
main :: IO()
main = do
args <- getArgs
let queryString = "http:/... | CattleProdigy/define | define.hs | apache-2.0 | 1,555 | 0 | 22 | 314 | 417 | 211 | 206 | 35 | 2 |
module GS
where
divides :: Integer -> Integer -> Bool
divides d n = rem n d == 0
ld :: Integer -> Integer
ld n = ldf 2 n
ldf :: Integer -> Integer -> Integer
ldf k n | divides k n = k
| k^2 > n = n
| otherwise = ldf (k+1) n
prime0 :: Integer -> Bool
prime0 n | n < 1 = error "not a ... | bartolkaruza/software-testing-2014-group-W1 | week1/week_1_group_w1/GS.hs | apache-2.0 | 1,820 | 0 | 9 | 596 | 957 | 479 | 478 | 64 | 1 |
{-# LANGUAGE TemplateHaskell, QuasiQuotes, OverloadedStrings, NoMonomorphismRestriction #-}
module Handler.Profile where
import Control.Applicative((<$>),(<*>))
import Control.Monad(when, unless)
import Data.Maybe(fromMaybe)
import Data.Text(Text)
import qualified Data.Text as Text
import Data.Text.Lazy(toStrict)
impo... | chetant/bioSpace | Handler/Profile.hs | bsd-2-clause | 12,430 | 0 | 22 | 3,923 | 3,273 | 1,613 | 1,660 | 235 | 4 |
module Data.Color where
import Data.Colour.CIE
import Data.Colour.CIE.Illuminant (d65)
import Data.Colour.SRGB(sRGB)
import Diagrams.Prelude(blue, green, red)
type ColorValue = Colour Double
-- More-efficient symbols, for faster comparison
data ColorCode = Red | Green | Blue
... | misterbeebee/calisson-hs | src/Data/Color.hs | bsd-3-clause | 634 | 0 | 9 | 142 | 193 | 108 | 85 | 13 | 1 |
module Main where
import HS
import HSC
main = do
putStrLn $ "hsTest = " ++ show hsTest
putStrLn $ "hscTest = " ++ show hscTest
| ntc2/cabal-hsc2hs-bug | bug/Main.hs | bsd-3-clause | 134 | 0 | 8 | 33 | 43 | 22 | 21 | 6 | 1 |
module Rebalancer
( initRebalancer
, runRebalancer
, decideRebalance
, readTargetBalance
, RebalancerHandle
, RebalancerLog(..)
, RebalancerAction(..)
) where
import Control.Applicative
import Control.Concurrent
import Control.Error
import Control.Monad
import Control.Monad.IO.Class
imp... | javgh/bridgewalker | src/Rebalancer.hs | bsd-3-clause | 8,392 | 0 | 22 | 2,861 | 1,902 | 945 | 957 | 170 | 7 |
{-# LANGUAGE DefaultSignatures, DeriveGeneric #-}
---------------------------------------------------------
-- Module : Network.LifeRaft.Raft.Internal.Types
-- Copyright : (c) 2015 Yahoo, Inc.
-- License : BSD3
-- Maintainer : Dennis J. McWherter, Jr. (dennis@deathbytape.com)
-- Stability : Experimental
-... | DeathByTape/LifeRaft | src/Network/LifeRaft/Raft/Internal/Types.hs | bsd-3-clause | 3,295 | 0 | 12 | 1,022 | 640 | 411 | 229 | 61 | 0 |
{-# OPTIONS_GHC -fno-cse -fno-warn-orphans #-}
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
-----------------------------------------------------------------------------
--
-- Monadery code used in InteractiveUI
--
-- (c) The GHC Team 2005-2006
--
----------------------------------------------------------... | hvr/ghci-ng | ghc/GhciMonad.hs | bsd-3-clause | 14,042 | 0 | 20 | 3,709 | 3,544 | 1,854 | 1,690 | -1 | -1 |
-- | Generate arbitrary input strings for a grammar and see that it is
-- able to parse them.
module Data.Parser.Grempa.Test(prop_parser) where
import Control.Applicative
import qualified Control.Arrow as A
import Data.Dynamic
import Data.List
import Data.Maybe
import Test.QuickCheck
import qualified Data.Parser.Gr... | ollef/Grempa | Data/Parser/Grempa/Test.hs | bsd-3-clause | 3,375 | 0 | 17 | 935 | 957 | 517 | 440 | 51 | 2 |
{-# LANGUAGE DeriveDataTypeable, MultiParamTypeClasses, TemplateHaskell, FlexibleContexts,
FunctionalDependencies, GeneralizedNewtypeDeriving, TypeSynonymInstances, FlexibleInstances,
UndecidableInstances, TypeFamilies #-}
module Common.Profile.Types where
import Control.Monad.Reader
import Control.Monad.Sta... | ojw/admin-and-dev | src/Common/Profile/Types.hs | bsd-3-clause | 2,031 | 0 | 8 | 325 | 550 | 302 | 248 | 47 | 1 |
module AST.Meta where
import Text.Megaparsec(unPos, SourcePos(..))
import Data.Maybe
import Text.Printf
import Types
data CaptureStatus = Captured
| Free
deriving (Eq, Show)
data MetaInfo = Closure {metaId :: String}
| Async {metaId :: String}
| Me... | parapluu/encore | src/ir/AST/Meta.hs | bsd-3-clause | 3,253 | 0 | 11 | 913 | 1,073 | 567 | 506 | -1 | -1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[FloatOut]{Float bindings outwards (towards the top level)}
``Long-distance'' floating of bindings towards the top level.
-}
{-# LANGUAGE CPP #-}
module FloatOut ( floatOutwards ) where
import GhcPrelude
import CoreSyn
import CoreUtils
import Mk... | sdiehl/ghc | compiler/simplCore/FloatOut.hs | bsd-3-clause | 29,198 | 1 | 23 | 8,255 | 5,065 | 2,725 | 2,340 | 314 | 5 |
-----------------------------------------------------------------------------
-- |
-- Module : TestSuite.Uninterpreted.Sort
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : erkokl@gmail.com
-- Stability : experimental
--
-- Test suite for uninterpreted sorts
-------------------------... | josefs/sbv | SBVTestSuite/TestSuite/Uninterpreted/Sort.hs | bsd-3-clause | 1,265 | 0 | 13 | 250 | 308 | 167 | 141 | 26 | 1 |
module P3 where
elementAt :: [a] -> Integer -> a
elementAt (x:_) 1 = x
elementAt (_:xs) i = elementAt xs (i - 1)
elementAt _ i =
error $ "can't determine element " ++ (show i) ++ " of list"
| bradb/99problems | src/p3.hs | bsd-3-clause | 193 | 0 | 8 | 44 | 94 | 50 | 44 | 6 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RecordWildCards #-}
module Node.Dwi
(Dwi(..)
,rules)
where
import Data.List (intercalate)
import Data.Maybe (fromMaybe)
import FSL ... | reckbo/ppl | pipeline-lib/Node/Dwi.hs | bsd-3-clause | 4,409 | 0 | 24 | 1,747 | 1,215 | 649 | 566 | 97 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANG... | bergey/plots | src/Plots/Axis/Render.hs | bsd-3-clause | 22,521 | 1 | 21 | 7,452 | 4,549 | 2,474 | 2,075 | -1 | -1 |
{-# LANGUAGE MultiWayIf #-}
module Separate.Physics
( separateRooms
, separate
) where
import System.Random
import Linear.Affine
import Linear.V2
import Data.List (foldl', sortBy, scanl')
import Data.Maybe (mapMaybe, fromMaybe)
import Safe (lastMay)
import Type
import Conf
type Room = Rect Double
... | masatoko/masonry | src/Separate/Physics.hs | bsd-3-clause | 2,473 | 0 | 14 | 921 | 1,068 | 555 | 513 | 61 | 6 |
{-# LANGUAGE CPP #-}
#if __GLASGOW_HASKELL__ >= 709
{-# LANGUAGE AutoDeriveTypeable #-}
#endif
-----------------------------------------------------------------------------
-- |
-- Module : Data.Functor.Classes
-- Copyright : (c) Ross Paterson 2013
-- License : BSD-style (see the file LICENSE)
--
-- Maint... | DavidAlphaFox/ghc | libraries/transformers/Data/Functor/Classes.hs | bsd-3-clause | 4,896 | 0 | 12 | 1,006 | 1,340 | 728 | 612 | 67 | 1 |
----------------------------------------------------------------------------
-- |
-- Module : Control.Parallel.Strategies.Ext
-- Copyright : (c) Sergey Vinokurov 2018
-- License : BSD3-style (see LICENSE)
-- Maintainer : serg.foo@gmail.com
----------------------------------------------------------------... | sergv/tags-server | src/Control/Parallel/Strategies/Ext.hs | bsd-3-clause | 1,228 | 0 | 11 | 289 | 305 | 165 | 140 | 23 | 4 |
module IrcColor where
type StyleCmd = String
type ColorCode = String
bold, underlined, italic, reset :: StyleCmd
bold = "\x02"
underlined = "\x1F"
italic = "\x16"
reset = "\x0F"
white, black, blue, green, red, maroon, purple, orange, yellow, lightGreen, teal, cyan, lightBlue, pink, grey, lightGrey :: ColorCode
white... | idris-hackers/idris-bot | src/IrcColor.hs | bsd-3-clause | 803 | 0 | 7 | 150 | 261 | 164 | 97 | 32 | 1 |
{-# Language BangPatterns, OverloadedStrings, TransformListComp #-}
{-|
Module : Client.View.Help
Description : Renderer for help lines
Copyright : (c) Eric Mertens, 2016
License : ISC
Maintainer : emertens@gmail.com
This module provides the rendering used for the @/help@ command.
-}
module Client.View.H... | glguy/irc-core | src/Client/View/Help.hs | isc | 5,429 | 0 | 18 | 1,572 | 1,063 | 575 | 488 | 111 | 4 |
{-# LANGUAGE ApplicativeDo #-}
module Pos.Infra.Statistics.Ekg
( EkgParams (..)
, ekgParamsOption
) where
import qualified Options.Applicative as Opt
import Pos.Core.NetworkAddress (NetworkAddress, addrParser)
import Pos.Util.OptParse (fromParsec)
import Universum
d... | input-output-hk/pos-haskell-prototype | infra/src/Pos/Infra/Statistics/Ekg.hs | mit | 820 | 0 | 12 | 203 | 195 | 109 | 86 | 27 | 1 |
-- |
-- Module : Language.C.Parser.Monad
-- Copyright : (c) 2006-2011 Harvard University
-- (c) 2011-2013 Geoffrey Mainland
-- License : BSD-style
-- Maintainer : mainland@cs.drexel.edu
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUA... | flowbox-public/language-c-quote | Language/C/Parser/Monad.hs | bsd-3-clause | 11,283 | 0 | 16 | 3,226 | 3,691 | 1,938 | 1,753 | 356 | 6 |
module Network.MQTT.GatewaySpec (spec, debugTests) where
import Control.Concurrent (forkIO, killThread)
import Control.Exception (bracket)
import Control.Monad (forM_)
import Control.Monad.Cont (liftIO)
import Control.Monad.Reader (ReaderT, asks, runReaderT)
import q... | rasendubi/arachne | test/Network/MQTT/GatewaySpec.hs | bsd-3-clause | 12,450 | 0 | 29 | 4,406 | 2,761 | 1,417 | 1,344 | 248 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
module Test.Foundation.Storable
( testForeignStorableRefs
, testPropertyStorable, testPropertyStorableFixed
) where
import... | vincenthz/hs-foundation | foundation/tests/Test/Foundation/Storable.hs | bsd-3-clause | 6,074 | 0 | 14 | 1,774 | 1,314 | 686 | 628 | 93 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE TypeOperators #-}
-----------------------------------------------------------------------... | sdiehl/ghc | libraries/base/Data/Typeable.hs | bsd-3-clause | 8,045 | 0 | 12 | 1,810 | 1,832 | 1,051 | 781 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : $Header$
Description : embedding from CASL (CFOL) to Isabelle-HOL
Copyright : (c) Till Mossakowski and Uni Bremen 2003-2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Sta... | mariefarrell/Hets | Comorphisms/CFOL2IsabelleHOL.hs | gpl-2.0 | 11,601 | 0 | 20 | 2,879 | 3,577 | 1,869 | 1,708 | 237 | 5 |
<?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="fa-IR">
<title>Server-Sent Events | ZAP Extension</title>
<maps>
<homeID>top</homeID>
... | 0xkasun/security-tools | src/org/zaproxy/zap/extension/sse/resources/help_fa_IR/helpset_fa_IR.hs | apache-2.0 | 989 | 84 | 65 | 160 | 415 | 210 | 205 | -1 | -1 |
module Propellor.Property.Service where
import Propellor
import Utility.SafeCommand
type ServiceName = String
-- | Ensures that a service is running. Does not ensure that
-- any package providing that service is installed. See
-- Apt.serviceInstalledRunning
--
-- Note that due to the general poor state of init scrip... | avengerpenguin/propellor | src/Propellor/Property/Service.hs | bsd-2-clause | 942 | 2 | 15 | 160 | 188 | 99 | 89 | 15 | 1 |
-- |The Core module exports all serializers and parsers,
-- types, and query functions of the library.
module Data.RDF (
RDF(..),
RdfSerializer(..),
RdfParser(..),
-- * Export types and query functions
module Data.RDF.Types,
module Data.RDF.Query,
-- * Export RDF type class instances
module Data.RD... | ddssff/rdf4h | src/Data/RDF.hs | bsd-3-clause | 990 | 0 | 5 | 127 | 181 | 130 | 51 | 25 | 0 |
-- Copyright (c) Microsoft. All rights reserved.
-- Licensed under the MIT license. See LICENSE file in the project root for full license information.
{-# LANGUAGE QuasiQuotes, OverloadedStrings, RecordWildCards #-}
module Language.Bond.Codegen.Cpp.Types_cpp (types_cpp) where
import Data.Monoid
import Prelude
import... | jdubrule/bond | compiler/src/Language/Bond/Codegen/Cpp/Types_cpp.hs | mit | 4,085 | 0 | 11 | 1,091 | 235 | 149 | 86 | -1 | -1 |
{-# LANGUAGE GADTs #-}
module OpenCog.Lib where
import OpenCog.AtomSpace
import Foreign.C
import Foreign.Ptr
foreign export ccall "someFunc"
c_func :: Ptr AtomSpaceRef -> Handle -> IO (Handle)
c_func = exportFunction someFunc
someFunc :: Atom -> AtomSpace Atom
someFunc a = pure a
| yantrabuddhi/atomspace | tests/haskell/executionTestLib/src/OpenCog/Lib.hs | agpl-3.0 | 289 | 0 | 9 | 49 | 82 | 44 | 38 | 10 | 1 |
{-# LANGUAGE CPP, GADTs, RankNTypes, ScopedTypeVariables, TypeFamilies #-}
#if __GLASGOW_HASKELL__ >= 709
{-# LANGUAGE Safe #-}
#elif __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Trustworthy #-}
#endif
-- | Utilities for clients of Hoopl, not used internally.
module Compiler.Hoopl.XUtil
(
-- * Utilities for clients... | hvr/hoopl | src/Compiler/Hoopl/XUtil.hs | bsd-3-clause | 6,905 | 0 | 15 | 1,471 | 1,696 | 893 | 803 | 77 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE TemplateHaskell #-}
module Snap.Snaplet.Internal.RST.Tests
( tests ) where
import Control.Applicative
import Control.Monad.Identity
import Control.Monad.Reader
import ... | snapframework/snap | test/suite/Snap/Snaplet/Internal/RST/Tests.hs | bsd-3-clause | 1,705 | 0 | 11 | 408 | 508 | 282 | 226 | 49 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE BangPatterns #-}
module Aws.Aws
( -- * Logging
LogLevel(..)
, Logger
, defaultLog
-- * Configuration
, Configuration(..)
, baseConfiguration
, dbgConfiguration
-- * Transacti... | romanb/aws | Aws/Aws.hs | bsd-3-clause | 12,559 | 0 | 16 | 3,201 | 2,350 | 1,247 | 1,103 | 198 | 3 |
module T15445a where
{-# SPECIALIZE plusTwoRec :: [Int] -> [Int] #-}
plusTwoRec :: Num a => [a] -> [a]
plusTwoRec [] = []
plusTwoRec (x:xs) = x+2:plusTwoRec xs
plusTwoRec' :: Num a => [a] -> [a]
plusTwoRec' [] = []
plusTwoRec' (x:xs) = x+2:plusTwoRec' xs
| sdiehl/ghc | testsuite/tests/simplCore/should_compile/T15445a.hs | bsd-3-clause | 257 | 0 | 7 | 47 | 125 | 66 | 59 | 8 | 1 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="fr-FR">
<title>Port Scan | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref lo... | thc202/zap-extensions | addOns/zest/src/main/javahelp/org/zaproxy/zap/extension/zest/resources/help_fr_FR/helpset_fr_FR.hs | apache-2.0 | 975 | 78 | 66 | 159 | 413 | 209 | 204 | -1 | -1 |
{-# LANGUAGE DeriveAnyClass #-}
module T14916 where
import Data.Coerce
import Data.Typeable
data A = MkA deriving ((~) A)
data B = MkB deriving (Coercible B)
| sdiehl/ghc | testsuite/tests/deriving/should_fail/T14916.hs | bsd-3-clause | 160 | 0 | 6 | 27 | 49 | 30 | 19 | -1 | -1 |
module C where
import A
import B
x = A (B x)
| mydaum/cabal | cabal-testsuite/PackageTests/Backpack/Includes4/indef/C.hs | bsd-3-clause | 45 | 0 | 7 | 12 | 24 | 14 | 10 | 4 | 1 |
--------------------------------------------------------------------------------
--
-- Module : Brainfuck
-- Copyright : MIT
-- License : AllRightsReserved
--
-- Maintainer : sukhmel @ https://github.com/sukhmel
-- Stability :
-- Portability :
--
-- Description : Brainfuck interpreter, emulating ... | sukhmel/experiments.haskell | brainfuck/Brainfuck.hs | mit | 10,525 | 0 | 17 | 4,833 | 2,056 | 1,102 | 954 | 153 | 14 |
module Halt.Main where
import Halt.AST
import Halt.Parsing.Common
import Halt.Parsing.Elements
import Halt.Parsing.Parse
import Halt.Parsing.Indent
import Halt.Printing.Pretty
| LukaHorvat/Halt | src/Halt/Main.hs | mit | 177 | 0 | 4 | 16 | 41 | 27 | 14 | 7 | 0 |
module Main where
import System.IO
import System.Cmd (system)
import GHC.IO.Exception (ExitCode(..) )
import Lexer (alexScanTokens, Token (..))
import Parser (parse)
import Syntax
import Semantics (eval_exp)
import Typecheck (typecheck_exp)
import qualified Memory as M
import qualified Env as E
grabLines' tokens' 0 ... | gmcabrita/icl-interpreter | Main.hs | mit | 1,176 | 0 | 15 | 364 | 387 | 201 | 186 | 51 | 3 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
module Handler.Hoogle where
import qualified Data.Text ... | fpco/stackage-server | src/Handler/Hoogle.hs | mit | 7,745 | 0 | 23 | 2,381 | 1,929 | 980 | 949 | -1 | -1 |
module KAT.AES
( katAES
, katAES128
, katAES192
, katAES256
) where
import KAT.Utils
import HexUtils
katAES, katAES128, katAES192, katAES256 :: KATs
katAES = concatKATs
[ katAES128
, katAES192
, katAES256
]
katAES128 = concatKATs
[ katAES128Nettle
, katAES128NIST
]
katAES192 = concatKATs
[ katAES192Nett... | stbuehler/haskell-nettle | src/Tests/KAT/AES.hs | mit | 3,753 | 146 | 10 | 555 | 713 | 387 | 326 | 87 | 1 |
module Main
where
import Data
import Lib
import System.IO
import System.Random
main :: IO ()
main = do
gen <- newStdGen
let filledInGrid = fillInBlanks gen grid
game = makeGame filledInGrid languages
hSetBuffering stdout NoBuffering
playTurn game... | timtian090/Playground | Haskell/words/app/Main.hs | mit | 572 | 0 | 10 | 171 | 160 | 76 | 84 | 19 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
module Mixpanel
( mixpanel
, defaultConfig
, MixpanelConfig(..)
, export
) where
import Network.Wreq
import Data.Aeson.Types
import Data.Aeson
import Data.Map.Strict as Map
import Data.Text as Text
import qualified Data.Text.Lazy as LazyText(lines)... | anthony-coble/Mixpanel | Mixpanel.hs | mit | 2,970 | 0 | 19 | 713 | 803 | 430 | 373 | 61 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.