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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE MultiParamTypeClasses #-}
-- |
-- Module : Database.HDBC.Schema.SQLite3
-- Copyright : 2013 Shohei Murayama
-- License : BSD3
--
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : unkno... | yuga/haskell-relational-record-driver-sqlite3 | src/Database/HDBC/Schema/SQLite3.hs | bsd-3-clause | 4,318 | 0 | 18 | 997 | 1,091 | 586 | 505 | 86 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE TupleSections #-}
module Handler.Site where
import Control.Applicative hiding (empty)
import Control.Lens (set)
import "mtl" Control.Monad.Trans
import "either" Control.M... | dbp/positionsites | src/Handler/Site.hs | bsd-3-clause | 25,440 | 3 | 30 | 9,521 | 7,311 | 3,619 | 3,692 | 539 | 6 |
{-# LANGUAGE FlexibleContexts #-}
-----------------------------------------------------------
-- |
-- Module : Database.HaskellDB.HDBC
-- Copyright : HWT Group 2003,
-- Bjorn Bringert 2005-2006
-- License : BSD-style
--
-- Maintainer : [email protected]
-- Stability ... | m4dc4p/haskelldb | driver-hdbc/Database/HaskellDB/HDBC.hs | bsd-3-clause | 8,154 | 97 | 13 | 2,155 | 2,034 | 1,068 | 966 | 158 | 29 |
module Data.RDF.GraphTestUtils where
import Data.RDF
import Data.RDF.Namespace
import Data.ByteString.Lazy.Char8(ByteString)
import qualified Data.ByteString.Lazy.Char8 as B
import Test.QuickCheck
import Data.Char
import Data.List
import qualified Data.Set as Set
--import Data.Map(Map)
import qualified Data.Map as M... | amccausl/RDF4H | testsuite/tests/Data/RDF/GraphTestUtils.hs | bsd-3-clause | 12,731 | 0 | 14 | 2,756 | 4,391 | 2,279 | 2,112 | 225 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module P2PPicks
( P2PPicks (..)
, initializeP2PPicks
, module R
, module T
) where
import Data.Configurator as C
import Data.Configurator.Types
import System.FilePath ((</>))
import ... | WraithM/peertrader-backend | src/P2PPicks.hs | bsd-3-clause | 1,435 | 0 | 9 | 353 | 273 | 156 | 117 | 32 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import System.Exit (ExitCode(..), exitWith)
import Htrans.Logger (setAppLogger, logStartAppDebug,
logStopAppDebug, logConfigDebug, logInOutInfo)
import Htrans.Cli (cli)
import Htrans.Types (Config(..))
import Htrans.YandexTranslator (getTransl... | johhy/htrans | app/Main.hs | bsd-3-clause | 769 | 0 | 10 | 134 | 239 | 127 | 112 | 21 | 1 |
module Main(main) where
import Data.Word
import Distribution.TestSuite
import System.Environment
import Test.HUnitPlus.Base
import Test.HUnitPlus.Execution
import Test.HUnitPlus.Filter
import Test.HUnitPlus.Reporting
import qualified Data.Map as Map
import qualified Data.Set as Set
simpleTest :: Test
simpleTest =
... | emc2/HUnit-Plus | test/Perf.hs | bsd-3-clause | 3,386 | 0 | 16 | 933 | 1,037 | 552 | 485 | 85 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE ScopedTypeVariables #-}
#ifdef TRUSTWORTHY
{-# LANGUAGE Trustworthy #-}
#endif
#ifnde... | np/lens | src/Control/Lens/IndexedTraversal.hs | bsd-3-clause | 13,617 | 0 | 21 | 2,566 | 2,354 | 1,339 | 1,015 | 135 | 2 |
{-# LANGUAGE BangPatterns #-}
module Data.Digest.Groestl(
groestl224,
printWAsHex,
printAsHex
) where
import Data.Word (Word64, Word8)
import Data.Int (Int64)
import Data.Bits (xor, shiftR, setBit)
import Data.List (foldl')
import qualified Data.Binary as B
import qualified D... | hakoja/SHA3 | Data/Digest/Groestl.hs | bsd-3-clause | 6,811 | 0 | 14 | 1,685 | 2,744 | 1,418 | 1,326 | 123 | 2 |
{-# LANGUAGE RankNTypes, TypeSynonymInstances, FlexibleInstances, ConstraintKinds, OverlappingInstances, OverloadedStrings, RecordWildCards, ExistentialQuantification #-}
module TestHttpChannelA where
import Control.Concurrent
import HttpChannel
import AbstractedCommunication
myMain :: IO ()
myMain = do
lilNeg <-... | armoredsoftware/protocol | tpm/mainline/shared/protocolprotocol/TestHttpChannelA.hs | bsd-3-clause | 1,828 | 5 | 11 | 484 | 331 | 177 | 154 | 31 | 3 |
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Language.Fixpoint.Types.Visitor (
-- * Visitor
Visitor (..)
-- * Extracting Symbolic Constants (String Literals)
, SymConsts (..)
-- * Default Visitor
, defaul... | gridaphobe/liquid-fixpoint | src/Language/Fixpoint/Types/Visitor.hs | bsd-3-clause | 9,116 | 0 | 13 | 2,757 | 3,205 | 1,668 | 1,537 | 176 | 13 |
module Alonzo where
import Control.Monad (forever)
import Control.Monad.State (StateT, evalStateT, lift)
import Network.IRC
import Logging
import IRC
type Trait a = Message -> Alonzo a ()
type Alonzo a = StateT a IRC
alonzo :: UserName -> a -> [Trait a] -> Config -... | beni55/alonzo | src/Alonzo.hs | mit | 1,011 | 0 | 15 | 253 | 358 | 185 | 173 | 26 | 3 |
module AST where
import Text.Parsec
type Program = [ExternalDeclaration]
--type Identifier = String
type Identifier = String
data ExternalDeclaration = Decl SourcePos DeclaratorList
| FuncProt SourcePos Type Identifier [(Type, Identifier)]
| FuncDef SourcePos ... | tanishiking/HasC | src/AST.hs | mit | 2,514 | 0 | 8 | 979 | 502 | 285 | 217 | 50 | 0 |
module Main where
import Control.Exception (throw)
import qualified System.IO.UTF8 as IO
import Test.HUnit
import Text.Parakeet
defaultOptions :: Options
defaultOptions = Options {
inputFileJ = ([], [])
, inputFileR = ([], [])
, templateFile = Just ([], "$title$\n$author$\n$body$"... | foreverbell/obtuse-parakeet | test/Main.hs | mit | 1,596 | 0 | 18 | 452 | 556 | 284 | 272 | 41 | 2 |
{- |
Module : $Header$
Description : HolLight signature
Copyright : (c) Jonathan von Schroeder, DFKI GmbH 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : [email protected]
Stability : experimental
Portability : portable
-}
module HolLight.Sign where
import qualified Da... | nevrenato/HetsAlloy | HolLight/Sign.hs | gpl-2.0 | 1,272 | 0 | 11 | 282 | 414 | 229 | 185 | 26 | 2 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[TcMonoType]{Typechecking user-specified @MonoTypes@}
-}
{-# LANGUAGE CPP #-}
module TcHsType (
tcHsSigType, tcHsDeriv, tcHsVectInst,
tcHsInstHead,
UserTypeCtxt(..),
-- Typ... | gcampax/ghc | compiler/typecheck/TcHsType.hs | bsd-3-clause | 68,568 | 106 | 26 | 20,328 | 12,036 | 6,166 | 5,870 | 796 | 8 |
import Control.Concurrent
import Control.Monad.IO.Class
import Control.Monad
import Data.List
import StackTest
main :: IO ()
main = do
stack ["clean"] -- to make sure we can load the code even after a clean
copy "src/Lib.v1" "src/Lib.hs"
copy "src-internal/Internal.v1" "src-internal/Internal.hs"
stack ["build"... | juhp/stack | test/integration/tests/3926-ghci-with-sublibraries/Main.hs | bsd-3-clause | 1,485 | 0 | 11 | 266 | 354 | 169 | 185 | 37 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Inline
( inlineSpecs
) where
import Test.Hspec
import Text.Markdown.Inline
import Data.Text (Text)
import Data.Monoid (mempty)
check :: Text -> [Inline] -> Expectation
check md ins = toInline mempty md `shouldBe` ins
inlineSpecs :: Spec
inlineSpecs = do
describe ... | thefalconfeat/markdown | test/Inline.hs | bsd-3-clause | 3,090 | 0 | 17 | 946 | 749 | 349 | 400 | 56 | 1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1993-1998
\section{Code output phase}
-}
{-# LANGUAGE CPP #-}
module CodeOutput( codeOutput, outputForeignStubs ) where
#include "HsVersions.h"
import AsmCodeGen ( nativeCodeGen )
import LlvmCodeGen ( llvmCodeGen )
import UniqSupply ( mkSplitUniqSupply )
i... | vikraman/ghc | compiler/main/CodeOutput.hs | bsd-3-clause | 9,592 | 1 | 19 | 3,616 | 1,465 | 739 | 726 | 152 | 7 |
module Wrap0 () where
import Language.Haskell.Liquid.Prelude (liquidError, liquidAssertB)
data Foo a = F a
type IntFoo = Foo Int
{-@ assert flibberty :: (Eq a) => a -> Bool @-}
flibberty x = prop x (F x)
prop x (F y) = liquidAssertB (x == y)
{-@ assert flibInt :: (Num a, Ord a) => a -> Bool @-}
flibInt x = ... | mightymoose/liquidhaskell | tests/pos/wrap0.hs | bsd-3-clause | 503 | 0 | 9 | 123 | 200 | 107 | 93 | 11 | 1 |
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeFamilies #-}
module T15341 where
type family Foo (a :: k) :: k where
Foo a = a
| sdiehl/ghc | testsuite/tests/ghci/scripts/T15341.hs | bsd-3-clause | 126 | 0 | 6 | 27 | 30 | 20 | 10 | 5 | 0 |
<?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="ja-JP">
<title>Active Scan Rules | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<... | ccgreen13/zap-extensions | src/org/zaproxy/zap/extension/ascanrules/resources/help_ja_JP/helpset_ja_JP.hs | apache-2.0 | 1,005 | 97 | 27 | 161 | 393 | 210 | 183 | -1 | -1 |
-- | Internal module to Dfterm3.Dfterm3State
--
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
module Dfterm3.Dfterm3State.Internal.Types
(
Storage(..)
, PersistentStorageState(..)
, VolatileStorageState(..)
, gameSubscriptions
, gameSubscriptionsVolatile
, admin
, loggedInUser... | Noeda/dfterm3 | src/Dfterm3/Dfterm3State/Internal/Types.hs | isc | 2,048 | 0 | 10 | 408 | 427 | 246 | 181 | 53 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Futhark.Analysis.ScalExp
( RelOp0(..)
, ScalExp(..)
, scalExpType
, scalExpSize
, subExpToScalExp
, toScalExp
, expandScalExp
, LookupVar
, module Futhark.Representation.Primitive
)
where
import Control.Applicative
import Control.Monad
import Data.List
impor... | ihc/futhark | src/Futhark/Analysis/ScalExp.hs | isc | 12,384 | 0 | 15 | 3,211 | 4,699 | 2,318 | 2,381 | 258 | 3 |
--------------------------------------------------------------------------------
-- |
-- Module : System.Xattr
-- Copyright : (c) Evan Klitzke 2009
-- License : BSD3
-- Maintainer: Evan Klitzke <[email protected]>
-- Stability : experimental
-- Portability : GHC only
--
-- Relatively low-level interface to work with ex... | eklitzke/libattr-hs | src/System/Xattr.hs | isc | 5,891 | 0 | 15 | 1,265 | 1,432 | 743 | 689 | 89 | 2 |
module Handler.AdminActions where
import Import
import Handler.AdminUserList (respondCSV)
getAdminActionsR :: Handler TypedContent
getAdminActionsR = respondCSV [] [Asc AdminActionTimestamp] $ \(Entity _ AdminAction {..}) ->
return $ mapFromList
[ ("userid", toPathPiece adminActionUser)
, ("email"... | fpco/schoolofhaskell.com | src/Handler/AdminActions.hs | mit | 451 | 0 | 11 | 90 | 122 | 68 | 54 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Lib
( someFunc
) where
import Control.Lens
someFunc :: IO ()
someFunc = putStrLn "someFunc"
data Foo a = Foo { _b :: Int, _c :: Int, _d :: a } deriving (Show)
makeLenses ''Foo
a = Foo {_b = 1, _c = 2, _d = 3}
-- a ^. b
-- a ^. c
-- a ^. d
-- a & b .~ 5 -- s... | JoshuaGross/haskell-learning-log | code/lens/src/Lib.hs | mit | 1,110 | 0 | 9 | 251 | 343 | 193 | 150 | 29 | 1 |
module Y2016.M09.D27.Solution where
{--
We're going to do a bit of Merkle Tree exploration.
So you have a Merkle tree; great! And you can compare it! Great!
1. Well, one thing to do is to copy it, so you have two (duplicate) Merkle trees.
2. Another thing to do is to update a branch of one Merkle tree with the bran... | geophf/1HaskellADay | exercises/HAD/Y2016/M09/D27/Solution.hs | mit | 3,950 | 0 | 12 | 698 | 466 | 255 | 211 | 22 | 6 |
module SpecHelper where
import qualified Data.ByteString.Base64 as B64 (decodeLenient, encode)
import qualified Data.ByteString.Char8 as BS
import qualified Data.ByteString.Lazy as BL
import qualified Data.Map.Strict as M
import qualified Data.Set as S
import qualified System.IO.Error as... | diogob/postgrest | test/SpecHelper.hs | mit | 7,479 | 0 | 14 | 1,302 | 1,730 | 955 | 775 | -1 | -1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGTests
(js_hasExtension, hasExtension, js_getRequiredFeatures,
getRequiredFeatures, js_getRequiredExtensions,
getRequiredExtensions, js_getSystemLanguage, getSystemLanguage,
SVGTes... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/SVGTests.hs | mit | 2,990 | 26 | 11 | 461 | 664 | 387 | 277 | 49 | 1 |
-- | Just enough theorems to get us going with conversions, proven using a tree
-- notation that allows us to make assumptions.
module BootstrapDIY where
import Data.Foldable
import Data.List
import Utils
-- | Proof terms with assumptions. In the notes, we write Γ ⊢ P to denote a proof
-- with conclusion P and assu... | Chattered/proplcf | BootstrapDIY.hs | mit | 5,524 | 0 | 19 | 1,584 | 1,711 | 884 | 827 | 119 | 4 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-|
Briefly, the encryption scheme is a variant of the PBES2 encryption scheme,
described in RFC 2898 section 6.2.
@
Pass = User-supplied passphrase
Salt = 64 bytes of cryptographic salt
c = PBKDF2 iteration count
DerivedKey ... | joachifm/pwcrypt | src/Crypto.hs | mit | 6,792 | 0 | 18 | 1,341 | 1,392 | 772 | 620 | 122 | 2 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE FlexibleInstances #-}
module RockPaperScissors
( game
, WinCounts(..)
, Order(..)
, Replay(..)
) where
import Data.Maybe
import Data.Monoid
import qualified Data.Text.Lazy as TL
import qu... | ethercrow/ai-challenger | game-rps/RockPaperScissors.hs | mit | 3,261 | 0 | 18 | 922 | 1,207 | 641 | 566 | 86 | 4 |
{-|
Module: Y2016.D02
Description: Advent of Code Day 02 Solutions.
License: MIT
Maintainer: @tylerjl
Solutions to the day 02 set of problems for <adventofcode.com>.
-}
module Y2016.D02
( bathroomCode
, grid1
, grid2
) where
import qualified Data.Matrix as Matrix
-- | A position on the keypad grid
... | tylerjl/adventofcode | src/Y2016/D02.hs | mit | 2,462 | 0 | 9 | 595 | 695 | 389 | 306 | 67 | 5 |
module Control.DList where
{--
Your basic difference list, from Haskell to Idris, and back
This answers the Haskell exercise posed at http://lpaste.net/107593
--}
import Control.Arrow (app)
import Control.Monad
import Control.Monad.Trans.Writer
import Data.Monoid
infixr 5 |>
infixl 5 <|
data DList a = DL { unDL :: ... | geophf/1HaskellADay | exercises/HAD/Control/DList.hs | mit | 4,555 | 0 | 10 | 896 | 634 | 338 | 296 | 40 | 1 |
{-# LANGUAGE ViewPatterns #-}
module Day05 where
import Data.Map as M
-- Part 1
contains3Vowels :: String -> Bool
contains3Vowels = go 0
where go :: Int -> String -> Bool
go 3 _ = True
go _ [] = False
go n (x:xs)
| x `elem` vowels = go (n+1) xs
| otherwise = go n... | cirquit/Personal-Repository | Haskell/Playground/AdventOfCode/advent-coding/src/Day05.hs | mit | 1,709 | 0 | 13 | 536 | 783 | 398 | 385 | 52 | 3 |
module Language.Jass.Semantic.Callable(
-- | Utilities to operate with function and natives
Callable(..),
getCallableName,
getCallablePos,
getCallableConstness,
getCallableParameters,
getCallableReturnType,
isNativeFunction
) where
import Language.Jass.Parser.AST
-- | Holds function or native
data ... | NCrashed/hjass | src/library/Language/Jass/Semantic/Callable.hs | mit | 1,822 | 0 | 9 | 255 | 435 | 231 | 204 | 29 | 1 |
module Monoids where
import Data.Semigroup
data NonEmpry a = a :| [a]
| mortum5/programming | haskell/ITMO-Course/hw1/src/Monoids.hs | mit | 82 | 0 | 7 | 24 | 24 | 15 | 9 | 3 | 0 |
module HaSC.Prim.IntermedSyntax where
import HaSC.Prim.ObjInfo
type IProgram = [IDecl]
type IVar = ObjInfo
type Label = String
data IDecl = IVarDecl IVar
| IFunDecl IVar [IVar] [ICode]
deriving(Show, Eq, Ord)
data ICode = ILabel Label
| ILet IVar IVar
| IL... | yu-i9/HaSC | src/HaSC/Prim/IntermedSyntax.hs | mit | 794 | 0 | 7 | 356 | 198 | 116 | 82 | 24 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
module Data.WebsiteContent
( WebsiteContent (..)
, StackRelease (..)
, Post (..)
, loadWebsiteContent
) where
import ClassyPrelude.Yesod
import CMarkGFM
import Data.G... | fpco/stackage-server | src/Data/WebsiteContent.hs | mit | 3,666 | 0 | 19 | 995 | 1,016 | 523 | 493 | 121 | 4 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html
module Stratosphere.Resources.ApplicationAutoScalingScalableTarget w... | frontrowed/stratosphere | library-gen/Stratosphere/Resources/ApplicationAutoScalingScalableTarget.hs | mit | 6,217 | 0 | 15 | 548 | 734 | 417 | 317 | 61 | 1 |
{-| Implementation of cluster-wide logic.
This module holds all pure cluster-logic; I\/O related functionality
goes into the /Main/ module for the individual binaries.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the term... | narurien/ganeti-ceph | src/Ganeti/HTools/Cluster.hs | gpl-2.0 | 71,896 | 0 | 23 | 22,734 | 15,489 | 8,392 | 7,097 | 1,166 | 7 |
-- Implicit CAD. Copyright (C) 2011, Christopher Olah ([email protected])
-- Released under the GNU GPL, see LICENSE
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances, FlexibleContexts, TypeSynonymInstances, UndecidableInstances, ViewPatterns #-}
module Graphics.Implicit.ObjectUtil.GetImplic... | silky/ImplicitCAD | Graphics/Implicit/ObjectUtil/GetImplicit3.hs | gpl-2.0 | 7,124 | 2 | 22 | 2,560 | 2,860 | 1,546 | 1,314 | 157 | 9 |
-- | Some shared utilites.
module Shared (
breakAround
, firstTrue
, ErrorOr, forceError
, asHex
, Hash(..), emptyHash, hashAsHex
, isHashString
, fromHex
, splitMSB
, strictifyBS, makeBS
, trace
) where
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as BL
import Cont... | martine/gat | Shared.hs | gpl-2.0 | 2,969 | 0 | 13 | 640 | 854 | 461 | 393 | 63 | 2 |
{-
Copyright (C) 2008-2014 John MacFarlane <[email protected]>
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 ... | nickbart1980/pandoc | src/Text/Pandoc/Highlighting.hs | gpl-2.0 | 5,985 | 0 | 15 | 2,178 | 1,067 | 657 | 410 | 104 | 3 |
module AllTests(main) where
import AnalysisTests
import ParserTests
main = do
allAnalysisTests
allParserTests
| dillonhuff/GitVisualizer | test/AllTests.hs | gpl-2.0 | 116 | 0 | 6 | 18 | 26 | 15 | 11 | 6 | 1 |
{-# LANGUAGE UnicodeSyntax #-}
--
-- Utility functions to run the program.
--
module Program where
import Prelude.Unicode
import System.Environment
import System.Exit
runAction ∷ IO Bool → IO ()
runAction action = do
isSuccess ← action
exitWith $ exitStatus isSuccess
where
e... | c0c0n3/hAppYard | inkscape-util/src/shared/Program.hs | gpl-3.0 | 399 | 0 | 9 | 102 | 93 | 49 | 44 | 11 | 2 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Handler.TransById where
import Import
$(deriveJSON defaultOptions ''Transaction)
getTransByIdR :: String -> Handler Value
getTransByIdR uIdent = do
mUser <- runDB $ selectFirst [ UserIdent ==. (pack uIdent) ] []
case mUser of
Just user -> do
trans <- runDB $... | weshack/thelist | TheList/Handler/TransById.hs | gpl-3.0 | 465 | 0 | 18 | 93 | 154 | 76 | 78 | -1 | -1 |
{- Merch.Race.Data.Serialize - Serialization class for data types.
Copyright 2013 Alan Manuel K. Gloria
This file is part of Merchant's Race.
Merchant's Race 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, eith... | AmkG/merchants-race | Merch/Race/Data/Serialize.hs | gpl-3.0 | 14,816 | 0 | 21 | 4,928 | 5,468 | 2,836 | 2,632 | 364 | 2 |
module Mudblood.Contrib.MG.Profile
( MGProfile (..)
, readProfile
, mkMGProfile
) where
import Text.ParserCombinators.Parsec
import Mudblood
data MGProfile = MGProfile
{ profChar :: Maybe String
, profPassword :: Maybe String
, profLogfile :: Maybe FilePath
, profMap :: ... | talanis85/mudblood | src/Mudblood/Contrib/MG/Profile.hs | gpl-3.0 | 1,317 | 0 | 13 | 362 | 419 | 224 | 195 | 37 | 2 |
{-
Copyright : Copyright (C) 2014-2015 Synchrotron Soleil
License : GPL3+
Maintainer : [email protected]
Stability : Experimental
Portability: GHC only?
-}
module Hkl.Source
( ki ) where
import Prelude hiding ((/))
import Numeric.LinearAlgebra (Vector, fromList)
import Nume... | klauer/hkl | contrib/Hkl/Source.hs | gpl-3.0 | 589 | 0 | 9 | 153 | 145 | 90 | 55 | 11 | 1 |
module Lamdu.GUI.ExpressionEdit.HoleEdit.Info
( HoleInfo(..)
, hiSearchTermProperty
, hiSearchTerm
) where
import Control.Lens.Operators
import Data.Store.Property (Property(..))
import qualified Data.Store.Property as Property
import qualified Data.Store.Transaction as Transaction
... | da-x/lamdu | Lamdu/GUI/ExpressionEdit/HoleEdit/Info.hs | gpl-3.0 | 1,279 | 0 | 12 | 243 | 313 | 191 | 122 | 27 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Main where
import Data.Conduit.Lazy
import qualified Data.ByteString.Char8 as B
import Control.Monad
import Data.Conduit
import Data.Conduit.List (... | choener/DnaProteinAlignment | DnaProteinAlignment.hs | gpl-3.0 | 7,140 | 10 | 35 | 2,109 | 2,588 | 1,333 | 1,255 | 143 | 10 |
module Main where
import VSim.Runtime
elab :: Elab IO ()
elab = do
integer <- alloc_unranged_type
array <- alloc_array_type (alloc_range (pure 0) (pure 5)) integer
clk <- alloc_signal "clk" integer (assign (int 0))
a1 <- alloc_signal "a2" array (aggregate [
access (int 0) (... | grwlf/vsim | src_r/Test/Array1.hs | gpl-3.0 | 1,019 | 0 | 23 | 351 | 480 | 232 | 248 | 25 | 1 |
-- Module for connecting to the AUR servers,
-- downloading PKGBUILDs and source tarballs, and handling them.
{-
Copyright 2012, 2013, 2014, 2015 Colin Woodbury <[email protected]>
This file is part of Aura.
Aura is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Li... | joehillen/aura | src/Aura/Packages/AUR.hs | gpl-3.0 | 3,208 | 0 | 13 | 803 | 625 | 349 | 276 | 54 | 2 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE DeriveFunctor #-}
module Data.ChordPro
( Chunk (..), Music (..)
, Line, Paragraph, Markup (..)
, Layout
, bake
, prettyPrintChordPro
) where
import Data.Music.Scales
import Data.Music.Chords
import Data.Music.Tonal
-- File layout
type La... | talanis85/rechord | src/Data/ChordPro.hs | gpl-3.0 | 1,297 | 0 | 11 | 321 | 397 | 217 | 180 | 39 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Devices/Update.hs | mpl-2.0 | 7,071 | 0 | 23 | 1,730 | 1,036 | 606 | 430 | 145 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.CommentAnalyzer
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozi... | brendanhay/gogol | gogol-commentanalyzer/gen/Network/Google/CommentAnalyzer.hs | mpl-2.0 | 4,253 | 0 | 5 | 908 | 363 | 264 | 99 | 92 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-speech/gen/Network/Google/Resource/Speech/Speech/Recognize.hs | mpl-2.0 | 4,663 | 0 | 16 | 1,130 | 705 | 412 | 293 | 102 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/Types.hs | mpl-2.0 | 431,589 | 0 | 84 | 106,530 | 78,776 | 44,487 | 34,289 | -1 | -1 |
module GitHub
( CreateFailure(..)
, uploadRelease
) where
import Prelude hiding ((++))
import Data.Traversable
import Data.Monoid
import Control.Lens
import Network.Wreq hiding (postWith)
import Network.Wreq.Session
import qualified Data.ByteString.Lazy as LB
import Data.Text (Text)
import qualified Data... | kinoru/wild | src/GitHub.hs | agpl-3.0 | 3,376 | 0 | 22 | 908 | 1,010 | 534 | 476 | -1 | -1 |
func x | x = simple expression
| otherwise = 0
| lspitzner/brittany | data/Test88.hs | agpl-3.0 | 62 | 2 | 5 | 26 | 24 | 11 | 13 | 2 | 1 |
module Codewars.Kata.Combos where
combos :: Int -> [[Int]]
combos n = f 1 n
where f u n = if u <= n then [n] : ([u .. n] >>= \x -> (x :) <$> f x (n - x)) else []
--
| ice1000/OI-codes | codewars/1-100/find-all-possible-number-combos-that-sum-to-a-number.hs-optimized.hs | agpl-3.0 | 168 | 0 | 15 | 46 | 107 | 61 | 46 | 4 | 2 |
module Prim( plusOne, plusOne8, plusOne16, plusOne32, plusOne64
, plusOneU, plusOneU8, plusOneU16, plusOneU32, plusOneU64
, lshc, lshc8, lshc16, lshc32, lshc64
, rshc, rshc8, rshc16, rshc32, rshc64
, lshcU, lshcU8, lshcU16, lshcU32, lshcU64
, rshcU, rshcU8, rshcU16... | yjwen/hada | test/Prim.hs | lgpl-3.0 | 1,873 | 0 | 7 | 403 | 743 | 475 | 268 | 69 | 1 |
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE JavaScriptFFI #-}
{-
Copyright 2018 The CodeWorld Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... | tgdavies/codeworld | funblocks-client/src/Blockly/Event.hs | apache-2.0 | 3,031 | 15 | 11 | 773 | 507 | 273 | 234 | 54 | 6 |
{-# LANGUAGE Haskell2010 #-}
{-# LANGUAGE DuplicateRecordFields #-}
module DuplicateRecordFields (RawReplay(..)) where
import Prelude hiding (Int)
data Int = Int
data RawReplay = RawReplay
{ headerSize :: Int
-- ^ The byte size of the first section.
, headerCRC :: Int
-- ^ The CRC of the first sectio... | haskell/haddock | html-test/src/DuplicateRecordFields.hs | bsd-2-clause | 767 | 0 | 8 | 197 | 91 | 63 | 28 | 13 | 0 |
--- Pretty printing for the T functor ------------------------------------------
module HsTypePretty where
import HsTypeStruct
--import HsIdent
import PrettySymbols(rarrow,forall')
import PrettyPrint
import PrettyUtil
instance (Printable i,Printable t,PrintableApp t t) => Printable (TI i t) where
ppi (HsTyFun a ... | forste/haReFork | tools/base/AST/HsTypePretty.hs | bsd-3-clause | 1,125 | 0 | 12 | 322 | 467 | 233 | 234 | -1 | -1 |
module Grammar
where
import Control.Applicative ((<$>), (<*>))
import Control.Arrow ((***))
import Control.Monad.Reader (Reader, ask, local, runReader)
import Data.List (elemIndex)
import Data.Maybe (fromJust)
import Data.Set as Set (Set, empty, singleton, toList, union, unions)
import Test.QuickCheck (Arbitrar... | maxsnew/TAPL | SimplyTyped/Lambda/Implementation/Grammar.hs | bsd-3-clause | 5,507 | 0 | 17 | 2,105 | 1,940 | 1,021 | 919 | 129 | 9 |
{-# LANGUAGE BangPatterns #-}
module Network.Openflow.Ethernet.IPv4 (IPv4Flag(..), IPv4(..), putIPv4Pkt) where
import Network.Openflow.Ethernet.Types
import Network.Openflow.Misc
import Data.Word
-- import qualified Data.ByteString as BS
import qualified Data.ByteString.Unsafe as BS
import Network.Openflow.StrictPut
... | ARCCN/hcprobe | src/Network/Openflow/Ethernet/IPv4.hs | bsd-3-clause | 1,878 | 0 | 15 | 518 | 577 | 300 | 277 | 58 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Char
import qualified Data.Map as M
import Data.Traversable (sequenceA)
import Control.Monad.Fix
import Control.Applicative ((<|>), liftA2)
import Control.Monad
import System.Environment (getArgs)
import System.Console.GetOpt
import System.IO
import Syst... | taojang/haskell-programming-book-exercise | src/ch29/Vigenere.hs | bsd-3-clause | 1,735 | 0 | 15 | 415 | 635 | 333 | 302 | 43 | 4 |
-------------------------------------------------------------------------------
--
-- | Dynamic flags
--
-- Most flags are dynamic flags, which means they can change from compilation
-- to compilation using @OPTIONS_GHC@ pragmas, and in a multi-session GHC each
-- session can be using different dynamic flags. Dynamic f... | ekmett/ghc | compiler/main/DynFlags.hs | bsd-3-clause | 154,957 | 0 | 32 | 42,727 | 30,016 | 16,888 | 13,128 | -1 | -1 |
{-# LANGUAGE QuasiQuotes #-}
module Write.Type.Handle
( writeHandleType
) where
import Data.String
import Language.C.Types as C
import Spec.Type
import Text.InterpolatedString.Perl6
import Text.PrettyPrint.Leijen.Text hiding ((<$>))
import Write.TypeConverter
import Write.Utils
import Write.WriteMonad
writeHandl... | oldmanmike/vulkan | generate/src/Write/Type/Handle.hs | bsd-3-clause | 1,416 | 0 | 15 | 297 | 338 | 179 | 159 | 34 | 3 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE LambdaCase #-}
--
-- | Convert from core primitives to x86-64 primitives.
--
module River.X64.Transform.Reprim (
reprimProgram
, reprimTerm
, ReprimError(..)
) where
import Control.Monad.Trans.Except (ExceptT, throwE)
import River.Bifunctor
im... | jystic/river | src/River/X64/Transform/Reprim.hs | bsd-3-clause | 4,760 | 0 | 18 | 1,568 | 1,868 | 935 | 933 | -1 | -1 |
--
-- | This test reads the current directory and dumps a topologically sorted package list
--
module Main where
import Distribution.ArchLinux.SrcRepo
import System.IO
import System.Directory
import System.Environment
import Control.Monad
main = do
[pkg] <- getArgs
dot <- getCurrentDirectory
repo <- getRepoFro... | archhaskell/archlinux | scripts/recdeps.hs | bsd-3-clause | 441 | 0 | 14 | 83 | 125 | 66 | 59 | 13 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Sonos.Plugins.Pandora
( login
, getStationList
, searchStation
, createStation
, module Sonos.Plugins.Pandora.Types
) where
import Sonos.Plugins.Pandora.Types
import Sonos.Plugins.Pandora.Crypt
import Network.Wreq
import Control.Monad
import N... | merc1031/haskell-sonos-http-api | src/Sonos/Plugins/Pandora.hs | bsd-3-clause | 5,076 | 0 | 22 | 1,295 | 1,423 | 728 | 695 | 103 | 1 |
{-# LANGUAGE FlexibleContexts #-}
import Control.Monad.State
import Test.Tasty
import Test.Tasty.HUnit
import qualified Text.Parsec as P hiding (State)
import Text.Parsec.Indent
import Parser.NanoHaskellParser
import Parser.CoreParser
import Syntax.Name
import Syntax.NanoHaskell
import Utils.Pretty ... | rodrigogribeiro/nanohaskell | test/Spec.hs | bsd-3-clause | 2,533 | 0 | 16 | 1,206 | 490 | 251 | 239 | 32 | 2 |
module ErrVal where
-- ErrVal captures a value, or an error state indicating
-- that the value could not be computed. The error state
-- includes a "reason" message and context information on
-- where the error occurred.
--
-- Instances of Functor, Applicative, Monad, Num, and Fractional are
-- provided.
import Cont... | timbod7/veditor | ErrVal.hs | bsd-3-clause | 1,843 | 0 | 9 | 481 | 811 | 414 | 397 | 48 | 2 |
-- {-# LANGUAGE DeriveFunctor #-}
-- {-# LANGUAGE DeriveFoldable #-}
-- {-# LANGUAGE DeriveTraversable #-}
-- {-# LANGUAGE DeriveGeneric #-}
-- {-# LANGUAGE BangPatterns #-}
-- {-# LANGUAGE TemplateHaskell #-}
-- {-# LANGUAGE RecordWildCards #-}
-- {-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleConte... | reuleaux/pire | src/Pire/Refactor/Range.hs | bsd-3-clause | 30,759 | 0 | 11 | 6,642 | 6,936 | 3,722 | 3,214 | -1 | -1 |
module BinaryTree
(
BinaryTree(..),
newNode,
value,
left,
right,
getNode,
safeGetValue,
modifyNode,
setNode,
listToTree,
append,
flatten,
Bit.natToBits
) where
import Bit
import Data.List(... | cullina/Extractor | src/BinaryTree.hs | bsd-3-clause | 2,206 | 0 | 12 | 665 | 969 | 494 | 475 | 67 | 3 |
--
-- DMA.hs --- STM32F427 DMA driver.
--
-- Copyright (C) 2015, Galois, Inc.
-- All Rights Reserved.
--
module Ivory.BSP.STM32F427.DMA where
import Ivory.BSP.STM32.Peripheral.DMA
import Ivory.Language
import Ivory.HW
import Ivory.BSP.STM32.Interrupt
import Ivory.BSP.STM32F427.RCC
import Ivory.BSP.STM32F427.MemoryM... | GaloisInc/ivory-tower-stm32 | ivory-bsp-stm32/src/Ivory/BSP/STM32F427/DMA.hs | bsd-3-clause | 1,945 | 0 | 9 | 379 | 368 | 206 | 162 | 42 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
-----------------------------------------------------------------------------
-- |
-- Module : Diagrams.TwoD.Path.Follow
-- Copyright :... | diagrams/diagrams-contrib | src/Diagrams/TwoD/Path/Follow.hs | bsd-3-clause | 3,104 | 0 | 11 | 689 | 335 | 204 | 131 | 22 | 1 |
module HSync.Server.Handler.API where
import Control.Lens
import HSync.Common.API
import qualified HSync.Common.StorageTree as ST
import HSync.Server.Import
import HSync.Common.Header
import HSync.Common.Zip
import HSync.Server.LocalAuth(validateUser)
import HSync.Server.Notifications
import HSync.Server.Handler.AcidU... | noinia/hsync-server | src/HSync/Server/Handler/API.hs | bsd-3-clause | 5,429 | 0 | 17 | 1,693 | 1,362 | 690 | 672 | -1 | -1 |
import Text.EBNF hiding (main)
import Text.EBNF.Informal (syntax)
import Text.EBNF.SyntaxTree
import Text.EBNF.Helper
import Text.EBNF.Build.Parser
import Text.EBNF.Build.Parser.Except
main :: IO ()
main = print . raiseBk
raiseBk :: SyntaxTree -> SyntaxTree
raiseBk = raise ((`elem` [
"defin... | Lokidottir/ebnf-bff | ebnf-test/ebnf-test.hs | mit | 645 | 0 | 9 | 260 | 120 | 75 | 45 | 18 | 1 |
{-# OPTIONS -Wall -Werror #-}
module Test.TestEaster where
import Data.Time.Calendar.Easter
import Data.Time.Calendar
import Data.Time.Format
import System.Locale
import Test.TestUtil
import Test.TestEasterRef
--
days :: [Day]
days = [ModifiedJulianDay 53000 .. ModifiedJulianDay 53014]
showWithWDay :: Day -> Str... | jwiegley/ghc-release | libraries/time/test/TestEaster.hs | gpl-3.0 | 1,090 | 0 | 18 | 346 | 300 | 158 | 142 | 26 | 1 |
module Translation where
import Control.Monad (unless, mapAndUnzipM)
import Control.Monad.Except (throwError)
import Control.Arrow (second)
-- import Parser
-- import Debug.Trace
import Expr
import Syntax
import TypeCheck
import Utils
-- | Elaboration
trans :: Env -> Expr -> TC (Type, Expr)
trans _ (Kind Star) = ret... | bixuanzju/full-version | src/Translation.hs | gpl-3.0 | 5,168 | 0 | 34 | 1,467 | 2,290 | 1,132 | 1,158 | 108 | 2 |
module Debug where
import Control.Monad (when, void)
import Constants
debug :: Bool -> String -> IO ()
debug b msg = when b $ putStrLn msg
| keera-studios/pang-a-lambda | Experiments/splitballs/Debug.hs | gpl-3.0 | 142 | 0 | 8 | 29 | 58 | 31 | 27 | 5 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/CreateInstanceExportTask.hs | mpl-2.0 | 5,345 | 0 | 9 | 1,037 | 621 | 375 | 246 | 73 | 1 |
module Language.Haskell.GhcMod.PkgDoc (packageDoc) where
import Language.Haskell.GhcMod.Types
import Language.Haskell.GhcMod.GhcPkg
import Control.Applicative ((<$>))
import System.Process (readProcess)
-- | Obtaining the package name and the doc path of a module.
packageDoc :: Options
-> Cradle
... | carlohamalainen/ghc-mod | Language/Haskell/GhcMod/PkgDoc.hs | bsd-3-clause | 1,012 | 0 | 14 | 260 | 274 | 146 | 128 | 24 | 2 |
-- |
-- Copyright: (C) 2014-2015 EURL Tweag
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Applicative ((<$>))
import Network.Transport
import Network.Transport.ZMQ
import Network.Transport.Tests
import Network.Transport.Tests.Auxiliary (runTests)
main :: IO ()
main = testTransport' (Right <$> c... | tweag/network-transport-zeromq | tests/TestZMQ.hs | bsd-3-clause | 1,973 | 0 | 10 | 515 | 384 | 219 | 165 | 32 | 1 |
-- | Temporary aspect pseudo-item definitions.
module Content.ItemKindTemporary ( temporaries ) where
import Data.Text (Text)
import Game.LambdaHack.Common.Color
import Game.LambdaHack.Common.Dice
import Game.LambdaHack.Common.Flavour
import Game.LambdaHack.Common.Misc
import Game.LambdaHack.Common.Msg
import Game.La... | beni55/LambdaHack | GameDefinition/Content/ItemKindTemporary.hs | bsd-3-clause | 2,960 | 0 | 14 | 762 | 806 | 460 | 346 | 59 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, ScopedTypeVariables #-}
-- provides Arbitrary instance for Pandoc types
module Tests.Arbitrary ()
where
import Test.QuickCheck.Gen
import Test.QuickCheck.Arbitrary
import Control.Monad (liftM, liftM2)
import Text.Pandoc.Definiti... | janschulz/pandoc | tests/Tests/Arbitrary.hs | gpl-2.0 | 8,350 | 0 | 19 | 3,770 | 2,393 | 1,223 | 1,170 | 168 | 2 |
{-# LANGUAGE LambdaCase, RankNTypes, ScopedTypeVariables #-}
module Stream.Folding.ByteString where
import Stream.Types
import Stream.Folding.Prelude hiding (fromHandle)
import Control.Monad hiding (filterM, mapM)
import Data.Functor.Identity
import Control.Monad.Trans
... | haskell-streaming/streaming | benchmarks/old/Stream/Folding/ByteString.hs | bsd-3-clause | 7,155 | 0 | 22 | 2,670 | 1,527 | 841 | 686 | 90 | 4 |
module A where
~(Just x) = Nothing
| forste/haReFork | tools/base/transforms/tests/1.hs | bsd-3-clause | 37 | 0 | 7 | 9 | 17 | 9 | 8 | 2 | 1 |
module IfThenElseIn1 where
-- refactorer should give an error!
f x@(y:ys) = if x == [] then error "Error!"
else y
| kmate/HaRe | old/testing/simplifyExpr/IfThenElseIn1_TokOut.hs | bsd-3-clause | 143 | 0 | 8 | 50 | 40 | 23 | 17 | 3 | 2 |
module P2 where
| urbanslug/ghc | testsuite/tests/cabal/cabal05/p/P2.hs | bsd-3-clause | 16 | 0 | 2 | 3 | 4 | 3 | 1 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.