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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-|
JWS
-}
module Network.ACME.JWS
( module Network.ACME.JWS
, JWK
, Base64Octets(..)
) where
import Control.Lens (Identity(..), review, set, view)
import Control.Lens.TH (makeLenses)
import Control.Monad.Except
import Crypto.JOSE
import Crypto.JOSE.Types (Base64Octets(..))
import Data.Aeson
import qualified ... | hemio-ev/libghc-acme | src/Network/ACME/JWS.hs | lgpl-3.0 | 3,225 | 0 | 16 | 666 | 863 | 461 | 402 | -1 | -1 |
module Main where
import MancalaBoard
import MancalaAI
import System.IO
import Data.Char
{- this is from last week's lab -}
gameOver :: MancalaBoard -> Bool
gameOver m = or (map ((all (==0)) . (playerSide m)) allPlayers)
welcomeUser :: IO()
welcomeUser = do
putStr "\n*******************************************... | kbrose/math | Mancala/OnePlayerMancala.hs | unlicense | 2,528 | 0 | 22 | 744 | 667 | 315 | 352 | 64 | 6 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
module Language.K3.Analysis.Core where
import Control.Arrow
imp... | DaMSL/K3 | src/Language/K3/Analysis/Core.hs | apache-2.0 | 20,136 | 0 | 15 | 4,811 | 7,917 | 4,165 | 3,752 | 355 | 18 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Aeson (decode)
import Data.Maybe (fromJust)
import Network.URI (parseURI)
import Test.Hspec
import Test.QuickCheck
import Types
main :: IO ()
main = hspec $ do
describe "app" $ do
it "apps" . property $
\x -> (read . show $ x) == (... | passy/giflib-api | Tests/Main.hs | apache-2.0 | 868 | 0 | 19 | 237 | 255 | 130 | 125 | 22 | 1 |
{-# LANGUAGE CPP, TemplateHaskell #-}
{-| Shim library for supporting various Template Haskell versions
-}
{-
Copyright (C) 2018, 2021 Ganeti Project Contributors.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditi... | ganeti/ganeti | src/Ganeti/THH/Compat.hs | bsd-2-clause | 3,633 | 0 | 10 | 610 | 319 | 188 | 131 | 24 | 2 |
{-#LANGUAGE RecordWildCards #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE QuasiQuotes, TemplateHaskell, TypeFamilies #-}
{-# LANGUAGE OverloadedStrings, GADTs, FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving, MultiParamTypeClasses #-}
module DirectoryServer where
import Network hiding (accept, sClose)
imp... | Garygunn94/DFS | .stack-work/intero/intero22931Yzc.hs | bsd-3-clause | 11,932 | 276 | 15 | 2,752 | 3,178 | 1,643 | 1,535 | 221 | 6 |
{-
ArrowObsidian.hs
Joel Svensson
-}
module Obsidian.ArrowObsidian
(module Obsidian.ArrowObsidian.Flatten,
module Obsidian.ArrowObsidian.Arr,
module Obsidian.ArrowObsidian.Core,
module Obsidian.ArrowObsidian.Exp,
module Obsidian.ArrowObsidian.API,
module Ob... | svenssonjoel/ArrowObsidian | Obsidian/ArrowObsidian.hs | bsd-3-clause | 835 | 0 | 5 | 138 | 127 | 88 | 39 | 19 | 0 |
{-# LANGUAGE QuasiQuotes, TypeFamilies, FlexibleInstances, OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module PNG(
PNG,
chunkName,
readPNG,
ihdr,
bplte,
plte,
bidat,
body,
aplace,
others,
writePNG,
IHDR(..),
PLTE(..),
png
) where
import Prelude hiding (concat)
import File.Binary (binar... | YoshikuniJujo/binary-file | examples/png/PNG.hs | bsd-3-clause | 6,905 | 80 | 14 | 1,309 | 2,444 | 1,355 | 1,089 | 166 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Allegro.Display
( withDisplay
, createDisplay
, Display
, DisplayWindow(..)
, destroyDisplay
-- * Display properties
, setWindowTitle
, setDisplayIcon
-- * Working with the current display
, flipDisplay
-- * Events
, DisplayEvent
, HasDisplay(..)
... | yav/allegro | src/Allegro/Display.hs | bsd-3-clause | 2,539 | 0 | 12 | 601 | 659 | 356 | 303 | 64 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeOperators #-}
-- | Description: HTTP API implementation.
module Anchor.Tokens.Server.API where
import Blaze.Byte... | zerobuzz/anchor-token-server | lib/Anchor/Tokens/Server/API.hs | bsd-3-clause | 12,791 | 10 | 21 | 3,514 | 3,119 | 1,572 | 1,547 | -1 | -1 |
{-# LANGUAGE UndecidableInstances #-}
-- | Functionality on promoted lists.
module Data.Type.List (module Data.Type.List, module Data.Promotion.Prelude.List) where
import Data.Promotion.Prelude.List (Map, (:++))
type family ReverseAcc (xs :: [k]) (acc :: [k]) :: [k]
type instance ReverseAcc '[] acc = acc
type i... | kosmikus/tilt | src/Data/Type/List.hs | bsd-3-clause | 426 | 0 | 7 | 70 | 150 | 95 | 55 | -1 | -1 |
{-# language RankNTypes #-}
{-# language GADTs #-}
{-# language TupleSections #-}
{-# language OverloadedStrings #-}
module Text.Digestive.Snap where
import Snap.Core (MonadSnap,
getRequest,
rqMethod)
import Data.ByteString(ByteString)
import Data.Text (Text)
import Data.List(isPr... | jonpetterbergman/wai-snap | src/Text/Digestive/Snap.hs | bsd-3-clause | 3,096 | 0 | 13 | 614 | 1,232 | 651 | 581 | 74 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
module ETA.TypeCheck.TcErrors(
reportUnsolved, reportAllUnsolved,
warnDefaulting,
solverDepthErrorTcS
) where
import ETA.TypeCheck.TcRnTypes
import ETA.TypeCheck.TcRnMonad
import ETA.TypeCheck.TcMType
import ETA.TypeCheck.TcType
import ETA.Types.TypeRep
imp... | alexander-at-github/eta | compiler/ETA/TypeCheck/TcErrors.hs | bsd-3-clause | 68,130 | 164 | 21 | 20,557 | 13,705 | 7,112 | 6,593 | 956 | 15 |
{-# LANGUAGE TypeFamilies, UndecidableInstances #-}
module PrioritySync.Internal.Schedule
(Schedule(..))
where
import PrioritySync.Internal.UserData
import PrioritySync.Internal.Room
import PrioritySync.Internal.Queue
import PrioritySync.Internal.ClaimContext
import PrioritySync.Internal.RoomGroup
import Cont... | clanehin/priority-sync | PrioritySync/Internal/Schedule.hs | bsd-3-clause | 1,942 | 0 | 13 | 338 | 591 | 307 | 284 | 26 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, NoImplicitPrelude
, RecordWildCards
, NondecreasingIndentation
#-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.IO.Handle
-- Copyri... | bitemyapp/ghc | libraries/base/GHC/IO/Handle.hs | bsd-3-clause | 26,434 | 0 | 24 | 6,110 | 4,837 | 2,490 | 2,347 | 373 | 5 |
module Botworld.Display where
import Botworld hiding (Cell)
import Botworld.TextBlock
import Control.Applicative
import Control.Monad (join)
import Data.List (sortBy)
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Ord (comparing)
import qualified Data.Set as Set
import Text.Printf (printf)
colorCha... | machine-intelligence/Botworld | Botworld/Display.hs | bsd-3-clause | 6,816 | 0 | 14 | 1,496 | 2,541 | 1,294 | 1,247 | 141 | 18 |
{-# LANGUAGE CPP
, OverloadedStrings
, PatternGuards
, DataKinds
, GADTs
, TypeOperators
#-}
module Main where
import Language.Hakaru.Syntax.AST.Transforms
import Language.Hakaru.Syntax.TypeCheck
import Language.Hakaru.Syn... | zachsully/hakaru | commands/Hakaru.hs | bsd-3-clause | 6,211 | 0 | 18 | 1,902 | 2,086 | 1,050 | 1,036 | 140 | 4 |
module RPC.Internal.IO where
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Aeson as A
import qualified Data.Attoparsec as AP
import qualified Data.ByteString.Lazy as BSL
import qualified Data.Enumerator as E
import qualified Data.Enumerator.Binary as EB
import qualified Data.Enumerator.List as E... | max630/json-exec | RPC/Internal/IO.hs | bsd-3-clause | 1,174 | 0 | 17 | 271 | 407 | 226 | 181 | 26 | 1 |
{-# language NamedFieldPuns #-}
{-# language DataKinds #-}
{-# language OverloadedStrings #-}
{-# language ViewPatterns #-}
module Gueb (
noJobs
, makeHandlers
) where
import Data.Text
import Data.Map as Map
import Data.Aeson
import Data.Functor
import Data.Bifunctor (first)
import Data.Time
import ... | danidiaz/gueb | lib/Gueb.hs | bsd-3-clause | 5,536 | 0 | 19 | 1,605 | 1,833 | 925 | 908 | 108 | 1 |
{- vim: set encoding=utf-8 :
-*- coding: utf-8 -*- -}
----------------------------------------
---- STDLIB
----------------------------------------
----------------------------------------
---- SITE-PACKAGES
----------------------------------------
import Network.EmailSend.SendMail (SendMailBackend(..))
import Data.E... | weissi/haskell-email | testemail.hs | bsd-3-clause | 1,003 | 0 | 11 | 126 | 170 | 97 | 73 | 13 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Dependency.Types
-- Copyright : (c) Duncan Coutts 2008
-- License : BSD-like
--
-- Maintainer : cabal-devel@haskell.org
-- Stability : provisional
-- Portability : portable
--
-- Common... | IreneKnapp/Faction | faction/Distribution/Client/Dependency/Types.hs | bsd-3-clause | 6,809 | 0 | 14 | 1,559 | 1,052 | 616 | 436 | 99 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module ScottyCA where
import Web.Scotty
import Data.ByteString.Lazy (ByteString, append, empty, pack, toStrict, fromStrict)
import qualified Data.ByteString.Lazy.Char8 as L hiding (length)
import Data.Binary
import System.IO
import Crypto.Cipher.AES
import Control.Monad.Trans
impor... | armoredsoftware/protocol | tpm/mainline/privacyCA/ScottyCA.hs | bsd-3-clause | 4,301 | 0 | 10 | 1,096 | 156 | 102 | 54 | 19 | 1 |
module Globber (matchGlob) where
import Globber.GlobParser
import Globber.Glob
-- | Matches a glob on a string.
--
-- >>> matchGlob "abcd" "abcd"
-- True
--
-- >>> matchGlob "a[b-z]c" "adc"
-- True
--
-- >>> matchGlob "a[abcd]c" "abc"
-- True
--
-- >>> matchGlob "a[xyz]c" "abc"
-- False
--
-- >>> matchGlob "a?c" "adc... | andgate/globber | src/Globber.hs | bsd-3-clause | 712 | 0 | 7 | 117 | 84 | 60 | 24 | 6 | 1 |
-- | Layout routine for Data.Tree
module Tree
( module Data.Tree
, module Autolib.Dot.Dot
, module Tree.Class
, peng
)
where
import Data.Tree
import Autolib.Dot.Dot
import Autolib.Dot.Dotty
import Tree.Class
import Tree.Dot
| Erdwolf/autotool-bonn | src/Tree.hs | gpl-2.0 | 233 | 0 | 5 | 40 | 56 | 37 | 19 | 10 | 0 |
-- | Transform an error to a user-friendly string.
module Language.Java.Paragon.ErrorTxt (errorTxt, errorTxtOld) where
import Language.Java.Paragon.Error
import Language.Java.Paragon.SourcePos
import System.Exit -- for old style error messages
-- | Comvert context information into a string, always ends with a new lin... | bvdelft/parac2 | src/Language/Java/Paragon/ErrorTxt.hs | bsd-3-clause | 8,013 | 0 | 16 | 1,672 | 1,936 | 983 | 953 | 163 | 2 |
{-|
Module : Idris.ElabDecls
Description : Code to elaborate declarations.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE DeriveFunctor, FlexibleInstances, MultiParamTypeClasses,
PatternGuards #-}
module Idris.ElabDecls where
import Idris.AbsSyntax
import Idris.... | bravit/Idris-dev | src/Idris/ElabDecls.hs | bsd-3-clause | 12,461 | 0 | 21 | 3,986 | 4,096 | 2,044 | 2,052 | 247 | 8 |
{-# LANGUAGE Haskell98 #-}
{-# LINE 1 "Blaze/ByteString/Builder/ByteString.hs" #-}
------------------------------------------------------------------------------
-- |
-- Module: Blaze.ByteString.Builder.ByteString
-- Copyright: (c) 2013 Leon P Smith
-- License: BSD3
-- Maintainer: Leon P Smith <leon@melding... | phischu/fragnix | tests/packages/scotty/Blaze.ByteString.Builder.ByteString.hs | bsd-3-clause | 4,814 | 0 | 11 | 807 | 426 | 283 | 143 | 51 | 1 |
module Main where
import Prelude
import Test.Hspec
import IHaskell.Test.Completion (testCompletions)
import IHaskell.Test.Parser (testParser)
import IHaskell.Test.Eval (testEval)
main :: IO ()
main =
hspec $ do
testParser
testEval
testCompletions
| thomasjm/IHaskell | src/tests/Hspec.hs | mit | 316 | 0 | 7 | 97 | 73 | 42 | 31 | 12 | 1 |
module Keyboard (Keyboard
,pressed
,keyboardCallback
,initialKeyboardState) where
import Data.IORef
import qualified Data.Set as Set
import qualified Graphics.UI.GLUT as GLUT
newtype Keyboard = Keyboard (Set.Set GLUT.Key)
pressed :: GLUT.Key -> Keyboard -> Bool
pressed... | SonOfLilit/purewars | Keyboard.hs | bsd-3-clause | 748 | 0 | 9 | 151 | 225 | 120 | 105 | 17 | 1 |
{-# LANGUAGE TemplateHaskell, MultiParamTypeClasses #-}
-- | Support for quotes
module Plugin.Slap (theModule) where
import Plugin
import qualified Message (nick, showNick)
$(plugin "Quote")
instance Module QuoteModule () where
moduleCmds _ = ["slap", "smack"]
moduleHelp _ _ = "slap <nick>.... | dmalikov/lambdabot | Plugin/Slap.hs | mit | 3,071 | 0 | 11 | 772 | 859 | 489 | 370 | 54 | 1 |
module Distribution.Client.Dependency.Modular.Validate (validateTree) where
-- Validation of the tree.
--
-- The task here is to make sure all constraints hold. After validation, any
-- assignment returned by exploration of the tree should be a complete valid
-- assignment, i.e., actually constitute a solution.
impor... | randen/cabal | cabal-install/Distribution/Client/Dependency/Modular/Validate.hs | bsd-3-clause | 13,465 | 0 | 22 | 3,854 | 2,575 | 1,329 | 1,246 | 145 | 14 |
data Bool = False | True
not :: Bool -> Bool
not = undefined
(&&) :: Bool -> Bool -> Bool
(&&) = undefined
(||) :: Bool -> Bool -> Bool
(||) = undefined
class Eq a where
(==) :: a -> a -> Bool
x == y = not (x /= y)
(/=) :: a -> a -> Bool
x /= y = not (x... | themattchan/tandoori | input/Eq.hs | bsd-3-clause | 525 | 0 | 9 | 224 | 270 | 145 | 125 | 19 | 1 |
module A (message) where
message :: String
message = "Hello!!"
| sdiehl/ghc | testsuite/tests/driver/T16500/A.hs | bsd-3-clause | 64 | 0 | 4 | 11 | 19 | 12 | 7 | 3 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleInstances #-}
-- | Shared types for various stackage packages.
module ... | wskplho/stack | src/Stack/Types/BuildPlan.hs | bsd-3-clause | 14,121 | 0 | 17 | 4,224 | 3,574 | 1,921 | 1,653 | 340 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
module Opaleye.SQLite.Internal.Distinct where
import Opaleye.SQLite.QueryArr (Query)
import Opaleye.SQLite.Column (Column)
import Opaleye.SQLite.Aggregate (Aggregator, groupBy, aggregate)
import Control.Applicative (Applicative, pure, (<*... | bergmark/haskell-opaleye | opaleye-sqlite/src/Opaleye/SQLite/Internal/Distinct.hs | bsd-3-clause | 1,579 | 0 | 9 | 290 | 393 | 216 | 177 | 27 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}
{-
Exercising avoidance of known landmines.
We need one each of
PostTc id Kind
PostTc id Type
PostRn id Fixity
PostRn id NameSet
-}
module MineKind where
data HList :: [*] -> * where
HNil :... | urbanslug/ghc | testsuite/tests/ghc-api/landmines/MineKind.hs | bsd-3-clause | 440 | 0 | 10 | 103 | 104 | 61 | 43 | 10 | 0 |
module Mod126_A where
class T a where m1 :: a -> a
data T1 = T
| urbanslug/ghc | testsuite/tests/module/Mod126_A.hs | bsd-3-clause | 66 | 0 | 7 | 19 | 29 | 16 | 13 | 3 | 0 |
{-# LANGUAGE BangPatterns, DataKinds, DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Hadoop.Protos.ClientNamenodeProtocolProtos.SetBalancerBandwidthResponseProto (SetBalancerBandwidthResponseProto(..)) where
import Prelude ((+), (/))
import qualified... | alexbiehl/hoop | hadoop-protos/src/Hadoop/Protos/ClientNamenodeProtocolProtos/SetBalancerBandwidthResponseProto.hs | mit | 3,137 | 1 | 16 | 543 | 554 | 291 | 263 | 53 | 0 |
{-
Goldbach's other conjecture
Problem 46
It was proposed by Christian Goldbach that every odd composite number can be written as the sum of a prime and twice a square.
9 = 7 + 2×12
15 = 7 + 2×22
21 = 3 + 2×32
25 = 7 + 2×32
27 = 19 + 2×22
33 = 31 + 2×12
It turns out that the conjecture was false.
What is the smalles... | bertdouglas/euler-haskell | 001-050/46a.hs | mit | 975 | 0 | 11 | 265 | 284 | 150 | 134 | 23 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module CyclicList (tests) where
import Data.Foldable (toList)
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (Arbitrary (arbitrary, shrink), (===),
testProperty)
import Numeric.QuadraticIrrational.CyclicList
instance Arbitrary a => Arbitrary (CycList a) ... | ion1/quadratic-irrational | tests/CyclicList.hs | mit | 828 | 0 | 12 | 169 | 290 | 156 | 134 | 18 | 2 |
import System.IO
import System.Directory
main = do
handle <- openFile "./resources/testText.txt" ReadMode
(tempName, tempHandle) <- openTempFile "." "temp"
reading <- hGetContents handle
let numberOfEdges = read $ (lines reading) !! 2
putStr $ unlines $ take (6+numberOfEdges) $ lines reading
hPutStr temp... | Maaarcocr/ATFMC | resources/readingTest.hs | mit | 503 | 0 | 13 | 81 | 165 | 75 | 90 | 13 | 1 |
module Hubris.Syntax where
import Bound
import Control.Applicative
import Prelude.Extras
data Term a = Ascribe (Term a) (Term a) -- e : T
| Type -- Type
| Pi (Term a) (Scope () Term a) -- (x : A) => e
| Var a -- x
... | jroesch/dependent-tychk | src/Hubris/Syntax.hs | mit | 1,481 | 0 | 10 | 580 | 628 | 320 | 308 | 37 | 0 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.SVGFEOffsetElement
(getIn1, getDx, getDy, SVGFEOffsetElement(..),
gTypeSVGFEOffsetElement)
where
i... | ghcjs/jsaddle-dom | src/JSDOM/Generated/SVGFEOffsetElement.hs | mit | 1,826 | 0 | 10 | 207 | 451 | 280 | 171 | 25 | 1 |
module NginxLint.Parse where
import Text.ParserCombinators.Parsec hiding (spaces)
import Text.ParserCombinators.Parsec.Language (emptyDef)
import qualified Text.ParserCombinators.Parsec.Token as T
import NginxLint.Data
parseFile :: Parser NgFile
parseFile = do whiteSpace
pos <- getPosition
... | temoto/nginx-lint | NginxLint/Parse.hs | mit | 3,010 | 0 | 13 | 1,023 | 798 | 393 | 405 | 78 | 1 |
import qualified Network.IRC.DCCTest as DCC
import Test.Tasty
main :: IO ()
main = DCC.spec >>= defaultMain
| JanGe/irc-dcc | test/Spec.hs | mit | 119 | 0 | 6 | 27 | 36 | 21 | 15 | 4 | 1 |
-- Just another toy example
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TypeOperators #-}
import Control.Monad (replicateM)
import GHC.Generics
import Test.QuickCheck (Arbitrary... | Lysxia/generic-random | examples/tour.hs | mit | 1,508 | 0 | 12 | 310 | 342 | 193 | 149 | 29 | 2 |
module Types where
import Text.HTML.TagSoup (Tag)
import qualified Data.ByteString as B
{-- Types for parsing the wire content and transforming it to HTML. --}
type ChanneledHeaderRequest = (HTTPRequestType, URI, [RequestHeader], RequestPayload, [ResponseHeader], ResponsePayload)
type Header = (HeaderType, HeaderVal... | mihaimaruseac/petulant-octo-avenger | src/Types.hs | mit | 2,029 | 0 | 8 | 397 | 532 | 333 | 199 | 73 | 0 |
{-# htermination showList :: [Ordering] -> String -> String #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_showList_12.hs | mit | 64 | 0 | 2 | 10 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ViewPatterns #-}
module Ch24.BoundedChan ( BoundedChan
, newBoundedChan
, writeBoundedChan
, readBoundedChan
, main
)
where
import Control.Concurrent.Chan
... | futtetennista/IntroductionToFunctionalProgramming | RWH/src/Ch24/BoundedChan.hs | mit | 2,856 | 0 | 21 | 782 | 873 | 441 | 432 | 66 | 2 |
--
-- A common security method used for online banking is to ask the user for
-- three random characters from a passcode. For example, if the passcode was
-- 531278, they may ask for the 2nd, 3rd, and 5th characters; the expected
-- reply would be: 317.
--
-- The text file, keylog.txt, contains fifty successful login a... | stu-smith/project-euler-haskell | Euler-079.hs | mit | 894 | 0 | 13 | 209 | 173 | 88 | 85 | 15 | 1 |
module Data.Mapping where
class Mapping m where
apply :: m a b -> a -> b
bind :: Eq a => a -> b -> m a b -> m a b
instance Mapping (->) where
apply = id
bind n t s x
| n == x = t
| otherwise = s x
| pxqr/unification | Data/Mapping.hs | mit | 225 | 0 | 11 | 83 | 119 | 58 | 61 | 9 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
module Network.HTTP.Client.Free.Examples (
) where
import Control.Applicative ((<$>), (<*>))
import Data.ByteString (ByteString)
import Data.ByteString.Char8 (pack)
import Data.Maybe (fromJust)
import Data.Time (UTCTime(UTCTime), fromGregorian)
import N... | aaronlevin/free-http | src/Network/HTTP/Client/Free/Examples.hs | mit | 6,534 | 0 | 12 | 2,668 | 1,181 | 674 | 507 | -1 | -1 |
{-# LANGUAGE CPP #-}
module Test.Hspec.Core.Example.Location (
Location(..)
, extractLocation
-- for testing
, parseAssertionFailed
, parseCallStack
, parseLocation
, parseSourceSpan
) where
import Prelude ()
import Test.Hspec.Core.Compat
import Control.Exception
import Data... | hspec/hspec | hspec-core/src/Test/Hspec/Core/Example/Location.hs | mit | 3,808 | 0 | 17 | 705 | 1,005 | 515 | 490 | 83 | 4 |
import Control.Arrow
import Data.List
main :: IO ()
main = interact solve
type Value = Float
data RGB = RGB Value Value Value
data Gray = Gray Value
type ImageRow a = [a]
data Image2d pixelType = Image2d [ImageRow pixelType]
data Position = Position Int Int
(|>) :: x -> (x -> y) -> y
(|>) x y = y x
infixl 0 |>
inst... | Dobiasd/HackerRank-solutions | Artificial_Intelligence/Digital_Image_Analysis/Digital_Camera_Autodetect_Day_or_Night/Main.hs | mit | 3,580 | 0 | 12 | 934 | 1,437 | 734 | 703 | 96 | 2 |
module ItemsEqual where
import qualified Data.List ( isPrefixOf )
-- Exercise:
--
-- ( i.) Write a primitive recursive function that indicates if all items in a list are equal to a given reference item.
--
-- Constraint: (!) The function that uses primitive recursion has to be conform to this patte... | pascal-knodel/haskell-craft | Exercises/Primitive Recursion/ItemsEqual.hs | mit | 3,238 | 0 | 10 | 940 | 347 | 208 | 139 | 19 | 2 |
module Analysis(
loadOrigins, filterLoadOriginPools,
classifierToExpression,
exprToCriticalSections, criticalSectionToBinpatch,
mkEnforcer, classifyFutures, autoFix) where
import Types
import History
import ReplayState()
import Timing
import Util
import E... | sos22/ppres | ppres/driver/Analysis.hs | gpl-2.0 | 10,653 | 0 | 32 | 3,231 | 2,745 | 1,413 | 1,332 | 165 | 5 |
import Control.Exception
import Control.Monad
import Data.List
import System.Environment
import System.Directory
main = do
argList <- getArgs
-- if no arguments are provided, list the contents of current directory
let args = if length argList == 0 then ["."] else argList
forM (zip [1..] args) $ \(id, path) -... | tomicm/puh-hash | bin/ls.hs | gpl-2.0 | 761 | 0 | 18 | 199 | 212 | 107 | 105 | 16 | 4 |
{-# language DeriveGeneric #-}
module Flow.State
( State
, lookup
, all_states
)
where
import Prelude hiding ( lookup )
import Autolib.TES.Identifier
import Autolib.Hash
import Autolib.ToDoc
import Autolib.Reader
import Autolib.Util.Size
import Data.Map ( Map )
import qualified Data.Map as M
import Data.Set ... | marcellussiegburg/autotool | collection/src/Flow/State.hs | gpl-2.0 | 1,336 | 0 | 11 | 354 | 427 | 234 | 193 | 42 | 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... | timtylin/scholdoc | tests/Tests/Arbitrary.hs | gpl-2.0 | 8,312 | 0 | 19 | 3,737 | 2,386 | 1,220 | 1,166 | 167 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE TypeFamilies #-}
-- Copyright (C) 2009-2012 John Millikin <john@john-millikin.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 ... | jotrk/haskell-dbus | lib/DBus/Socket.hs | gpl-3.0 | 13,324 | 143 | 24 | 2,507 | 2,825 | 1,486 | 1,339 | 224 | 7 |
module Event where
class Input i where
fetch :: IO i
class Output o where
send :: o -> IO ()
class (Input d, Output d) => IODevice d where
source :: d -> [Input d]
dest :: d -> [Output d]
class Test t where
apply :: a -> t a
| Jon0/status | src/Event.hs | gpl-3.0 | 249 | 0 | 9 | 76 | 119 | 60 | 59 | 10 | 0 |
{-# LANGUAGE DeriveGeneric, DefaultSignatures, FlexibleInstances, OverlappingInstances #-}
module Template where
import Data.Serialize
import Data.Serialize.Put
import Data.Serialize.Get
import GHC.Generics
import qualified Data.ByteString as BS
import Data.Bits
import GHC.Int
import GHC.Word
import Control.Monad
impo... | jseaton/ttasm | Template.hs | gpl-3.0 | 17,694 | 303 | 18 | 5,571 | 4,888 | 2,588 | 2,300 | -1 | -1 |
-- This file is part of Engulidor.
--
-- Engulidor 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 3 of the License, or
-- (at your option) any later version.
--
-- Engulidor is distr... | gahag/Engulidor | src/Parser.hs | gpl-3.0 | 2,898 | 0 | 16 | 912 | 595 | 345 | 250 | 50 | 1 |
{-
----------------------------------------------------------------------------------
- Copyright (C) 2010-2011 Massachusetts Institute of Technology
- Copyright (C) 2010-2011 Yuan Tang <yuantang@csail.mit.edu>
- Charles E. Leiserson <cel@mit.edu>
-
- This program is free software:... | rrnewton/PochoirMods | PMainParser.hs | gpl-3.0 | 11,854 | 36 | 47 | 3,009 | 2,675 | 1,325 | 1,350 | 221 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE UnicodeSyntax #-}
{-# OPTIONS_GHC -Wall -Wno-orphans #-}
module Main where
import GHC.Generics
import ... | deepfire/youtrack | test.hs | gpl-3.0 | 4,503 | 2 | 20 | 1,231 | 1,206 | 620 | 586 | 105 | 4 |
module AfterExp
(
testAfterExp
, testAfterExpSuperSampling
) where
import Data.Maybe
import Data.List
import Text.Printf
import System.Random
import System.IO
import Control.Parallel.Strategies
import FRP.FrABS
import FRP.Yampa
testAfterExp :: IO ()
testAfterExp = do
let eventTime = 1 / 5... | thalerjonathan/phd | coding/papers/FrABS/Haskell/prototyping/SamplingTests/AfterExp.hs | gpl-3.0 | 6,232 | 0 | 12 | 1,632 | 1,456 | 695 | 761 | 135 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-datafusion/gen/Network/Google/Resource/DataFusion/Projects/Locations/Instances/SetIAMPolicy.hs | mpl-2.0 | 6,237 | 0 | 16 | 1,301 | 783 | 459 | 324 | 122 | 1 |
module ObjD.Link.Extends (
superDataType, superDataTypes, isInstanceOf, isInstanceOfTp, isInstanceOfCheck, baseDataType,
firstCommonSuperDataType, commonSuperDataType, reduceDataTypes
)where
import ObjD.Link.Struct
import ObjD.Link.Env
import ObjD.Link.DataType
import Data.Maybe
import ... | antonzherdev/objd | src/ObjD/Link/Extends.hs | lgpl-3.0 | 6,341 | 24 | 16 | 1,085 | 2,383 | 1,198 | 1,185 | 109 | 2 |
module Main where
import System.Environment
import Data.Char
main = do
(args) <- getArgs
xs <- getContents
putStr (redact xs (map lwr args))
redact input ws = unlines [ process line | line <- lines input ]
where process line = unwords [ f word | word <- words line ]
f w | lwr w `elem` ws = replic... | Some-T/Portfolio | HASKELL/Labs/H7/H7.2.hsproj/H7_2.hs | unlicense | 391 | 0 | 11 | 107 | 174 | 84 | 90 | 12 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- ######################################################
-- # #
-- # == LambdaList == #
-- # #
-- # Ein kleines Haskellprogramm; geeignet um di... | jbetzend/LambdaList | LambdaList.hs | unlicense | 29,586 | 0 | 31 | 12,685 | 6,428 | 3,200 | 3,228 | 345 | 20 |
import Control.Exception
import Control.Monad
import qualified Graphics.Rendering.OpenGL as GL
import Graphics.Rendering.OpenGL (($=))
import qualified Graphics.UI.GLFW as GLFW
import Prelude
import Util
main = do
window <- initialize "Test"
-- Use `$=` for assigning to GL values, `get` to read them.
--... | pharaun/hCraft | src/Main.hs | apache-2.0 | 1,799 | 0 | 15 | 459 | 433 | 230 | 203 | 29 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Kubernetes.V1.Binding where
import GHC.Generics
import Data.Text
import Kubernetes.V1.ObjectMeta
import Kubernetes.V1.ObjectReference
import qu... | minhdoboi/deprecated-openshift-haskell-api | kubernetes/lib/Kubernetes/V1/Binding.hs | apache-2.0 | 1,412 | 0 | 9 | 203 | 122 | 75 | 47 | 19 | 0 |
module Main where
import Control.Monad.Trans.Class
import Control.Monad.Trans.State.Lazy
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as BSC
import System.Exit
import System.Random
import RL_Glue.Agent
import RL_Glue.Network
main = loadAgent (Agent onInit onStart onStep onEnd onClean... | rhofour/rlglue-haskell-codec | src/RL_Glue/Example/SkeletonAgent.hs | apache-2.0 | 1,112 | 0 | 12 | 193 | 408 | 216 | 192 | 29 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NamedFieldPuns #-}
module TTY
#ifdef TEST
( TTY(..)
, nullDevice
#else
( TTY
, winHeight
, winWidth
#endif
, TTYException(..)
, withTTY
, Key(..)
, getKey
, p... | supki/wybor | src/TTY.hs | bsd-2-clause | 5,821 | 0 | 21 | 1,248 | 2,002 | 1,045 | 957 | 137 | 8 |
-- | Settings are centralized, as much as possible, into this file. This
-- includes database connection settings, static file locations, etc.
-- In addition, you can configure a number of different aspects of Yesod
-- by overriding methods in the Yesod typeclass. That instance is
-- declared in the lollerskates.hs fil... | MostAwesomeDude/lollerskates | Settings.hs | bsd-2-clause | 1,771 | 0 | 6 | 278 | 146 | 99 | 47 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
-- Generic `Tree` type with different leaf and internal values.
module NLP.FTB.Tree
(
-- * Tree
Tree (..)
, showTree
, showTree'
, toWord
) where
import Control.Applicative ((<$>))
import Control.Arrow (first)
import Control.Monad (foldM)
-- | A t... | kawu/ftb | src/NLP/FTB/Tree.hs | bsd-2-clause | 1,277 | 0 | 13 | 363 | 354 | 199 | 155 | 29 | 2 |
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving, ScopedTypeVariables #-}
module Oracles.ModuleFiles (moduleFiles, haskellModuleFiles, moduleFilesOracle) where
import Base
import Oracles.PackageData
import Package
import Stage
import Settings.TargetDirectory
newtype ModuleFilesKey = ModuleFilesKey ([String... | quchen/shaking-up-ghc | src/Oracles/ModuleFiles.hs | bsd-3-clause | 2,641 | 0 | 28 | 696 | 895 | 454 | 441 | 50 | 1 |
module Main where
import Telem
main :: IO ()
main = runTelemetry
| zool-of-bears/Telemetry | app/Main.hs | bsd-3-clause | 67 | 0 | 6 | 14 | 22 | 13 | 9 | 4 | 1 |
{-|
Module : Numeric.MixedType.LiteralsSpec
Description : hspec tests for Literals
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portable
-}
module Numeric.MixedTypes.LiteralsSpec (spec) where
im... | michalkonecny/mixed-types-num | test/Numeric/MixedTypes/LiteralsSpec.hs | bsd-3-clause | 1,031 | 0 | 17 | 197 | 177 | 93 | 84 | 19 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-} --huh?
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Interp
(
getType,
getType',
TypeSig
) where
import Data.Typeable
impor... | sleexyz/typegrams | src/Interp.hs | bsd-3-clause | 1,765 | 0 | 11 | 420 | 329 | 190 | 139 | 34 | 3 |
-- Copyright 2019 Google LLC
--
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file or at
-- https://developers.google.com/open-source/licenses/bsd
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #... | google-research/dex-lang | src/lib/Actor.hs | bsd-3-clause | 6,184 | 0 | 21 | 1,630 | 2,131 | 1,074 | 1,057 | 129 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Mental.Decl
( Module(..)
, Decl(..)
, UntypedModule
, TypedModule
, UntypedDecl
, TypedDecl
) where
import Protolude
import Text.Megaparsec (SourcePos)
import ... | romac/mental | src/Mental/Decl.hs | bsd-3-clause | 794 | 0 | 10 | 197 | 221 | 126 | 95 | 38 | 0 |
r = reverse
c = concat
s = show
b = "reeb fo selttob"
v x = [a | a <- b, a /= 's' || x > 1]
main = putStrLn $ c $ [c [s x,
r $ " ,llaw eht no " ++ v x ++ " ",
s x,
r $ " ,dnuora ti ssap dna nwod eno ekaT\n." ++ v x ++ " ",
if x > 1 then s $ x - 1 else r "erom on",
r $ "\n\n." ++ b ++ " "]
| x <- r [1..99... | eeue56/code-golf | bottles-of-bear/bottles.hs | bsd-3-clause | 434 | 12 | 12 | 142 | 227 | 121 | 106 | 13 | 2 |
--------------------------------------------------------------------------------
{-# LANGUAGE OverloadedStrings #-}
module NumberSix.Handlers.Weather
( handler
) where
--------------------------------------------------------------------------------
import Control.Monad.Trans (liftIO)
import ... | itkovian/number-six | src/NumberSix/Handlers/Weather.hs | bsd-3-clause | 1,610 | 0 | 17 | 350 | 316 | 175 | 141 | 27 | 2 |
module Network.Sieve.Test (
addressS,
addressL,
addHeader,
addHeaders,
Config(..),
nilMail,
Action(..),
assertMailActions,
assertMailStoredIn,
assertHeaderStoredIn,
assertHeadersStoredIn
)
where
import Control.Applicative ((*>), (<$>), (<*))
import Control.Monad ... | thkoch2001/sieve-test-hs | src/Network/Sieve/Test.hs | bsd-3-clause | 6,813 | 0 | 15 | 1,784 | 1,830 | 993 | 837 | 152 | 2 |
-- |
-- Copyright : (C) 2013 Xyratex Technology Limited.
-- License : All rights reserved.
{-# LANGUAGE RankNTypes #-}
module Options.Schema.Builder
( Mod
-- * Basic options
, option
, strOption
, intOption
, flag
, switch
, compositeOption
-- * Alternatives
, oneOf
, many
, some
, defaulta... | seagate-ssg/options-schema | src/Options/Schema/Builder.hs | bsd-3-clause | 5,232 | 0 | 14 | 1,203 | 1,305 | 714 | 591 | 110 | 2 |
module InsideOut where
import Control.Monad.Trans.Except
import Control.Monad.Trans.Maybe
import Control.Monad.Trans.Reader
-- newtype ExceptT e m a = ExceptT { runExceptT :: m (Either e a) }
-- newtype MaybeT m a = MaybeT { runMaybeT :: m (Maybe a) }
-- newtype ReaderT r m a = ReaderT { runReaderT :: r -> m a }
-- ... | chengzh2008/hpffp | src/ch26-MonadTransformers/insideOut.hs | bsd-3-clause | 1,263 | 0 | 16 | 266 | 269 | 145 | 124 | 17 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
-- | Abstraction over the most general type in Javascript.
module Language.Sunroof.JS.Object
( JSObject
, object
, this
) where
import Data.Boolean ( BooleanOf, IfB(..), EqB(..) )
import Language.Sunroof.J... | ku-fpg/sunroof-compiler | Language/Sunroof/JS/Object.hs | bsd-3-clause | 1,386 | 0 | 8 | 212 | 266 | 158 | 108 | 26 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
module Tinc.GitSpec (spec) where
import Prelude ()
import Prelude.Compat
import Helper
import MockedEnv
import MockedProcess
import Test.Mockery.Action
impo... | beni55/tinc | test/Tinc/GitSpec.hs | bsd-3-clause | 4,355 | 0 | 25 | 1,196 | 1,004 | 492 | 512 | 88 | 1 |
-- Borrowed from sample code for Parallel and Concurrent Programming in
-- Haskell - Simon Marlow
-- https://github.com/simonmar/parconc-examples
--
{-# LANGUAGE CPP, MagicHash, UnboxedTuples #-}
module ConcurrentUtils (
-- * Variants of forkIO
forkFinally
) where
import Control.Concurrent.STM
import Contro... | shterrett/peer-chat | src/ConcurrentUtils.hs | bsd-3-clause | 903 | 0 | 11 | 147 | 148 | 87 | 61 | 16 | 1 |
-- | Fields.
module Math.Algebra.Field where
import qualified Math.Algebra.AbelianMonoid as AbM
import qualified Math.Algebra.Ring as R
import qualified Math.Algebra.Monoid as M
class (AbM.AbelianMultiplicativeMonoid a, R.Ring a) => Field a where
-- | 'reciprocal' must be defined for every ring element different... | michiexile/hplex | pershom/src/Math/Algebra/Field.hs | bsd-3-clause | 647 | 0 | 7 | 129 | 129 | 79 | 50 | 9 | 1 |
{-# LANGUAGE CPP #-}
-- |
-- Module : Data.Time.Locale.Compat
-- Copyright : 2014 Kei Hibino
-- License : BSD3
--
-- Maintainer : ex8k.hibino@gmail.com
-- Stability : experimental
-- Portability : unknown
--
-- This module provides compatibility module name
-- for TimeLocale of old-locale or time-1.5.
mo... | juhp/haskell-time-locale-compat | src/Data/Time/Locale/Compat.hs | bsd-3-clause | 732 | 0 | 5 | 115 | 60 | 46 | 14 | 7 | 0 |
module InsAt where
-- P21 Insert an element at a given position into a list
insertAt :: [a] -> [a] -> Int -> [a]
insertAt s y@(x:xs) k
| k > 0 = take k y ++ s ++ drop k y
| otherwise = error "k cannot be negative"
| michael-j-clark/hjs99 | src/21to30/InsAt.hs | bsd-3-clause | 228 | 0 | 8 | 64 | 93 | 48 | 45 | 5 | 1 |
module MCTS.GameState where
data Player = Player1
| Player2
deriving (Eq, Show)
data Winner = Only Player
| None
| Both
deriving (Eq, Show)
class GameState a where
choices :: a -> [a]
gameOver :: a -> Bool
winner :: a -> Maybe Winner
turn... | rudyardrichter/MCTS | src/MCTS/GameState.hs | mit | 424 | 0 | 8 | 149 | 129 | 71 | 58 | 16 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-| Basic building blocks for writing graphs with the Dot syntax.
This contains only the basic building blocks of to Dot syntax,
and it does __not__ provide conventions to print particular
kinds of graphs.
-}
module Image.Dot.TypedGraph
( NamingCo... | rodrigo-machado/verigraph | src/library/Image/Dot/TypedGraph.hs | gpl-3.0 | 6,924 | 0 | 17 | 1,366 | 2,245 | 1,172 | 1,073 | 102 | 3 |
module TransCFSpec (transSpec, testConcreteSyn) where
import BackEnd
import FrontEnd (source2core)
import JavaUtils (getClassPath)
import MonadLib
import OptiUtils (Exp(Hide))
import PartialEvaluator (rewriteAndEval)
import SpecHelper
import StringPrefixes (namespace)
import StringUtils (capitalize)
import TestTerms
... | zhiyuanshi/fcore | testsuite/TransCFSpec.hs | bsd-2-clause | 3,133 | 0 | 20 | 715 | 897 | 475 | 422 | 68 | 2 |
{-# LANGUAGE CPP, NondecreasingIndentation, ScopedTypeVariables #-}
{-# LANGUAGE TupleSections, NamedFieldPuns #-}
-- -----------------------------------------------------------------------------
--
-- (c) The University of Glasgow, 2005-2012
--
-- The GHC API
--
-- ----------------------------------------------------... | shlevy/ghc | compiler/main/GHC.hs | bsd-3-clause | 59,874 | 4 | 28 | 16,211 | 10,935 | 5,857 | 5,078 | -1 | -1 |
{-# LANGUAGE Safe #-}
-----------------------------------------------------------------------------
-- |
-- Module : Text.ParserCombinators.Parsec
-- Copyright : (c) Paolo Martini 2007
-- License : BSD-style (see the LICENSE file)
--
-- Maintainer : derek.a.elkins@gmail.com
-- Stability : provisiona... | aslatter/parsec | src/Text/ParserCombinators/Parsec.hs | bsd-2-clause | 1,249 | 0 | 5 | 187 | 136 | 100 | 36 | 19 | 0 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.GL.Antialiasing
-- Copyright : (c) Sven Panne 2002-2013
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--... | hesiod/OpenGL | src/Graphics/Rendering/OpenGL/GL/Antialiasing.hs | bsd-3-clause | 1,322 | 0 | 7 | 146 | 164 | 101 | 63 | 16 | 1 |
{-# LANGUAGE CPP #-}
module Distribution.Solver.Modular.Preference
( avoidReinstalls
, deferSetupChoices
, deferWeakFlagChoices
, enforceManualFlags
, enforcePackageConstraints
, enforceSingleInstanceRestriction
, firstGoal
, preferBaseGoalChoice
, preferEasyGoalChoices
, preferL... | headprogrammingczar/cabal | cabal-install/Distribution/Solver/Modular/Preference.hs | bsd-3-clause | 17,089 | 0 | 21 | 4,730 | 3,869 | 1,991 | 1,878 | 233 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.