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 OverloadedStrings, RecordWildCards, ScopedTypeVariables #-}
module Properties (tests) where
import Data.Aeson (eitherDecode)
import Data.Aeson.Encode (encode, encodeToBuilder)
import Data.Aeson.Internal (IResult(..), formatError, ifromJSON, iparse)
import Data.Aeson.Parser (value)
import Data.Aeson.Types... | abbradar/aeson | tests/Properties.hs | bsd-3-clause | 9,286 | 0 | 19 | 1,958 | 2,320 | 1,230 | 1,090 | 158 | 3 |
{- | Intermediate AST used for renaming. -}
module Core.Rename
( NQName(..)
, NQMeta
, NQType
, NQTypes
, NQPat
, NQExpr
, Desugared
, rename
, indexVals
) where
import Control.Monad
import Control.Arrow
import Data.Map (Map)
import qualified Data.M... | abbradar/dnohs | src/Core/Rename.hs | bsd-3-clause | 5,855 | 0 | 20 | 1,881 | 2,247 | 1,112 | 1,135 | -1 | -1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[RnNames]{Extracting imported and top-level names in scope}
-}
{-# LANGUAGE CPP, NondecreasingIndentation #-}
module RnNames (
rnImports, getLocalNonValBinders, newRecordSelector,
rnExports, extendGlobalRdrEnvRn,
gresFromAva... | vTurbine/ghc | compiler/rename/RnNames.hs | bsd-3-clause | 88,959 | 3 | 29 | 28,057 | 16,638 | 8,597 | 8,041 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANG... | cchalmers/dense | src/Data/Dense/Generic.hs | bsd-3-clause | 34,750 | 0 | 19 | 8,313 | 10,110 | 5,289 | 4,821 | -1 | -1 |
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE... | timhabermaas/time-tracker | src/Model.hs | bsd-3-clause | 824 | 0 | 7 | 210 | 79 | 53 | 26 | 15 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module System.ProgressBar.ByteString(
mkByteStringProgressBar
, mkByteStringProgressWriter
, fileReadProgressBar
, fileReadProgressWriter
)
where
import Data.ByteString.Lazy(ByteString,hGetContents)
import Data.ByteString.Lazy.Progress
import Dat... | acw/bytestring-progress | System/ProgressBar/ByteString.hs | bsd-3-clause | 4,572 | 0 | 14 | 1,415 | 802 | 433 | 369 | 71 | 1 |
{-# LANGUAGE BangPatterns,RankNTypes,OverloadedStrings #-}
{-# LANGUAGE CPP, DeriveDataTypeable, FlexibleContexts,
GeneralizedNewtypeDeriving, MultiParamTypeClasses,
TemplateHaskell, TypeFamilies, RecordWildCards #-}
module Plow.Service.Alarm.Acid where
import Plow.Service.Alarm.Rules
import Plow.Service.Alarm.Type... | smurphy8/alarm-service | src/Plow/Service/Alarm/Acid.hs | bsd-3-clause | 3,039 | 0 | 11 | 657 | 525 | 292 | 233 | -1 | -1 |
module Sized where
import {-# SOURCE #-} SizedDigit ()
class Sized a where
size :: a -> Int
| phischu/fragnix | tests/quick/InstancePropagation/Sized.hs | bsd-3-clause | 102 | 0 | 7 | 28 | 29 | 17 | 12 | 4 | 0 |
{-# LANGUAGE MultiParamTypeClasses, TypeOperators #-}
module Generic.Control.Category where
import Prelude ()
infixr 9 .
class Category j (~>) where
id :: (j a ~> j a)
(.) :: (j b ~> j c) -> (j a ~> j b) -> (j a ~> j c)
| tomlokhorst/AwesomePrelude | src/Generic/Control/Category.hs | bsd-3-clause | 230 | 0 | 11 | 55 | 104 | 56 | 48 | 7 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Serialize where
import Data.Serialize
import DataTypes
import Data.DeriveTH
import Data.Derive.Serialize
$( derive makeSerialize ''NetworkDirectMessage )
$( derive makeSerialize ''NetworkMulticastMessage )
| Tener/sheep-transfer | lib/Serialize.hs | bsd-3-clause | 249 | 0 | 8 | 28 | 52 | 28 | 24 | 8 | 0 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Aeson
import qualified Data.ByteString.Lazy as LBS
import Data.Default (def)
import Data.Functor (void)
import Data.Text.Encoding (d... | ababkin/qmuli | examples/apigw-lambda-s3/src/Main.hs | mit | 2,795 | 0 | 17 | 1,057 | 473 | 264 | 209 | 55 | 3 |
{-# OPTIONS_GHC -Wall -Wno-unticked-promoted-constructors -Wno-unused-imports -Wno-type-defaults -Wno-orphans -fconstraint-solver-iterations=0 #-}
--{-# OPTIONS_GHC -ddump-deriv #-} -- +
--{-# OPTIONS_GHC -ddump-rn #-} -- +
--{-# OPTIONS_GHC -ddump-tc-trace #-} -- +
--{-# OPTIONS_GHC -ddump-t... | deepfire/mood | src/Holotype.hs | agpl-3.0 | 16,571 | 83 | 22 | 5,100 | 3,877 | 2,059 | 1,818 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Graphics.UI.WX
import Graphics.UI.WXCore
main :: IO ()
main
= start $
do p <- getApplicationDir
f <- frame [text := p]
h <- staticText f [text := "Hello world!", on click ::= goodbye]
b <- button f [text := "Ok", on comm... | jacekszymanski/wxHaskell | samples/test/Resize.hs | lgpl-2.1 | 1,069 | 0 | 13 | 347 | 414 | 199 | 215 | 33 | 1 |
module Numeric.Units.Dimensional.TF.Prelude
( module Numeric.Units.Dimensional.TF
, module Numeric.Units.Dimensional.TF.Quantities
, module Numeric.Units.Dimensional.TF.SIUnits
, module Numeric.NumType.TF
, module Prelude
) where
import Numeric.Units.Dimensional.TF hiding
( Dimensional (Dim... | khalilfazal/information-units | Numeric/Units/Dimensional/TF/Prelude.hs | lgpl-2.1 | 816 | 2 | 6 | 161 | 220 | 157 | 63 | 18 | 0 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE MagicHash, UnboxedTuples, PatternGuards, ScopedTypeVariables, RankNTypes #-}
-- | Concurrent queue for single reader, single writer
module Control.Distributed.Process.Internal.CQueue
( CQueue
, BlockSpec(..)
, MatchOn(..)
, newCQueue
,... | tweag/distributed-process | src/Control/Distributed/Process/Internal/CQueue.hs | bsd-3-clause | 9,244 | 0 | 19 | 2,795 | 2,673 | 1,387 | 1,286 | 179 | 24 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE NoDisambiguateRecordFields, NoRecordWildCards #-}
module Servant.Server.Auth.Token.Acid.Schema where
import Control.Monad.Reader
import Control.Monad.State
import Data.Acid
import Data.Aeson.WithField
import Data.Int
import Data.List (sortBy)
import Data.Map.Strict (M... | VyacheslavHashov/servant-auth-token | servant-auth-token-acid/src/Servant/Server/Auth/Token/Acid/Schema.hs | bsd-3-clause | 20,132 | 0 | 13 | 4,451 | 1,429 | 792 | 637 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
-- | This module provides data dependency resolution and
-- fault tolerance via /promises/ (known elsewhere as /futures/).
-- It's implemented in terms of the "Remote.Process" module.
module Remote.Task (
-- * Tasks and promises
TaskM, Promise, ... | jepst/CloudHaskell | Remote/Task.hs | bsd-3-clause | 47,455 | 652 | 38 | 16,405 | 9,212 | 5,066 | 4,146 | 699 | 12 |
{-# LANGUAGE RankNTypes #-}
{- |
Module : $Header$
License : GPLv2 or higher, see LICENSE.txt
Maintainer : nevrenato@gmail.com
Stability : provisional
Portability : portable
Description :
Parser for an hybridized arbitrary logic
-}
module TopHybrid.Parse_AS where
import Common.AnnoState
import Co... | keithodulaigh/Hets | TopHybrid/Parse_AS.hs | gpl-2.0 | 5,018 | 0 | 20 | 1,631 | 1,486 | 697 | 789 | 137 | 1 |
module Main where
import Graphics.Blank
import Data.Map (Map)
import qualified Data.Map as Map
import Debug.Trace
main = blankCanvas 3000 $ \ context -> loop context Map.empty X
data XO = X | O
deriving (Eq,Ord,Show)
swap :: XO -> XO
swap X = O
swap O = X
loop :: Context -> Map (Int,Int) XO -> XO -> IO ()
l... | beni55/blank-canvas | examples/tictactoe/Main.hs | bsd-3-clause | 3,497 | 19 | 20 | 1,661 | 1,204 | 598 | 606 | 85 | 7 |
module HaddockDocs (
Section(..),
formatSections,
Para(..),
formatParas,
formatParasFragment,
Span(..),
formatSpans,
haddockSection,
) where
import Utils
import Data.List as List (lines, words, intersperse)
import Data.Char (isSpace)
data Section = Section Int String [Para]
data Para =
... | thiagoarrais/gtk2hs | tools/apiGen/src/HaddockDocs.hs | lgpl-2.1 | 4,930 | 0 | 20 | 1,435 | 1,536 | 798 | 738 | 106 | 8 |
{-# LANGUAGE MagicHash #-}
import GHC.Exts
import GHC.Prim
main :: IO ()
main = do
print (I# (dataToTag# a)) -- used to print 0, should print 1
print (I# (dataToTag# f)) -- used to print 1 correctly
where
{-# NOINLINE f #-}
f = T2
{-# NOINLINE a #-}
a = f
data T = T1 | T2
| sdiehl/ghc | testsuite/tests/codeGen/should_run/T15696_2.hs | bsd-3-clause | 305 | 3 | 11 | 90 | 100 | 49 | 51 | 12 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
module Web.Tombstone.Schema
( -- * User
usersTable
, runUsersQuery
, UserId'(..)
, User
, UserColumn
-- * Bounties
, bountiesTable... | ShadowBan/tombstone | src/Web/Tombstone/Schema.hs | mit | 5,775 | 0 | 14 | 1,876 | 942 | 536 | 406 | 113 | 1 |
{- |
Raw UDP Server used by Ames driver.
1. Opens a UDP socket and makes sure that it stays open.
- If can't open the port, wait and try again repeatedly.
- If there is an error reading to or writing from the open socket,
close it and open another, making sure, however, to reuse the
same port
... | urbit/urbit | pkg/hs/urbit-king/lib/Urbit/Vere/Ames/UDP.hs | mit | 8,618 | 0 | 25 | 2,478 | 2,018 | 971 | 1,047 | -1 | -1 |
module Hopsu.Db where
import Hopsu.Types
-- Nothing here, rewrite
logUser :: User -> String
logUser u = "Log'd"
isOp :: User -> Bool
isOp u = False
getUrl :: String -> String
getUrl u = "https://www.github.com/anobi/hopsu"
addUrl :: String -> String
addUrl u = "No."
| anobi/hopsu | src/Hopsu/Db.hs | mit | 273 | 0 | 5 | 51 | 80 | 44 | 36 | 10 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Bitcoin.Api.Types.UnspentTxOut where
-- import Control.Applicative ((<$>), (<*>))
-- import Control.Lens.TH (makeLenses)
import Control.Monad (mzero)
import qualified Data.Base58String as B58S
import Data.Word ... | solatis/haskell-bitcoin-api | src/Network/Bitcoin/Api/Types/UnspentTxOut.hs | mit | 820 | 0 | 10 | 232 | 176 | 107 | 69 | 20 | 0 |
{-# LANGUAGE MultiParamTypeClasses #-}
import Control.Applicative
data Free f a
= Pure a
| Free (f (Free f a))
instance Functor f => Monad (Free f) where
return a = Pure a
Pure a >>= f = f a
Free f >>= g = Free (fmap (>>= g) f)
class Monad m => MonadFree f m where
wrap :: f (m a) -> m a
liftF :: (... | riwsky/wiwinwlh | src/free_impl.hs | mit | 600 | 0 | 10 | 163 | 337 | 164 | 173 | 19 | 1 |
module Kantour.UtilsSpec where
import Test.Hspec
import Kantour.Utils
import Test.Hspec.QuickCheck
import Test.QuickCheck
import Control.Monad
{-# ANN module "HLint: ignore Redundant do" #-}
spec :: Spec
spec = do
describe "alterAL" $ do
let ex1 = [(1 :: Int, 10 :: Int)]
ex2 = (2,20):(3,30):e... | Javran/tuppence | test/Kantour/UtilsSpec.hs | mit | 1,702 | 0 | 20 | 596 | 615 | 327 | 288 | 41 | 3 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE CPP #-}
module Hpack.Render (
-- | /__NOTE:__/ This module is exposed to allow integration of Hpack into
-- other tools. It is not meant for general use by end users. The followin... | haskell-tinc/hpack | src/Hpack/Render.hs | mit | 15,580 | 0 | 14 | 2,663 | 4,041 | 2,134 | 1,907 | 293 | 3 |
module Test.TestTable
( dropAndRecreateTableDef,
dropTableDef,
dropTableDefSql,
dropTableNameSql,
)
where
import Orville.PostgreSQL.Connection (Connection)
import qualified Orville.PostgreSQL.Internal.Expr as Expr
import qualified Orville.PostgreSQL.Internal.RawSql as RawSql
import Orville.PostgreSQL.I... | flipstone/orville | orville-postgresql-libpq/test/Test/TestTable.hs | mit | 1,268 | 0 | 9 | 171 | 273 | 147 | 126 | 37 | 1 |
module Bot (bot) where
import Vindinium.Types
import StupidBot.Bot (stupidBot)
import DumbBot.Bot (dumbBot)
bot :: Bot
--bot = stupidBot
bot = dumbBot
| flyrry/phonypony | src/Bot.hs | mit | 153 | 0 | 5 | 23 | 45 | 28 | 17 | 6 | 1 |
{-# LANGUAGE DataKinds #-}
import Control.Category
import Control.Monad.Random
import Data.MyPrelude
import Data.Utils
import Graph
import Numeric.Neural
import qualified System.Console.ANSI as ANSI
import Prelude hiding ((.))
main ::... | brunjlar/neural | examples/sin/sin.hs | mit | 1,328 | 0 | 15 | 441 | 485 | 246 | 239 | 35 | 2 |
module LearnParsers where
import Text.Trifecta
stop :: Parser a
stop = unexpected "stop"
one :: Parser Char
one = char '1'
two :: Parser Char
two = char '2'
one' :: Parser Char
one' = one >> stop
oneEof :: Parser ()
oneEof = one >> eof
oneTwo :: Parser Char
oneTwo = one >> two
oneTwo' :: Parser ()
one... | JoshuaGross/haskell-learning-log | Code/Haskellbook/catchall/src/LearnParsers.hs | mit | 838 | 0 | 9 | 194 | 331 | 155 | 176 | 38 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Views.Components.ComicsList (comicsListView) where
import BasicPrelude
import Text.Blaze.Html5 (Html, toValue, toHtml, (!))
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as A
import Helpers.SPF (SPFHoo... | nicolashery/example-marvel-haskell | Views/Components/ComicsList.hs | mit | 802 | 0 | 17 | 115 | 239 | 138 | 101 | 20 | 1 |
module Handler.Demo where
import Import
import Crud.Core
--Aform From Entity Demo
iglesiaForm :: Maybe Iglesia -> AForm Handler Iglesia
iglesiaForm iglesia = Iglesia
<$> areq textField "nombre" (iglesiaNombre <$> iglesia)
<*> areq textField "direccion" (iglesiaDireccion <$> iglesia... | jairoGilC/Yesod-CRUD-Generator | Handler/Demo.hs | mit | 831 | 0 | 11 | 178 | 167 | 81 | 86 | -1 | -1 |
module Handler.Output
( postOutputR
, getOutputR
) where
import Import hiding (Request)
import Data.List (genericLength)
import Yesod.WebSockets
data Request = Request
{ reqContent :: Text
}
instance FromJSON Request where
parseJSON = withObject "Output.Request" $ \o -> Request
<$> o... | wfleming/tee-io | src/Handler/Output.hs | mit | 1,345 | 0 | 14 | 346 | 388 | 194 | 194 | -1 | -1 |
--
-- Copyright (c) 2006 Don Stewart - http://www.cse.unsw.edu.au/~dons/
-- GPL version 2 or later (see http://www.gnu.org/copyleft/gpl.html)
--
import System.Environment
-- | 'main' runs the main program
main :: IO ()
main = getArgs >>= print . haqify . head
haqify s = "Haq! " ++ s
| hskoans/haq | Haq.hs | mit | 286 | 0 | 7 | 49 | 50 | 28 | 22 | 4 | 1 |
module Haskell_Mini_Project
( tail'
, sum'
, distance
, sum''
, reverse'
, reverse''
, pack
) where
import Assist_Lib
-- 1 --
tail' :: [a] -> [a]
tail' [] = []
tail' (_:theList) = theList
-- 2 --
sum' :: (Num a) => [a] -> a
sum' [] = 0
sum' (l:theList) = l + sum' theList
-- 3 --
distance :: (Integral a, F... | pegurnee/2015-01-341 | projects/project4_mini_haskell/haskell_mini_project.hs | mit | 933 | 0 | 9 | 236 | 485 | 271 | 214 | 33 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for ganeti-htools.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012 Google Inc.
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 ... | ribag/ganeti-experiments | test/hs/Test/Ganeti/Ssconf.hs | gpl-2.0 | 2,849 | 0 | 12 | 459 | 406 | 226 | 180 | 47 | 1 |
{-#LANGUAGE RecordWildCards #-}
module Exploration.UNF.API where
import Control.Monad.ST
import Control.Monad.State.Strict
import Data.List
import Data.Map (Map,fromList,empty)
import Data.Set (Set)
import Domain.Action
import Domain.Class
import Exploration.UNF.State
import Language.SimpleC.AST
import Language.Simple... | marcelosousa/poet | src/Exploration/UNF/API.hs | gpl-2.0 | 14,608 | 0 | 19 | 3,368 | 4,711 | 2,375 | 2,336 | 319 | 5 |
-- rm1x-template: make keymaps for Yamaha Rm1X
-- Copyright (C) 2017 karamellpelle@hotmail.com
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the Licen... | karamellpelle/rm1x-template | source/Main.hs | gpl-2.0 | 6,370 | 0 | 19 | 2,177 | 1,428 | 697 | 731 | 107 | 9 |
module H14 where
dupli :: [a] -> [a]
dupli [] = []
dupli (x:xs) = x:x:dupli xs
| hsinhuang/codebase | h99/H14.hs | gpl-2.0 | 81 | 0 | 7 | 19 | 57 | 31 | 26 | 4 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
module Ampersand.Output.ToJSON.Concepts
(Concepts,Segment)
where
import Ampersand.ADL1
import Ampersand.Output.ToJSON.JSONutils
import Data.List(nub)
import Data.Maybe
i... | AmpersandTarski/ampersand | src/Ampersand/Output/ToJSON/Concepts.hs | gpl-3.0 | 5,063 | 0 | 16 | 1,448 | 1,402 | 754 | 648 | 112 | 0 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, UndecidableInstances #-}
module Abstat.Common.AbstractState where
import qualified Data.Map.Strict as Map
import Test.QuickCheck
import Control.Monad(liftM,liftM2)
import Abstat.Interface.Lattice
import Abstat.Interface.State hiding (State)
impo... | fpoli/abstat | src/Abstat/Common/AbstractState.hs | gpl-3.0 | 3,240 | 0 | 12 | 839 | 1,035 | 544 | 491 | 82 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-apps-calendar/gen/Network/Google/Resource/Calendar/Events/Watch.hs | mpl-2.0 | 14,068 | 0 | 32 | 3,923 | 1,882 | 1,091 | 791 | 255 | 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.OSLogin.Typ... | brendanhay/gogol | gogol-oslogin/gen/Network/Google/OSLogin/Types/Product.hs | mpl-2.0 | 12,945 | 0 | 21 | 3,196 | 2,560 | 1,474 | 1,086 | 286 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : CGI
-- Copyright : Copyright (c) 2005,2006 Minero Aoki
-- License : LGPL (see COPYING)
--
-- Maintainer: masahiro.sakai@gmail.com
-- Stability : experimental
-- Portability : non-portable
{-# LANGUAGE C... | msakai/ptq | src/CGI.hs | lgpl-2.1 | 3,656 | 0 | 12 | 962 | 964 | 522 | 442 | 71 | 5 |
{-# LANGUAGE OverloadedStrings #-}
module Web.SpiraJira.Config (
JiraConfig(..),
parseConfig
) where
import qualified Data.ByteString.Char8 as BS
import qualified Data.ByteString.Lazy as LBS
import qualified Data.Configurator as Config
import Data.Configurator.Types (Config, Name)
data JiraConfig = JiraCon... | tobytripp/SpiraJira | src/Web/SpiraJira/Config.hs | lgpl-3.0 | 874 | 0 | 11 | 161 | 244 | 134 | 110 | 24 | 1 |
import Control.Arrow
import Control.Applicative
import Control.Monad.IO.Class
import Data.Either
import Data.PrettyPrint
import LinkGrammar.AST
import LinkGrammar.Parsec
import LinkGrammar.Process
import System.Environment
import Text.Printf
import Options.Applicative
data CliOptions = CliOptions {
_outfile :: Str... | k32/zenmaster | Main.hs | unlicense | 1,144 | 4 | 14 | 296 | 270 | 136 | 134 | 31 | 2 |
import AdventOfCode (readInputFile)
import Data.Char (isUpper)
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set
-- A => BC increases size by 1
-- A => BRnCAr increases size by 3
-- A => BRnCYDAr increases size by 5
-- A => BRnCYDYEAr increases size by 7
-- So to count number of steps to go fro... | petertseng/adventofcode-hs | bin/19_molecule_replacement.hs | apache-2.0 | 2,184 | 1 | 15 | 460 | 696 | 367 | 329 | 32 | 2 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QPalette.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:35
Warning : this file is machine generated - do not ... | keera-studios/hsQt | Qtc/Enums/Gui/QPalette.hs | bsd-2-clause | 5,569 | 0 | 18 | 1,213 | 1,522 | 786 | 736 | 168 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QIntValidator_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:21
Warning : this file is machine generated - ... | uduki/hsQt | Qtc/Gui/QIntValidator_h.hs | bsd-2-clause | 20,654 | 0 | 18 | 4,648 | 6,737 | 3,209 | 3,528 | -1 | -1 |
{-# LANGUAGE PatternSynonyms #-}
{-|
Module: HaskHOL.Core.Kernel
Copyright: (c) Evan Austin 2015
LICENSE: BSD3
Maintainer: e.c.austin@gmail.com
Stability: unstable
Portability: unknown
This module exports the logical kernel of HaskHOL. It consists of:
* A safe view of HOL theorems for HaskHO... | ecaustin/haskhol-core | src/HaskHOL/Core/Kernel.hs | bsd-2-clause | 17,773 | 0 | 15 | 4,663 | 3,180 | 1,603 | 1,577 | 215 | 3 |
{-# LANGUAGE CPP, NoImplicitPrelude #-}
-- |
-- Module : Data.Text.ICU
-- Copyright : (c) 2010 Bryan O'Sullivan
--
-- License : BSD-style
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portability : GHC
--
-- Commonly used functions for Unicode, implemented as bindings to the
-- Interna... | bos/text-icu | Data/Text/ICU.hs | bsd-2-clause | 5,303 | 2 | 5 | 1,199 | 459 | 350 | 109 | 82 | 0 |
module Propellor.Property.Postfix where
import Propellor
import qualified Propellor.Property.Apt as Apt
installed :: Property
installed = Apt.serviceInstalledRunning "postfix"
-- | Configures postfix as a satellite system, which
-- relats all mail through a relay host, which defaults to smtp.domain.
--
-- The smar... | abailly/propellor-test2 | src/Propellor/Property/Postfix.hs | bsd-2-clause | 899 | 4 | 13 | 148 | 150 | 91 | 59 | 14 | 1 |
module Drasil.GlassBR.Assumptions (assumpGT, assumpGC, assumpES, assumpSV,
assumpGL, assumpBC, assumpRT, assumpLDFC, assumptionConstants,
assumptions) where
import Language.Drasil hiding (organization)
import qualified Drasil.DocLang.SRS as SRS (valsOfAuxCons)
import Utils.Drasil
import Data.Drasil.Concepts.Docum... | JacquesCarette/literate-scientific-software | code/drasil-example/Drasil/GlassBR/Assumptions.hs | bsd-2-clause | 4,752 | 0 | 12 | 868 | 1,275 | 708 | 567 | 73 | 1 |
module Language.Drasil.Sentence.Extract(sdep, shortdep, lnames, lnames') where
import Data.List (nub)
import Language.Drasil.UID (UID)
import Language.Drasil.Sentence(Sentence(..), SentenceStyle(..))
import Language.Drasil.RefProg (Reference(Reference))
import Language.Drasil.Expr.Extract(names)
-- | Generic travers... | JacquesCarette/literate-scientific-software | code/drasil-lang/Language/Drasil/Sentence/Extract.hs | bsd-2-clause | 2,390 | 0 | 9 | 647 | 814 | 434 | 380 | 51 | 1 |
-- | Helpers for testing
module Tests.Helpers (
-- * helpers
T(..)
, typeName
, eq
, eqC
, (=~)
-- * Generic QC tests
, monotonicallyIncreases
, monotonicallyIncreasesIEEE
-- * HUnit helpers
, testAssertion
, testEquality
) where
import Data.Complex
import Data.Typeable
import qualif... | 00tau/statistics | tests/Tests/Helpers.hs | bsd-2-clause | 2,899 | 0 | 13 | 645 | 732 | 400 | 332 | 49 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
module WaiApp (fileCgiApp) where
import Data.ByteString (ByteString)
import qualified Data.ByteString.Char8 as BS
import Network.HTTP.Types (preconditionFailed412, movedPermanently301, urlDecode, badRequest400)
import Network.Wai (Application, responseLBS)
impor... | kazu-yamamoto/mighttpd2 | src/WaiApp.hs | bsd-3-clause | 3,022 | 0 | 17 | 784 | 938 | 476 | 462 | 69 | 7 |
gen :: (Double -> Double) -> [Double]
gen f = [f n | n <- [1..]]
pentagonals :: [Double]
pentagonals = gen pent
where
pent :: Double -> Double
pent n = n * (3*n - 1) / 2
hexagonals :: [Double]
hexagonals = gen hex
where
hex :: Double -> Double
hex n = n * (2*n - 1)
common_elems :: [Integer] -> [Integer] -... | bgwines/project-euler | src/solved/problem45.hs | bsd-3-clause | 591 | 2 | 9 | 140 | 345 | 170 | 175 | 20 | 1 |
module Data.MultiProto.Protobuf.DecoderSpec
(main, spec) where
import Data.MultiProto.Protobuf.Decoder
import Data.MultiProto.Protobuf.Encoder
import Control.Applicative
import Data.Serialize
import Test.Hspec
import Test.Hspec.QuickCheck
import Test.QuickCheck
import qualified Data.ByteString as ByteString
main :... | intolerable/multiproto | test/Data/MultiProto/Protobuf/DecoderSpec.hs | bsd-3-clause | 991 | 0 | 19 | 200 | 328 | 171 | 157 | 27 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
{-# LANGUAGE GADT... | rfranek/duckling | Duckling/TimeGrain/DE/Rules.hs | bsd-3-clause | 1,240 | 0 | 11 | 277 | 272 | 173 | 99 | 25 | 1 |
module Signal.Wavelet.List.CommonTest where
import Control.Arrow ((&&&))
import Test.HUnit (Assertion, (@=?))
import Test.QuickCheck (Property, forAll, sized, choose)
import Signal.Wavelet.List.Common
import Test.ArbitraryInstances (DwtInputList(..))
import Test.Data.Wavelet as DW
import Test.Utils... | jstolarek/lattice-structure-hs | tests/Signal/Wavelet/List/CommonTest.hs | bsd-3-clause | 2,872 | 0 | 11 | 545 | 1,100 | 632 | 468 | 71 | 1 |
module Game.Poker.Hands
( Hand
, toHand, fromHand
, PokerHand(..)
, pokerHand
----
-- hint
, straightHint
, flushHint
, nOfKindHint
----
-- hand
, straightFlush
, fourOfAKind
, fullHouse
, flush
, straight
, threeOfAKind
, twoPair
, onePair
----
, DiscardList
, Deck
, ... | tokiwoousaka/draw-poker | src/Game/Poker/Hands.hs | bsd-3-clause | 4,459 | 1 | 13 | 1,140 | 1,772 | 945 | 827 | 147 | 3 |
{-# LANGUAGE
TemplateHaskell
, NamedFieldPuns
, CPP #-}
-- | Provides a quasiquoter for hexadecimal ByteString literals, with
-- placeholders that bind variables.
module Data.Hex.Quote
( -- * The quasiquoter
hex
-- * Helper functions
, parseHex
) where
import Control.Arrow
import Contr... | kmcallister/hexquote | Data/Hex/Quote.hs | bsd-3-clause | 4,955 | 0 | 13 | 1,276 | 1,042 | 568 | 474 | 84 | 3 |
{-# LANGUAGE CPP, ConstraintKinds, DeriveDataTypeable, FlexibleContexts, MultiWayIf, NamedFieldPuns,
OverloadedStrings, PackageImports, RankNTypes, RecordWildCards, ScopedTypeVariables,
TemplateHaskell, TupleSections #-}
-- | Run commands in Docker containers
module Stack.Docker
(cleanup
... | martin-kolinek/stack | src/Stack/Docker.hs | bsd-3-clause | 42,702 | 0 | 40 | 14,268 | 9,454 | 4,793 | 4,661 | 844 | 22 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.EXT.DepthBoundsTest
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/EXT/DepthBoundsTest.hs | bsd-3-clause | 774 | 0 | 4 | 91 | 52 | 42 | 10 | 6 | 0 |
{-# LANGUAGE
OverloadedStrings
#-}
module Network.WebDav.Server where
import Control.Monad
import Control.Monad.IO.Class
import Data.ByteString (ByteString)
import qualified Data.ByteString as ByteString
import qualified Data.ByteString.Char8 as Char8
import Data.List
import Data.Traversable
import Network.HTTP... | jamshidh/webdavServer | src/Network/WebDav/Server.hs | bsd-3-clause | 4,202 | 0 | 18 | 808 | 1,028 | 535 | 493 | 84 | 4 |
module SampleInstances.FirstLastWord.DslInterpreter where
import PolyGraph.Common (OPair(..))
import qualified FreeDSL.GraphBuilder as DSL
import qualified SampleInstances.FirstLastWord as SentenceGraph
interpretAsFirstLastWordDiGraph :: forall v edata . (Eq v, Show v, Show edata)
... | rpeszek/GraphPlay | play/SampleInstances/FirstLastWord/DslInterpreter.hs | bsd-3-clause | 1,114 | 0 | 17 | 247 | 292 | 159 | 133 | -1 | -1 |
module Zero.Sjcl.Hkdf
(
hkdf
, hkdfText
) where
import qualified Data.JSString as JSS
import Data.JSString (JSString)
import qualified Data.Text as T
import Data.Text (Text)
import Zero.Sjcl.BitArray (BitArray)
------------------------------------------------------------------... | et4te/zero | src/Zero/Sjcl/Hkdf.hs | bsd-3-clause | 1,101 | 12 | 12 | 185 | 274 | 148 | 126 | 19 | 1 |
--
-- Because commandline options, yeah.
--
module ZeroOpts (Options(..), getOptions) where
import Control.Applicative
import Control.Monad
import Options.Applicative
data Options = Options {
o_http :: Int
, o_zmq :: String
, o_timeout :: Float
} deriving (Show, Eq)
getOptions :: IO Options
getOpt... | element-doo/ekade | code/haskell/src/ZeroOpts.hs | bsd-3-clause | 1,240 | 0 | 12 | 323 | 354 | 182 | 172 | 27 | 2 |
{-# LANGUAGE CPP #-}
module Distribution.Solver.Modular.Cycles (
detectCyclesPhase
) where
import Prelude hiding (cycle)
import Data.Graph (SCC)
import qualified Data.Graph as Gr
import qualified Data.Map as Map
import Distribution.Solver.Modular.Dependency
import Distribution.Solver.Modular.Tree
import quali... | kolmodin/cabal | cabal-install/Distribution/Solver/Modular/Cycles.hs | bsd-3-clause | 1,914 | 0 | 12 | 460 | 511 | 280 | 231 | 34 | 7 |
data Twin a = Twin a a deriving Show
mapTwin :: (a -> b) -> Twin a -> Twin b
mapTwin f (Twin x y) = Twin (f x) (f y)
data Rep a = Rep Int a deriving Show
toList :: Rep a -> [a]
toList (Rep n x) = replicate n x
data Option a b = Single a | Option a b deriving Show
human :: Option String Int -> String
human (Single ... | YoshikuniJujo/funpaala | samples/22_adt_poly_rec/adtPoly.hs | bsd-3-clause | 1,186 | 0 | 8 | 314 | 666 | 348 | 318 | 34 | 1 |
{- |
utilties for topic operations
-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ConstraintKinds #-}
module Api.Ops.Topic.Parts where
import Control.Applicative
import Control.Monad.Cont
import Control.Monad.Base (MonadBase)
import Control.Exception.Lifted (throwIO)
import qualified Database.Groundhog as Gh
imp... | raptros/chatless-hs | src/Api/Ops/Topic/Parts.hs | bsd-3-clause | 6,817 | 0 | 15 | 1,524 | 1,541 | 800 | 741 | 84 | 1 |
module Language.Interpreter.StdLib.Shapes
( addShapesStdLib
)
where
import Control.Monad.Except
import Gfx.Context ( drawShape )
import Language.Ast ( Value(Symbol, Null, Number) )
import Language.Interpreter.Types ( InterpreterProce... | rumblesan/proviz | src/Language/Interpreter/StdLib/Shapes.hs | bsd-3-clause | 830 | 0 | 12 | 322 | 179 | 100 | 79 | 15 | 2 |
module RBrun where
-- Grafische weergave van rood-zwart bomen. Werkt alleen voor *binaire* bomen.
--
-- Jan Kuper, 5 mei 2008
-- ============================================================================
import FPPrac.Events
import FPPrac.Graphics
import RBgraphics
import Prelude
-- ============= types ============... | christiaanb/fpprac | examples/RBrun.hs | bsd-3-clause | 3,057 | 0 | 18 | 1,674 | 519 | 281 | 238 | 34 | 1 |
module WebServer.Server (runServer
, URLParams
, POSTParams
, Render
) where
import Network.Socket hiding (send, sendTo, recv, recvFrom)
import Network.Socket.ByteString
import qualified Data.ByteString.Lazy as B
type HTTPParams = [(String, String)]
type ISFinalView = Bool
type HTTPStatus = Int
type ... | davbaumgartner/flaskell | src/WebServer/Server.hs | bsd-3-clause | 3,935 | 30 | 19 | 668 | 930 | 484 | 446 | 98 | 1 |
{-
(c) The AQUA Project, Glasgow University, 1994-1998
\section[ErrsUtils]{Utilities for error reporting}
-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE BangPatterns #-}
module ErrUtils (
-- * Basic types
Validity(..), andValid, allValid, isValid, getInvalids,
Severity(..),
-- * Messages
... | mettekou/ghc | compiler/main/ErrUtils.hs | bsd-3-clause | 21,656 | 0 | 24 | 6,512 | 4,631 | 2,427 | 2,204 | 365 | 6 |
-- | Wraps the expression submodules.
module Nix.Expr
( module Nix.Expr.Types
, module Nix.Expr.Types.Annotated
, module Nix.Expr.Shorthands
)
where
import Nix.Expr.Types
import Nix.Expr.Shorthands
import Nix.Expr.Types.Annotated
| jwiegley/hnix | src/Nix/Expr.hs | bsd-3-clause | 269 | 0 | 5 | 64 | 50 | 35 | 15 | 7 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE QuasiQuotes, TemplateHaskell, CPP, GADTs, TypeFamilies, OverloadedStrings, FlexibleContexts, EmptyDataDecls #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module MigrationColumnLengthTest where
import Database.Persist.TH
import qu... | plow-technologies/persistent | persistent-test/src/MigrationColumnLengthTest.hs | mit | 768 | 0 | 9 | 119 | 66 | 42 | 24 | 14 | 1 |
import Control.Monad.State
newtype Supply s a = S (State [s] a)
{-- snippet unwrapS --}
unwrapS :: Supply s a -> State [s] a
unwrapS (S s) = s
instance Monad (Supply s) where
s >>= m = S (unwrapS s >>= unwrapS . m)
return = S . return
{-- /snippet unwrapS --}
| binesiyu/ifl | examples/ch15/AltSupply.hs | mit | 271 | 0 | 10 | 65 | 117 | 62 | 55 | 7 | 1 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : ./Comorphisms/CspCASL2Modal.hs
Copyright : (c) Till Mossakowski and Uni Bremen 2004
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@informatik.uni-bremen.de
Stability : provisional
Portability ... | spechub/Hets | Comorphisms/CspCASL2Modal.hs | gpl-2.0 | 1,790 | 0 | 7 | 285 | 280 | 152 | 128 | 32 | 1 |
module InfixDefaultAssoc where
main :: Int
main = 3 + 4 + 4
| roberth/uu-helium | test/correct/InfixDefaultAssoc.hs | gpl-3.0 | 61 | 0 | 6 | 14 | 22 | 13 | 9 | 3 | 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="pl-PL">
<title>Context Alert Filters | ZAP Extension</title>
<maps>
<homeID>top</homeID>
... | veggiespam/zap-extensions | addOns/alertFilters/src/main/javahelp/org/zaproxy/zap/extension/alertFilters/resources/help_pl_PL/helpset_pl_PL.hs | apache-2.0 | 986 | 80 | 66 | 161 | 422 | 213 | 209 | -1 | -1 |
-- | Clean out unneeded spill\/reload instructions.
--
-- Handling of join points
-- ~~~~~~~~~~~~~~~~~~~~~~~
--
-- B1: B2:
-- ... ...
-- RELOAD SLOT(0), %r1 RELOAD SLOT(0), %r1
-- ... A ... ... B ...
-- jump B3 ... | snoyberg/ghc | compiler/nativeGen/RegAlloc/Graph/SpillClean.hs | bsd-3-clause | 21,081 | 0 | 18 | 7,538 | 3,813 | 1,943 | 1,870 | 324 | 3 |
-- | Entirely re-exports.
module Network.API.Builder
( module Network.API.Builder.API
, module Network.API.Builder.Builder
, module Network.API.Builder.Error
, module Network.API.Builder.Query
, module Network.API.Builder.Receive
, module Network.API.Builder.Routes
, module Network.API.Builder.Send ) wher... | eryx67/api-builder | src/Network/API/Builder.hs | bsd-3-clause | 556 | 0 | 5 | 58 | 115 | 84 | 31 | 15 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
-- |
-- Copyright : Anders Claesson 2015-2017
-- Maintainer : Anders Claesson <anders.claesson@gmail.com>
-- License : BSD-3
--
module HOPS.GF
( module HOPS.GF.Series
, module HOPS.GF.Transform
, module HOPS.Pr... | akc/gfscript | HOPS/GF.hs | bsd-3-clause | 20,177 | 0 | 31 | 4,790 | 8,617 | 4,392 | 4,225 | 517 | 6 |
-- Copyright (c) 2016 Eric McCorkle. All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
--
-- 1. Redistributions of source code must retain the above copyright
-- notice, this list of conditi... | emc2/compiler-misc | src/Control/Monad/Messages.hs | bsd-3-clause | 12,649 | 0 | 15 | 3,028 | 3,051 | 1,628 | 1,423 | 239 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
module Text.Translate (translate) where
-- This module is just a wrapper to Text.Language.Translate
-- It exists for backward compatibility.
import Text.Language.Translate (translate)
| nfjinjing/translate | src/Text/Translate.hs | bsd-3-clause | 223 | 0 | 5 | 29 | 25 | 17 | 8 | 3 | 0 |
{-| Path-related helper functions.
-}
{-
Copyright (C) 2012, 2014 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright notice,... | leshchevds/ganeti | src/Ganeti/Path.hs | bsd-2-clause | 6,199 | 0 | 8 | 1,028 | 811 | 464 | 347 | 99 | 1 |
{-# LANGUAGE CPP #-}
module NameShape(
NameShape(..),
emptyNameShape,
mkNameShape,
extendNameShape,
nameShapeExports,
substNameShape,
) where
#include "HsVersions.h"
import Outputable
import HscTypes
import Module
import UniqFM
import Avail
import FieldLabel
import Name
import NameEnv
im... | olsner/ghc | compiler/backpack/NameShape.hs | bsd-3-clause | 11,000 | 0 | 18 | 2,924 | 1,658 | 851 | 807 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Bag: an unordered collection with duplicates
-}
{-# LANGUAGE DeriveDataTypeable, ScopedTypeVariables #-}
module ETA.Utils.Bag (
Bag, -- abstract type
emptyBag, unitBag, unionBags, unionManyBags,
... | alexander-at-github/eta | compiler/ETA/Utils/Bag.hs | bsd-3-clause | 9,862 | 0 | 11 | 3,067 | 3,888 | 1,980 | 1,908 | 204 | 2 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section{@Vars@: Variables}
-}
{-# LANGUAGE CPP, DeriveDataTypeable, MultiWayIf #-}
-- |
-- #name_types#
-- GHC uses several kinds of name internally:
--
-- * 'OccName.OccName': see "OccName#name_types"
--
-- * 'RdrName.R... | mcschroeder/ghc | compiler/basicTypes/Var.hs | bsd-3-clause | 16,953 | 0 | 19 | 4,653 | 2,796 | 1,550 | 1,246 | 225 | 1 |
#!/usr/bin/runhaskell
import Distribution.Simple
main = defaultMainWithHooks defaultUserHooks
| SAdams601/ParRegexSearch | test/fst-0.9.0.1/Setup.hs | mit | 96 | 0 | 5 | 9 | 15 | 8 | 7 | 2 | 1 |
module Options.RecompilationChecking where
import Types
recompilationCheckingOptions :: [Flag]
recompilationCheckingOptions =
[ flag { flagName = "-fforce-recomp"
, flagDescription =
"Turn off recompilation checking. This is implied by any " ++
"``-ddump-X`` option when compiling a si... | oldmanmike/ghc | utils/mkUserGuidePart/Options/RecompilationChecking.hs | bsd-3-clause | 475 | 0 | 9 | 128 | 59 | 37 | 22 | 11 | 1 |
-- GSoC 2015 - Haskell bindings for OpenCog.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DataKinds #-}
-- | Simple example on executing code in multiple threads.
-- Note, before compiling this code you need to install the package: 'random'.
-- Executing: stack install random
import OpenCog.AtomSpace (AtomSpace,inse... | rodsol/atomspace | examples/haskell/example_multithreading.hs | agpl-3.0 | 1,986 | 0 | 13 | 560 | 652 | 325 | 327 | 53 | 3 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude, NondecreasingIndentation,
RecordWildCards, ScopedTypeVariables #-}
{-# OPTIONS_GHC -Wno-name-shadowing #-}
module GHC.IO.Encoding.CodePage.API (
mkCodePageEncoding
) where
import Foreign.C
import Foreign.Ptr
import Foreign.Marshal
im... | snoyberg/ghc | libraries/base/GHC/IO/Encoding/CodePage/API.hs | bsd-3-clause | 23,234 | 37 | 27 | 6,311 | 3,676 | 1,882 | 1,794 | -1 | -1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- $Id: DriverPhases.hs,v 1.38 2005/05/17 11:01:59 simonmar Exp $
--
-- GHC Driver
--
-- (c) The University of Glasgow 2002
--
-----------------------------------------------------------------------------
module Driver... | mfine/ghc | compiler/main/DriverPhases.hs | bsd-3-clause | 13,429 | 0 | 11 | 3,671 | 2,255 | 1,229 | 1,026 | 225 | 20 |
{-# LANGUAGE CPP #-}
module CodeGen.Platform.PPC where
import GhcPrelude
#define MACHREGS_NO_REGS 0
#define MACHREGS_powerpc 1
#include "../../../../includes/CodeGen.Platform.hs"
| ezyang/ghc | compiler/codeGen/CodeGen/Platform/PPC.hs | bsd-3-clause | 183 | 0 | 3 | 21 | 14 | 11 | 3 | 3 | 0 |
-- |
-- Various utilities for forcing Core structures
--
-- It can often be useful to force various parts of the AST. This module
-- provides a number of @seq@-like functions to accomplish this.
module CoreSeq (
-- * Utilities for forcing Core structures
seqExpr, seqExprs, seqUnfolding, seqRules,
... | tjakway/ghcjvm | compiler/coreSyn/CoreSeq.hs | bsd-3-clause | 3,698 | 0 | 12 | 911 | 1,395 | 758 | 637 | 78 | 1 |
{-# LANGUAGE PartialTypeSignatures #-}
module WildcardInADT1 where
data Foo a = Foo (Either _ a)
| siddhanathan/ghc | testsuite/tests/partial-sigs/should_fail/WildcardInADT1.hs | bsd-3-clause | 98 | 0 | 8 | 16 | 23 | 14 | 9 | 3 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.