code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module ClashSpec (main, spec) where
import Clash
import Test.Hspec
import Test.QuickCheck
import Test.QuickCheck.Instances
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "someFunction" $ do
it "should work fine" $ do
property someFunction
someFunction :: Bool -> Bool -> Property
someFu... | athanclark/clash | test/ClashSpec.hs | bsd-3-clause | 341 | 0 | 13 | 70 | 112 | 59 | 53 | 14 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module ZM.Type.Char where
import Data.Model
import ZM.Type.Words
-- |A Unicode Char
data Char = Char Word32 deriving (Eq, Ord, Show, Generic, Model)
| tittoassini/typed | src/ZM/Type/Char.hs | bsd-3-clause | 216 | 0 | 6 | 34 | 53 | 32 | 21 | 6 | 0 |
module Main
where
import Language.Haskell.Preprocessor
import qualified Data.ByteString as B
import System.Directory
import System.Environment (getArgs)
import Control.Arrow ((&&&), second)
import Control.Applicative ((<$>))
import Control.Monad
import System.FilePath
import Data.Version (showVersion)
import Paths_hsb... | jgm/hsb2hs | hsb2hs.hs | bsd-3-clause | 2,113 | 0 | 16 | 498 | 809 | 418 | 391 | 57 | 3 |
module Main where
import Lib
import Interpreter
import Control.Monad
import Control.Monad.State
import qualified Data.Map as Map
main :: IO ()
main = do
putStrLn "Plz enter filename (file1.txt may work)"
f <- getLine
content <- readFile f
run $ map (read :: String -> Statement) $ lines content
| irwingarry/iterpret | app/Main.hs | bsd-3-clause | 306 | 0 | 11 | 59 | 94 | 50 | 44 | 12 | 1 |
module Simulation.Internal
( computeSimulation
, AnalysisParameters(..)
, turbidostatCoefficientsForPopulationSize
, optimumCalculation
, randomOptimum
, collapse
, randomPopulation
-- , randomRules
, average
, stdDev
, allTheSame
, almostAllTheSame
) where
import ... | satai/FrozenBeagle | Simulation/Lib/src/Simulation/Internal.hs | bsd-3-clause | 11,904 | 0 | 16 | 2,662 | 3,061 | 1,591 | 1,470 | 206 | 2 |
module Actor.Player (player) where
import Control.Applicative
import Control.Monad
import Graphics.Vty
import Types
import Utils
import Data.List
import Data.Ord
playerImg :: Image
playerImg = string (withForeColor defAttr brightBlue) "@"
player :: Coords -> Actor ()
player initPos = (ActorData playerImg initPos T... | bjornars/HaskellGame | src/Actor/Player.hs | bsd-3-clause | 1,256 | 0 | 23 | 447 | 365 | 188 | 177 | 34 | 7 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Snap.Test.BDD
(
-- * Types
SnapTesting
, TestResult(..)
, Sentiment(..)
, TestResponse(..)
, SnapTestingConfig (..)
-- * Configuration
, defaultConfig
-- * Running ... | dbp/snap-testing | src/Snap/Test/BDD.hs | bsd-3-clause | 20,296 | 0 | 22 | 6,796 | 4,920 | 2,557 | 2,363 | 331 | 7 |
module W3C.NTripleTest where
import Data.Maybe (fromJust)
import Test.Framework.Providers.API
import Test.Framework.Providers.HUnit
import qualified Test.HUnit as TU
import qualified Data.Text as T
import System.Directory
import W3C.Manifest
import Data.RDF.Types
import Text.RDF.RDF4H.NTriplesParser
import Data.RDF.... | cordawyn/rdf4h | testsuite/tests/W3C/NTripleTest.hs | bsd-3-clause | 2,022 | 0 | 14 | 316 | 585 | 304 | 281 | 41 | 1 |
{-# LANGUAGE TupleSections #-}
module Handler.Home where
import Import
import Handler.Util
import qualified Data.Map.Strict as Map
-- The GET handler displays the form
getHomeR :: Handler Html
getHomeR = do
-- Generate the form to be displayed
(widget, enctype) <- generateFormPost $ loanForm initLoan initE... | bartoszw/yhaslo | Handler/Home.hs | bsd-3-clause | 5,554 | 0 | 17 | 2,005 | 944 | 489 | 455 | -1 | -1 |
module Chip8.Memory where
import Data.Sized.Unsigned
data Address = Addr U12 deriving (Show)
data Immediate = Imm U8 deriving (Show)
data Register = Reg U4 deriving (Show)
| kharland/chip-8 | src/Chip8/memory.hs | mit | 174 | 0 | 6 | 28 | 60 | 35 | 25 | 5 | 0 |
{-# LANGUAGE CPP, DefaultSignatures, EmptyDataDecls, FlexibleInstances,
FunctionalDependencies, KindSignatures, OverlappingInstances,
ScopedTypeVariables, TypeOperators, UndecidableInstances,
ViewPatterns, NamedFieldPuns, FlexibleContexts, PatternGuards,
RecordWildCards #-}
-- |
-- Module: Data.Ae... | tavisrudd/ghcjs-base | JavaScript/JSON/Types/Generic.hs | mit | 23,847 | 0 | 18 | 6,196 | 5,727 | 2,965 | 2,762 | -1 | -1 |
{- |
Module : Main
Description : Main module for the haskell plugin provider
Copyright : (c) Sebastian Witte
License : Apache-2.0
Maintainer : woozletoff@gmail.com
Stability : experimental
-}
module Main where
import Neovim (neovim, defaultConfig)
main :: IO ()
main = neovim defa... | lslah/nvim-hs | executable/Main.hs | apache-2.0 | 330 | 0 | 6 | 84 | 34 | 20 | 14 | 4 | 1 |
-- Copyright (c) 2014 Eric McCorkle.
--
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Public License as
-- published by the Free Software Foundation; either version 2 of the
-- License, or (at your option) any later version.
--
-- This program is distri... | emc2/saltlang | test/Test/Utils/ScratchDirs.hs | bsd-3-clause | 1,392 | 0 | 10 | 286 | 109 | 62 | 47 | 17 | 2 |
module Hint.InterpreterT (
InterpreterT, Interpreter, runInterpreter, runInterpreterWithArgs,
MultipleInstancesNotAllowed(..)
)
where
import Prelude
import Hint.Base
import Hint.Context
import Hint.Configuration
import Hint.Extension
import Control.Applicative
import Control.Monad.Reader
import Control.Mona... | konn/hint-forked | src/Hint/InterpreterT.hs | bsd-3-clause | 9,430 | 1 | 17 | 2,580 | 1,719 | 907 | 812 | 126 | 2 |
-- | Server methods to do user authentication.
--
-- We authenticate clients using HTTP Basic or Digest authentication and we
-- authorise users based on membership of particular user groups.
--
{-# LANGUAGE PatternGuards #-}
module Distribution.Server.Framework.Auth (
-- * Checking authorisation
guardAuthorise... | edsko/hackage-server | Distribution/Server/Framework/Auth.hs | bsd-3-clause | 16,318 | 0 | 17 | 4,035 | 3,373 | 1,764 | 1,609 | 264 | 6 |
module Fib (foo) where
foo :: Int
foo = 23
-- | Calculate Fibonacci number of given 'Num'.
--
-- >>> putStrLn "foo"
-- foo
-- >>> putStr "bar"
-- bar
--
-- >>> putStrLn "baz"
-- baz
fib :: (Num t, Num t1) => t -> t1
fib _ = undefined
| snoyberg/doctest-haskell | test/parse/non-exported/Fib.hs | mit | 236 | 0 | 6 | 54 | 60 | 38 | 22 | 5 | 1 |
{-# LANGUAGE CPP, ScopedTypeVariables #-}
{-
Copyright (C) 2009 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) ... | imuli/gitit | Network/Gitit/Util.hs | gpl-2.0 | 3,853 | 0 | 12 | 1,021 | 772 | 424 | 348 | 71 | 11 |
{-# LANGUAGE CPP #-}
#if !defined(TESTING) && __GLASGOW_HASKELL__ >= 703
{-# LANGUAGE Trustworthy #-}
#endif
-----------------------------------------------------------------------------
-- |
-- Module : Data.IntMap
-- Copyright : (c) Daan Leijen 2002
-- (c) Andriy Palamarchuk 2008
-- License ... | jwiegley/ghc-release | libraries/containers/Data/IntMap.hs | gpl-3.0 | 3,849 | 0 | 9 | 679 | 292 | 195 | 97 | 20 | 1 |
module ForAll00001 where
data BlockedFetch r = forall a. BlockedFetch (r a) (ResultVar a) | charleso/intellij-haskforce | tests/gold/parser/ForAll00001.hs | apache-2.0 | 90 | 0 | 8 | 14 | 33 | 19 | 14 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE CPP #-}
module TestUtils (getTWInfo) where
import Web.Twitter.Conduit
import Web.Authenticate.OAuth as OA
import qualified Network.URI as URI
import Network.HTTP.Conduit
import qualified Data.Map as M
i... | AndrewRademacher/twitter-conduit | tests/TestUtils.hs | bsd-2-clause | 1,817 | 0 | 15 | 413 | 486 | 264 | 222 | 46 | 3 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Manages a pool of available ports and allocates them.
module Keter.PortPool
( -- * Types
PortPool
-- * Actions
, getPort
, releasePort
-- * Initialize
, start
) where... | telser/keter | Keter/PortPool.hs | mit | 2,440 | 0 | 23 | 914 | 584 | 299 | 285 | 57 | 5 |
{-# LANGUAGE CPP #-}
module RIO where
#if __GLASGOW_HASKELL__ < 710
import Control.Applicative
#endif
{-@ data RIO a <p :: World -> Prop, q :: World -> a -> World -> Prop>
= RIO (rs :: (x:World<p> -> (a, World)<\w -> {v:World<q x w> | true}>))
@-}
data RIO a = RIO {runState :: World -> (a, World)}
{-@ runState ... | mightymoose/liquidhaskell | benchmarks/icfp15/neg/RIO.hs | bsd-3-clause | 2,313 | 0 | 15 | 749 | 243 | 140 | 103 | 15 | 0 |
module AsPatIn2 where
f :: Either a b -> Either a b
f x@(x@(Left b_1)) = x_1
f x@(x@(Right b_1)) = x_1
f x@(x_1) = x_1 | kmate/HaRe | old/testing/subIntroPattern/AsPatIn2_TokOut.hs | bsd-3-clause | 120 | 0 | 10 | 27 | 83 | 46 | 37 | 5 | 1 |
module T8542 where
import GHC.Int
x :: Int8
x = -128
y :: Int8
y = 128
| forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/numeric/should_compile/T8542.hs | bsd-3-clause | 74 | 0 | 5 | 20 | 31 | 19 | 12 | 6 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module T5971 where
import Language.Haskell.TH
_ = $(newName "x" >>= varE)
| urbanslug/ghc | testsuite/tests/th/T5971.hs | bsd-3-clause | 109 | 0 | 8 | 17 | 28 | 16 | 12 | 4 | 1 |
module Main (main) where
import System.Environment
import Control.Concurrent
import Control.Monad
-----------------------------------------------------------------------------
-- test MVar throughput between the main thread and a child thread
-- This test runs quite slowly on the threaded/SMP RTS vs. the normal RTS,... | urbanslug/ghc | testsuite/tests/concurrent/should_run/conc051.hs | bsd-3-clause | 837 | 0 | 9 | 156 | 186 | 93 | 93 | 18 | 1 |
module ClipSpaceWLong where
import qualified Matrix4f as M4x4;
import qualified Vector4f as V4;
clip_w_long :: M4x4.T -> V4.T -> Float
clip_w_long m eye =
let
m30 = M4x4.row_column m (3, 0)
m31 = M4x4.row_column m (3, 1)
m32 = M4x4.row_column m (3, 2)
m33 = M4x4.row_column m (3, 3)
k0 = (V4.x e... | io7m/r2 | com.io7m.r2.documentation/src/main/resources/com/io7m/r2/documentation/haskell/ClipSpaceWLong.hs | isc | 435 | 0 | 12 | 124 | 203 | 113 | 90 | 15 | 1 |
import Graphics.Oedel
-- Styling example with simple layout structure.
main :: IO ()
main = displayHtmlStatic $
setBack (rgb 0.8 0.9 1.0) $
inset $ withBorder () $
setBack white $
setWidth 300 $ setHeight 90 $
pad 10 10 10 10 $
block center $
withStyle (textColor (rgb 1.0 0.2 0... | dzamkov/Oedel | doc/examples/Fancy.hs | mit | 395 | 0 | 18 | 115 | 143 | 67 | 76 | 12 | 1 |
module Data.LookupTable where
-- Gives the index for a lookup value (useful for storing data from a lookup)
import Data.Map (Map)
import qualified Data.Map as Map
import qualified Data.Set as Set
import Data.Tuple (swap)
type LookupTable = Map String Integer
-- Now we need to flip the table for when we're doing f... | geophf/1HaskellADay | exercises/HAD/Data/LookupTable.hs | mit | 674 | 0 | 9 | 132 | 164 | 91 | 73 | 11 | 1 |
------------------------------------------------------------------------------
module Main
( main
) where
------------------------------------------------------------------------------
import Data.Matrix
------------------------------------------------------------------------------
import qualified Examples
... | zmthy/incidental-detail | src/Main.hs | mit | 723 | 0 | 8 | 64 | 85 | 51 | 34 | 9 | 1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses,
DeriveDataTypeable, OverloadedStrings, StandaloneDeriving #-}
module ConvertImage(
ImageString
, Blueprint
, Position
, Phase(..)
, header
, phrases
, convertpngs
) where
import Data.Typeable(Typeable)
import Dat... | Hrothen/dorfCAD | src/ConvertImage.hs | mit | 5,063 | 0 | 13 | 1,240 | 1,485 | 788 | 697 | -1 | -1 |
import Data.Char (toUpper)
import Data.Time.Calendar (fromGregorian)
import Test.Hspec (Spec, it, shouldBe)
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)
import Person
( Address (..)
, Born (..)
, Name (..)
, Person (..)
, bornStreet
, renameStreets
, setBir... | exercism/xhaskell | exercises/practice/lens-person/test/Tests.hs | mit | 2,074 | 0 | 14 | 912 | 437 | 249 | 188 | 49 | 1 |
module KcCacheServer.RequestHandler where
import Control.Concurrent.MSem
import Control.Concurrent.MVar
import Control.Monad.IO.Class
import qualified Data.ByteString.Lazy as BSL
import qualified Data.HashMap.Strict as HM
import qualified Data.HashSet as HS
import qualified Data.Text as T
import qualified KcCacheServe... | Javran/misc | kancolle-cache-server/src/KcCacheServer/RequestHandler.hs | mit | 1,040 | 0 | 13 | 198 | 268 | 149 | 119 | 30 | 2 |
module Data.Queue where
data Queue a = Queue [a] [a]
deriving (Show)
instance Eq a => Eq (Queue a) where
(==) a b = let a' = reorder a
b' = reorder b
in checkEq a' b'
where checkEq (Queue xs ys) (Queue xs' ys') = ys == ys'
mkQueue :: a -> Queue a
mkQueue a = Queue [a] []... | Kiandr/CrackingCodingInterview | Haskell/src/chapter-3/Data/Queue.hs | mit | 831 | 0 | 11 | 239 | 447 | 223 | 224 | 26 | 2 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE ForeignFunctionInterface #-}
module Descriptors
( LLVMType
, getFieldTypePtr
, getMethodTypePtr
, parseOnlyFieldType
, parseOnlyMethodType
) where
import Data.ByteString (ByteString, pack, useAsCString, append)
import Data.Char (ord)
import Data.Attoparse... | MichaeGon/java | Descriptors.hs | mit | 4,835 | 0 | 12 | 1,111 | 1,554 | 797 | 757 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
module Control.Monad.Log.NameSpace where
import Control.Monad.Log
#if !(MIN_VERSION_base(4,8,0))
import Control.Applicative
#endif
import Data.Aeson
import Data.Text (Text)
import qualified Data.Text as T
-- | A newtype around ... | winterland1989/monad-log | Control/Monad/Log/NameSpace.hs | mit | 1,440 | 0 | 8 | 242 | 310 | 173 | 137 | 22 | 1 |
import System.Environment
f[]=['Α'..'Ρ']++['Σ'..'Ω']
f _=['α'..'ρ']++['σ'..'ω']
main=f<$>getArgs>>=putStr | RAFIRAF/HASKELL | haskellGreekAlph.hs | mit | 113 | 0 | 6 | 5 | 65 | 35 | 30 | 4 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Command.Rule (listRulesCommand, addRuleCommand) where
import Control.Monad
import Data.Maybe
import Data.List
import Data.Time
import Data.Time.Recurrence
import Database.HDBC
import Settings
import Util
listRulesCommand :: [String] -> String -> IO ()
listRulesCommand args... | jpotterm/manila-hs | src/Command/Rule.hs | cc0-1.0 | 3,665 | 0 | 15 | 890 | 886 | 432 | 454 | 78 | 3 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Course (module X) where
import Course.Anagrams as X
import Course.Applicative as X
import Course.Cheque as X
import Course.Comonad as X
import Course.Compose as X
import Course.Core as X
import Course.Extend as X
import Course.FastAnagrams... | harrisi/on-being-better | list-expansion/Haskell/course/src/Course.hs | cc0-1.0 | 792 | 0 | 4 | 115 | 187 | 134 | 53 | 28 | 0 |
{-# LANGUAGE TypeSynonymInstances, ScopedTypeVariables, FlexibleInstances #-}
{-
Copyright (C) 2009 John MacFarlane <jgm@berkeley.edu>,
Anton van Straaten <anton@appsolutions.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
t... | cleichner/gitit | src/Network/Gitit/Types.hs | gpl-2.0 | 18,907 | 0 | 18 | 7,644 | 3,527 | 2,057 | 1,470 | 356 | 3 |
module Language.Expressions where
data Stmt = Cmd { name :: Expr
, args :: [Expr]
, input :: Maybe Expr
, output :: Maybe Expr
}
| Assign { var :: String
, val :: Expr
}
| CmdL [Stmt]
... | tomicm/puh-hash | Language/Expressions.hs | gpl-2.0 | 1,137 | 0 | 9 | 585 | 293 | 175 | 118 | 35 | 0 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
{- |
Module : ./CSL/Logic_CSL.hs
Description : Instance of class Logic for CSL
Copyright : (c) Dominik Dietrich, DFKI Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : dominik.dietrich@dfki.de
Stability : experimental
Porta... | gnn/Hets | CSL/Logic_CSL.hs | gpl-2.0 | 4,124 | 0 | 8 | 1,222 | 524 | 295 | 229 | 73 | 0 |
{-| Implementation of command-line functions.
This module holds the common command-line related functions for the
binaries, separated into this module since "Ganeti.Utils" is
used in many other places and this is more IO oriented.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
This program is free so... | vladimir-ipatov/ganeti | src/Ganeti/HTools/CLI.hs | gpl-2.0 | 25,572 | 0 | 21 | 6,618 | 5,419 | 3,068 | 2,351 | 618 | 3 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : $Header$
Description : matching of terms modulo definition expansion
Copyright : (c) Ewaryst Schulz, DFKI Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : ewaryst.schulz@dfki.de
Stability : experimental
Portab... | nevrenato/Hets_Fork | HasCASL/MatchingWithDefinitions.hs | gpl-2.0 | 15,022 | 0 | 19 | 4,693 | 4,047 | 2,080 | 1,967 | 251 | 13 |
module Game.Kittens.KittenData where
import Game.NetworkedGameEngine
import Data.List
import Data.Maybe
import Control.Concurrent
data Card = DefuseCard
| NopeCard
| ExplodingKittenCard
| AttackCard
| SkipCard
| FavorCard
| ShuffleCard
| SeeFutureC... | Lazersmoke/exploding-kittens | src/Game/Kittens/KittenData.hs | gpl-3.0 | 1,260 | 0 | 9 | 288 | 341 | 201 | 140 | 44 | 1 |
module Authentication(
clientId,
clientSecret,
maybeDisplayName,
maybeUserIdent,
clearAuthSession
) where
import Import.NoFoundation
-- import Yesod.Auth.BrowserId
import Yesod.Auth.GoogleEmail2
-- Replace with Google client ID.
clientId :: Text
clientId = "197748900362-pj584nskcnin... | nishiuramakoto/logiku | app/Authentication.hs | gpl-3.0 | 2,673 | 0 | 18 | 741 | 452 | 227 | 225 | 46 | 3 |
module HsPredictor.SQL.Queries where
--standard
import Data.Text (pack)
--3rd party
import Database.Esqueleto ((^.))
import qualified Database.Esqueleto as E
import Database.Persist.Sql (Entity (..), Filter, Key (..),
Se... | jacekm-git/HsPredictor | library/HsPredictor/SQL/Queries.hs | gpl-3.0 | 2,313 | 0 | 12 | 765 | 797 | 417 | 380 | 57 | 2 |
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RankNTypes #... | jyp/inox | C/Common.hs | gpl-3.0 | 2,645 | 0 | 12 | 569 | 1,074 | 581 | 493 | 72 | 1 |
{-# LANGUAGE TemplateHaskell
, DeriveTraversable
, DeriveFoldable
, DeriveDataTypeable
, GeneralizedNewtypeDeriving
, OverloadedStrings
#-}
module Types
( module Types
, module Export
) where
import Control.Applicative
import Crypto.Scrypt... | ibabushkin/morgue-server | src/Types.hs | gpl-3.0 | 16,142 | 0 | 15 | 4,934 | 3,838 | 2,113 | 1,725 | 304 | 0 |
module TB.Transformers.Except.Examples (
safeDiv,
safeDiv',
runSafeDiv'
) where
import Control.Applicative
import Control.Monad.IO.Class
import Control.Monad.Trans.Except
import Data.Foldable
import Data.Functor.Identity
import Data.Traversable
-- | sa... | adarqui/ToyBox | haskell/ross/transformers/src/TB/Transformers/Except/Examples.hs | gpl-3.0 | 2,446 | 0 | 14 | 570 | 694 | 386 | 308 | 40 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module :
-- Copyright : (c) 2013 Boyun Tang
-- License : BSD-style
-- Maintainer : tangboyun@hotmail.com
-- Stability : experimental
-- Portability : ghc
--
--
--
---------------------------------------------------------------------... | tangboyun/miranda | src/MiRanda/Enrich.hs | gpl-3.0 | 2,112 | 1 | 18 | 557 | 800 | 415 | 385 | 50 | 1 |
module Wiretap.Data.Program
( Program
, fromFolder
, empty
, nullInst
, findInstruction
, Method(..)
, Field(..)
, Instruction(..)
, instName
, fieldName
, methodName
) where
-- The programs of wiretap are represented in this module. This module therefore
-- contains all the static information... | ucla-pls/wiretap-tools | src/Wiretap/Data/Program.hs | gpl-3.0 | 3,220 | 0 | 20 | 750 | 941 | 510 | 431 | 95 | 2 |
module Core.Http where
import Control.Lens ((^.))
import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.Lazy as L
import Data.Text.Lazy.Encoding (decodeUtf8)
import qualified Network.Wreq as Wreq
d... | inq/agitpunkt | src/Core/Http.hs | agpl-3.0 | 575 | 0 | 11 | 172 | 160 | 94 | 66 | 15 | 1 |
{-# LANGUAGE TypeFamilies #-}
f :: ((~) a b) => a -> b
f = id
| lspitzner/brittany | data/Test341.hs | agpl-3.0 | 62 | 0 | 6 | 16 | 29 | 17 | 12 | -1 | -1 |
{-|
Module : Moonbase.Theme
Copyright : (c) Felix Schnizlein, 2014
License : GPL-2
Maintainer : felix@none.io
Stability : experimental
Portability : POSIX
Some helper function to complete Gtk's functionality
-}
module Moonbase.Util.Gtk
( iosync
, ioasync
, withDisplay
, pangoColor
, pangoSanitize
... | felixsch/moonbase-ng | src/Moonbase/Util/Gtk.hs | lgpl-2.1 | 5,905 | 0 | 15 | 1,693 | 1,665 | 862 | 803 | 125 | 5 |
module Main where
import Lib
import Test.QuickCheck
functorIdentity :: (Functor f, Eq (f a)) => f a -> Bool
functorIdentity f = fmap id f == f
functorCompose :: (Eq (f c), Functor f) => (a -> b) -> (b -> c) -> f a -> Bool
functorCompose f g x = (fmap g (fmap f x) == (fmap (g . f) x))
instance Arbitrary a => Arb... | thewoolleyman/haskellbook | 16/10/maor/test/Spec.hs | unlicense | 2,159 | 0 | 12 | 524 | 1,036 | 532 | 504 | 56 | 1 |
-- This file is needed because cabal check complains about the -main-is option
-- for ghc, and we would like to import the app code into a test file at the
-- same time.
module Main where
import Options.Applicative
import DockerFu(parse, dockerTodo)
main :: IO ()
main = putStrLn "Hello World" {- do args <- execParse... | lancelet/bored-robot | app/docker-fu.hs | apache-2.0 | 366 | 0 | 6 | 75 | 42 | 26 | 16 | 5 | 1 |
module AlecSequences.A270654 (a270654) where
import Data.List (genericIndex, genericLength)
import Helpers.AlecHelper (buildAlecSequence)
import Helpers.Primes (isPrime)
import HelperSequences.A032741 (a032741)
a270654 :: Integral a => a -> a
a270654 i = genericIndex a270654_list (i - 1)
a270654_list :: Integral a =>... | peterokagey/haskellOEIS | src/AlecSequences/A270654.hs | apache-2.0 | 573 | 0 | 11 | 95 | 213 | 115 | 98 | 14 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-| Unittests for the MonD data parse function -}
{-
Copyright (C) 2013 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 ... | apyrgio/ganeti | test/hs/Test/Ganeti/HTools/ExtLoader.hs | bsd-2-clause | 4,877 | 0 | 17 | 953 | 948 | 503 | 445 | 75 | 3 |
-----------------------------------------------------------------------------
-- |
-- Module : Text.ParserCombinators.Parsec
-- Copyright : (c) Daan Leijen 1999-2001
-- License : BSD-style (see the file libraries/parsec/LICENSE)
--
-- Maintainer : Antoine Latter <aslatter@gmail.com>
-- Stability : p... | aslatter/parsec2 | Text/ParserCombinators/Parsec.hs | bsd-2-clause | 2,160 | 0 | 5 | 544 | 146 | 113 | 33 | 17 | 0 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QTranslator_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:31
Warning : this file is machine generated - do... | uduki/hsQt | Qtc/Core/QTranslator_h.hs | bsd-2-clause | 25,032 | 0 | 18 | 5,848 | 8,370 | 3,991 | 4,379 | -1 | -1 |
module Game.LambdaPad.Core
( ButtonState(Pressed, Released)
, Button
-- | A lens into whether the button is pressed.
, buttonState
, Direction (C, N, NE, E, SE, S, SW, W, NW)
, DPad
-- | A lens into the 'Direction' a 'DPad' is pressed.
, dir
, Trigger
-- | A lens into how far a trigger has been pres... | zearen-wover/lambda-pad-core | src/Game/LambdaPad/Core.hs | bsd-3-clause | 1,020 | 0 | 5 | 261 | 154 | 113 | 41 | 29 | 0 |
{-# LANGUAGE RecordWildCards, FlexibleInstances #-}
------------------------------------------------------------------------------
-- |
-- Module: Database.PostgreSQL.Simple.FromRow
-- Copyright: (c) 2012 Leon P Smith
-- License: BSD3
-- Maintainer: Leon P Smith <leon@melding-monads.com>
-- Stability: ex... | avieth/postgresql-simple | src/Database/PostgreSQL/Simple/FromRow.hs | bsd-3-clause | 9,954 | 0 | 22 | 2,483 | 3,274 | 1,784 | 1,490 | -1 | -1 |
{- | Inclusion of bundle-local copies of libraries in application bundles.
OS X application bundles can include local copies of libraries and
frameworks (ie dependencies of the executable) which aids distribution
and eases installation. Xcode and the traditional OS X development
toolchain support this fairly transpar... | soenkehahn/cabal-macosx | Distribution/MacOSX/Dependencies.hs | bsd-3-clause | 9,845 | 0 | 17 | 2,554 | 1,691 | 858 | 833 | 148 | 5 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleContexts #-}
module LDrive.Tests.LED where
import Ivory.Tower
import LDrive.Platforms
import LDrive.LED
app :: (e -> ColoredLEDs) -> Tower e ()
app toleds = do
leds <- fmap toleds getEnv
blink (Milliseconds 1000) [redLED leds]
blink (Milliseconds 666)... | sorki/odrive | src/LDrive/Tests/LED.hs | bsd-3-clause | 337 | 0 | 9 | 54 | 107 | 55 | 52 | 11 | 1 |
module Main where
import Data.Char
import Data.List
import Data.List.Split
import Data.Ord
import Lib
{-
Each room consists of an encrypted name (lowercase letters separated by dashes) followed by a dash, a sector ID, and a checksum in square brackets.
A room is real ... | shapr/adventofcode2016 | src/Four/Main.hs | bsd-3-clause | 1,846 | 0 | 13 | 422 | 560 | 302 | 258 | 29 | 2 |
module Data.Blockchain.Crypto.HashTree
( HashTreeRoot
, unHashTreeRoot
, hashTreeRoot
) where
import qualified Data.Aeson as Aeson
import Data.Blockchain.Crypto.Hash
newtype HashTreeRoot a = HashTreeRoot { unHashTreeRoot :: Hash a }
deriving (Aeson.FromJSON, Aeson.ToJSON,... | TGOlson/blockchain | lib/Data/Blockchain/Crypto/HashTree.hs | bsd-3-clause | 1,252 | 0 | 13 | 299 | 240 | 136 | 104 | -1 | -1 |
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeAp... | silky/DanceView | src/Smoothing.hs | bsd-3-clause | 1,649 | 0 | 13 | 462 | 306 | 166 | 140 | 30 | 2 |
{-# LANGUAGE OverloadedStrings, GeneralizedNewtypeDeriving, StandaloneDeriving,
FlexibleContexts, FlexibleInstances, MultiParamTypeClasses,
TypeSynonymInstances #-}
import Data.Monoid
import Data.Foldable
import Data.Traversable hiding (mapM)
import Control.Appli... | bgamari/datalogger-web | WebApp.hs | bsd-3-clause | 9,929 | 0 | 19 | 2,910 | 3,072 | 1,492 | 1,580 | 212 | 2 |
{-# OPTIONS -cpp #-}
module Main where
{-
This file is part of funsat.
funsat is free software: it is released under the BSD3 open source license.
You can find details of this license in the file LICENSE at the root of the
source tree.
Copyright 2008 Denis Bueno
-}
import Control.Monad( when, f... | dbueno/funsat | Main.hs | bsd-3-clause | 6,579 | 0 | 17 | 1,909 | 1,819 | 969 | 850 | 149 | 4 |
{-# LANGUAGE ScopedTypeVariables, ViewPatterns #-}
module Lab5a where
import Data.Maybe
import Data.List
import Control.Arrow
import Data.Map (Map)
import qualified Data.Map as M
import Control.Monad.State
import Debug.Trace
data Fixity = Prefix | Infixl | Infixr
deriving (Show, Eq)
data Op a = Op { ter... | abbradar/comps | src/Lab5a.hs | bsd-3-clause | 4,179 | 0 | 22 | 1,775 | 1,564 | 857 | 707 | 99 | 6 |
{-# LANGUAGE FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.BLAS.Level2
-- Copyright : Copyright (c) 2010, Patrick Perry <patperry@gmail.com>
-- License : BSD3
-- Maintainer : Patrick Perry <patperry@gmail.com>
-- Stability : experim... | patperry/hs-linear-algebra | lib/Foreign/BLAS/Level2.hs | bsd-3-clause | 13,419 | 0 | 26 | 4,889 | 4,995 | 2,494 | 2,501 | 341 | 1 |
module Tests.FindFiles (findFiles, findAllFiles) where
import Control.Monad
import Data.List
import System.Directory
import System.FilePath
-- concatMapM, partitionM: pull out into monad utility lib? Does some version
-- of these already exist somewhere?
concatMapM :: Monad m => (a -> m [b]) -> [a] -> m [b]
concatMap... | Mistuke/CraftGen | Tests/FindFiles.hs | bsd-3-clause | 1,908 | 0 | 12 | 466 | 520 | 280 | 240 | 24 | 3 |
{-# LANGUAGE NamedFieldPuns #-}
module Astro.Orbit.Anomaly where
-- [1] http://mathworld.wolfram.com/KeplersEquation.html
import Numeric.Units.Dimensional.Prelude
import Numeric.Units.Dimensional.Coercion
import qualified Prelude
import Astro.Orbit.Types
import Data.AEq
-- | Compute eccentric anomaly from true anom... | bjornbm/astro | src/Astro/Orbit/Anomaly.hs | bsd-3-clause | 2,595 | 0 | 13 | 518 | 876 | 443 | 433 | 30 | 2 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1993-1998
\section[Specialise]{Stamping out overloading, and (optionally) polymorphism}
-}
{-# LANGUAGE CPP #-}
module Specialise ( specProgram, specUnfolding ) where
#include "HsVersions.h"
import Id
import TcType hiding( substTy )
import Type hiding( substTy, e... | GaloisInc/halvm-ghc | compiler/specialise/Specialise.hs | bsd-3-clause | 96,844 | 1 | 22 | 27,993 | 11,192 | 6,076 | 5,116 | -1 | -1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, RecordWildCards #-}
{-|
Module: Yesod.Contrib.League.Crud.TVarMap
Description: Representing CRUD entities in memory
Copyright: ©2015 Christopher League
Maintainer: league@contrapunctus.net
This is a proof of concept for implementing CRUD operations that are not based
on Databas... | league/yesod-crud | Yesod/Contrib/League/Crud/TVarMap.hs | bsd-3-clause | 1,705 | 0 | 11 | 375 | 328 | 178 | 150 | 33 | 1 |
{-# LANGUAGE CPP, Rank2Types, TypeFamilies #-}
-- |
-- Module : Data.Vector.Unboxed
-- Copyright : (c) Roman Leshchinskiy 2009-2010
-- License : BSD-style
--
-- Maintainer : Roman Leshchinskiy <rl@cse.unsw.edu.au>
-- Stability : experimental
-- Portability : non-portable
--
-- Adaptive unboxed vectors. T... | thomie/vector | Data/Vector/Unboxed.hs | bsd-3-clause | 45,001 | 0 | 14 | 9,783 | 10,049 | 5,586 | 4,463 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables, OverloadedStrings #-}
import System.Environment
import Network
import Client
main :: IO ()
main = do
(pn :: Int) : _ <- mapM readIO =<< getArgs
sv <- connectTo "localhost" (PortNumber $ fromIntegral pn)
httpPost sv "I am client.\n" >>= print
| YoshikuniJujo/forest | subprojects/http-analysis/get/post.hs | bsd-3-clause | 282 | 0 | 11 | 49 | 87 | 43 | 44 | 9 | 1 |
{- |
Module : SAWScript.Crucible.JVM.MethodSpecIR
Description : Provides type-checked representation for Crucible/JVM function
specifications and functions for creating it from a SAWscript AST.
Maintainer : atomb
Stability : provisional
-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DoAndIfThenElse #-... | GaloisInc/saw-script | src/SAWScript/Crucible/JVM/MethodSpecIR.hs | bsd-3-clause | 8,640 | 0 | 17 | 1,643 | 1,774 | 949 | 825 | 163 | 10 |
module Generics.Spine (
module Generics.Spine.Base
) where
import Generics.Spine.Base
| spl/spine | src/Generics/Spine.hs | bsd-3-clause | 90 | 0 | 5 | 13 | 21 | 14 | 7 | 3 | 0 |
-- |Tests execution of code generated by the contract compiler by running it
-- on Rhino.
--
-- The JsContracts library must be built and installed. Rhino's js.jar must
-- be in your CLASSPATH.
module Execution where
import Test.HUnit.Base
import Test.HUnit.Text
import System.Cmd
import System.Exit
import BrownPLT.J... | brownplt/javascript-contracts | tests/Execution.hs | bsd-3-clause | 1,661 | 0 | 14 | 295 | 367 | 191 | 176 | 38 | 2 |
--------------------------------------------------------------------------------------
-- Testing
--------------------------------------------------------------------------------------
module Main where
import Types
import Game
import AI
import Control.Monad
import Control.Monad.Random
randIndex :: RandomGen r => In... | jeffreyrosenbluth/Othello | tests/Test.hs | bsd-3-clause | 1,438 | 0 | 14 | 346 | 519 | 260 | 259 | 38 | 3 |
module Sexy.Instances.Monad.List () where
import Sexy.Classes (Monad(..), Monoid(..))
import Sexy.Instances.Monoid.List ()
import Sexy.Instances.Applicative.List ()
instance Monad [] where
-- join :: [[a]] -> [a]
join = concat
| DanBurton/sexy | src/Sexy/Instances/Monad/List.hs | bsd-3-clause | 234 | 0 | 6 | 34 | 68 | 45 | 23 | 6 | 0 |
module Wikirick.Repository where
import Control.Exception hiding (Handler)
import Control.Monad.CatchIO
import qualified Data.ByteString as BS
import qualified Data.Text as T
import qualified Data.Time as Time
import Data.Typeable
import Snap
import Wikirick.Import
data EditLog = EditLog
{ _editDate :: Time.UTCTim... | keitax/wikirick | src/Wikirick/Repository.hs | bsd-3-clause | 1,697 | 0 | 12 | 304 | 533 | 288 | 245 | -1 | -1 |
module FP.Prelude.Monads where
import FP.Prelude.Core
import FP.Prelude.Effects
import FP.Prelude.Constraints
import FP.Prelude.Morphism
import FP.Prelude.Lattice
-- E and I effects can be implemented by combining unit, discard and commute
-- All effects are implemented this way except for continuation effects
class ... | davdar/darailude | src/FP/Prelude/Monads.hs | bsd-3-clause | 44,603 | 1,925 | 78 | 9,708 | 19,344 | 9,949 | 9,395 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
module FirstQuantization.SpinHalf where
import FirstQuantization.Algebra.Operators
import FirstQuantization.Algebra.States
import FirstQuantization.Algebra.Types
import ... | rodinalex/quantum | src/FirstQuantization/SpinHalf.hs | bsd-3-clause | 2,250 | 0 | 16 | 599 | 757 | 411 | 346 | 63 | 2 |
module I2 where
import C1
import C2
import T
instance (C1 a) => C2 (T a) where
c2 = T c1
| phischu/fragnix | tests/quick/CrazyCycles/I2.hs | bsd-3-clause | 95 | 0 | 7 | 27 | 44 | 25 | 19 | 6 | 0 |
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies, FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS -Wall #-}
module FiniteStateMachine.Machine2 (
FSM(FSM), compile, FSM1
) where
import Basic.Types
import Basic.Memory
import Basic.Features
import Basic.Operat... | davidzhulijun/TAM | FiniteStateMachine/Machine3.hs | bsd-3-clause | 1,605 | 0 | 10 | 358 | 604 | 330 | 274 | 45 | 1 |
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE OverloadedStrings #-}
module AuthorizationHelper where
import Control.Concurrent.Chan
import Control.Concurrent.MVar
import Control.Monad.Trans (liftIO)
import Data.Maybe
import qualified Data.Text ... | bitemyapp/blpapi-hs | examples/AuthorizationHelper.hs | mit | 5,275 | 0 | 19 | 1,238 | 1,351 | 664 | 687 | 131 | 4 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
-- | Alternative (and, in fact, more standard) representation
-- of a derivation trees, i.e., a tree of elementary trees.
module NLP.Partage.AStar.Deriv.Gorn
( Deriv (..)
, size
, deriv4show
, fromDeriv
) where
import qualified Control.Arrow ... | kawu/partage | src/NLP/Partage/AStar/Deriv/Gorn.hs | bsd-2-clause | 3,229 | 0 | 13 | 758 | 708 | 400 | 308 | 52 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Perform a build
module Stack.Build.Execute... | cabrera/stack | src/Stack/Build/Execute.hs | bsd-3-clause | 57,778 | 396 | 28 | 23,085 | 10,821 | 5,805 | 5,016 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable, StandaloneDeriving #-}
module Github.Data.Definitions where
import Data.Time
import Data.Data
import qualified Control.Exception as E
-- | Errors have been tagged according to their source, so you can more easily
-- dispatch and handle them.
data Error =
HTTPConnectionError E.Som... | adinapoli/github | Github/Data/Definitions.hs | bsd-3-clause | 14,529 | 1 | 10 | 2,600 | 3,507 | 2,097 | 1,410 | 407 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
#ifndef MIN_VERSION_profunctors
#define MIN_VERSION_profunctors(x,y,z) 1
#endif
#if __GLASGOW_HASKELL__ < 708 || !(MIN_VERSION_profunctors(4,4,0))
{-# LANGUAGE Trustworthy #-}
#endif
#if __GLAS... | omefire/lens | src/Control/Lens/Getter.hs | bsd-3-clause | 18,867 | 0 | 14 | 4,194 | 2,056 | 1,259 | 797 | 102 | 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="el-GR">
<title>Passive Scan Rules - Alpha | ZAP Extension</title>
<maps>
<homeID>top</homeID... | kingthorin/zap-extensions | addOns/pscanrulesAlpha/src/main/javahelp/org/zaproxy/zap/extension/pscanrulesAlpha/resources/help_el_GR/helpset_el_GR.hs | apache-2.0 | 1,012 | 90 | 29 | 162 | 440 | 231 | 209 | -1 | -1 |
module Main (main) where
import System.FilePath.Glob (glob)
import Test.DocTest (doctest)
main :: IO ()
main = glob "library/**/*.hs" >>= doctest
| yaccz/saturnin | tests/DocTest.hs | bsd-3-clause | 176 | 0 | 6 | 50 | 52 | 30 | 22 | 5 | 1 |
-- (c) Simon Marlow 2011, see the file LICENSE for copying terms.
--
-- Sample geturls.hs (CEFP summer school notes, 2011)
--
-- Downloading multiple URLs concurrently, timing the downloads
--
-- Compile with:
-- ghc -threaded --make geturls.hs
import GetURL
import TimeIt
import Control.Monad
import Control.Concur... | prt2121/haskell-practice | parconc/geturlsstm.hs | apache-2.0 | 1,345 | 3 | 15 | 253 | 346 | 172 | 174 | 29 | 2 |
module NoBlockArgumentsFail where
import Control.Monad
foo :: IO ()
foo = when True do
return ()
| shlevy/ghc | testsuite/tests/parser/should_fail/NoBlockArgumentsFail.hs | bsd-3-clause | 101 | 0 | 9 | 20 | 37 | 19 | 18 | -1 | -1 |
{-# LANGUAGE ConstraintKinds, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-}
module T13267 where
type C1 a = (Show (a -> Bool))
instance C1 Int where
type C2 a = (Show Bool, Show Int)
instance C2 Int where
| ezyang/ghc | testsuite/tests/polykinds/T13267.hs | bsd-3-clause | 226 | 0 | 8 | 38 | 60 | 35 | 25 | 6 | 0 |
module T4138 where
import T4138_A
-- We NOINLINE f because we want to count the number of F#s in the
-- -ddump-simpl output, so we don't want to be confused by F#s
-- appearing in the inlining
{-# NOINLINE f #-}
f :: (Float, Float) -> ()
f = rnf
{-
We're hoping that the output will include something like:
\ (ds_... | hferreiro/replay | testsuite/tests/simplCore/should_compile/T4138.hs | bsd-3-clause | 498 | 0 | 6 | 106 | 34 | 23 | 11 | 5 | 1 |
-- #hide
module Hidden where
hidden :: Int -> Int
hidden a = a
| wxwxwwxxx/ghc | testsuite/tests/haddock/haddock_examples/Hidden.hs | bsd-3-clause | 63 | 0 | 5 | 14 | 22 | 13 | 9 | 3 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.