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 #-}
module Main where
import Common
import Web.Twitter.Conduit
import Web.Twitter.Types.Lens
import Control.Lens
import qualified Data.Text as T
import System.Environment
main :: IO ()
main = do
[keyword] <- getArgs
twInfo <- getTWInfoFromEnv
mgr <- newManager tlsManagerS... | himura/twitter-conduit | sample/search.hs | bsd-2-clause | 650 | 0 | 10 | 125 | 174 | 89 | 85 | -1 | -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.
module Duckling.Numeral.Tests (tests) where
import Data.String
import Prelude
import Test.Tasty
import qualifie... | facebookincubator/duckling | tests/Duckling/Numeral/Tests.hs | bsd-3-clause | 3,400 | 0 | 7 | 502 | 780 | 568 | 212 | 104 | 1 |
module Turbinado.Environment.CodeStore (
addCodeStoreToEnvironment,
retrieveCode,
) where
import Control.Concurrent.MVar
import Control.Exception ( catch, throwIO)
import Control.Monad ( when, foldM)
import Data.Map hiding (map)
import Data.List (isPrefixOf, intersperse)
import Data.Maybe
import Data.Time
... | abuiles/turbinado-blog | Turbinado/Environment/CodeStore.hs | bsd-3-clause | 13,002 | 0 | 19 | 4,481 | 3,168 | 1,562 | 1,606 | 188 | 9 |
{-# LANGUAGE CPP, TypeSynonymInstances, DeriveDataTypeable, FlexibleInstances,
GeneralizedNewtypeDeriving, OverloadedStrings, FlexibleContexts #-}
{-# OPTIONS_HADDOCK not-home #-}
-- |A type for profile preferences. These preference values are used by both
-- Firefox and Opera profiles.
module Test.WebDriv... | fpco/hs-webdriver | src/Test/WebDriver/Common/Profile.hs | bsd-3-clause | 9,106 | 0 | 13 | 2,079 | 1,748 | 935 | 813 | -1 | -1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.CLEvent
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <[email protected]>
-- Stability : stable
-- Portability : portable
--
-- T... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/CLEvent.hs | bsd-3-clause | 756 | 0 | 4 | 91 | 52 | 42 | 10 | 6 | 0 |
import Network.WebSockets (shakeHands, getFrame, putFrame)
import Network (listenOn, PortID(PortNumber), accept, withSocketsDo)
import System.IO (Handle, hClose)
import qualified Data.ByteString as B (append, null)
import Data.ByteString.UTF8 (fromString) -- this is from utf8-string
import Control.Monad (forever)... | quelgar/haskell-websockets | example.hs | bsd-3-clause | 1,261 | 13 | 13 | 304 | 337 | 176 | 161 | -1 | -1 |
module Blog.FrontEnd.Feeds
( Feed ( AllPosts, ByTag, ByTags, PostComments, AllComments, tag, tags, permalink),
DiscoverableFeed ( feed_title, feed_url ),
Feedable ( items, categories, build_id, title, self_url, home_url, discoverable_feed ),
articles_feed, all_comments_feed, comments_feed, tags_fe... | prb/perpubplat | src/Blog/FrontEnd/Feeds.hs | bsd-3-clause | 3,970 | 0 | 13 | 917 | 1,146 | 627 | 519 | 77 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
import Test.Hspec
import Test.Hspec.Expectations
import Test.QuickCheck
-- import Test.QuickCheck.Instances
import Control.Exception (evaluate)
import Data.Time.Clo... | codygman/frames-diff | test/Test.hs | bsd-3-clause | 9,134 | 0 | 24 | 2,291 | 1,312 | 735 | 577 | 94 | 1 |
--------------------------------------------------------------------------------
-- Copyright © 2011 National Institute of Aerospace / Galois, Inc.
--------------------------------------------------------------------------------
{-# LANGUAGE GADTs #-}
module Copilot.Compile.C99.Test.Driver
( driver
-- , ExtVars
... | niswegmann/copilot-c99 | src/Copilot/Compile/C99/Test/Driver.hs | bsd-3-clause | 7,250 | 0 | 16 | 1,816 | 2,066 | 1,095 | 971 | 182 | 11 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2006
--
-- The purpose of this module is to transform an HsExpr into a CoreExpr which
-- when evaluated, returns a (Meta.Q Meta.Exp) computation analogous to the
-- input HsExpr. We do... | GaloisInc/halvm-ghc | compiler/deSugar/DsMeta.hs | bsd-3-clause | 93,749 | 59 | 24 | 28,400 | 29,477 | 14,735 | 14,742 | 1,583 | 18 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- | Consider this module to be internal, and don't import directly.
module Network.Hawk.Internal.Server.Types where
import Data.ByteString (ByteString)
import Data.Text (Text)
import Data.Time.Clock.POS... | rvl/hsoz | src/Network/Hawk/Internal/Server/Types.hs | bsd-3-clause | 3,276 | 0 | 10 | 664 | 596 | 340 | 256 | 46 | 1 |
module Data.ByteString.Lazy
( module ListBased
) where
import ListBased
| Soostone/string-compat | src/Data/ByteString/Lazy.hs | bsd-3-clause | 92 | 0 | 4 | 29 | 16 | 11 | 5 | 3 | 0 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
{-# OPTIONS_GHC -fno-warn-implicit-prelude #-}
module Paths_CommonResources (
version,
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Except... | Garygunn94/DFS | CommonResources/.stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/autogen/Paths_CommonResources.hs | bsd-3-clause | 2,272 | 0 | 10 | 239 | 410 | 238 | 172 | 33 | 1 |
-- | Module to Provide an ND-Distribution Datatype
module EFA.Data.ND.Distribution where
newtype Class typ dim a = ND.Data dim a
-- A Distribution is often sparsely populated
-- A Data.Map is the best datatype
-- | Module for randomly spaced ND-data of a Map
data Distribution typ dim a b = Distribution (Grid label t... | energyflowanalysis/efa-2.1 | src/EFA/Data/ND/Cube/Distribution.hs | bsd-3-clause | 748 | 1 | 8 | 147 | 68 | 44 | 24 | -1 | -1 |
module InputReader where
import StringUtils
import Data.List.Split
import PaymentTracker (Payment(..))
import Category (Category(..), Money)
import CategoryConfig
contentToPayments :: String -> [Payment]
contentToPayments content = map lineToPayment (lines content)
lineToPayment :: String -> Payment
lineToPayment li... | Sam-Serpoosh/WatchIt | src/InputReader.hs | bsd-3-clause | 712 | 0 | 13 | 137 | 231 | 127 | 104 | 18 | 2 |
module Data.Conduit.List.Extra
( isolateWhile
, ignoreWhile
, takeWhile
, dropWhile
) where
import Prelude hiding (takeWhile, dropWhile)
import qualified Data.Conduit as C
import qualified Data.Conduit.List as C
-- | Constructs list from upstream values while the predicate holds (and while th... | Palmik/wai-sockjs | src/Data/Conduit/List/Extra.hs | bsd-3-clause | 2,592 | 0 | 14 | 957 | 427 | 241 | 186 | 28 | 2 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
module Guesswork.Estimate.Linear where
import Data.List
import Data.Ord
import Data.Serialize
import GHC.Generics
import Control.Arrow
import Control.App... | deggis/guesswork | src/Guesswork/Estimate/Linear.hs | bsd-3-clause | 3,236 | 0 | 14 | 664 | 962 | 504 | 458 | 71 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
module PatternRecogn.NeuronalNetworks.Types where
import PatternRecogn.Lina as Lina hiding( cond )
import PatternRecogn.Types hiding( cond )
import PatternRecogn.Utils
import Data.Foldable as Fold
import Control.Monad.Random
import Control.Monad
impor... | EsGeh/pattern-recognition | src/PatternRecogn/NeuronalNetworks/Types.hs | bsd-3-clause | 4,616 | 275 | 13 | 730 | 1,171 | 686 | 485 | 130 | 2 |
module Network.OpenFlow.Parser.OfpType where
import Control.Monad
import Data.Word (Word8)
import Data.Attoparsec.ByteString (Parser, anyWord8, satisfy, (<?>))
import qualified Network.OpenFlow.Message.OfpType as O
ofpType :: Parser O.OfpType
ofpType = (<?> "OfpType") $ do
ofptM <- fma... | utky/openflow | src/Network/OpenFlow/Parser/OfpType.hs | bsd-3-clause | 595 | 0 | 11 | 136 | 184 | 101 | 83 | 18 | 2 |
module Spec.Spec where
import Spec.Bitmask
import Spec.Command
import Spec.Constant
import Spec.Enum
import Spec.Extension
import Spec.Section
import Spec.Tag
import Spec.Type
import Spec.VendorID
import Prelude hiding (Enum)
-- | The Specification in a format which closely resembles the xml specification
data Spec =... | oldmanmike/vulkan | generate/src/Spec/Spec.hs | bsd-3-clause | 884 | 0 | 9 | 280 | 208 | 128 | 80 | 25 | 1 |
module Main where
import AUTOSAR
-- | Set this flag to @False@ to disable all task assignments.
main :: IO ()
main = do
rng <- newTFGen
simulateUsingExternal True rng simulinkABSgood1
-- simulateUsingExternal True rng simulinkABSbad1
return ()
| josefs/autosar | ARSim/arsim-examples/Examples/ABS.hs | bsd-3-clause | 254 | 0 | 8 | 48 | 49 | 25 | 24 | 7 | 1 |
{-# LANGUAGE FlexibleContexts, ScopedTypeVariables, CPP #-}
module AWS.EC2.Util
( list
, head
, each
, eachp
, wait
, count
, findTag
, sleep
, retry
) where
import Data.Conduit
import qualified Data.Conduit.List as CL
import Control.Monad.Trans.Class (MonadTrans, lift)
import ... | IanConnolly/aws-sdk-fork | AWS/EC2/Util.hs | bsd-3-clause | 3,180 | 0 | 13 | 935 | 1,111 | 587 | 524 | 101 | 3 |
module CabalIndex
( buildDatabase
, queryPackages)
where
import Control.Monad
import System.Directory (renameFile)
import System.FilePath ((</>))
import System.Process (readProcess)
import Database.HDBC
import Database.HDBC.Sqlite3
import qualified Data.List as L
{-| Insert ... | brinchj/CabalSearch | CabalIndex.hs | bsd-3-clause | 2,129 | 0 | 13 | 512 | 694 | 363 | 331 | 44 | 5 |
module Test.Data.ART.Internal.SortingNetwork where
import Control.Monad (join)
import qualified Data.Array.IArray as Array
import qualified Data.List as List
import Data.ART.Internal.Array (Key)
import Data.ART.Internal.S... | TikhonJelvis/adaptive-radix-trees | test/Test/Data/ART/Internal/SortingNetwork.hs | bsd-3-clause | 1,247 | 0 | 10 | 341 | 511 | 292 | 219 | 23 | 1 |
{-# LANGUAGE ViewPatterns #-}
-- | Generate Haskell-syntax output complete with hyperlinks to Haddock docs
module Code(code) where
import Data.Char
import Control.Monad.Extra
import System.Directory
import Data.List.Extra
import Data.Maybe
import Text.HTML.TagSoup
-- | Given the location of the haddock --hoogle out... | ndmitchell/shake | website/Code.hs | bsd-3-clause | 2,710 | 0 | 15 | 735 | 1,204 | 624 | 580 | 54 | 9 |
module Main where
import ABS
(a:b:tmp:n:n1:res:the_end:_)=[1..]
main_ :: Method
main_ [] this wb k =
Assign n (Val (I 18)) $
Assign a (Val (I 1)) $
Assign b (Val (I 3)) $
Assign tmp (Val (I 2)) $
Assign res (Sync hanoi [a,b,tmp,n]) k
hanoi :: Method
hanoi [a,b,tmp,n] this wb k =
Assign res (Val (I 0)) $... | abstools/abs-haskell-formal | benchmarks/6_hanoi/progs/18.hs | bsd-3-clause | 653 | 0 | 19 | 185 | 416 | 216 | 200 | 22 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : $Header$
Description : Abstract syntax for propositional logic extended with QBFs
Copyright : (c) Jonathan von Schroeder, DFKI GmbH 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : <[email protected]>
Stability : experimenta... | mariefarrell/Hets | QBF/AS_BASIC_QBF.der.hs | gpl-2.0 | 8,500 | 6 | 22 | 2,411 | 2,478 | 1,354 | 1,124 | 179 | 16 |
{-|
Module : IRTS.Lang
Description : Internal representation of Idris' constructs.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE DeriveDataTypeable, DeriveFunctor, DeriveGeneric, FlexibleContexts,
PatternGuards #-}
module IRTS.Lang where
import Idris.Core.CaseTr... | mpkh/Idris-dev | src/IRTS/Lang.hs | bsd-3-clause | 16,317 | 0 | 17 | 6,069 | 6,168 | 3,109 | 3,059 | 316 | 22 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE Rank2Types #-}
import BinTerm
import Data.ByteString.Lazy.Char8 (ByteString, unpack)
import Text.Syntax.Check.Attoparsec.ByteString (printParseIsoByteStringChar8)
import Text.Syntax.Printer.ByteString(runAsPrinterChar8)
exprPPIso :: ByteString -> Either String Exp
expr... | khibino/haskell-invertible-syntax-attoparsec | example/bytestringLazy.hs | bsd-3-clause | 877 | 0 | 13 | 159 | 245 | 129 | 116 | 20 | 2 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANG... | Blaisorblade/stack | src/Stack/Build/Cache.hs | bsd-3-clause | 15,541 | 0 | 20 | 4,066 | 3,472 | 1,784 | 1,688 | 266 | 3 |
{-# LANGUAGE DuplicateRecordFields #-}
{-# OPTIONS_GHC -Werror #-}
import OverloadedRecFldsFail12_A
data S = MkS { foo :: Bool }
-- Use of foo and bar should give deprecation warnings
f :: T -> T
f e = e { foo = 3, bar = 3 }
s :: T -> Int
s = foo
main = return ()
| ezyang/ghc | testsuite/tests/overloadedrecflds/should_fail/overloadedrecfldsfail12.hs | bsd-3-clause | 269 | 0 | 8 | 63 | 77 | 45 | 32 | 9 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
-- | It is well known that fully parallel loops can always be
-- interchanged inwards with a sequential loop. This module
-- implements that transformation.
--
-- This is also where we implement loop-switching (for branches... | HIPERFIT/futhark | src/Futhark/Pass/ExtractKernels/Interchange.hs | isc | 11,964 | 0 | 21 | 3,279 | 3,538 | 1,776 | 1,762 | 253 | 5 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeOperators #-}
-- | GitHub event types and instances.
module Github.Event.Types
( Event(..)
, EventPayload(..)
, StatusCommit(..)
, Commit(..)
... | UlfS/ghmm | src/Github/Event/Types.hs | mit | 8,131 | 0 | 9 | 1,978 | 1,547 | 911 | 636 | 197 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE GADTs #-}
import Control.Monad.ST
import Data.Array.ST
import Data.Array.Unboxed
import Data.Foldable
import System.Environment
data LinearSpace a b where
Vector :: a -> LinearSpace a b
Su... | ReidAtcheson/vectorhaskell | linearspace.hs | mit | 3,601 | 0 | 21 | 844 | 1,509 | 759 | 750 | 70 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import BasePrelude hiding (left)
import Data.Configurator
import Data.Configurator.Types (Config)
import Database.PostgreSQL.Simple (ConnectInfo (..), Connection, connect,
defaul... | benkolera/talk-stacking-your-monads | code/Main.hs | mit | 2,343 | 0 | 12 | 455 | 615 | 314 | 301 | 46 | 1 |
{-# LANGUAGE StandaloneDeriving, TypeOperators, MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, UndecidableInstances #-}
-- Experimenting with Data types à la carte
-- http://www.cs.ru.nl/~W.Swierstra/Publications/DataTypesALaCarte.pdf
module ALaCarte where
import Data.Monoid
import Data.Proxy (Proxy(..))... | tclem/lilo | src/ALaCarte.hs | mit | 1,880 | 0 | 11 | 382 | 191 | 123 | 68 | 11 | 1 |
import Oczor.Test.Tests
import Prelude
main :: IO ()
main = af
| ptol/oczor | test/Spec.hs | mit | 64 | 0 | 6 | 12 | 25 | 14 | 11 | 4 | 1 |
{-# LANGUAGE CPP #-}
module Database.PostgreSQL.Protocol.Store.Encode
( Encode
, getEncodeLen
, runEncode
, putByteString
, putByteStringNull
, putWord8
, putWord16BE
, putWord32BE
, putWord64BE
, putInt16BE
, putInt32BE
, putInt64BE
, putFloat32BE
, putFloat64BE... | postgres-haskell/postgres-wire | src/Database/PostgreSQL/Protocol/Store/Encode.hs | mit | 3,413 | 0 | 12 | 785 | 1,002 | 544 | 458 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Web.Hablog.Page where
import Control.Arrow ((&&&))
import qualified Data.Map as M
import qualified Data.Text.Lazy as T
import qualified Text.Blaze.Html5 as H
import Web.Hablog.Utils
import Web.Hablog.Post
data Page
= Page
{ pageURL :: FilePath
, p... | soupi/hablog | src/Web/Hablog/Page.hs | mit | 974 | 0 | 13 | 238 | 304 | 167 | 137 | 31 | 1 |
{-# LANGUAGE DeriveGeneric #-}
module Tinc.Config (
getAdditionalDependencies
, configFile
) where
import Data.Aeson
import GHC.Generics
import Hpack.Config
import Hpack.Yaml
import System.Directory
import Tinc.Fail
data Config = Config {
dependencies :... | robbinch/tinc | src/Tinc/Config.hs | mit | 711 | 0 | 9 | 161 | 172 | 95 | 77 | 24 | 2 |
-- | Provides datatypes for complex numbers (or complex anything, really)
module Data.KnotComplex
(
Complex (..)
, K (..)
) where
import Prelude
import Data.Ratio hiding (numerator,denominator)
-- | Data representing a complex number as a pair of arbitrary types.
data Complex a = (:+) { realPart :: a, imagPart ... | adolenc/AlexanderTheGreat | src/Data/KnotComplex.hs | mit | 1,238 | 6 | 14 | 285 | 682 | 355 | 327 | 28 | 0 |
module Main where
import Prelude hiding (mod)
import Systat.Opts
import Systat.Driver
main :: IO ()
main = getOpts >>= exec
| mfaerevaag/systat | src/Main.hs | mit | 127 | 0 | 6 | 23 | 42 | 25 | 17 | 6 | 1 |
import XMonad
import XMonad.Actions.UpdatePointer
import XMonad.Config.Xfce
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.Script
import XMonad.Layout.Fullscreen
import XMonad.Layout.Grid
import XMonad.Layout.IM
impor... | neilh23/dotfiles | xmonad/xmonad.hs | mit | 2,400 | 0 | 10 | 510 | 541 | 328 | 213 | 51 | 1 |
{--
- Problem 2
(*) Find the last but one element of a list.
(Note that the Lisp transcription of this problem is incorrect.)
Example in Haskell:
Prelude> myButLast [1,2,3,4]
3
Prelude> myButLast ['a'..'z']
'y'
--}
myButLast = last . init
-- init :: Vector a -> Vector a Source... | sighingnow/Functional-99-Problems | Haskell/02.hs | mit | 512 | 1 | 7 | 137 | 61 | 33 | 28 | 4 | 1 |
module HashtablesPlus.HashRef where
import HashtablesPlus.Prelude
-- |
-- A reference to a mutable value,
-- which provides instances for 'Hashable' and 'Eq'.
--
-- It allows to use the values without those instances as keys in hash tables.
data HashRef a = HashRef {-# UNPACK #-} !(StableName a) !a
-- |
-- Creat... | nikita-volkov/hashtables-plus | library/HashtablesPlus/HashRef.hs | mit | 914 | 0 | 9 | 191 | 217 | 113 | 104 | 16 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-websiteconfiguration-redirectallrequeststo.html
module Stratosphere.ResourceProperties.S3BucketRedirectAll... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/S3BucketRedirectAllRequestsTo.hs | mit | 2,163 | 0 | 13 | 212 | 265 | 151 | 114 | 28 | 1 |
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
module Printparser where
-- pretty-printer generated by the BNF converter
import Absparser
import Data.Char
-- the top-level printing method
printTree :: Print a => a -> String
printTree = render . prt 0
type Doc = [ShowS] -> [ShowS]
doc :: ShowS -> Doc
doc = (:)
... | prashant007/AMPL | myAMPL/src/TEMP/Printparser.hs | mit | 13,039 | 0 | 16 | 3,090 | 6,794 | 3,349 | 3,445 | 222 | 12 |
-- |
-- Checks that actions scope cannot be top-level
module Main where
import Control.Monad (void)
import Control.Biegunka
main :: IO ()
main = void (biegunka id run (link ".xmonad/xmonad.hs" ".xmonad/xmonad.hs.bak"))
-- STDERR
-- Couldn't match type ‘'Actions’ with ‘'Sources’
-- Expected type: Script 'Sou... | biegunka/biegunka | test/typecheck/should_fail/Fail1.hs | mit | 377 | 0 | 9 | 70 | 61 | 36 | 25 | 5 | 1 |
{-# LANGUAGE DeriveDataTypeable, ScopedTypeVariables, MultiParamTypeClasses #-}
module Pump.Inter where
import Pump.Type
import Pump.Positiv
import Pump.Negativ
import Language.Syntax
import Language.Inter
import Language
import Pump.Conf
import qualified Pump.Quiz
import Challenger.Partial
import Autolib.Util.Sor... | Erdwolf/autotool-bonn | src/Pump/Inter.hs | gpl-2.0 | 3,005 | 18 | 21 | 832 | 947 | 493 | 454 | 77 | 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 ... | narurien/ganeti-ceph | test/hs/Test/Ganeti/Luxi.hs | gpl-2.0 | 5,917 | 0 | 16 | 1,395 | 1,149 | 592 | 557 | 107 | 2 |
module Tema_17a_ConjuntoConListasNoOrdenadasConDuplicados_Spec (main, spec) where
import Tema_17.ConjuntoConListasNoOrdenadasConDuplicados
import Test.Hspec
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "ConjuntoConListasNoOrdenadasConDuplicados" $ do
it "e1" $
escribeConjunto (foldr in... | jaalonso/I1M-Cod-Temas | test/Tema_17a_ConjuntoConListasNoOrdenadasConDuplicados_Spec.hs | gpl-2.0 | 1,189 | 0 | 17 | 262 | 570 | 323 | 247 | 31 | 1 |
import Data.List (maximumBy, tails, inits)
import Data.Foldable (foldr') -- we use strict version to be kind to the stack and
-- get the answer quickly
main = putStrLn . show $ consecutivePrimeSum' 1000000
-- Eventually came up with this gnarly one-liner
-- 4000 is rather large and has ... | ciderpunx/project_euler_in_haskell | euler050.hs | gpl-2.0 | 1,804 | 0 | 17 | 541 | 571 | 302 | 269 | 30 | 3 |
module E2ASM.Assembler.Token
( Token(..)
, TokenInfo(..)
) where
import qualified Text.Parsec as P
import qualified E2ASM.Assembler.Directive as Dir
import qualified E2ASM.Assembler.Instruction as Instr
import qualified E2ASM.Assembler.Label as Lab
import qualified E2ASM.Assembler.Number ... | E2LP/e2asm | src/E2ASM/Assembler/Token.hs | gpl-3.0 | 782 | 0 | 7 | 188 | 194 | 125 | 69 | 25 | 0 |
{-# LANGUAGE Unsafe #-}
{-# LANGUAGE ConstraintKinds #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Typeable.Internal
-- Copyright : (c) The University of Glasgow, CWI 2001--2011
-- License : BSD-style (see the file libraries/base/LI... | jwiegley/ghc-release | libraries/base/Data/Typeable/Internal.hs | gpl-3.0 | 12,150 | 0 | 15 | 2,842 | 2,883 | 1,616 | 1,267 | 209 | 2 |
module Homework where
sum'n'count :: Integer -> (Integer, Integer)
sum'n'count x | x == 0 = (0, 1)
| otherwise = helper x
where helper t | t == 0 = (0, 0)
| otherwise = let rec_res = helper (quot t 10)
in ((fst rec_res) + abs (rem t 10), (snd rec_res) + 1)
in... | ItsLastDay/academic_university_2016-2018 | subjects/Haskell/4/homework.hs | gpl-3.0 | 671 | 0 | 25 | 249 | 327 | 163 | 164 | 14 | 1 |
{-# LANGUAGE DeriveDataTypeable, RecursiveDo, ScopedTypeVariables #-}
module InnerEar.Exercises.MultipleChoice where
import Reflex
import Reflex.Dom
import Reflex.Dom.Contrib.Widgets.ButtonGroup (radioGroup)
import Reflex.Dom.Contrib.Widgets.Common
import Data.Map
import Control.Monad (zipWithM)
import Control.Monad.... | luisnavarrodelangel/InnerEar | src/InnerEar/Exercises/MultipleChoice.hs | gpl-3.0 | 14,844 | 0 | 26 | 2,635 | 4,414 | 2,265 | 2,149 | 227 | 6 |
module Main where
import Control.Monad.IO.Class
import System.Environment
import System.Console.GetOpt (getOpt, OptDescr(..), ArgDescr(..), ArgOrder(..))
import Network.URI
import OHS.Client
main = do
argv <- getArgs
let (Options host port, rest) =
case getOpt Permute globalArgSpec argv of
... | DanielG/ohs | src/OHScli/Cli.hs | gpl-3.0 | 1,545 | 0 | 17 | 398 | 543 | 290 | 253 | 36 | 6 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Messages/List.hs | mpl-2.0 | 9,732 | 0 | 28 | 2,604 | 1,444 | 830 | 614 | 212 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.CivicInfo.Types
-- Copyright : (c) 2015-2016 Brendan H... | rueshyna/gogol | gogol-civicinfo/gen/Network/Google/CivicInfo/Types.hs | mpl-2.0 | 7,542 | 0 | 7 | 1,893 | 827 | 568 | 259 | 251 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-container/gen/Network/Google/Resource/Container/Projects/Zones/Operations/Cancel.hs | mpl-2.0 | 6,765 | 0 | 21 | 1,559 | 946 | 552 | 394 | 141 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Drafts/Get.hs | mpl-2.0 | 5,217 | 0 | 20 | 1,320 | 859 | 500 | 359 | 124 | 1 |
--
-- Copyright (c) 2005, 2012 Stefan Wehr - http://www.stefanwehr.de
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2.1 of the License, or (at your option) any... | ekarayel/HTF | Test/Framework/Location.hs | lgpl-2.1 | 1,742 | 0 | 7 | 354 | 202 | 122 | 80 | 18 | 1 |
import Distribution.Simple
import Distribution.Simple.LocalBuildInfo
import Distribution.Simple.Program
import Distribution.Simple.Setup
import Distribution.PackageDescription
import Distribution.Verbosity
import Control.Monad
import Data.Maybe
import Data.Monoid
import Data.Functor
import System.FilePath.Posix
import ... | hsyl20/HaskellPU | Setup.hs | lgpl-3.0 | 2,833 | 0 | 17 | 758 | 686 | 360 | 326 | 60 | 1 |
myMap [] fn = []
myMap (x:xs) fn = fn x : myMap xs fn
myReduce i [] fn = i
myReduce i (a:as) fn = myReduce (fn i a) as fn
myFilter fn [] = []
myFilter fn (x:xs) = if fn x then x : myFilter fn xs else myFilter fn xs
myTake 0 xs = []
myTake n [] = []
myTake n (x:xs) = x : myTake (n-1) xs
myTakeWhile fn [] = []
myTakeWhi... | abyu/learning | haskell/listFuncs.hs | unlicense | 759 | 0 | 10 | 187 | 535 | 268 | 267 | 24 | 2 |
module Main where
luhnDouble :: Int -> Int
luhnDouble x | x * 2 > 9 = (x * 2) - 9
| otherwise = x * 2
luhn :: Int -> Int -> Int -> Int -> Bool
luhn a b c d = luhnTotal `mod` 10 == 0
where luhnTotal = luhnDouble a + b + luhnDouble c + d
| Crossroadsman/ProgrammingInHaskell | 04/luhn.hs | apache-2.0 | 290 | 0 | 10 | 116 | 129 | 66 | 63 | 7 | 1 |
module Chapter2.PatternMatching where
import Chapter2.DataModels
clientName :: Client -> String
clientName (GovOrg name) = name
clientName (Company name _ _ _) = name
clientName (Individual (Person fName lName _) _) = fName ++ " " ++ lName
companyName :: Client -> Maybe Strin... | zer/BeginningHaskell | src/Chapter2/PatternMatching.hs | apache-2.0 | 713 | 0 | 9 | 206 | 253 | 130 | 123 | 13 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
-- Module : Graphics.Hoodle.Render.PDFBackground
-- Copyright : (c) 2011-2013 Ian-Woo Kim
--
-- License : BSD3
-- Maintainer : Ian-Woo Kim <[email protected]>
-- Sta... | wavewave/hoodle-render | src/Graphics/Hoodle/Render/Background.hs | bsd-2-clause | 8,340 | 9 | 36 | 2,511 | 2,413 | 1,192 | 1,221 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, TypeSynonymInstances, FlexibleInstances #-}
-- | Basic definitions od spaces and their properties
module Data.Reals.Space (
sor, sand, force,
Hausdorff (..),
Discrete (..),
Compact (..),
Overt... | comius/haskell-fast-reals | src/Data/Reals/Space.hs | bsd-2-clause | 2,760 | 0 | 14 | 667 | 454 | 254 | 200 | 34 | 1 |
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ParallelListComp #-}
module Data.Discrimination.Internal
( runs
, groupNum
, bdiscNat
, updateBag
, updateSet
, spanEither
) where
import Data.Array as Array
import Data.Functor
import Data.Int
import qualified Data.List as List
import Prelude hiding (read, con... | markus1189/discrimination | src/Data/Discrimination/Internal.hs | bsd-2-clause | 1,609 | 1 | 12 | 333 | 691 | 382 | 309 | 42 | 2 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE CPP #-}
-------------------------------------------------------------------------------
-- |
-- Module : Yesod.Helpers.RssFeed
-- Copyright : Patrick Brisbin
-- License : as-is
--
-- Maintainer : Patrick Brisbin <[email protected]>
-- Stability : Stable
--... | pbrisbin/yesod-newsfeed | Yesod/Helpers/RssFeed.hs | bsd-2-clause | 2,479 | 0 | 9 | 543 | 296 | 178 | 118 | 30 | 1 |
{-|
Module : Control.IxFunctor.Examples.Examples
Description : A bunch of fairly trivial examples
Copyright : Pavel Lepin, 2015
License : BSD2
Maintainer : [email protected]
Stability : experimental
Portability : GHC >= 7.8
-}
module Control.IxFunctor.Examples.Examples
( paraFactorial
, ... | pbl64k/gpif-datakinds | src/Control/IxFunctor/Examples/Examples.hs | bsd-2-clause | 1,622 | 0 | 11 | 393 | 476 | 273 | 203 | 39 | 2 |
module Main where
import Criterion.Main
import Crypto.Number.Serialize
-- import Crypto.Number.Generate
import qualified Data.ByteString as B
import Crypto.Number.ModArithmetic
import Crypto.Number.F2m
import Data.Bits
primes = [3, 5, 7, 29, 31, 211, 2309, 2311, 30029, 200560490131, 304250263527209]
carmichaelNumber... | vincenthz/hs-crypto-numbers | Benchmarks/Benchmarks.hs | bsd-2-clause | 3,616 | 0 | 12 | 890 | 1,102 | 568 | 534 | 63 | 1 |
module RefacMvDefBtwMod(moveDefBtwMod) where
import Maybe
import List
import RefacUtils hiding (getQualifier)
import PFE0 (findFile)
import PrettyPrint
{-This refactoring moves a user-selected function definition/pattern binding from current module to a
user specified module.
To perform this refactoring: put ... | forste/haReFork | refactorer/RefacMvDefBtwMod.hs | bsd-3-clause | 17,342 | 0 | 24 | 5,240 | 4,159 | 2,117 | 2,042 | -1 | -1 |
-- Copyright (c) 2012 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 conditions... | emc2/proglang-util | Control/Monad/Gensym/Class.hs | bsd-3-clause | 2,261 | 0 | 8 | 415 | 103 | 73 | 30 | 6 | 0 |
module Sharc.Instruments.BassClarinet (bassClarinet) where
import Sharc.Types
bassClarinet :: Instr
bassClarinet = Instr
"bass_clarinet"
"Bass Clarinet"
(Legend "McGill" "2" "12")
(Range
(InstrRange
(HarmonicFreq 1 (Pitch 69.29 25 "c#2"))
(Pitch 69.29 25 "c#2")
... | anton-k/sharc-timbre | src/Sharc/Instruments/BassClarinet.hs | bsd-3-clause | 67,262 | 0 | 15 | 18,555 | 26,838 | 13,927 | 12,911 | 2,271 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
--
-- Copyright (c) 2009-2011, ERICSSON AB
-- All rights... | rCEx/feldspar-lang-small | src/Feldspar/Core/Constructs/Mutable.hs | bsd-3-clause | 7,003 | 0 | 19 | 1,740 | 1,785 | 905 | 880 | 111 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module CLaSH.Util.CoreHW.Traverse
(startContext
,transformationStep
,changed
)
where
-- External Modules
import Control.Monad (liftM, liftM2)
import qualified Data.Label.PureM as... | christiaanb/clash-tryout | src/CLaSH/Util/CoreHW/Traverse.hs | bsd-3-clause | 7,814 | 0 | 22 | 2,271 | 3,266 | 1,662 | 1,604 | 195 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
module Protocol.ROC.PointTypes.PointType6 where
import Data.Binary.Get (getByteString,
getWord8,
getWord16le,
Get)
import Data.ByteString (ByteString)
import Data.Word (Word8,Word16)
impo... | plow-technologies/roc-translator | src/Protocol/ROC/PointTypes/PointType6.hs | bsd-3-clause | 8,098 | 0 | 9 | 2,388 | 985 | 547 | 438 | 209 | 1 |
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable, ScopedTypeVariables #-}
module Main (main) where
import Data.List (intercalate)
import qualified Data.Map as Map
import Data.Maybe (fromMaybe)
import Data.Monoid ((<>),mempty,mconcat)
import qualified Data.ByteString as BS
import ... | paulkoerbitz/slice-cpp-gen | src/slice-cpp-gen.hs | bsd-3-clause | 11,352 | 0 | 27 | 4,527 | 3,243 | 1,682 | 1,561 | 149 | 23 |
module T450 where
import Data.Maybe
import Data.Singletons.TH
import Data.Singletons.TH.Options
import Data.Text (Text)
import Language.Haskell.TH (Name)
import Prelude.Singletons
newtype Message = MkMessage Text
newtype PMessage = PMkMessage Symbol
newtype Function a b = MkFunction (a -> b)
newtype PFunction a ... | goldfirere/singletons | singletons-base/tests/compile-and-dump/Singletons/T450.hs | bsd-3-clause | 2,105 | 0 | 17 | 781 | 425 | 237 | 188 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
-- Imports
import Control.Monad.Trans.Maybe
import Data.Typeable
import Web.Spock
import Web.Spock.Config
import qualified Database.MongoDB as DB
import qualified Database.MongoDB.Connection as DB
import qualified Database.MongoDB.Query as DB
import Lucid
import q... | nerggnet/blog | app/Main.hs | bsd-3-clause | 9,312 | 0 | 15 | 2,422 | 2,747 | 1,364 | 1,383 | 216 | 3 |
-- | Provides functions and datatypes for interacting with the /market endpoint
-- | IG Api.
module IG.REST.Markets where
import Control.Lens hiding (from, to)
import Data.Aeson
import Data.Aeson.Types hiding (Options)
import Data.List as List
import Data.String.Conversions
import Data.Text as Text
import IG
import I... | wjdhamilton/ig-haskell | src/IG/REST/Markets.hs | bsd-3-clause | 2,867 | 0 | 19 | 781 | 902 | 460 | 442 | 55 | 3 |
{-# LANGUAGE OverloadedStrings #-}
--------------------------------------------------------------------------------
module OneDrive.Internals.OAuth2
( Auth
, getAuth
, newAuth
, signIn
, offline
, readOnly
, readWrite
, appFolder
) where
----------------------------------------------------------------... | dfaligertwood/onedrive | OneDrive/Internals/OAuth2.hs | bsd-3-clause | 2,058 | 0 | 9 | 397 | 475 | 276 | 199 | 55 | 1 |
{-# LANGUAGE OverloadedStrings, FlexibleContexts, NamedFieldPuns
, RecordWildCards #-}
module Erisbot where
import Erisbot.Types
import Erisbot.Commands
import Erisbot.Plugins
import Erisbot.Plugins.URL
import Erisbot.Plugins.Sed
import Network
import Network.IRC.ByteString.Parser
import Data.ByteString (Byt... | kallisti-dev/erisbot | src/Erisbot.hs | bsd-3-clause | 4,467 | 0 | 19 | 967 | 1,124 | 546 | 578 | 104 | 3 |
{-|
Module : Graphics.Sudbury.WireMessages
Description : Representation of messages parsed from the wayland wire protocol
Copyright : (c) Auke Booij, 2015-2017
License : MIT
Maintainer : [email protected]
Stability : experimental
-}
module Graphics.Sudbury.WireMessages where
import Data.Fixed
import Data.W... | abooij/sudbury | Graphics/Sudbury/WireMessages.hs | mit | 4,249 | 0 | 16 | 693 | 1,108 | 587 | 521 | -1 | -1 |
-- |
-- Module : Aura.Colour
-- Copyright : (c) Colin Woodbury, 2012 - 2020
-- License : GPL3
-- Maintainer: Colin Woodbury <[email protected]>
--
-- Annotate `Doc` text with various colours.
module Aura.Colour
( -- * Render to Text
dtot
-- * Colours
, cyan, bCyan, green, yellow, red, magenta
) wher... | aurapm/aura | aura/lib/Aura/Colour.hs | gpl-3.0 | 1,168 | 0 | 8 | 222 | 267 | 148 | 119 | 21 | 1 |
module Main where
import System.Random
import Test.Tasty
--import Test.Tasty.QuickCheck as QC
--import SugarScape.Discrete
--import SugarScape.Model
import Agent
import Environment
import Simulation
--import StatsUtils
-- clear & stack test --test-arguments="--quickcheck-tests=100 --quickcheck-replay="
seed :: I... | thalerjonathan/phd | public/towards/SugarScape/experimental/chapter2_environment/src/test/Test.hs | gpl-3.0 | 2,632 | 0 | 12 | 1,040 | 99 | 58 | 41 | 16 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-ec2/gen/Network/AWS/EC2/DisableVGWRoutePropagation.hs | mpl-2.0 | 3,869 | 0 | 9 | 729 | 439 | 266 | 173 | 65 | 1 |
module Example where
import Prelude hiding (tail)
import Language.Cil
main = putStr (pr ass "")
ass :: Assembly
ass = Assembly [mscorlibRef] "Example" [hello]
hello :: TypeDef
hello = classDef [CaPublic] "Haskell.Ehc.Hello" noExtends noImplements
[] [myMain] []
deadbeef = 3735928559
int16 = Valu... | tomlokhorst/language-cil | examples/08_Indirect.hs | bsd-3-clause | 950 | 0 | 9 | 221 | 286 | 156 | 130 | 36 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE OverloadedStrings, FlexibleInstances,
GeneralizedNewtypeDeriving, CPP #-}
-- | Haste AST pretty printing machinery. The actual printing happens in
-- Haste.AST.Print.
module Haste.AST.PP where
import Data.Monoid
import Data.String
import Data.List (fold... | nyson/haste-compiler | src/Haste/AST/PP.hs | bsd-3-clause | 5,691 | 0 | 14 | 1,461 | 1,906 | 1,006 | 900 | 137 | 2 |
--
-- Copyright (c) 2014 Joachim Breitner
--
module CallArity
( callArityAnalProgram
, callArityRHS -- for testing
) where
import VarSet
import VarEnv
import DynFlags ( DynFlags )
import BasicTypes
import CoreSyn
import Id
import CoreArity ( typeArity )
import CoreUtils ( exprIsHNF, exprIsTrivial )
--imp... | tjakway/ghcjvm | compiler/simplCore/CallArity.hs | bsd-3-clause | 28,592 | 10 | 19 | 6,934 | 3,248 | 1,788 | 1,460 | 209 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-elasticache/gen/Network/AWS/ElastiCache/DescribeReservedCacheNodes.hs | mpl-2.0 | 10,392 | 0 | 12 | 2,056 | 1,105 | 661 | 444 | 112 | 1 |
{-
Copyright 2015 Google Inc. 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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | d191562687/codeworld | codeworld-base/src/Data/Ix.hs | apache-2.0 | 729 | 0 | 4 | 136 | 23 | 17 | 6 | 4 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, V... | YinYanfei/CadalWorkspace | thrift/src/thrift-0.8.0/test/hs/ThriftTest_Main.hs | gpl-3.0 | 7,188 | 0 | 16 | 1,794 | 2,056 | 1,008 | 1,048 | 161 | 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="fa-IR">
<title>GraalVM JavaScript</title>
<maps>
<homeID>graaljs</homeID>
<mapref locat... | kingthorin/zap-extensions | addOns/graaljs/src/main/javahelp/help_fa_IR/helpset_fa_IR.hs | apache-2.0 | 967 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
module PolymorhicIn1 where
f :: [a] -> a
f ((x : xs@[])) = x
f ((x : xs@(b_1 : b_2))) = x
f ((x : xs)) = x | kmate/HaRe | old/testing/subIntroPattern/PolymorphicIn1_TokOut.hs | bsd-3-clause | 108 | 0 | 11 | 29 | 85 | 49 | 36 | 5 | 1 |
module M where
import A
f :: T -> String
f = show
| ezyang/ghc | testsuite/tests/backpack/cabal/bkpcabal05/M.hs | bsd-3-clause | 50 | 0 | 5 | 13 | 21 | 13 | 8 | 4 | 1 |
{-# LANGUAGE TypeOperators #-}
module T4239A where
data (:+++) = (:+++)
| (:---)
| X
| Y
| urbanslug/ghc | testsuite/tests/rename/should_compile/T4239A.hs | bsd-3-clause | 129 | 4 | 4 | 57 | 28 | 20 | 8 | 6 | 0 |
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
{-# LANGUAGE Arrows, FunctionalDependencies, FlexibleContexts,
MultiParamTypeClasses, RecordWildCards #-}
module T5045 where
import Control.Arrow
class (Control.Arrow.Arrow a') => ArrowAddReader r a a' | a -> a' where
elimReader :: a (e, s) b -> a'... | urbanslug/ghc | testsuite/tests/ghci/scripts/T5045.hs | bsd-3-clause | 1,375 | 3 | 12 | 293 | 418 | 228 | 190 | -1 | -1 |
{-# LANGUAGE Safe #-}
module UnsafeInfered09 where
import safe UnsafeInfered09_A
h :: Int
h = g
| ghc-android/ghc | testsuite/tests/safeHaskell/safeInfered/UnsafeInfered09.hs | bsd-3-clause | 99 | 1 | 4 | 19 | 19 | 13 | 6 | 5 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.