code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Ripple.Federation (
resolve,
resolveAgainst,
getRippleTxt,
Alias(..),
ResolvedAlias(..),
-- * Errors
Error(..),
ErrorType(..),
-- * Utils
rippleTxtParser
)where
import Control.Applicative ((<$>), (<*>), (*>), (<*), (<|>), many, some)
import Control.Monad (guard)
import Data.Either (rights)
import Data... | singpolyma/ripple-federation-haskell | Ripple/Federation.hs | isc | 9,768 | 433 | 18 | 1,784 | 3,466 | 1,895 | 1,571 | 220 | 2 |
module Main where
import Control.Monad (forever)
import Network.Socket hiding (recv)
import Network.Socket.ByteString (recv, sendAll)
logAndEcho :: Socket -> IO ()
logAndEcho sock = forever $ do
(soc, _) <- accept sock
printAndKickback soc
close soc
where printAndKickback conn = do
msg <-... | NickAger/LearningHaskell | HaskellProgrammingFromFirstPrinciples/Chapter31/fingerd/src/Debug.hs | mit | 720 | 0 | 15 | 177 | 254 | 123 | 131 | 22 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module CliOpts (
parseCliOpts
) where
import Data.Monoid ((<>))
import Options.Applicative
-- nanopage imports
import Config
import FileDB (Mode (..))
helpHeader :: String
helpHeader ... | mayeranalytics/nanoPage | src/CliOpts.hs | mit | 1,601 | 0 | 16 | 483 | 324 | 165 | 159 | 46 | 1 |
module Game.TypeClasses where
class Describable a where
describe :: a -> String
class Drawable a where
filename :: a -> String
| maqqr/psycho-bongo-fight | Game/TypeClasses.hs | mit | 137 | 0 | 7 | 31 | 42 | 22 | 20 | 5 | 0 |
{-# LANGUAGE BangPatterns #-}
module Document.Test where
import Control.Exception (evaluate)
import Document.Document
-- import qualified Document.Tests.CompCalc as CC
import qualified Document.Tests.Cubes as Cubes
import qualified Document.Tests.Definitions as Defs
-- import qualified Document.Tests.IndirectEq as ... | literate-unitb/literate-unitb | src/Document/Test.hs | mit | 6,676 | 0 | 17 | 2,343 | 1,245 | 632 | 613 | -1 | -1 |
-- Representation.hs
module Graphter.Representation where
--
-- Vertex representation
--
data Vertex = Vertex {
vertexName :: String,
vertexWeight :: Int
} deriving(Show, Eq)
--
-- Edge representation
--
data Edge = Edge {
startVertex :: Vertex,
endVertex :: Vertex,
edgeWeight :: Int
} derivin... | martinstarman/graphter | src/Graphter/Representation.hs | mit | 543 | 0 | 9 | 121 | 151 | 95 | 56 | 17 | 0 |
module DeepRegion where
type Point = (Double,Double)
type Radius = Double
magnitude :: Point -> Double
magnitude (x,y) = sqrt (x^2 + y^2)
data Region = Circle Radius
| Intersect Region Region
| Outside Region
| Union Region Region
circle r = Circle r
outside r = Outsid... | josefs/deep-shallow-paper | DeepRegion.hs | mit | 713 | 0 | 9 | 202 | 318 | 170 | 148 | 19 | 1 |
{-# OPTIONS_GHC -w #-}
module LineSintaticScanner (parseLine) where
import LineLexicalScanner
import BasicTypes
-- parser produced by Happy Version 1.18.9
data HappyAbsSyn t4 t5 t6
= HappyTerminal (Token)
| HappyErrorToken Int
| HappyAbsSyn4 t4
| HappyAbsSyn5 t5
| HappyAbsSyn6 t6
action_0 (7) = happyShift acti... | hephaestus-pl/hephaestus | willian/hephaestus-parser-only/LineSintaticScanner.hs | mit | 11,507 | 104 | 20 | 2,196 | 3,363 | 1,820 | 1,543 | 219 | 5 |
-- Copyright © 2013 Julian Blake Kongslie <jblake@jblake.org>
-- Licensed under the MIT license.
{-# OPTIONS_GHC -Wall -Werror #-}
module Language.GBAsm.File
where
import Control.Exception
import Data.Generics.Uniplate.Operations
import qualified Text.Parsec as P
import Language.GBAsm.Lexer
import Language.GBAsm.Pa... | jblake/gbasm | src/Language/GBAsm/File.hs | mit | 1,136 | 0 | 16 | 214 | 236 | 124 | 112 | 16 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.MediaList
(js_item, item, js_deleteMedium, deleteMedium, js_appendMedium,
appendMedium, js_setMediaText, setMediaText, js_getMediaText,
getMediaText, js_getLength, getLength, MediaList, cast... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/MediaList.hs | mit | 3,507 | 44 | 10 | 516 | 852 | 487 | 365 | 55 | 1 |
module Main where
import HOpenCV.OpenCV
import HOpenCV.HighImage
import HOpenCV.HCxCore
import HOpenCV.HUtil
import HOpenCV.HVideo
import HOpenCV.ImageProcessors
import qualified Control.Processor as Processor
import Control.Processor((--<))
import Prelude hiding ((.),id)
import Control.Arrow
import Control.Category... | juanmab37/HOpenCV-0.5.0.1 | src/examples/Test.hs | gpl-2.0 | 970 | 0 | 10 | 135 | 211 | 121 | 90 | 22 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Numeric.Random.Spectrum.Brown
-- Copyright : (c) Matthew Donadio 2003
-- License : GPL
--
-- Maintainer : m.p.donadio@ieee.org
-- Stability : experimental
-- Portability : portable
--
-- Function for brown... | tolysz/dsp | Numeric/Random/Spectrum/Brown.hs | gpl-2.0 | 579 | 0 | 6 | 94 | 53 | 39 | 14 | 4 | 1 |
import Data.List
import Language
import German
sentences = [statement (the $ girl P) sleeps [],
statement (the $ girl S) eats [the $ cat S],
statement (the $ cat P) sleeps []]
main :: IO ()
main = mapM_ write sentences | Fedjmike/ngen | ngen.hs | gpl-3.0 | 253 | 3 | 9 | 72 | 116 | 58 | 58 | 8 | 1 |
module Database.Design.Ampersand.FSpec.GenerateUML (generateUML) where
import Database.Design.Ampersand.Basics
import Database.Design.Ampersand.Core.AbstractSyntaxTree (explMarkup,aMarkup2String,Rule,Declaration,Purpose(..))
import Database.Design.Ampersand.FSpec.Graphic.ClassDiagram
import Database.Design.Ampersand.F... | DanielSchiavini/ampersand | src/Database/Design/Ampersand/FSpec/GenerateUML.hs | gpl-3.0 | 12,713 | 0 | 36 | 3,302 | 2,943 | 1,528 | 1,415 | 208 | 3 |
import Data.List
matrixInfList :: [[a]] -> [a]
matrixList matrix = foldl1 (++) (transpose matrix)
matrixInfList matrix = cycle (matrixList matrix)
main :: IO()
main = do
print (matrixInfList [[1,2],[3,4],[5,6]]) | deni-sl/Functional-programming | Homework 3/hw3.81275.task2.hs | gpl-3.0 | 217 | 1 | 12 | 34 | 120 | 64 | 56 | 7 | 1 |
module Carl.Write (
module Carl.Write.LaTeX,
module Carl.Write.Unicode
) where
import Carl.Write.LaTeX
import Carl.Write.Unicode
| nbloomf/carl | src/Carl/Write.hs | gpl-3.0 | 134 | 0 | 5 | 18 | 34 | 23 | 11 | 5 | 0 |
module Philosophers where
import Control.Concurrent
import Control.Concurrent.MVar (MVar, newMVar, putMVar, takeMVar)
import Control.Concurrent.STM
import Control.Monad
import System.Random (randomRIO)
import Philosophers.Log
import Philo... | graninas/Haskell-Algorithms | Tests/STM/philosopers/src/Philosophers.hs | gpl-3.0 | 2,621 | 49 | 15 | 609 | 937 | 477 | 460 | 61 | 2 |
module Scene
( Scene(..)
, sceneObjects
) where
import Data.Monoid
-- A scene tree, managing the order of transformation compositions
-- when listing the transformed objects.
data Scene t a =
SceneObject a
| SceneFork [Scene t a]
| Transformed t (Scene t a)
sceneObjects :: (Monoid t) => Scene t a -> [... | MatthiasHu/4d-labyrinth | src/Scene.hs | gpl-3.0 | 527 | 0 | 9 | 127 | 220 | 121 | 99 | 14 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-firebase-rules/gen/Network/Google/Resource/FirebaseRules/Projects/Releases/Patch.hs | mpl-2.0 | 5,419 | 0 | 16 | 1,212 | 783 | 459 | 324 | 113 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Workspaces/Folders/List.hs | mpl-2.0 | 6,017 | 0 | 18 | 1,337 | 789 | 460 | 329 | 123 | 1 |
{-# LANGUAGE Rank2Types #-}
module Model.Issue where
import Import
import Data.Filter
import Data.Order
import Widgets.Tag (pickForegroundColor)
import qualified Data.Set as S
import qualified Data.Text as T
import qualified Github.Issues as GH
import ... | Happy0/snowdrift | Model/Issue.hs | agpl-3.0 | 2,813 | 0 | 14 | 879 | 612 | 323 | 289 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE DataKinds #-}
module Data.Bounds
(
Bounds (..),
collapseBounds
)
where
import GHC.TypeLits
import Data.Constraint
import Data.Constraint.Nat
... | tsahyt/indexed-set | src/Data/Bounds.hs | lgpl-3.0 | 1,301 | 0 | 10 | 260 | 211 | 126 | 85 | 17 | 1 |
module SetTools where
import Data.HashSet (HashSet) --unordered-containers
import Data.Hashable (Hashable)
import qualified Data.HashSet as Set
setBind :: (Hashable s1, Hashable s2, Eq s1, Eq s2) => HashSet s1 -> (s1 -> HashSet s2) -> HashSet s2
setBind s f = foldl (Set.union) Set.empty $ Set.map f s
--I can't make a... | Crazycolorz5/Automata | SetTools.hs | unlicense | 872 | 0 | 11 | 153 | 365 | 195 | 170 | 14 | 1 |
module Faceted (
module Faceted.Pure,
module Faceted.FIORef,
module Faceted.FHandle,
module Faceted.FIO
) where
import Faceted.Pure
import Faceted.FIORef
import Faceted.FHandle
import Faceted.FIO
| tommy-schmitz/haskell-faceted | Faceted.hs | apache-2.0 | 207 | 0 | 5 | 32 | 50 | 32 | 18 | 9 | 0 |
module Operator00002 ((Prelude.:->)) where
import qualified Lib
f x = case x of
y :-> _ -> y
f x = case x of
y Lib.:-> _ -> y
| carymrobbins/intellij-haskforce | tests/gold/parser/Operator00002.hs | apache-2.0 | 133 | 0 | 8 | 36 | 63 | 35 | 28 | 6 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-----------------------------------------------------------------------------
-- |
-- Module : FFICXX.Generate.Type.PackageInterface
-- Copyright : (c) 2011-2013 Ian-Woo Kim
--
-- License : BSD3
-- Maintainer : Ian-Woo Kim <ianwookim@gmail.com>
-- Stability : e... | Gabriel439/fficxx | lib/FFICXX/Generate/Type/PackageInterface.hs | bsd-2-clause | 945 | 0 | 6 | 149 | 162 | 101 | 61 | 10 | 0 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses, RecordWildCards,
TypeFamilies, TemplateHaskell #-}
module Conditionals where
import Control.Applicative
import Data.Monoid ((<>))
import qualified Rank2.TH
import Text.Grampa
import Text.Grampa.ContextFree.LeftRecursive (Parser)
c... | blamario/grampa | grammatical-parsers/examples/Conditionals.hs | bsd-2-clause | 1,560 | 0 | 15 | 421 | 499 | 264 | 235 | 31 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UnicodeSyntax #-}
{-| Th... | gcross/LogicGrowsOnTrees-processes | sources/LogicGrowsOnTrees/Parallel/Adapter/Processes.hs | bsd-2-clause | 17,129 | 8 | 34 | 4,508 | 2,257 | 1,248 | 1,009 | 253 | 4 |
module Player where
import Cards
data PlayerType = Ai | Human deriving (Eq, Show)
data Player = Player {
getType :: PlayerType
, getName :: String
, getCards :: Hand
} deriving (Show)
addCards :: [Card] -> Player -> Player
addCards a (Player t n c) = Player t n (a ++ c)
applyHand :: (Hand ... | Kingdread/Huno | src/Player.hs | bsd-2-clause | 398 | 0 | 8 | 107 | 165 | 91 | 74 | 12 | 1 |
module Text.Md.MdParserSpec (
main,
spec,
) where
import Test.Hspec
import Text.Md.MdParser
-- Not necessary for automatic test discovery
main :: IO ()
main = hspec spec
-- Must export `spec` as type of `Spec`
spec :: Spec
spec = do
describe "parseMd" $ do
it "parses to paragraph" $
... | tiqwab/md-parser | test/Text/Md/MdParserSpec.hs | bsd-3-clause | 9,021 | 0 | 14 | 1,433 | 959 | 461 | 498 | 101 | 1 |
{-# LANGUAGE BangPatterns #-}
module Data.Graph.Algorithms.Dominators ( dom, iDom ) where
import Data.Graph.Interface
import Data.Graph.Algorithms.DFS ( dff )
import Data.Tree ( Tree(..) )
import qualified Data.Tree as T
import Data.Array
import Data.List ( foldl' )
import Data.Map ( Map )
import qualified Data.Map a... | travitch/hbgl-experimental | src/Data/Graph/Algorithms/Dominators.hs | bsd-3-clause | 2,918 | 0 | 16 | 684 | 1,424 | 761 | 663 | 69 | 3 |
import Control.Concurrent
import Control.Monad
import Data.IORef
threadA :: (IORef Int, IORef Int) -> IO ()
threadA (aref,bref) = do
a <- readIORef aref
b <- readIORef bref
putStrLn $ "threadA:" ++ show a ++ ", " ++ show b
-- threadDelay 100000
writeIORef aref (a+1)
writeIORef bref (b-1)
t... | wavewave/chatter | test/ioref.hs | bsd-3-clause | 764 | 0 | 11 | 196 | 352 | 169 | 183 | 25 | 1 |
-- Copyright 2013 Kevin Backhouse.
module TestAssembler ( tests ) where
import qualified Test.Framework as TF ( Test )
import Test.Framework.Providers.HUnit
import Control.Monad ( when )
import Control.Monad.ST2
import Control.Monad.MultiPass
import Control.Monad.MultiPass.Example.Assembler
import Data.Array
import ... | kevinbackhouse/Control-Monad-MultiPass | tests/TestAssembler.hs | bsd-3-clause | 4,555 | 0 | 13 | 1,136 | 2,206 | 1,380 | 826 | 92 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
... | gridaphobe/ghc | libraries/base/Data/Type/Equality.hs | bsd-3-clause | 11,466 | 21 | 34 | 2,818 | 3,515 | 2,025 | 1,490 | -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.Quantity.PT.Tests
( tests ) where
import Prelude
import Data.String
import Test.Tasty
import ... | facebookincubator/duckling | tests/Duckling/Quantity/PT/Tests.hs | bsd-3-clause | 507 | 0 | 9 | 78 | 79 | 50 | 29 | 11 | 1 |
{-# LANGUAGE LambdaCase #-}
module Main where
import UI.Dialogui
import UI.Dialogui.TUI
main :: IO ()
main =
let
setup = writeLn "Echo service is ready!"
in
runTUI setup echo
echo :: (Monad m) => Controller m Int
echo =
Controller
{ initialize = return 1
, finalize = cons... | astynax/dialogui | examples/Echo.hs | bsd-3-clause | 936 | 0 | 16 | 362 | 236 | 125 | 111 | 39 | 5 |
module Math.IRT.Model.TwoPLM
( TwoPLM (..)
) where
import Statistics.Distribution
import Math.IRT.Internal.Distribution
import Math.IRT.Internal.LogLikelihood
import Math.IRT.Model.FourPLM ( FourPLM(..) )
import Math.IRT.Model.Generic
data TwoPLM = TwoPLM { discrimination :: !Double
, diffi... | argiopetech/irt | Math/IRT/Model/TwoPLM.hs | bsd-3-clause | 1,049 | 0 | 9 | 264 | 283 | 154 | 129 | 31 | 1 |
module Solr.Query.Internal.Internal where
import Solr.Prelude
import Builder
class (Coercible query Builder, Default (LocalParams query))
=> Query query where
data LocalParams query :: *
compileLocalParams :: LocalParams query -> [(Builder, Builder)]
coerceQuery :: Query query => query -> Builder
coerceQue... | Sentenai/solr-query | src/Solr/Query/Internal/Internal.hs | bsd-3-clause | 2,096 | 0 | 17 | 429 | 653 | 341 | 312 | -1 | -1 |
-----------------------------------------------------------------------------
--
-- GHC Interactive support for inspecting arbitrary closures at runtime
--
-- Pepe Iborra (supported by Google SoC) 2006
--
-----------------------------------------------------------------------------
{-# OPTIONS -fno-warn-tabs #-}
-- Th... | ilyasergey/GHC-XAppFix | compiler/ghci/RtClosureInspect.hs | bsd-3-clause | 49,191 | 187 | 27 | 15,081 | 11,057 | 5,758 | 5,299 | -1 | -1 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.NV.AlphaToCoverageDitherControl
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable... | haskell-opengl/OpenGLRaw | src/Graphics/GL/NV/AlphaToCoverageDitherControl.hs | bsd-3-clause | 956 | 0 | 5 | 113 | 72 | 52 | 20 | 12 | 0 |
{-# LANGUAGE TemplateHaskell, Rank2Types #-}
-- | Experimental features using Template Haskell.
-- You need to have a @{-\# LANGUAGE TemplateHaskell \#-}@ pragma in
-- your module for any of these to work.
module Test.QuickCheck.All(
-- ** Testing all properties in a module.
quickCheckAll,
verboseCheckAll,
forA... | AlexBaranosky/QuickCheck | Test/QuickCheck/All.hs | bsd-3-clause | 4,775 | 0 | 18 | 971 | 1,145 | 616 | 529 | 73 | 3 |
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ExistentialQuantification #-}
module Ivory.Language.Effects
( Effects(..)
, AllocEffects
, ProcEffects
, NoEffects
, ReturnEff(..)
, GetReturn()
, ClearReturn()
, B... | Hodapp87/ivory | ivory/src/Ivory/Language/Effects.hs | bsd-3-clause | 2,597 | 0 | 7 | 413 | 553 | 336 | 217 | 56 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
module Kis.SqliteBackend
( withSqliteKis
, withSqliteKisWithNotifs
, sqliteBackend
, SqliteBackendType(..)
, runClient
, runSingleClientSqlite
, buildKisWithBackend
, RunNotifications(..)
)
where
... | lslah/kis-proto | src/Kis/SqliteBackend.hs | bsd-3-clause | 2,990 | 0 | 15 | 646 | 825 | 414 | 411 | 81 | 2 |
{-# LANGUAGE
DeriveDataTypeable
, DeriveGeneric
, TemplateHaskell
, TypeFamilies
#-}
module Type.CustomerInvoice where
import Data.Aeson
import Data.JSON.Schema
import Data.Typeable
import GHC.Generics
import Generics.Regular
import Generics.Regular.XmlPickler
import Text.XML.HXT.Arrow.Pickle
import Type.... | tinkerthaler/basic-invoice-rest | example-api/Type/CustomerInvoice.hs | bsd-3-clause | 814 | 0 | 8 | 105 | 171 | 98 | 73 | 23 | 0 |
error = (\x -> e) ==> (let f x = e in f) | jonathankochems/raskell-git-download | HLint.hs | bsd-3-clause | 40 | 0 | 11 | 12 | 35 | 18 | 17 | 1 | 1 |
import SFML.Graphics.Internal.RenderWindow
import SFML.Graphics.Internal.Image
import SFML.Graphics.Internal.Sprite
import SFML.Graphics.Internal.Color
import SFML.Graphics.Internal.Text
import SFML.Graphics.Internal.Font
import SFML.Window.Internal.Types
import SFML.Window.Internal.VideoMode
import SFML.Window.Interna... | Berengal/SFML---Haskell-bindings | Hacking.hs | bsd-3-clause | 2,198 | 0 | 19 | 452 | 695 | 334 | 361 | 56 | 10 |
{- |
Module : $Header$
Description : shell related functions
Copyright : uni-bremen and DFKI
License : GPLv2 or higher, see LICENSE.txt
Maintainer : r.pascanu@jacobs-university.de
Stability : provisional
Portability : portable
CMDL.Shell contains almost all functions related
the CMDL shell or haskeline
-... | mariefarrell/Hets | CMDL/Shell.hs | gpl-2.0 | 15,710 | 89 | 35 | 6,397 | 2,775 | 1,603 | 1,172 | 299 | 49 |
-- |
-- Module : Distro
-- Copyright : (C) 2016 Jens Petersen
--
-- Maintainer : Jens Petersen <petersen@fedoraproject.org>
--
-- Types and utility functions to represent different RPM-based distributions.
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the ... | opensuse-haskell/cabal-rpm | src/Distro.hs | gpl-3.0 | 1,346 | 0 | 14 | 285 | 287 | 163 | 124 | 20 | 3 |
-- @Author: Zeyuan Shang
-- @Date: 2015-12-04 01:40:40
-- @Last Modified by: Zeyuan Shang
-- @Last Modified time: 2015-12-04 03:27:24
import Control.Monad
import Data.Graph
import qualified Data.Array as A
import qualified Data.IntMap as M
----- naive AVL -----
data AVLTree a = Null | AVLNode a (AVLTree a) (AVLTr... | EdisonAlgorithms/HackerRank | practice/fp/persistent-ds/boleyn-salary/boleyn-salary.hs | mit | 3,476 | 0 | 19 | 1,024 | 1,592 | 805 | 787 | 75 | 3 |
{-
Copyright (C) 2010 Ivan Lazar Miljenovic <Ivan.Miljenovic@gmail.com>
This file is part of SourceGraph.
SourceGraph 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 ... | Baranowski/SourceGraph | Analyse/Colors.hs | gpl-3.0 | 1,742 | 0 | 4 | 288 | 134 | 82 | 52 | 26 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-iam/gen/Network/AWS/IAM/RemoveRoleFromInstanceProfile.hs | mpl-2.0 | 4,433 | 0 | 9 | 864 | 399 | 246 | 153 | 54 | 1 |
-- (c) The University of Glasgow 2006
{-# LANGUAGE CPP #-}
module ETA.Types.OptCoercion ( optCoercion, checkAxInstCo ) where
#include "HsVersions.h"
import ETA.Types.Coercion
import qualified ETA.Types.Type as Type
import ETA.Types.Type hiding( substTyVarBndr, substTy, extendTvSubst )
import ETA.TypeCheck.TcType ... | pparkkin/eta | compiler/ETA/Types/OptCoercion.hs | bsd-3-clause | 27,459 | 0 | 15 | 6,659 | 6,405 | 3,259 | 3,146 | -1 | -1 |
{-
Copyright (C) 2007-2015 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is ... | janschulz/pandoc | src/Text/Pandoc/Writers/Man.hs | gpl-2.0 | 15,679 | 278 | 20 | 4,473 | 4,504 | 2,338 | 2,166 | 297 | 11 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
import System.Environment (getArgs)
import qualified Data.Aeson as J
import qualified Data.Yaml as Y
import Control.Monad (when)
import qualified Data.ByteString as S
import qualified Data.ByteString.Lazy as L
import Control.Applicative ((<$>))
... | snoyberg/json2yaml | json2yaml.hs | bsd-2-clause | 807 | 0 | 18 | 221 | 247 | 131 | 116 | 24 | 4 |
<?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="az-AZ">
<title>Server-Sent Events Add-on</title>
<maps>
<homeID>sse.introduction</homeID>
... | thc202/zap-extensions | addOns/sse/src/main/javahelp/org/zaproxy/zap/extension/sse/resources/help_az_AZ/helpset_az_AZ.hs | apache-2.0 | 984 | 82 | 54 | 157 | 402 | 212 | 190 | -1 | -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="ar-SA">
<title>Revisit | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref loca... | thc202/zap-extensions | addOns/revisit/src/main/javahelp/org/zaproxy/zap/extension/revisit/resources/help_ar_SA/helpset_ar_SA.hs | apache-2.0 | 968 | 83 | 52 | 158 | 394 | 208 | 186 | -1 | -1 |
module Renaming.B1 (myFringe) where
import Renaming.D1 hiding (sumSquares)
import qualified Renaming.D1
instance SameOrNot Float where
isSame a b = a ==b
isNotSame a b = a /=b
myFringe:: Tree a -> [a]
myFringe (Leaf x ) = [x]
myFringe (Branch left right) = myFringe right
sumSquares (x:xs)= x^2 + sumSquares ... | SAdams601/HaRe | test/testdata/Renaming/B1.hs | bsd-3-clause | 344 | 0 | 7 | 70 | 151 | 80 | 71 | 11 | 1 |
module ImpurePlugin where
import GhcPlugins
import Common
plugin :: Plugin
plugin = defaultPlugin {
installCoreToDos = install,
pluginRecompile = impurePlugin
}
| sdiehl/ghc | testsuite/tests/plugins/plugin-recomp/ImpurePlugin.hs | bsd-3-clause | 173 | 0 | 6 | 33 | 34 | 22 | 12 | 7 | 1 |
module CError (module Foreign.C.Error) where
import Foreign.C.Error
| alekar/hugs | packages/haskell98/CError.hs | bsd-3-clause | 68 | 0 | 5 | 7 | 19 | 13 | 6 | 2 | 0 |
{-# LANGUAGE TypeApplications #-}
module T13902 where
f :: a -> a
f x = x
g :: Int
g = f @Int 42 5
| ezyang/ghc | testsuite/tests/typecheck/should_fail/T13902.hs | bsd-3-clause | 101 | 0 | 6 | 27 | 41 | 23 | 18 | 6 | 1 |
{-# LANGUAGE Arrows #-}
module ShouldCompile where
import Control.Arrow
f :: Arrow a => a (Int,Int) Int
f = proc (x,y) -> let z = x*y in returnA -< y+z
| wxwxwwxxx/ghc | testsuite/tests/arrows/should_compile/arrowlet1.hs | bsd-3-clause | 155 | 1 | 10 | 33 | 74 | 40 | 34 | 5 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE OverloadedLabels #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TupleSections #-}
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
{-# OPTIO... | tonyday567/lucid-page | src/Web/Rep/Page.hs | mit | 9,573 | 0 | 13 | 1,992 | 3,091 | 1,662 | 1,429 | 200 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.HTMLAppletElement
(js_setAlign, setAlign, js_getAlign, getAlign, js_setAlt, setAlt,
js_getAlt, getAlt, js_setArchive, setArchive, js_getArchive,
getArchive, js_setCode, setCode, js_getCode, ... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/HTMLAppletElement.hs | mit | 10,910 | 154 | 11 | 1,699 | 2,384 | 1,278 | 1,106 | 168 | 1 |
-- |
-- Module: Math.NumberTheory.ZetaTests
-- Copyright: (c) 2016 Andrew Lelechenko
-- Licence: MIT
-- Maintainer: Andrew Lelechenko <andrew.lelechenko@gmail.com>
-- Stability: Provisional
--
-- Tests for Math.NumberTheory.Zeta
--
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
module Math.NumberTheory.Zet... | cfredric/arithmoi | test-suite/Math/NumberTheory/ZetaTests.hs | mit | 3,308 | 0 | 13 | 775 | 792 | 425 | 367 | 81 | 1 |
{- |
The HList library
(C) 2004, Oleg Kiselyov, Ralf Laemmel, Keean Schupke
This is a next-to-main module that loads all modules that at least
*compile* fine for all the models of interest. See the Makefile
for ways to run different models.
-}
module Data.HList.CommonMain (
module Data.HList.Fak... | bjornbm/HList-classic | Data/HList/CommonMain.hs | mit | 857 | 0 | 5 | 131 | 140 | 97 | 43 | 21 | 0 |
{-# LANGUAGE FlexibleInstances, UndecidableInstances, ScopedTypeVariables, OverlappingInstances #-}
module Probability where
import Control.Monad
import System.Random
--
-- probabilities
--
rollDie :: Integer -> IO Integer
rollDie faces = getStdRandom (randomR (1,faces))
rollDice :: I... | jweissman/heroes | src/Probability.hs | mit | 1,031 | 0 | 12 | 294 | 327 | 176 | 151 | 22 | 1 |
{-# LANGUAGE CPP #-}
module Network.Wai.Handler.Warp.Conduit where
import Control.Exception
import qualified Data.ByteString as S
import qualified Data.IORef as I
import Network.Wai.Handler.Warp.Imports
import Network.Wai.Handler.Warp.Types
----------------------------------------------------------------
-- | Cont... | creichert/wai | warp/Network/Wai/Handler/Warp/Conduit.hs | mit | 5,666 | 12 | 24 | 2,253 | 1,339 | 662 | 677 | 131 | 16 |
module Main where
main :: IO ()
main = putStrLn "Nothing implemented"
| willprice/haskell-cabal-example-tests | src/Main.hs | mit | 72 | 0 | 6 | 14 | 22 | 12 | 10 | 3 | 1 |
{-# LANGUAGE TupleSections #-}
module Parser
(
parse
)
where
import Stack (CalcError(ParsecError), Symbol(String, Bool, Variable, Real, Int, List))
import Text.ParserCombinators.Parsec hiding (parse)
import qualified Text.ParserCombinators.Parsec as Parsec (parse)
import Data.Functor ((<$>))
import Control... | qsn/rhcalc | src/Parser.hs | mit | 3,731 | 0 | 13 | 779 | 1,402 | 716 | 686 | 102 | 2 |
module Network.Telegram.Bot.Yesod
( module Network.Telegram.Bot.Types
, module Network.Telegram.Bot.Requests.Yesod
) where
import Network.Telegram.Bot.Types
import Network.Telegram.Bot.Requests.Yesod | Vlix/telegram-bot-http | Network/Telegram/Bot/Yesod.hs | mit | 227 | 0 | 5 | 41 | 42 | 31 | 11 | 5 | 0 |
{-# LANGUAGE RecordWildCards #-}
module Settings
( AppSettings(..)
, loadAppSettings
) where
import Data.Maybe (fromMaybe)
import Data.Text (Text)
import qualified Data.Text as T
import LoadEnv
import System.Environment
import WordList
data AppSettings = AppSettings
{ appDefaultSize :: Int
, appR... | pbrisbin/passphrase.me | src/Settings.hs | mit | 955 | 0 | 11 | 193 | 240 | 128 | 112 | 26 | 1 |
merge :: Ord a => [a] -> [a] -> [a]
merge xs [] = xs
merge [] ys = ys
merge (x:xs) (y:ys) = x : y : merge xs ys | rootguy1/code-base | haskel/merge.hs | gpl-2.0 | 130 | 0 | 8 | 49 | 91 | 47 | 44 | 4 | 1 |
module Expression (Expression(Constant, Variable, Abstraction, Application, Block, Assignment, Definition, Branch), Expression.parser) where
import Text.ParserCombinators.Parsec
import Data.List
import JSON
import Text.JSON
import Data
data Expression
= Constant Data
| Variable String
| Abstraction [String] Exp... | lachrist/kusasa-hs | expression.hs | gpl-2.0 | 3,400 | 0 | 13 | 1,215 | 1,049 | 511 | 538 | 95 | 1 |
{-# LANGUAGE DeriveGeneric, DefaultSignatures #-} -- For automatic generation of cereal put and get
module Dust.Services.File.File
(
File(..),
FileHeader(..),
FileData(..),
readEncodedFile,
openFile,
writeFileData
)
where
import GHC.Generics
import Data.Serialize
import Data.ByteString (ByteSt... | blanu/Dust-tools | Dust/Services/File/File.hs | gpl-2.0 | 1,636 | 0 | 11 | 335 | 527 | 273 | 254 | 47 | 2 |
import Graphics.Rendering.Cairo
data Point = Point Double Double
deriving Show
data Vector = Vector Double Double
deriving Show
data RGBA = RGB Double Double Double
| RGBA Double Double Double Double
tau = 6.28318530717958647692
uncurry3 f (a,b,c) = f a b c
mkVector (Point x0 y0) (Point x1 y1) =
V... | jsavatgy/xroads-game | code/dark-green-points.hs | gpl-2.0 | 1,997 | 49 | 9 | 520 | 909 | 466 | 443 | 74 | 1 |
{-# Language OverloadedStrings, FlexibleInstances, TypeFamilies, NoMonomorphismRestriction, ScopedTypeVariables, FlexibleContexts #-}
module Test.Sort where
import Data.List
import Test.Tasty
import Test.Helper
import Person
tests :: TestTree
tests = testGroup "sorting" [
[Female, Male] .==. sort [Male, Female],
... | mattraibert/codetest | src/Test/Sort.hs | gpl-3.0 | 1,097 | 0 | 10 | 179 | 352 | 198 | 154 | 20 | 1 |
{-
Textual Positions
This file is part of AEx.
Copyright (C) 2016 Jeffrey Sharp
AEx 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... | sharpjs/haskell-learning | src/Aex/Pos.hs | gpl-3.0 | 2,324 | 0 | 10 | 552 | 339 | 189 | 150 | 35 | 1 |
-- 2014 - Ahmet Cetinkaya
increaseBase :: Integer -> Integer -> Integer
increaseBase number base = increaseBase' number base 0 0
where increaseBase' number base i acc
| number == 0 = acc
| otherwise = increaseBase' (div number base) base (i + 1) acc + ((base ... | cetinkaya/goodstein | goodstein.hs | gpl-3.0 | 727 | 1 | 13 | 170 | 239 | 121 | 118 | 11 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module SerieController ( SerieviewerStatus(..)
, getSerieviewerStatus
, getSerieList
, serieKill
, serieNext
, serieKillAndNext
, seriePlay
... | Narfinger/player-control | haskell/SerieController.hs | gpl-3.0 | 4,247 | 0 | 13 | 1,008 | 1,207 | 598 | 609 | 97 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dlp/gen/Network/Google/Resource/DLP/Projects/Locations/InspectTemplates/Create.hs | mpl-2.0 | 7,143 | 0 | 17 | 1,431 | 797 | 472 | 325 | 122 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-groups-settings/gen/Network/Google/Resource/GroupsSettings/Groups/Get.hs | mpl-2.0 | 2,634 | 0 | 12 | 583 | 299 | 184 | 115 | 48 | 1 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE ViewPatterns #-}
-- |
-- XML Schema Datatypes
--
-- <http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/> (selected portions)
module SAML2.XML.Schema.Datatypes where
import Prelude hiding (String)
import qualified Data.ByteString.Char8 as BS
import qualified Data.Byt... | dylex/hsaml2 | SAML2/XML/Schema/Datatypes.hs | apache-2.0 | 5,874 | 0 | 17 | 1,094 | 1,982 | 1,087 | 895 | 131 | 11 |
{-
Copyright 2015 Tristan Aubrey-Jones
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 agreed to in writing, sof... | flocc-net/flocc | v0.1/Compiler/Front/Front.hs | apache-2.0 | 1,678 | 0 | 9 | 290 | 242 | 128 | 114 | 20 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE ViewPatterns #-}
-- | Machinery for making decisions about C++ level materialization for K3.
module Language.K3.Codegen.CPP.Materialization where
import Prelude hiding (concat, mapM, mapM_, or, and)
import Control.Applicative
import Control.Arr... | yliu120/K3 | src/Language/K3/Codegen/CPP/Materialization.hs | apache-2.0 | 17,091 | 0 | 22 | 4,868 | 5,882 | 2,930 | 2,952 | 320 | 23 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
----------------------------------------------------------------------------
-- |
-- Module : Type.Class.Nullary
-- Copyright : 2015 Derek ... | derekelkins/nullary | Type/Class/Nullary.hs | bsd-2-clause | 2,606 | 0 | 10 | 463 | 195 | 136 | 59 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Serv.Api.Auth
( Principal(..)
, basicAuthServerContext
) where
import Data.Text (Text)
import Servant.API
import Servant.API.BasicAuth (BasicAuthData (B... | orangefiredragon/bear | src/Serv/Api/Auth.hs | bsd-3-clause | 1,215 | 0 | 14 | 354 | 240 | 142 | 98 | 25 | 2 |
module Generics.SOP.Lens.Computed (
-- * Abstract lenses
AbstractLens(..)
, abstractId
, afterGLens
-- * Getters and setters
, get
, set
, modify
, getM
, setM
, modifyM
-- * Computing lenses
, Path
, CLens
, lens
-- * Manually constructing lenses
, emptyPathOnly
-- * Con... | well-typed/lens-sop | src/Generics/SOP/Lens/Computed.hs | bsd-3-clause | 7,959 | 0 | 19 | 1,971 | 2,000 | 1,069 | 931 | -1 | -1 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.SGIX.Shadow
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : p... | haskell-opengl/OpenGLRaw | src/Graphics/GL/SGIX/Shadow.hs | bsd-3-clause | 745 | 0 | 5 | 103 | 62 | 45 | 17 | 10 | 0 |
--------------------------------------------------------------------------------
-- | Super-simple trie datastructure
{-# LANGUAGE BangPatterns #-}
module LoremMarkdownum.Trie
( Trie
, empty
, insert
, insertWith
, lookup
, fromList
, toList
) where
------------------------------------... | jaspervdj/lorem-markdownum | lib/LoremMarkdownum/Trie.hs | bsd-3-clause | 2,535 | 0 | 15 | 562 | 849 | 442 | 407 | 47 | 4 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}
module Scheme.Data (
ThrowsError
, LispVal (..)
, LispError (..)
, Env
, IOThrowsError
, showVal
) where
import Control.Monad.Error
-- TODO convert to Except
--import Control.Monad.Except
import ... | tmcgilchrist/scheme | src/Scheme/Data.hs | bsd-3-clause | 2,968 | 0 | 14 | 769 | 907 | 493 | 414 | 70 | 2 |
{-# LANGUAGE PolyKinds, DataKinds, TypeOperators, FlexibleInstances,
ScopedTypeVariables, FlexibleContexts, ConstraintKinds #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Metrology.Show
-- Copyright : (... | hesiod/units | Data/Metrology/Show.hs | bsd-3-clause | 2,828 | 0 | 15 | 698 | 802 | 439 | 363 | 52 | 8 |
{-# LANGUAGE RecordWildCards #-}
module Network.HTTP.Download.VerifiedSpec where
import Crypto.Hash
import Control.Monad.Trans.Reader
import Data.Maybe
import Network.HTTP.Client.Conduit
import Network.HTTP.Download.Verified
import Path
import System.Directory
import System.IO.Temp
import Test.Hspec
-- TODO: share a... | mietek/stack | src/test/Network/HTTP/Download/VerifiedSpec.hs | bsd-3-clause | 4,785 | 0 | 22 | 906 | 1,127 | 567 | 560 | 98 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DoRec #-}
-- Page.hs: example pages
-- as part of rawe - ReActive Web Framework
--
-- Copyright 2011 Roman Smrž <roman.smrz@seznam.cz>, see file LICENSE
-- This module contains several example pages assigned to variables page<n>,
-- which can be used to choose among the... | roman-smrz/rawe | examples/Page.hs | bsd-3-clause | 4,611 | 0 | 24 | 1,704 | 1,181 | 579 | 602 | 92 | 1 |
module SMACCMPilot.GCS.Gateway.Commsec
( mkCommsec
, Commsec
, encrypt
, decrypt
) where
import qualified Data.ByteString as B
import Data.ByteString (ByteString)
import Text.Printf
import qualified SMACCMPilot.Communications as Comm
import qualified SMA... | GaloisInc/smaccmpilot-gcs-gateway | SMACCMPilot/GCS/Gateway/Commsec.hs | bsd-3-clause | 2,128 | 0 | 25 | 685 | 637 | 328 | 309 | 50 | 7 |
-----------------------------------------------------------------------------
-- |
-- Module : TestSuite.Queries.Int_ABC
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : erkokl@gmail.com
-- Stability : experimental
--
-- Testing ABC specific interactive features.
--------------------... | josefs/sbv | SBVTestSuite/TestSuite/Queries/Int_ABC.hs | bsd-3-clause | 1,537 | 0 | 21 | 503 | 330 | 170 | 160 | 26 | 3 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
{-|
Module : Diagrams.Backend.Cairo.Raster.Repa
Description : Draw 'repa' arrays into Cairo diagrams.
Copyright : (c) ... | taruti/diagrams-cairo-raster | src/Diagrams/Backend/Cairo/Raster/Repa.hs | bsd-3-clause | 2,553 | 0 | 11 | 529 | 505 | 267 | 238 | -1 | -1 |
module Main where
import Hear.Trainer
main :: IO ()
main = trainer
| no-scope/hear | app/Main.hs | bsd-3-clause | 69 | 0 | 6 | 14 | 24 | 14 | 10 | 4 | 1 |
module Core.AST where
import Data.Maybe (fromMaybe)
type Program a = [Defn a]
type CoreProgram = Program Name
type Defn a = (Name, [a], Expr a)
type CoreDefn = Defn Name
type CoreExpr = Expr Name
data Expr a = Var Name
| Num Int
| Constr Int Int -- Constructor tag arity
| App (Expr a) (Expr a)
| Le... | WraithM/CoreCompiler | src/Core/AST.hs | bsd-3-clause | 899 | 0 | 9 | 217 | 390 | 223 | 167 | 28 | 1 |
module Data.Geo.GPX.Lens.TypeL where
import Data.Lens.Common
class TypeL a where
typeL :: Lens a (Maybe String)
| tonymorris/geo-gpx | src/Data/Geo/GPX/Lens/TypeL.hs | bsd-3-clause | 117 | 0 | 9 | 20 | 40 | 23 | 17 | 4 | 0 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module CommandLine.TestWorld (TestWorldState, TestWorld, lastExitCode, init,uploadFile, downloadFile, eval,queueStdin,fullStdout,golden,fullStderr,ex... | avh4/elm-format | elm-format-test-lib/src/CommandLine/TestWorld.hs | bsd-3-clause | 6,565 | 0 | 12 | 1,576 | 2,223 | 1,199 | 1,024 | 156 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.