code
stringlengths
2
1.05M
repo_name
stringlengths
5
101
path
stringlengths
4
991
language
stringclasses
3 values
license
stringclasses
5 values
size
int64
2
1.05M
{-# LANGUAGE OverloadedStrings #-} module Network.HTTP.Nano( module Network.HTTP.Nano.Types, Network.HTTP.Conduit.Request, tlsManager, mkJSONData, http, http', httpS, httpSJSON, httpJSON, buildReq, addHeaders ) where import Network.HTTP.Nano.Types import Control.Exception ...
ralphmorton/nano-http
src/Network/HTTP/Nano.hs
Haskell
bsd-3-clause
3,966
{-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-} -- | This module is intended to be imported @qualified@, for example: -- -- > import qualified Test.Tasty.Laws.Monad as Monad -- module Test.Tasty.Laws.Monad ( testUnit , test , testExhaustive ) where #if !MIN_VERSION_b...
jdnavarro/tasty-laws
Test/Tasty/Laws/Monad.hs
Haskell
bsd-3-clause
2,144
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE CPP #-} -- | -- Module : Auth.Register -- Copyright : (C) 2015 Ricky Elrod -- License : MIT (see LICENSE file) -- Maintainer : (C) Ricky Elrod <ricky@elrod.me> -- Stability : experimental -- -- Functions and handlers for performing registration. module Auth.Register wher...
meoblast001/quotum-snap
src/Auth/Register.hs
Haskell
mit
1,231
{-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE DeriveLift #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE PatternSynonyms #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeApplications #-} module Database.Persist.Types.Base ( module Database.Persist.Ty...
paul-rouse/persistent
persistent/Database/Persist/Types/Base.hs
Haskell
mit
23,580
{-# LANGUAGE ExistentialQuantification,DeriveDataTypeable #-} -- | This module provides typed channels, an alternative -- approach to interprocess messaging. Typed channels -- can be used in combination with or instead of the -- the untyped channels available in the "Remote.Process" -- module via 'send'. module Remote...
jepst/CloudHaskell
Remote/Channel.hs
Haskell
bsd-3-clause
8,558
{- (c) The AQUA Project, Glasgow University, 1993-1998 \section[Simplify]{The main module of the simplifier} -} {-# LANGUAGE CPP #-} module Eta.SimplCore.Simplify ( simplTopBinds, simplExpr, simplRules ) where #include "HsVersions.h" import Eta.Main.DynFlags import Eta.SimplCore.SimplMonad import Eta.Types.Type hi...
rahulmutt/ghcvm
compiler/Eta/SimplCore/Simplify.hs
Haskell
bsd-3-clause
123,358
-------------------------------------------------------------------------------- -- Copyright © 2011 National Institute of Aerospace / Galois, Inc. -------------------------------------------------------------------------------- -- | Main import module for the front-end lanugage. {-# LANGUAGE Safe #-} module Copilot...
niswegmann/copilot-language
src/Copilot.hs
Haskell
bsd-3-clause
467
{-| Module : Main Copyright : (c) Henry J. Wylde, 2015 License : BSD3 Maintainer : hjwylde@gmail.com -} module Main ( main ) where import Control.Monad import Qux.Test.Integration import Qux.Test.Steps import System.Directory import System.FilePath import Test.Tasty import Test.Tasty.Golden main ...
qux-lang/qux
test/build/app/Main.hs
Haskell
bsd-3-clause
1,004
{-# LANGUAGE ScopedTypeVariables, TypeSynonymInstances, FlexibleInstances, OverlappingInstances, IncoherentInstances #-} -- | Pretty printing utils. -- Taken from BuildBox 2.1.0.1: -- http://hackage.haskell.org/packages/archive/buildbox/2.1.0.1/doc/html/BuildBox-Pretty.html module Pretty ( module Te...
mainland/dph
dph-event-seer/src/Pretty.hs
Haskell
bsd-3-clause
5,727
{-# LANGUAGE TypeFamilies, DataKinds, UndecidableInstances #-} module T6018failclosed1 where -- Id is injective... type family IdClosed a = result | result -> a where IdClosed a = a -- ...but despite that we disallow a call to Id type family IdProxyClosed a = r | r -> a where IdProxyClosed a = IdClosed a
acowley/ghc
testsuite/tests/typecheck/should_fail/T6018failclosed1.hs
Haskell
bsd-3-clause
317
{-| Module : Data.OrgMode.Parse.Types Copyright : © 2014 Parnell Springmeyer License : All Rights Reserved Maintainer : Parnell Springmeyer <parnell@digitalmentat.com> Stability : experimental Types and utility functions. -} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE GeneralizedNewtyp...
imalsogreg/orgmode-parse
src/Data/OrgMode/Parse/Types.hs
Haskell
bsd-3-clause
6,430
{-# LANGUAGE TypeOperators #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE ScopedTypeVariables #-} module Int where import Language.VHDL (Mode(..)) import Language.Embedded.Hardware import Control.Monad.Identity import Control.Monad.Operational.Higher import Data.ALaC...
markus-git/imperative-edsl-vhdl
examples/Int.hs
Haskell
bsd-3-clause
1,630
{-# LINE 1 "Database/MySQL/Base/C.hsc" #-} {-# LANGUAGE CPP, EmptyDataDecls, ForeignFunctionInterface #-} {-# LINE 2 "Database/MySQL/Base/C.hsc" #-} -- | -- Module: Database.MySQL.Base.C -- Copyright: (c) 2011 MailRank, Inc. -- License: BSD3 -- Maintainer: Bryan O'Sullivan <bos@serpentine.com> -- Stability...
lhuang7/mysql
dist/dist-sandbox-bd9d9ce/build/Database/MySQL/Base/C.hs
Haskell
bsd-3-clause
9,473
module Import00003 where #if defined(__GLASGOW_HASKELL__) && __GLASGOW_HASKELL__ >= 708 import Data.Typeable (Typeable) #else import Data.Typeable (Typeable,Typeable1,mkTyCon3,mkTyConApp,typeOf) #endif
charleso/intellij-haskforce
tests/gold/parser/Import00003.hs
Haskell
apache-2.0
203
<?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="si-LK"> <title>Core Language Files | ZAP Extension</title> <maps> <homeID>top</homeID> ...
kingthorin/zap-extensions
addOns/coreLang/src/main/javahelp/org/zaproxy/zap/extension/coreLang/resources/help_si_LK/helpset_si_LK.hs
Haskell
apache-2.0
980
module TupleIn1 where f :: (a, ([Int], c)) -> ([Int], c) f (x, y@([], m)) = case y of y@(b_1, b_2) -> y f (x, y@([], m)) = y
kmate/HaRe
old/testing/introCase/TupleIn1AST.hs
Haskell
bsd-3-clause
146
{-# LANGUAGE CPP #-} #ifndef NO_NEWTYPE_DERIVING {-# LANGUAGE GeneralizedNewtypeDeriving #-} #endif -- | Types to help with testing polymorphic properties. -- -- Types 'A', 'B' and 'C' are @newtype@ wrappers around 'Integer' that -- implement 'Eq', 'Show', 'Arbitrary' and 'CoArbitrary'. Types -- 'OrdA', 'OrdB' and 'Ord...
beni55/quickcheck
Test/QuickCheck/Poly.hs
Haskell
bsd-3-clause
3,165
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeInType #-} module T11732a where import GHC.Generics data Proxy k (a :: k) deriving Generic1 data family ProxyFam (a :: y) (b :: z) data instance ProxyFam k (a :: k) deriving Generic1
ezyang/ghc
testsuite/tests/deriving/should_compile/T11732a.hs
Haskell
bsd-3-clause
264
{-# LANGUAGE ScopedTypeVariables #-} module T5371 where import Language.Haskell.TH f :: a -> Name f (x :: a) = ''a
urbanslug/ghc
testsuite/tests/quotes/T5721.hs
Haskell
bsd-3-clause
117
----------------------------------------------------------------------------- -- -- Module : PhysicalQuantities.Definitions -- Copyright : -- License : MIT -- -- Maintainer : - -- Stability : -- Portability : -- -- | -- {-# LANGUAGE MultiParamTypeClasses , FlexibleContexts , Con...
fehu/PhysicalQuantities
src/PhysicalQuantities/Definitions.hs
Haskell
mit
9,889
module GHCJS.DOM.RequestAnimationFrameCallback ( ) where
manyoo/ghcjs-dom
ghcjs-dom-webkit/src/GHCJS/DOM/RequestAnimationFrameCallback.hs
Haskell
mit
59
{-# LANGUAGE TypeFamilies #-} module Agent.PingPong.Role.SendResult where import AgentSystem.Generic import Agent.PingPong import qualified Agent.PingPong.Simple.SendResult as SendRes import Data.IORef -------------------------------------------------------------------------------- data PingRole = PingRole data Po...
fehu/h-agents
test/Agent/PingPong/Role/SendResult.hs
Haskell
mit
2,684
module Language.MSH.MethodTable where import qualified Data.Map as M import Language.Haskell.TH import Language.Haskell.TH.Syntax {- Methods -} data MethodTable = MkMethodTable { methodSigs :: M.Map String Dec, methodDefs :: M.Map String Dec } deriving Show emptyMethodTable :: MethodTable emptyMethodTa...
mbg/monadic-state-hierarchies
Language/MSH/MethodTable.hs
Haskell
mit
1,371
-- From http://decipheringmusictheory.com/?page_id=46 module Other.Harmonisation where import Mezzo v1 = start $ melody :| d :| g :| fs :< g :| a :^ bf :| a :| a :| a :| d' :| c' :| bf :| a :>> g v2 = start $ melody :| d :| ef :| d :| d :| d :| d :| cs :| d :| d :| ef :| d ...
DimaSamoz/mezzo
examples/src/Other/Harmonisation.hs
Haskell
mit
922
module MedicineSpec (main, spec) where import Test.Hspec import Medicine import Medicine.ParserSpec (parsedMedicine) import Text.ParserCombinators.Parsec (parse) sampleBuild = unlines [ "e => H" , "e => O" , "H => HO" , "H => OH" , "O => HH" , "" , "HOH" ...
corajr/adventofcode2015
19/test/MedicineSpec.hs
Haskell
mit
1,051
module YourProject where my_func = "This is my package!"
Azabuhs/YourProject
src/YourProject.hs
Haskell
mit
57
{-# LANGUAGE CPP #-} {- Math.hs - Point of switching between MathDirect and MathHmatrix - - Timothy A. Chagnon - CS 636 - Spring 2009 -} module Math ( #ifdef USING_HMATRIX module MathHmatrix, #else module MathDirect, #endif module MatInv ) where #ifdef USING_HMATRIX import MathHmatrix #else impor...
tchagnon/cs636-raytracer
a1/Math.hs
Haskell
apache-2.0
356
module Text.Pandoc.RPC where import Text.Pandoc import Text.Pandoc.Rpc.Protocol import Text.Pandoc.Rpc.Protocol.PandocRequest import Text.ProtocolBuffers.Basic import Text.ProtocolBuffers.WireMessage import qualified Text.Pandoc.Rpc.Protocol.PandocResponse as R import Data.ByteString.Lazy.Char8 hiding (putStrLn) impor...
aolshevskiy/pandoc-rpc
Text/Pandoc/RPC.hs
Haskell
apache-2.0
2,897
{-# LANGUAGE QuasiQuotes #-} ----------------------------------------------------------------------------- -- | -- Module : Application.HXournal.GUI.Menu -- Copyright : (c) 2011, 2012 Ian-Woo Kim -- -- License : BSD3 -- Maintainer : Ian-Woo Kim <ianwookim@gmail.com> -- Stability : experimental -- Portab...
wavewave/hxournal
lib/Application/HXournal/GUI/Menu.hs
Haskell
bsd-2-clause
34,087
{-# LANGUAGE PackageImports #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE PolyKinds #-} module Propellor.Property ( -- * Property combinators requires , before , onChange , onChangeFlagOnFail , flagFile , flagFile...
ArchiveTeam/glowing-computing-machine
src/Propellor/Property.hs
Haskell
bsd-2-clause
11,367
{-# LANGUAGE ScopedTypeVariables #-} {-| Module: HaskHOL.Lib.Meson Copyright: (c) Evan Austin 2015 LICENSE: BSD3 Maintainer: e.c.austin@gmail.com Stability: unstable Portability: unknown -} module HaskHOL.Lib.Meson ( tacGEN_MESON , tacASM_MESON , tacASM_MESON_NIL , tacMESON , ta...
ecaustin/haskhol-deductive
src/HaskHOL/Lib/Meson.hs
Haskell
bsd-2-clause
37,384
{-# LANGUAGE DeriveDataTypeable #-} module Propellor.Property.Ssh ( installed, restarted, PubKeyText, SshKeyType(..), -- * Daemon configuration sshdConfig, ConfigKeyword, setSshdConfigBool, setSshdConfig, RootLogin(..), permitRootLogin, passwordAuthentication, noPasswords, listenPort, -- * Host keys ra...
np/propellor
src/Propellor/Property/Ssh.hs
Haskell
bsd-2-clause
14,661
{-# LANGUAGE Haskell2010 #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE TypeOperators #-} module PromotedTypes where data RevList a = RNil | RevList a :> a data Pattern :: [*] -> * where Nil :: Pattern '[] Cons :: Maybe h -> Pattern t -> Pattern (h ': t) -...
haskell/haddock
html-test/src/PromotedTypes.hs
Haskell
bsd-2-clause
584
{-# LANGUAGE GADTs, TypeFamilies #-} module JS.Types where import Data.Monoid ((<>)) import Data.Text.Lazy.Builder (Builder, fromText) import Yesod.Core (GWidget, Route) import Data.Text (Text) import Control.Monad.Trans.RWS (RWST) import Data.Aeson (ToJSON) -- Javascript representation, tagged via phantom types. ne...
snoyberg/yesod-js
samples/ajax/JS/Types.hs
Haskell
bsd-2-clause
1,277
module Haddock.Interface.Rn ( rnDoc, rnHaddockModInfo ) where import Haddock.Types import RnEnv ( dataTcOccs ) import RdrName ( RdrName, gre_name, GlobalRdrEnv, lookupGRE_RdrName ) import Name ( Name ) import Outputable ( ppr, defaultUserStyle ) rnHaddockModInfo :: GlobalRdrEnv -> HaddockModInfo R...
nominolo/haddock2
src/Haddock/Interface/Rn.hs
Haskell
bsd-2-clause
2,106
{- Data/Singletons/TypeRepStar.hs (c) Richard Eisenberg 2012 eir@cis.upenn.edu This file contains the definitions for considering TypeRep to be the demotion of *. This is still highly experimental, so expect unusual results! -} {-# LANGUAGE RankNTypes, TypeFamilies, KindSignatures, FlexibleInstances, G...
jonsterling/singletons
Data/Singletons/TypeRepStar.hs
Haskell
bsd-3-clause
839
-- Copyright : (C) 2009 Corey O'Connor -- License : BSD-style (see the file LICENSE) {-# LANGUAGE UnboxedTuples #-} {-# LANGUAGE MagicHash #-} module Bind.Marshal.Action.Base where import Bind.Marshal.Prelude import qualified Prelude import Bind.Marshal.DataModel import Control.DeepSeq import Foreign...
coreyoconnor/bind-marshal
src/Bind/Marshal/Action/Base.hs
Haskell
bsd-3-clause
1,639
{-# LANGUAGE TemplateHaskell #-} module TH where import Data.Type.Equality import Language.Haskell.TH import Type triangle :: Int -> Int -> Int -> Q Exp triangle a b c = [|Refl :: Triangle $(intToNat a) $(intToNat b) $(intToNat c)|] where intToNat :: Int -> Q Type intToNat 0 = [t|Zero|] intToNat n =...
nkaretnikov/triangle-inequality
src/TH.hs
Haskell
bsd-3-clause
352
module Language.Brainfuck.Internals.GenericParser where import Prelude hiding (print, read) import Data.Maybe (catMaybes) import Text.ParserCombinators.Parsec import Language.Brainfuck.Internals.Instructions -- | Encapsulate a parser type GenericParser = Parser [Instr] -- | Record type containing symbols of Brainf...
remusao/Hodor
src/Language/Brainfuck/Internals/GenericParser.hs
Haskell
bsd-3-clause
1,523
module PivotalTrackerApi.Iteration ( Iteration , number , project_id , PivotalTrackerApi.Iteration.length , team_strength , stories , start , finish , velocity , kind ) where import PivotalTrackerApi.Base import PivotalTrackerApi.Story (Story) data Iteration = Iteration ...
diogob/pivotal-tracker-api
src/PivotalTrackerApi/Iteration.hs
Haskell
bsd-3-clause
791
{-# OPTIONS_HADDOCK show-extensions #-} {-| Module : $Header$ Copyright : (c) 2015 Swinburne Software Innovation Lab License : BSD3 Maintainer : Rhys Adams <rhysadams@swin.edu.au> Stability : unstable Portability : portable Functions for Eclogues API instance election. -} module Eclogues.APIElection (...
futufeld/eclogues
eclogues-impl/app/api/Eclogues/APIElection.hs
Haskell
bsd-3-clause
1,654
{-# LANGUAGE DeriveDataTypeable #-} module HipBot.AbsoluteURI where import Blaze.ByteString.Builder (toLazyByteString) import Control.Monad import qualified Data.Aeson as A import qualified Data.ByteString.Lazy.UTF8 as LB import Data.List (isSuffixOf) import Data.Maybe import Data.Monoid import Data.String import Dat...
purefn/hipbot
src/HipBot/AbsoluteURI.hs
Haskell
bsd-3-clause
1,604
module HipChat.Types.Rooms.GetAllRoomsResponse ( GetAllRoomsResponse(..) ) where data GetAllRoomsResponse = GetAllRoomsResponse
oswynb/hipchat-hs
lib/HipChat/Types/Rooms/GetAllRoomsResponse.hs
Haskell
bsd-3-clause
133
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE DeriveDataTypeable #-} -- | Versions for packages. module Stack.Types.Version (Version ,Cabal...
mietek/stack
src/Stack/Types/Version.hs
Haskell
bsd-3-clause
6,328
----------------------------------------------------------------------------------------- -- A Haskell port of GNU's getopt library -- -- Sven Panne <Sven.Panne@informatik.uni-muenchen.de> Oct. 1996 (small changes Dec. 1997) -- -- Two rather obscure features are missing: The Bash 2.0 non-option hack (if you don't -- al...
mwotton/ctkl
src/Text/CTK/GetOpt.hs
Haskell
bsd-3-clause
9,896
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE TemplateHaskell #-} module Model where import qualified Data.ByteString.Lazy as B import GHC.Generics (Generic) import Control.Lens import Data.Aeson import Data.Aeson.TH import Common -- -- Model -- type Model = [Step] data Step = Step { _nInpu...
notae/haskell-exercise
graphics/Model.hs
Haskell
bsd-3-clause
1,133
module Lev3 where import Data.Array import qualified Number.Peano.Inf as P mft :: String -> String -> Array (Int, Int) P.Nat mft f t = m where m = array bounds [ ((i, j), lev i j) | (i,j) <- range bounds ] bounds = ((0, 0), (length t, length f)) lev 0 0 = 0 lev 0 j = succ $ m ! (0 , pred j) lev...
sordina/mfug_levenshtein_difference_2016_07_07-
src/Lev3.hs
Haskell
bsd-3-clause
588
{-# LINE 1 "fptools\libraries\base\System\CPUTime.hsc" #-} ----------------------------------------------------------------------------- {-# LINE 2 "fptools\libraries\base\System\CPUTime.hsc" #-} -- | -- Module : System.CPUTime -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see ...
OS2World/DEV-UTIL-HUGS
libraries/System/CPUTime.hs
Haskell
bsd-3-clause
1,371
{-| Module : Idris.Imports Description : Code to handle import declarations. Copyright : License : BSD3 Maintainer : The Idris Community. -} module Idris.Imports( IFileType(..), findImport, findInPath, findPkgIndex , ibcPathNoFallback, installedPackages, pkgIndex ) where import Control.Applicative ...
enolan/Idris-dev
src/Idris/Imports.hs
Haskell
bsd-3-clause
4,677
module Eval where import System.IO.Unsafe import Data.Either import Data.List (nub) import qualified Data.Map as Map import Foreign.Ptr (FunPtr, castFunPtr) import Control.Monad.Except import qualified LLVM.General.AST as AST import qualified LLVM.General.AST.Type as T import LLVM.General.Analysis import LLVM.Gene...
jjingram/satori
src/Eval.hs
Haskell
bsd-3-clause
3,126
import App.Models.Comments as CommentsModel import Turbinado.Controller create :: Controller () create = do id' <-getSetting_u "id" :: Controller String body_ <- getParam_u "body" author_ <- getParam_u "author" let pId = (Prelude.read id')::Integer CommentsModel.insert...
abuiles/turbinado-blog
App/Controllers/Comments.hs
Haskell
bsd-3-clause
448
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Exception import Control.Monad.IO.Class (liftIO) import Control.Monad.Logger (LoggingT, runStderrLoggingT) import Data.Conduit...
derekjw/scotty-playground
src/Main.hs
Haskell
bsd-3-clause
3,156
module Network.HaskellNet.SSL ( Settings (..) , defaultSettingsWithPort ) where import Network.Socket.Internal (PortNumber) data Settings = Settings { sslPort :: PortNumber , sslMaxLineLength :: Int , sslLogToConsole :...
lemol/HaskellNet-SSL
src/Network/HaskellNet/SSL.hs
Haskell
bsd-3-clause
632
-- | A store for stroing and retreiving items -- {-# LANGUAGE ExistentialQuantification, ScopedTypeVariables #-} module Hakyll.Core.Store ( Store , StoreGet (..) , makeStore , storeSet , storeGet ) where import Control.Applicative ((<$>)) import Control.Concurrent.MVar (MVar, newMVar, readMVar,...
sol/hakyll
src/Hakyll/Core/Store.hs
Haskell
bsd-3-clause
3,676
module ResultWorthy.Tests.Util where import ResultWorthy.Util import Test.HUnit tests = TestLabel "The Util Tests" $ TestList [ TestLabel "withIndeces" $ TestCase $ assertEqual "Arrays should be equal" (withIndeces ["foo", "bar", "baz", "bong"]) [(0, "foo"), (1, "bar...
lawrencelomax/ResultWorthy
ResultWorthy/Tests/Util.hs
Haskell
bsd-3-clause
596
{-| Description: SDL audio support. -} module Graphics.UI.SDL.Audio ( ) where
abbradar/MySDL
src/Graphics/UI/SDL/Audio.hs
Haskell
bsd-3-clause
94
{-# LANGUAGE TemplateHaskell #-} {-| Module : AERN2.Poly.Basics Description : Basics of unary sparse polynomials Copyright : (c) Michal Konecny License : BSD3 Maintainer : mikkonecny@gmail.com Stability : experimental Portability : portable Basics of unary sparse p...
michalkonecny/aern2
aern2-fun-univariate/src/AERN2/Poly/Basics.hs
Haskell
bsd-3-clause
9,205
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE OverloadedStrings #-} module React.Flux.Mui.Badge where import Protolude import Data.Aeson import Data.Aeson.Casing import Data.String (String) import React.Flux import React.Flux.Mui.Util data Badge = Badge { badgeClassName :: !(Maybe Text) , badgePrimary :: !(Maybe ...
pbogdan/react-flux-mui
react-flux-mui/src/React/Flux/Mui/Badge.hs
Haskell
bsd-3-clause
820
{-# LANGUAGE DeriveGeneric, OverloadedStrings #-} module Pygmalion.Core ( CommandInfo (..) , SourceFile , SourceFileHash , SourceFileWrapper , unwrapSourceFile , SourceFileHashWrapper , unwrapSourceFileHash , WorkingPath , Time , TimeHash , Language (..) , Inclusion (..) , DefInfo (..) , DefUpdate (..) , SourceLocatio...
sethfowler/pygmalion
src/Pygmalion/Core.hs
Haskell
bsd-3-clause
7,991
-- |NullPoint: -- Pointed types (usually containers) that can be empty. -- Corresponds to Data.Monoid.mempty module Data.NullPoint ( -- * Classes NullPoint (..) ) where import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as L -- ---------------------------------------------- -- |NullPoint...
iteloo/tsuru-sample
iteratee-0.8.9.6/src/Data/NullPoint.hs
Haskell
bsd-3-clause
609
-- * Implements set theoristic operators for the Ord type. -- | Haskell Prelude "intersect", "(\\)" and "nub" implementations require an -- Eq instance. -- If we have an implementations for Ord type as well, the evaluation can be -- sped up significantly. module Data.Extension.Ord ( intersect , nub , ...
shingoOKAWA/hsarg-haskell
src/Data/Extension/Ord.hs
Haskell
bsd-3-clause
1,231
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE FlexibleContexts #-} {-# OPTIONS_GHC -Wall -fenable-rewrite-rules -ddump-rule-firings -ddump-to-file #-} import Control.Applicative import Control.Arrow (first) import qualifi...
JohnLato/transducers
tests/transducers.hs
Haskell
bsd-3-clause
14,965
{-# LINE 1 "GHC.Stats.hsc" #-} {-# LANGUAGE Trustworthy #-} {-# LINE 2 "GHC.Stats.hsc" #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE RecordWildCards #-} {-# OPTIONS_GHC -funbox-strict-fields #-} ----------------------------------------------------------------------------- -- | This module provides access to inte...
phischu/fragnix
builtins/base/GHC.Stats.hs
Haskell
bsd-3-clause
7,011
{-- snippet plus --} a `plus` b = a + b data a `Pair` b = a `Pair` b deriving (Show) -- we can use the constructor either prefix or infix foo = Pair 1 2 bar = True `Pair` "quux" {-- /snippet plus --}
binesiyu/ifl
examples/ch04/Plus.hs
Haskell
mit
220
<?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="el-GR"> <title>Customizable HTML Report</title> <maps> <homeID>top</homeID> <mapref lo...
veggiespam/zap-extensions
addOns/customreport/src/main/javahelp/org/zaproxy/zap/extension/customreport/resources/help_el_GR/helpset_el_GR.hs
Haskell
apache-2.0
970
{-# LANGUAGE LambdaCase #-} {-# LANGUAGE ScopedTypeVariables #-} module Cardano.Wallet.Kernel.CoinSelection.Generic.Random ( PrivacyMode(..) , random , findRandomOutput ) where import Universum import Cardano.Wallet.Kernel.CoinSelection.Generic import qualified Cardano.Wallet.K...
input-output-hk/cardano-sl
wallet/src/Cardano/Wallet/Kernel/CoinSelection/Generic/Random.hs
Haskell
apache-2.0
10,737
{-# LANGUAGE BangPatterns, FlexibleInstances, UndecidableInstances, CPP #-} #include "fusion-phases.h" -- | Irregular two dimensional arrays. --- -- * TODO: The inner arrays should be unboxed so we don't get an unboxing overhead -- for every call to unsafeIndex2. This might need an extension to the GHC -- ...
mainland/dph
dph-prim-seq/Data/Array/Parallel/Unlifted/Vectors.hs
Haskell
bsd-3-clause
8,684
-- | -- Module: Network.Riak -- Copyright: (c) 2011 MailRank, Inc. -- License: Apache -- Maintainer: Mark Hibberd <mark@hibberd.id.au>, Nathan Hunter <nhunter@janrain.com> -- Stability: experimental -- Portability: portable -- -- A client for the Riak decentralized data store. -- -- The functions in this ...
k-bx/riak-haskell-client
src/Network/Riak.hs
Haskell
apache-2.0
2,586
{-# LANGUAGE CPP #-} #if __GLASGOW_HASKELL__ >= 702 {-# LANGUAGE Trustworthy #-} -- Imports internal modules #endif {-# OPTIONS_GHC -fno-warn-warnings-deprecations #-} -- | -- Module : Data.Attoparsec.Text.Lazy -- Copyright : Bryan O'Sullivan 2007-2015 -- License : BSD3 -- -- Maintainer : bos@serpentin...
beni55/attoparsec
Data/Attoparsec/Text/Lazy.hs
Haskell
bsd-3-clause
3,702
module MediaWiki.API.Query.Revisions.Import where import MediaWiki.API.Types import MediaWiki.API.Utils import MediaWiki.API.Query.Revisions import Text.XML.Light.Types import Text.XML.Light.Proc ( strContent ) import Control.Monad import Data.Maybe stringXml :: String -> Either (String,[{-Error msg-}String]) Rev...
neobrain/neobot
mediawiki/MediaWiki/API/Query/Revisions/Import.hs
Haskell
bsd-3-clause
1,926
{-# LANGUAGE CPP #-} #if __GLASGOW_HASKELL__ < 709 import qualified HastePkg708 as Real #else import qualified HastePkg710 as Real #endif main :: IO () main = Real.main
beni55/haste-compiler
utils/haste-pkg/haste-pkg.hs
Haskell
bsd-3-clause
171
{- (c) The University of Glasgow 2006 (c) The GRASP/AQUA Project, Glasgow University, 1992-1998 \section[NameEnv]{@NameEnv@: name environments} -} {-# LANGUAGE CPP #-} module NameEnv ( -- * Var, Id and TyVar environments (maps) NameEnv, -- ** Manipulating these environments mkNameEnv,...
olsner/ghc
compiler/basicTypes/NameEnv.hs
Haskell
bsd-3-clause
5,502
{-# LANGUAGE DeriveGeneric #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.InstalledPackageInfo -- Copyright : (c) The University of Glasgow 2004 -- -- Maintainer : libraries@haskell.org -- Portability : portable -- -- This is the information ...
x-y-z/cabal
Cabal/Distribution/InstalledPackageInfo.hs
Haskell
bsd-3-clause
16,058
{-# LANGUAGE CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Distribution.Client.Dependency.Types -- Copyright : (c) Duncan Coutts 2008 -- License : BSD-like -- -- Maintainer : cabal-devel@haskell.org -- Stability : provisional -- Portability : ...
randen/cabal
cabal-install/Distribution/Client/Dependency/TopDown.hs
Haskell
bsd-3-clause
48,703
module T7702Plugin ( plugin ) where import GhcPlugins -- A plugin that does nothing but tickle CoreM's writer. plugin :: Plugin plugin = defaultPlugin { installCoreToDos = install } where install :: [CommandLineOption] -> [CoreToDo] -> CoreM [CoreToDo] install _ todos = do putMsgS "T...
ezyang/ghc
testsuite/tests/simplCore/should_compile/T7702plugin/T7702Plugin.hs
Haskell
bsd-3-clause
1,886
-- !!! Conflicting re-exportation of dcon module M (module Mod144_A,module M) where import Mod144_A data Foo1 = Bar
urbanslug/ghc
testsuite/tests/module/mod144.hs
Haskell
bsd-3-clause
119
-- This caused 6.10.1 to segfault when run with +RTS -hb -- trac #3001 module Main (main) where main :: IO () main = print $ replicate 40000 'x'
urbanslug/ghc
testsuite/tests/profiling/should_run/T3001.hs
Haskell
bsd-3-clause
148
{-# LANGUAGE OverloadedStrings #-} module MacFinder.Controllers.Delete ( deleteMac ) where import Web.Scotty.Trans as S import Web.Scotty.Hastache import Control.Monad.IO.Class (liftIO) import qualified Database.Redis as R import qualified Data.Text.Lazy as T import qualified Data.ByteString as B import Control.M...
tlunter/MacFinder
src/MacFinder/Controllers/Delete.hs
Haskell
mit
954
module System.RedProx.Chaos ( ) where
adarqui/redprox-core
src/System/RedProx/Chaos.hs
Haskell
mit
38
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE CPP #-} {-# LANGUAGE FlexibleInstances #-} module Text.Hamlet.Parse ( Result (..) , Content (..) , Doc (..) , parseDoc , HamletSettings (..) , defaultHamletSettings , xhtmlHaml...
psibi/shakespeare
Text/Hamlet/Parse.hs
Haskell
mit
25,913
{-# LANGUAGE CPP #-} module GHCJS.DOM.HTMLOptGroupElement ( #if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT) module GHCJS.DOM.JSFFI.Generated.HTMLOptGroupElement #else module Graphics.UI.Gtk.WebKit.DOM.HTMLOptGroupElement #endif ) where #if (defined(ghcjs_HOST_OS) && defined(USE_...
plow-technologies/ghcjs-dom
src/GHCJS/DOM/HTMLOptGroupElement.hs
Haskell
mit
480
data Tree a = Empty | Node a (Tree a) (Tree a) deriving Show treeMap :: Tree a -> (a -> b) -> Tree b treeMap Empty _ = Empty treeMap (Node x l r) f = Node (f x) (treeMap l f) (treeMap r f) clone :: Num a => Tree a -> a -> a -> Tree a clone t x y = Node x increased increased where increased = treeMap t (+ y) clonin...
fmi-lab/fp-elective-2017
exams/02/variant-b/task-2.hs
Haskell
mit
437
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE NoMonomorphismRestriction #-} module Main where import Asm as A import AsmOptimize import Assembler import Compiler import Memory import Parser import Pretty ( pretty_ ) import PrettyAsm ( pretty ) import...
djeik/fuckdown2
src/Main.hs
Haskell
mit
2,041
{-| Module : Main Description : Parses command line and dispatches to correct backend Copyright : (c) Rodrigo Setti, 2017 License : MIT Maintainer : rodrigosetti@gmail.com Stability : experimental Portability : POSIX -} {-# LANGUAGE UnicodeSyntax #-} module Main (main) where import Data.List ...
rodrigosetti/master-plan
app/Main.hs
Haskell
mit
6,328
module Melchior.EventSources.Mouse where import Control.Applicative import Melchior.Control import Melchior.Data.String import Melchior.Dom import Melchior.Dom.Events position :: Element -> Signal (Int, Int) position el = (\x -> coords x) <$> s where s = createEventedSignal (Of MouseMove) el (MouseEvt M...
kjgorman/melchior
Melchior/EventSources/Mouse.hs
Haskell
mit
515
{-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE StandaloneDeriving #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators #-} {-# LANGUAGE UndecidableInstances #-} {-#...
nickspinale/lambda-calculi
src/Data/Type/Nat.hs
Haskell
mit
830
{-# LANGUAGE OverloadedStrings #-} module EDDA.Schema.ShipyardV1 where import EDDA.Types import EDDA.Schema.Util import Data.Aeson import Data.Aeson.Types import qualified Data.Text as T import qualified Data.Text.Encoding as TE import qualified Data.HashMap.Strict as HM import qualified Data.HashSet as HS getShips...
troydm/edda
src/EDDA/Schema/ShipyardV1.hs
Haskell
mit
1,160
{-# Language TupleSections, ViewPatterns #-} {- | Module : Language.Egison.Core Copyright : Satoshi Egi Licence : MIT This module provides functions to evaluate various objects. -} module Language.Egison.Core ( -- * Egison code evaluation evalTopExprs , evalTopExprsTestOnly , evalTop...
beni55/egison
hs-src/Language/Egison/Core.hs
Haskell
mit
41,566
{-# htermination intersectFM_C :: (b1 -> b2 -> b3) -> FiniteMap Float b1 -> FiniteMap Float b2 -> FiniteMap Float b3 #-} import FiniteMap
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/full_haskell/FiniteMap_intersectFM_C_6.hs
Haskell
mit
138
--The sum of the squares of the first ten natural numbers is, --12 + 22 + ... + 102 = 385 --The square of the sum of the first ten natural numbers is, --(1 + 2 + ... + 10)2 = 552 = 3025 --Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 − 385 = 264...
sravan-s/euler
euler-0006/sumSquareDiff.hs
Haskell
mit
642
{- (**) Decode a run-length encoded list. Given a run-length code list generated as specified in problem 11. Construct its uncompressed version. Example in Haskell: P12> decodeModified [Multiple 4 'a',Single 'b',Multiple 2 'c', Multiple 2 'a',Single 'd',Multiple 4 'e'] "aaaabccaadeee...
gaoce/haskell_99
12.hs
Haskell
mit
534
{-# LANGUAGE ScopedTypeVariables #-} module JSaddleHello ( main ) where import Data.Monoid ((<>)) import Control.Monad (forever) import Control.Monad.IO.Class (MonadIO(..)) import Control.Concurrent (forkIO) import Control.Concurrent.MVar (takeMVar, putMVar, newEmptyMVar) import Control.Lens ((^.)) import Language.Jav...
ghcjs/jsaddle-hello
src/JSaddleHello.hs
Haskell
mit
2,076
{-# LANGUAGE DeriveDataTypeable, TypeFamilies, TypeOperators, StandaloneDeriving, FlexibleContexts #-} -- Workaround {-# LANGUAGE CPP, UndecidableInstances #-} module Main where import Flow import Flow.Vector import Flow.Kernel import Flow.Builder import Control.Monad import Data.Typeable -- --------...
SKA-ScienceDataProcessor/RC
MS5/programs/imaging.hs
Haskell
apache-2.0
11,853
{-# LANGUAGE TemplateHaskell #-} module Session where import Control.Applicative import Control.Monad.Reader -- lens import Control.Lens -- happstack framework import Data.Acid import Data.SafeCopy import Happstack.Server import Happstack.Server.ClientSession import Text.I18n -- local import State import State.He...
mcmaniac/blog.nils.cc
src/Session.hs
Haskell
apache-2.0
1,519
{-# LANGUAGE ExistentialQuantification, OverloadedStrings #-} module HStyle.Rule ( Rule (..) , Options (..) , FileState (..) , FileM , runFileM , runRule ) where import Control.Monad (forM_, unless) import Control.Monad.Reader (ReaderT, ask, runReaderT) import Control.Monad.State (State, ge...
jaspervdj/hstyle
src/HStyle/Rule.hs
Haskell
bsd-3-clause
4,448
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import System.Environment (lookupEnv) import System.Exit (exitFailure) import System.IO (hPutStrLn, stderr) import qualified Data.ByteString.Base64 as BS import qualified Data.ByteString.Char8 as BS import HerokuBuild main :: IO () main = withOptions $ \(Op...
pbrisbin/heroku-build
main.hs
Haskell
bsd-3-clause
1,455
{-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Orphans () where import Data.Vector (Vector) import qualified Data.Vector as V import Test.SmallCheck.Series as SC import Test.Tasty.QuickCh...
quchen/qa-playground
test/Testsuite/Orphans.hs
Haskell
bsd-3-clause
561
{-# LANGUAGE TypeFamilies, DeriveFunctor, DeriveDataTypeable #-} module Test.LazySmallCheck2012.FunctionalValues.Instances where import Control.Applicative import Data.Data import Data.Typeable import Test.LazySmallCheck2012.Instances import Test.LazySmallCheck2012.FunctionalValues instance Argument () where type ...
UoYCS-plasma/LazySmallCheck2012
Test/LazySmallCheck2012/FunctionalValues/Instances.hs
Haskell
bsd-3-clause
2,972
{-# LANGUAGE OverloadedStrings #-} module Data.LTSV.String ( ltsv , record , encode , decode , decodeLTSV , ToRecord(..) , FromRecord(..) , Field, FieldMap, Record, LTSV ) where import Control.Monad (liftM2) import Control.Applicative ((<*)) import Text.Parsec ( pa...
krdlab/haskell-ltsv
Data/LTSV/String.hs
Haskell
bsd-3-clause
2,981
module Language.Java.JVM.Generator where import Language.Java.JVM.JavapParser import Language.Java.JVM.SignatureParser import Control.Monad.Identity import Control.Monad.State import Data.Char (toUpper) import Data.List (foldl') import qualified Data.Set as Set import Language.Haskell.Exts.Syntax import Text.Parse...
JPMoresmau/HJVM
src/Language/Java/JVM/Generator.hs
Haskell
bsd-3-clause
5,998