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 : Graphics.Rendering.OpenGL.Raw.Core40
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
---------... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/Core40.hs | bsd-3-clause | 30,197 | 0 | 4 | 3,953 | 3,919 | 2,620 | 1,299 | 1,294 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
module LJI.Music.Composer (
melody
, rootProgression
, fifths
, rootsFifths1
, rootsFifths2
, guideToneLine1
, guideToneLine2
, compose
, mordent
, target
, mixMelodies
, permutations
) where
import Prelude hiding (mapM, minimum)
import Control.Ar... | mrehayden1/lji | src/LJI/Music/Composer.hs | bsd-3-clause | 5,653 | 0 | 23 | 1,639 | 2,274 | 1,251 | 1,023 | 134 | 3 |
module Language.Interpreter.StdLib.BlockHandling
( addBlockHandlingStdLib
) where
import Language.Ast ( Value(Null) )
import Language.Interpreter.Types ( InterpreterProcess
, setBuiltIn
... | rumblesan/improviz | src/Language/Interpreter/StdLib/BlockHandling.hs | bsd-3-clause | 923 | 0 | 7 | 393 | 154 | 83 | 71 | 16 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Concurrent
import Control.Concurrent.STM
import qualified Data.Text as Text
import Graphics.Blank
import Paths_blank_canvas_examples (getDataDir)
import Debug.Trace
-- a play bar with play/pause functionality
main :: IO ()
main = do
dat <- getDat... | ku-fpg/blank-canvas | examples/playbar/Main.hs | bsd-3-clause | 4,200 | 0 | 20 | 984 | 1,298 | 630 | 668 | 108 | 4 |
-- | Output RSS feeds.
module Snap.App.RSS where
import Data.Text (Text)
import qualified Data.Text as T
import Data.Time
import Snap.App
import Snap.App.XML
import System.Locale
import Text.Feed.Export
import Text.Feed.Types
import Text.... | chrisdone/snap-app | src/Snap/App/RSS.hs | bsd-3-clause | 1,168 | 0 | 12 | 302 | 336 | 190 | 146 | 25 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
... | mainland/nikola | src/Data/Array/Nikola/Backend/CUDA/Nvcc.hs | bsd-3-clause | 4,615 | 0 | 13 | 1,352 | 818 | 449 | 369 | -1 | -1 |
{-| Careless conversion of @ByteString@s to numbers, ignoring bytes that
aren't hex or decimal digits.
-}
module Data.ByteString.Nums.Careless
( module Data.ByteString.Nums.Careless.Int
, module Data.ByteString.Nums.Careless.Hex
, module Data.ByteString.Nums.Careless.Float
) where
import Data.ByteStri... | solidsnack/bytestring-nums | Data/ByteString/Nums/Careless.hs | bsd-3-clause | 471 | 0 | 6 | 55 | 89 | 65 | 24 | 7 | 0 |
-- 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. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
{-# LANGUAGE Over... | rfranek/duckling | tests/Duckling/Numeral/EN/Tests.hs | bsd-3-clause | 1,197 | 0 | 11 | 310 | 207 | 120 | 87 | 27 | 1 |
module Text.Highlighter.Lexers.ActionScript3 (lexer) where
import Text.Regex.PCRE.Light
import Text.Highlighter.Types
lexer :: Lexer
lexer = Lexer
{ lName = "ActionScript 3"
, lAliases = ["as3", "actionscript3"]
, lExtensions = [".as"]
, lMimetypes = ["application/x-actionscript", "text/x-actionscript... | chemist/highlighter | src/Text/Highlighter/Lexers/ActionScript3.hs | bsd-3-clause | 4,237 | 0 | 12 | 522 | 1,093 | 573 | 520 | 46 | 1 |
#ifdef IncludedmakeNewIndicesNullLeft
#else
#include "../Proofs/makeNewIndicesNullLeft.hs"
#endif
#ifdef IncludedmakeNewIndicesNullRight
#else
#include "../Proofs/makeNewIndicesNullRight.hs"
#endif
#ifdef IncludedmapShiftZero
#else
#include "../Proofs/mapShiftZero.hs"
#endif
#ifdef IncludedmakeIndices... | nikivazou/verified_string_matching | src/Proofs/shiftNewIndices.hs | bsd-3-clause | 9,092 | 0 | 30 | 2,278 | 3,086 | 1,514 | 1,572 | 158 | 1 |
module Tisp.Expr (fromAST, toAST, Expr(..), ExprVal(..), emptyEnv, errors, normalize, Subst(..), subst, eval, infer) where
import Data.Text (Text)
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as M
import Control.Lens
import Data.Maybe (fromMaybe)
import Data.Foldable
import Data.Monoid
import Control.... | Ralith/tisp | src/Tisp/Expr.hs | bsd-3-clause | 15,459 | 0 | 30 | 4,360 | 7,121 | 3,541 | 3,580 | -1 | -1 |
import System.IO
import System.Environment
import System.Exit
import System.Random
import Data.List
import Data.Maybe
import Control.Monad
import Text.Printf
import qualified Data.ByteString.Char8 as B
import qualified Data.ByteString.Lex.Double as B
import Equation
import qualified TDMA
import qualified Unstable
i... | kharvd/tridiagonal | Tridiagonal.hs | bsd-3-clause | 3,615 | 0 | 12 | 735 | 1,025 | 526 | 499 | 63 | 1 |
module Data.Functor.ComonadHoist where
import Data.Functor.Comonad
import Data.Functor.Id
class ComonadHoist t where
cohoist ::
Comonad f =>
t f a
-> t Id a | tonymorris/type-class | src/Data/Functor/ComonadHoist.hs | bsd-3-clause | 172 | 0 | 9 | 38 | 54 | 29 | 25 | 8 | 0 |
module NinetyNine.Problem22 where
import Test.Hspec
range :: Int -> Int -> [Int]
range x y = [x..y]
range2 :: Int -> Int -> [Int]
range2 x y = take (y-x + 1) $ iterate (+1) x
range3 :: Int -> Int -> [Int]
range3 = enumFromTo
range4 :: Int -> Int -> [Int]
range4 x y
| x > y = []
| x == y = [x]
| otherwise =... | chemouna/99Haskell | src/problem22.hs | bsd-3-clause | 892 | 0 | 14 | 232 | 411 | 221 | 190 | 24 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TupleSections #-}
-- |
module Main where
import Control.Concurrent (threadDelay)
import Control... | eryx67/haskell-libtorrent | examples/RssReader.hs | bsd-3-clause | 3,309 | 11 | 24 | 996 | 826 | 434 | 392 | 93 | 2 |
--------------------------------------------------------------------------------
-- |
-- Module : GalFld.Sandbox.SerializeSandbox
-- Note : Beispiele und Platz zum Spielen und Probieren
--
-- Diese Sandbox ist zum testen der serialisierung gedacht.
--
-------------------------------------------------------... | maximilianhuber/softwareProjekt | src/GalFld/Sandbox/SerializeSandbox.hs | bsd-3-clause | 2,303 | 0 | 9 | 608 | 555 | 331 | 224 | 34 | 1 |
-- | purely-functional queues (taken from Okasaki)
module Q (Q, empty, isEmpty, maybeRev, snoc,head,tail,pop) where
import Prelude hiding (head,tail)
newtype Q a = Q ([a],[a])
deriving Show
empty :: Q a
empty = Q ([],[])
isEmpty :: Q a -> Bool
isEmpty (Q (f,_)) = null f
-- internal use only
maybeRev :: ([a], [... | abstools/abs-haskell-formal | src/Q.hs | bsd-3-clause | 736 | 0 | 9 | 164 | 467 | 257 | 210 | 22 | 1 |
cONTROL_GROUP_CONST_291 :: DynFlags -> Int
cONTROL_GROUP_CONST_291 dflags = pc_CONTROL_GROUP_CONST_291 (sPlatformConstants (settings dflags))
sTD_HDR_SIZE :: DynFlags -> Int
sTD_HDR_SIZE dflags = pc_STD_HDR_SIZE (sPlatformConstants (settings dflags))
pROF_HDR_SIZE :: DynFlags -> Int
pROF_HDR_SIZE dflags = pc_PROF_HDR_S... | ghcjs/ghcjs | lib/ghc/includes/GHCConstantsHaskellWrappers.hs | mit | 17,002 | 0 | 9 | 1,500 | 4,001 | 2,000 | 2,001 | 250 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Network.HTTP.Conduit
import Data.Aeson
import Data.Aeson.Types
import Network.HTTP.Conduit
import Data.Char(toLower)
import qualified Data.Text as T
import qualified Data.Vector as V
import Data.Maybe
import Data.List(find, intercalate)
import Network.HTTP(urlEncode)
-------... | wavelets/getting-started-with-haskell | tutorials/foursquaretrends.hs | mit | 6,962 | 0 | 15 | 1,276 | 1,551 | 815 | 736 | 97 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module ExceptionSpec (main, spec) where
import Control.Applicative
import Control.Monad
import Control.Concurrent (forkIO, threadDelay)
import Network.HTTP
import Network.Stream
import Network.HTTP.Types hiding (Header)
import Network.Wai hiding (Response)
import Network.Wai.Interna... | sol/wai | warp/test/ExceptionSpec.hs | mit | 2,761 | 0 | 18 | 660 | 707 | 372 | 335 | 56 | 2 |
--
-- Chapter 3, definitions from the book.
--
module B'C'3 where
-- From subchapter 3.2, Relational operators (example).
threeEqual :: Integer -> Integer -> Integer -> Bool
threeEqual a b c
= a == b
&& b == c
| pascal-knodel/haskell-craft | _/links/B'C'3.hs | mit | 231 | 0 | 7 | 61 | 49 | 28 | 21 | 5 | 1 |
{-# LANGUAGE CPP, MultiParamTypeClasses, TypeSynonymInstances
, FlexibleInstances #-}
{- |
Module : $Header$
Description : Instance of class Logic for SoftFOL.
Copyright : (c) Rene Wagner, Klaus Luettich, Uni Bremen 2005-2007
License : GPLv2 or higher, see LICENSE.txt
Maintainer : luecke@informatik.... | mariefarrell/Hets | SoftFOL/Logic_SoftFOL.hs | gpl-2.0 | 2,780 | 0 | 10 | 621 | 459 | 250 | 209 | 59 | 0 |
module PatConArity2 where
data Tree a = Leaf a | Bin (Tree a) (Tree a) | (:+) (Tree a)
main = firstLeaf (Bin (Leaf 3) (Leaf 4))
firstLeaf (l :+ r) = 4
firstLeaf (Leaf x y) = x
firstLeaf (Bin t) = firstLeaf t
| roberth/uu-helium | test/staticerrors/PatConArity2.hs | gpl-3.0 | 213 | 5 | 9 | 50 | 121 | 65 | 56 | 6 | 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-opsworks/gen/Network/AWS/OpsWorks/DescribeTimeBasedAutoScaling.hs | mpl-2.0 | 5,634 | 0 | 13 | 1,092 | 604 | 365 | 239 | 80 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module View.Header (header) where
import Text.Blaze.Html5.Attributes (href, rel)
import qualified Text.Blaze.Html5 as H
header :: H.Html
header =
H.head $ do
H.title "Pirate Gold"
H.link H.! rel "stylesheet" H.! href "css/style.css"
| codemiller/pirate-gold | src/View/Header.hs | apache-2.0 | 283 | 0 | 10 | 50 | 85 | 48 | 37 | 9 | 1 |
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
{- |
Module : SrcLoc
Description : This module contains types and utility functions for tagging things with locations
Copyright : (c) 2014—2015 The F2J Project Developers (given in AUTHORS.txt)
License ... | zhiyuanshi/fcore | frontend/abstractsyntax/SrcLoc.hs | bsd-2-clause | 1,253 | 0 | 9 | 301 | 371 | 195 | 176 | 31 | 1 |
module BrownPLT.Flapjax.DevServer
( flapjaxDevServer
) where
import qualified Data.ByteString.Lazy.Char8 as BC
import qualified Data.Map as M
import System.FilePath
import Control.Monad.Trans
import Network.WebServer
import Network.WebServer.Files
import Network.WebServer.HTTP.Listen
import Text.XHtml (showHtml,t... | ducis/flapjax-fixed | flapjax/trunk/compiler/src/BrownPLT/Flapjax/DevServer.hs | bsd-3-clause | 2,424 | 0 | 26 | 846 | 600 | 299 | 301 | 58 | 5 |
{-# language CPP #-}
{-# language MultiParamTypeClasses #-}
#ifndef ENABLE_INTERNAL_DOCUMENTATION
{-# OPTIONS_HADDOCK hide #-}
#endif
module OpenCV.Internal.Core.Types.Vec
( Vec(..)
, VecDim
, IsVec(..)
) where
import "base" Foreign.ForeignPtr ( ForeignPtr, withForeignPtr )
import "base" GHC.TypeLits... | lukexi/haskell-opencv | src/OpenCV/Internal/Core/Types/Vec.hs | bsd-3-clause | 1,882 | 0 | 12 | 507 | 619 | 338 | 281 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses, TypeSynonymInstances, PatternGuards #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.WorkspaceDir
-- Copyright : (c) 2007 David Roundy <droundy@darcs.net>
-- License ... | kmels/xmonad-launcher | XMonad/Layout/WorkspaceDir.hs | bsd-3-clause | 3,428 | 0 | 12 | 867 | 482 | 269 | 213 | 33 | 1 |
{-# LANGUAGE Haskell2010 #-}
{-# LINE 1 "dist/dist-sandbox-261cd265/build/System/Posix/Resource.hs" #-}
{-# LINE 1 "System/Posix/Resource.hsc" #-}
{-# LANGUAGE CApiFFI #-}
{-# LINE 2 "System/Posix/Resource.hsc" #-}
{-# LINE 3 "System/Posix/Resource.hsc" #-}
{-# LANGUAGE Safe #-}
{-# LINE 7 "System/Posix/Resource.hsc"... | phischu/fragnix | tests/packages/scotty/System.Posix.Resource.hs | bsd-3-clause | 6,362 | 6 | 16 | 1,143 | 805 | 459 | 346 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
module Facebook.TestUsers
( TestUser(..)
, CreateTestUser(..)
, CreateTestUserInstalled(..)
, getTestUsers
, removeTestUser
, createTestUser
, makeFriendConn
, incompleteTestUserAccessToken
) where
import Control.Applicative ((<$>), (<*>))
import C... | prowdsponsor/fb | src/Facebook/TestUsers.hs | bsd-3-clause | 6,994 | 0 | 15 | 1,775 | 1,385 | 751 | 634 | 117 | 4 |
--
-- Haskell wrapper for Dotnet.System.Xml.XmlReader
--
module Dotnet.System.Xml.XmlReader where
import Dotnet
import qualified Dotnet.System.Object
import Dotnet.System.Xml.XmlNameTable
import Dotnet.System.Xml
data XmlReader_ a
type XmlReader a = Dotnet.System.Object.Object (XmlReader_ a)
attributeCount :: XmlR... | FranklinChen/Hugs | dotnet/lib/Dotnet/System/Xml/XmlReader.hs | bsd-3-clause | 5,437 | 0 | 10 | 867 | 1,825 | 891 | 934 | -1 | -1 |
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Wiki page view.
module HL.View.Wiki where
import HL.View
import HL.View.Code
import HL.View.Template
import Control.Monad.Identity
import Data.Conduit
import qualified Data.Conduit.List as CL
impo... | josefs/hl | src/HL/View/Wiki.hs | bsd-3-clause | 2,991 | 0 | 25 | 901 | 836 | 453 | 383 | 66 | 3 |
{-# LANGUAGE CPP, MagicHash #-}
--
-- (c) The University of Glasgow 2002-2006
--
-- | ByteCodeGen: Generate bytecode from Core
module ByteCodeGen ( UnlinkedBCO, byteCodeGen, coreExprToBCOs ) where
#include "HsVersions.h"
import ByteCodeInstr
import ByteCodeItbls
import ByteCodeAsm
import ByteCodeLink
import LibFFI
... | green-haskell/ghc | compiler/ghci/ByteCodeGen.hs | bsd-3-clause | 65,516 | 0 | 24 | 21,135 | 14,213 | 7,295 | 6,918 | -1 | -1 |
{-# LANGUAGE PartialTypeSignatures #-}
module ExtraConstraintsWildcardTwice where
foo :: ((_), _) => a -> a
foo = undefined
| urbanslug/ghc | testsuite/tests/partial-sigs/should_fail/ExtraConstraintsWildcardTwice.hs | bsd-3-clause | 125 | 0 | 6 | 19 | 32 | 20 | 12 | 4 | 1 |
module Holyhaskell where
import Holyhaskell.Swallow ()
import Holyhaskell.Coconut ()
| duikboot/holyhaskell | src/Holyhaskell.hs | mit | 85 | 0 | 4 | 9 | 20 | 13 | 7 | 3 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
module Package where
import Control.Applicative
import qualified Control.Exception as E
import Control.Monad
import qualified Data.Attoparsec.Text as P
import qualified Data.List as L
import qualified Da... | vikraman/gentoo-haskell-status | src/Package.hs | mit | 4,711 | 0 | 11 | 1,352 | 1,361 | 709 | 652 | 100 | 3 |
module Assembler(createMifFile) where
import Control.Exception
import System.Environment
import System.FilePath
import System.IO
import System.Exit
import Data.Bits
import Data.Int
import Data.Maybe
import Parser
import Syntax
createMifFile :: FilePath -> IO ()
createMifFile path = do
insts <- parseFile path
len ... | yu-i9/HaSS | src/Assembler.hs | mit | 2,938 | 0 | 15 | 800 | 1,149 | 597 | 552 | 73 | 1 |
module PE0019 where
import Data.Time.Calendar
import Data.Time.Calendar.OrdinalDate
days :: [Day]
days = [fromGregorian y m d | y <- [1901..2000], m <- [1..12], d <- [1]]
main :: IO ()
main = do
print $ length $ filter isSunday days
where isSunday d = (snd (mondayStartWeek d) == 7)
| mvidner/projecteuler | src/PE0019.hs | mit | 292 | 0 | 11 | 58 | 134 | 73 | 61 | 9 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- Infer.hs ---
--
-- Filename: Infer.hs
-- Description:
-- Author: Manuel Schneckenreither
-- Maintainer:
-- Created: Wed Nov 2 15:34:35 2016 (+0100)
-- Version:
-- Package-Requires: ()
-- Last-Updated: Sun Oct 27 18:26:56 2019 (+0100)
-- By: Manuel Schneckenreither
-- ... | ComputationWithBoundedResources/ara-inference | src/Data/Rewriting/ARA/InferTypes.hs | mit | 4,093 | 0 | 19 | 1,117 | 1,186 | 635 | 551 | 74 | 4 |
{-# LANGUAGE OverloadedStrings #-}
module Main(main) where
import Prelude hiding ((.), id)
import Test.Hspec
import Test.QuickCheck
import Test.QuickCheck.Function
import Control.FRP.Wire
import Control.FRP.Wire.Utils
import Control.Category
import Control.Arrow
import Control.Applicative
import Control.Arrow.Oper... | prophile/trivial-wire | Tests.hs | mit | 2,099 | 0 | 22 | 580 | 825 | 438 | 387 | 48 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Data.FreeAgent.Types.Invoices where
import Control.Applicative (empty, (<$>), (<*>))
import Control.Lens
import Data.Aeson
import Data.Aeson.TH
import qualified Dat... | perurbis/hfreeagent | src/Data/FreeAgent/Types/Invoices.hs | mit | 3,119 | 0 | 27 | 1,082 | 608 | 344 | 264 | 67 | 0 |
{-# LANGUAGE OverloadedStrings, DeriveGeneric, GADTs, StandaloneDeriving #-}
import GHC.Generics
import Data.Maybe
import Data.Text
import qualified Data.ByteString.Lazy as BL
import Data.Aeson
import Data.Aeson.Types
import Control.Monad.Writer.Lazy
import Control.Applicative
import Charts
import Weather
import Res... | rjackson90/b29-tools | dummy.hs | mit | 3,081 | 0 | 23 | 974 | 737 | 363 | 374 | 70 | 7 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE... | shiyah/lupa-bot | src/Model.hs | mit | 993 | 0 | 7 | 289 | 53 | 36 | 17 | 14 | 0 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.SVGPathElement (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.SVGPathElement
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
import GHCJS.DOM.JSFFI.Gen... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/SVGPathElement.hs | mit | 355 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
module Constant where
import Control.Applicative
import Data.Monoid
newtype Constant a b =
Constant { getConstant :: a }
deriving (Eq, Ord, Show)
instance Functor (Constant a) where
fmap _ (Constant a) = (Constant a)
instance Monoid a => Applicative (Constant a) where
pure _ = Constant mempty
(<*>) ... | NickAger/LearningHaskell | HaskellProgrammingFromFirstPrinciples/Chapter17.hsproj/Constant.hs | mit | 369 | 0 | 8 | 78 | 146 | 79 | 67 | 11 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Control.Consensus.Paxos.Storage.Memory
-- Copyright : (c) Phil Hargett 2016
-- License : MIT (see LICENSE file)
--
-- Maintainer : phil@haphazardhouse.net
-- Stability : $(Stability)
-- Portability : $(Por... | hargettp/paxos | src/Control/Consensus/Paxos/Storage/Memory.hs | mit | 1,380 | 0 | 11 | 208 | 281 | 153 | 128 | 19 | 1 |
module DoesItTypeCheck where
import Data.List (sort)
data Person = Person Bool deriving Show
printPerson :: Person -> IO ()
printPerson person = putStrLn (show person)
-- Don't need this if you derive Show above
-- instance Show Person where
-- show (Person b) = "Person " ++ show b
data Mood =
... | mikegehard/haskellBookExercises | chapter6/doesItTypeCheck.hs | mit | 2,955 | 0 | 8 | 827 | 645 | 362 | 283 | 54 | 2 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.HTMLTextAreaElement
(checkValidity, checkValidity_, reportValidity, reportValidity_,
setCustomValidity, s... | ghcjs/jsaddle-dom | src/JSDOM/Generated/HTMLTextAreaElement.hs | mit | 17,963 | 0 | 12 | 2,596 | 3,552 | 1,893 | 1,659 | 222 | 1 |
module Chapter4Exercises where
import Chapter4 hiding (maxThree)
import Test.HUnit
import Test.QuickCheck hiding (Result)
-------------------------------------------------------------------------------
-- Exercise 4.1
-------------------------------------------------------------------------------
-- Copied from Chap... | c089/haskell-craft3e | Chapter4Exercises.hs | mit | 15,412 | 0 | 14 | 3,774 | 4,654 | 2,393 | 2,261 | 227 | 1 |
import Cook.Facts
import Cook.Recipe
import Cook.Recipe.Util
main :: IO ()
main = do
testSsh
{-testError-}
testError :: IO ()
testError = runRecipe $ do
runProc0 "uptime"
runProc0 "true"
--getHTTP "foo"
withRecipeName "foo.bar.xxx.in" $
withRecipeName "foo.bar.here" $
with... | jimenezrick/cook.hs | test/Playground.hs | mit | 726 | 0 | 12 | 240 | 195 | 88 | 107 | 26 | 1 |
module Javelin.Interpreter.Termination where
import Control.Monad.IO.Class (liftIO)
import Javelin.Capability.Classes
import Javelin.Interpreter.JVMApp
import System.Exit (die)
instance Termination JVM where
terminate = liftIO . die . show
| antonlogvinenko/javelin | src/Javelin/Interpreter/Termination.hs | mit | 244 | 0 | 7 | 28 | 62 | 38 | 24 | 7 | 0 |
{-# LANGUAGE OverloadedStrings #-}
import Test.HUnit
import Data.Binary
import qualified Data.Text as T
import TestFileUtils
import CladeModel
import NucModel
import Alignment
-- Numeric testing of NucModels:
small_prob = 0.0001 :: Double -- need to be specific, else logBase complains
small_score = round (scale_fac... | tjunier/mlgsc | test/TestNucModel.hs | mit | 15,421 | 0 | 17 | 3,831 | 5,182 | 2,713 | 2,469 | 203 | 1 |
module Machine (execute) where
import Types
import qualified Data.Map as Map
lookup :: String -> Env -> Value
lookup s e = Map.findWithDefault (error $ "Unbound name: " ++ s ++ " in " ++ show e) s e
bind :: String -> Value -> Env -> Env
bind = Map.insert
makeClosure :: Env -> Code -> Value
makeClosure e cs = VClosu... | jchl/jtrace | src/Machine.hs | mit | 1,448 | 0 | 13 | 482 | 748 | 398 | 350 | 28 | 11 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
module Tests.Writers.PseudoPod (tests) where
import Test.Framework
import Text.Pandoc.Builder
import Text.Pandoc
import Tests.Helpers
import Tests.Arbitrary()
pseudopod :: (ToString a, ToPandoc a) => a -> String
pseudopod = writePseudoPod defaultWriterOptions . toPandoc... | castaway/pandoc | src/Tests/Writers/PseudoPod.hs | gpl-2.0 | 726 | 0 | 9 | 164 | 160 | 94 | 66 | 17 | 1 |
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
module Modular.Seed where
import Network.XmlRpc.Internals
import Autolib.ToDoc
data Seed =
Seed { contents :: Int
}
instance XmlRpcType ( Seed ) where
toValue d = toValue [("contents",toValue (contents d))
]
fromValue v = do
t <- fro... | Erdwolf/autotool-bonn | src/Modular/Seed.hs | gpl-2.0 | 498 | 5 | 11 | 120 | 155 | 82 | 73 | 14 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
{-# LANGUAGE FlexibleContexts #-}
module Web.Google.API.Rest ( GoogleApiRequest(..)
, GoogleApiConfig(..)
, GoogleApiAuthConfig(..)
, GoogleA... | periodic/youtube-haskell | Web/Google/API/Rest.hs | gpl-3.0 | 4,594 | 0 | 14 | 1,326 | 905 | 486 | 419 | 77 | 3 |
-- This file is part of KSQuant2.
-- Copyright (c) 2010 - 2011, Kilian Sprotte. All rights reserved.
-- 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 3 of the License, or
-- (... | kisp/ksquant2 | old/Setup.hs | gpl-3.0 | 792 | 1 | 4 | 139 | 26 | 18 | 8 | 2 | 1 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid 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 Lice... | karamellpelle/grid | designer/source/Game/LevelPuzzleMode/Do/Grid/Modify.hs | gpl-3.0 | 1,384 | 0 | 12 | 295 | 160 | 98 | 62 | 16 | 2 |
{-# LANGUAGE NoMonomorphismRestriction #-}
module Main where
------------------------------------------------------------------------------
import Control.Lens
import qualified Data.Map as Map
import qualified Data.Vector as V
------------------------------------------------------------------------------
im... | imalsogreg/tetrode-ephys | samples/watchpos.hs | gpl-3.0 | 2,670 | 0 | 15 | 548 | 713 | 395 | 318 | -1 | -1 |
module CacheFile where
import System.FilePath
indexFile :: String
indexFile = "00-index.tar.gz"
hackportDir :: String
hackportDir = ".hackport"
cacheFile :: FilePath -> FilePath
cacheFile tree = tree </> hackportDir </> indexFile
| Heather/hackport | CacheFile.hs | gpl-3.0 | 234 | 0 | 6 | 34 | 54 | 31 | 23 | 8 | 1 |
module Mechanism.Profile.Sequence where
import qualified Data.Foldable as F
import Data.Sequence (Seq)
import qualified Data.Sequence as S
type Coll = Seq
fromList :: [a] -> Seq a
fromList = S.fromList
replicateM :: (Monad m) => Int -> m a -> m (Seq a)
replicateM = S.replicateM
zip :: Seq a -> Seq b -> S... | pseudonom/haskell-mechanism | src/Mechanism/Profile/Sequence.hs | agpl-3.0 | 1,234 | 0 | 13 | 335 | 655 | 347 | 308 | 40 | 3 |
module Hypergraph where
import FiniteMap
import Set
-- A hypergraph is a family of sets which are subsets of a vertex set X
-- This implementation uses an edge list representation that
-- directly corresponds to the mathematical definition
-- n index type, w weight type
-- type Hypergraph n w = Array n [(n,w)]
-- sho... | examachine/bitdrill | src/haskell/Hypergraph.hs | agpl-3.0 | 1,440 | 6 | 11 | 296 | 319 | 173 | 146 | 16 | 1 |
{-|
Module : $Header$
Copyright : (c) 2015 Edward O'Callaghan
License : LGPL-2.1
Maintainer : eocallaghan@alterapraxis.com
Stability : provisional
Portability : portable
This module encapsulates the foundational libftdi functions
commonly used into a Monadic style. This Monadic style avoi... | victoredwardocallaghan/bindings-libftdi | src/LibFtdi/LibFtdi.hs | lgpl-2.1 | 5,192 | 0 | 13 | 1,346 | 1,101 | 582 | 519 | 99 | 3 |
module Main where
import BitTorrent
import Control.Concurrent
import Control.Concurrent.MVar
import Control.Concurrent.STM
import Control.Exception.Extra
import Control.ITC
import Control.Monad
import Data.Bencoding
import qualified Data.ByteString.Lazy.Char8 as L
import Data.Extra
import Data.Maybe
import Data.Time.... | scvalex/ltorrent | apps/dltorrent.hs | lgpl-3.0 | 3,765 | 0 | 16 | 1,033 | 1,121 | 566 | 555 | 92 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{- Please read http://gwan.com/en_apachebench_httperf.html -}
module Experiment.Bench.Web (
benchWeb
, plotWeb
) where
import Data.Csv (ToNamedRecord (..), namedRecord, (.=))
import Data.Monoid ((<>))
im... | lucasdicioccio/laborantin-bench-web | Experiment/Bench/Web.hs | apache-2.0 | 6,519 | 0 | 15 | 1,616 | 1,770 | 894 | 876 | 148 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Main where
import Control.Monad
import Data.Maybe
import Data.Monoid
import qualified Data.Text as T
import Data.Tree
import Filesystem
import Filesystem.Path.Curr... | erochest/castle | Castle.hs | apache-2.0 | 6,359 | 123 | 13 | 1,973 | 1,549 | 831 | 718 | 133 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{- | CouchDB database methods.
> runCouch def {couchDB="my_db"} $ couchPutDb
> runCouch def {couchDB="my_new_db"} $ couchPutDb
-}
module Database.CouchDB.Conduit.DB (
-- * Methods
couchPutDB,
couchPutDB_,
couchDelet... | akaspin/couchdb-conduit | src/Database/CouchDB/Conduit/DB.hs | bsd-2-clause | 3,543 | 0 | 13 | 1,225 | 738 | 412 | 326 | 68 | 1 |
module Buster.Monitor (monitorForUpdates,
WatchDescriptor,
INotify,
withMonitoring,
installMonitor,
uninstallMonitor,
stopMonitoring) where
import System.INotify
import Buster.Conf... | MichaelXavier/Buster | src/Buster/Monitor.hs | bsd-2-clause | 1,351 | 0 | 9 | 366 | 316 | 162 | 154 | 31 | 1 |
{-# LANGUAGE NoMonomorphismRestriction #-}
module Model.Accessor where
import Model.Parse
import Foundation
import Model
import Yesod
import Control.Applicative ((<$>), (<*>))
import Control.Monad
import Control.Monad.IO.Class (liftIO)
import Data.Char
import Data.List (intersperse)
import Data.Text (Text, pack, unp... | masaedw/Yiki | Model/Accessor.hs | bsd-2-clause | 2,365 | 0 | 13 | 486 | 722 | 376 | 346 | 63 | 3 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QSyntaxHighlighter_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:27
Warning : this file is machine generat... | keera-studios/hsQt | Qtc/Gui/QSyntaxHighlighter_h.hs | bsd-2-clause | 21,539 | 0 | 18 | 4,636 | 6,752 | 3,216 | 3,536 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
module Propellor.Types.ResultCheck (
UncheckedProperty,
unchecked,
checkResult,
check,
Checkable,
assume,
) where
import Propellor.Types
import Propellor.Exception
import Utility.Monad
import Data.Monoid
-- | This is a `Property` but its `Result` is no... | ArchiveTeam/glowing-computing-machine | src/Propellor/Types/ResultCheck.hs | bsd-2-clause | 2,785 | 39 | 11 | 535 | 555 | 299 | 256 | 46 | 1 |
module NLP.Walenty.Types
( Verb (..)
, CertLevel (..)
, Frame
, Argument (..)
, Function (..)
, Phrase (..)
, StdPhrase (..)
, SpecPhrase (..)
, Case (..)
, Aspect (..)
, Gender (..)
, Number (..)
, Negation (..)
, Degree (..)
, Control (..)
, Attribute (..)
, Agree (..)
) where
import Data.Text (Text)
--... | kawu/walenty | src/NLP/Walenty/Types.hs | bsd-2-clause | 12,347 | 0 | 11 | 3,712 | 1,765 | 1,151 | 614 | 228 | 0 |
module Learn where
mult2 = z / x + y
where x = 7
y = negate x
z = y * 10 | pdmurray/haskell-book-ex | src/ch2/Learn.hs | bsd-3-clause | 99 | 0 | 7 | 49 | 41 | 23 | 18 | 5 | 1 |
module Main where
import Control.Monad
import System.Exit (exitFailure)
import System.Environment
import L2.ParL
import L2.ErrM
import L2ToL1.Compile
import L1.PrintL
main :: IO ()
main = do
args <- getArgs
when (length args /= 1) $ do
putStrLn "usage: filename"
exitFailure
ts <- liftM myLex... | mhuesch/scheme_compiler | src/L2ToL1/Main.hs | bsd-3-clause | 642 | 0 | 16 | 203 | 215 | 101 | 114 | 25 | 3 |
{-# LANGUAGE BangPatterns #-}
module Backbone where
import Control.Concurrent
import Control.Concurrent.STM
import Control.Exception
import Control.Monad
import Data.Hash.MD5
import Data.Map
import Data.Maybe
import Helpers
import ... | polyrod/hamexpress | src/Backbone.hs | bsd-3-clause | 4,882 | 0 | 19 | 1,261 | 1,859 | 890 | 969 | 118 | 2 |
{- |
Module : Data.Matrix.AsXYZ
Copyright : (c) Jun Narumi 2017-2020
License : BSD3
Maintainer : narumij@gmail.com
Stability : experimental
Portability : ?
Read and Display Jones-Faithful notation for spacegroup (e.g. 'x,y,z') and planegroup (e.g. 'x,y')
-}
module Data.Matrix.AsXYZ (
fromXYZ,
fromXY... | narumij/matrix-as-xyz | src/Data/Matrix/AsXYZ.hs | bsd-3-clause | 5,467 | 0 | 11 | 1,752 | 1,052 | 593 | 459 | 68 | 2 |
{-# LANGUAGE TemplateHaskell #-}
module Client.BeamT where
import Control.Lens (makeLenses)
import Linear (V3(..))
import Types
makeLenses ''BeamT
newBeamT :: BeamT
newBeamT = BeamT
{ _bEntity = 0
, _bDestEntity = 0
, _bModel = Nothing
, _bEndTime = 0
... | ksaveljev/hake-2 | src/Client/BeamT.hs | bsd-3-clause | 416 | 0 | 7 | 161 | 115 | 68 | 47 | 15 | 1 |
---------------------------------------------------------
-- The main program for the hpc-markup tool, part of HPC.
-- Andy Gill and Colin Runciman, June 2006
---------------------------------------------------------
module HpcMarkup (markup_plugin) where
import Trace.Hpc.Mix
import Trace.Hpc.Tix
import Trace.Hpc.Uti... | nomeata/ghc | utils/hpc/HpcMarkup.hs | bsd-3-clause | 18,690 | 0 | 56 | 6,154 | 4,747 | 2,497 | 2,250 | 383 | 16 |
{-# LANGUAGE CPP, MagicHash, RecordWildCards, BangPatterns #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# OPTIONS_GHC -fprof-auto-top #-}
{-# OPTIONS_GHC -Wno-incomplete-uni-patterns #-}
--
-- (c) The University of Glasgow 2002-2006
--
-- | ByteCodeGen: Generate bytecode from Core
... | sdiehl/ghc | compiler/ghci/ByteCodeGen.hs | bsd-3-clause | 77,893 | 0 | 23 | 23,738 | 16,172 | 8,288 | 7,884 | -1 | -1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.OcclusionQuery2
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/OcclusionQuery2.hs | bsd-3-clause | 662 | 0 | 4 | 78 | 37 | 31 | 6 | 3 | 0 |
module Network.CrawlChain.CrawlDirective where
import Network.CrawlChain.CrawlAction
import Network.CrawlChain.CrawlResult
{-|
A crawl directive takes a content of a web page and produces crawl actions for links/forms to follow.
The general idea is to specify a list of operations that in theory produces a dynamic... | michaxm/crawlchain | src/Network/CrawlChain/CrawlDirective.hs | bsd-3-clause | 1,597 | 0 | 9 | 289 | 130 | 83 | 47 | 13 | 0 |
module API.CacheMaintenance (
spinupCache
) where
import qualified Data.ByteString.Lazy as BSL
import Control.Concurrent.MVar
import Control.Concurrent.Chan
import Control.Concurrent (forkIO, threadDelay)
import Control.Exception (tryJust)
import Control.Monad (forever, guard)
import System.IO (withFile, IOMode (Re... | robmcl4/Glug | app/API/CacheMaintenance.hs | bsd-3-clause | 1,932 | 0 | 17 | 459 | 559 | 281 | 278 | 49 | 2 |
module B1.Program.Prices.Options
( Options(..)
, DataSource(..)
, readOptions
) where
import System.Console.GetOpt
data Options =
Options
{ dataSource :: DataSource
, symbol :: String
}
data DataSource = Google | Mock deriving Show
defaultOptions = Options
{ dataSource = Google
, symbol = "G... | madjestic/b1 | src/B1/Program/Prices/Options.hs | bsd-3-clause | 1,255 | 0 | 13 | 281 | 374 | 210 | 164 | 35 | 3 |
{-# OPTIONS_GHC -Wall #-}
-----------------------------------------------------------------------------
-- |
-- Copyright : (C) 2014 Edward Kmett and Gabríel Arthúr Pétursson
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : experimental
-- Portabi... | phaazon/gl | Setup.hs | bsd-3-clause | 1,814 | 0 | 22 | 333 | 429 | 224 | 205 | 28 | 2 |
module Examples where
import qualified Prelude
import Feldspar hiding (name)
import Feldspar.Vector
import Feldspar.Algorithm.CRC
import Feldspar.Compiler.Signature
-- * Examples
expr1 :: Data [Index] -> Data Index
expr1 x = 1 + getLength x
expr3 :: Data Index -> Data Word8 -> Data Index
expr3 a b = a * i2n b
exp... | emwap/signature-paper | examples/Examples.hs | bsd-3-clause | 1,782 | 0 | 15 | 573 | 739 | 376 | 363 | 42 | 1 |
{-# LANGUAGE CPP, GADTs, FlexibleContexts, FlexibleInstances #-}
{-# LANGUAGE TypeOperators, TypeFamilies #-}
{-# OPTIONS_HADDOCK hide #-}
-- |
-- Module : Data.Array.Accelerate.Array.Representation
-- Copyright : [2008..2011] Manuel M T Chakravarty, Gabriele Keller, Sean Lee
-- [2009..2012] Manuel... | robeverest/accelerate | Data/Array/Accelerate/Array/Representation.hs | bsd-3-clause | 7,330 | 0 | 15 | 2,479 | 2,105 | 1,162 | 943 | 105 | 0 |
{-# LANGUAGE TypeOperators, Rank2Types, EmptyDataDecls,
MultiParamTypeClasses, FunctionalDependencies,
FlexibleContexts, FlexibleInstances, UndecidableInstances,
IncoherentInstances, OverlappingInstances #-}
module Data.Rope.Branded
( Branded(..)
, Unsafe
, UBR
... | ekmett/rope | Data/Rope/Branded.hs | bsd-3-clause | 3,297 | 0 | 9 | 794 | 1,127 | 608 | 519 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
module Language.TNT.LambdaLifter (lambdaLift) where
import Control.Comonad
import Control.Monad.State
import Data.Generics
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Set (Set, (\\))
import qualified Data.Set as Set
import Language.TNT.Location
import Language.... | sonyandy/tnt | Language/TNT/LambdaLifter.hs | bsd-3-clause | 2,611 | 0 | 10 | 672 | 225 | 157 | 68 | 17 | 1 |
-- | This module re-exports the /mid/ interface
-- to /processing/.
module Graphics.Web.Processing (
-- * Mid interface
module Graphics.Web.Processing.Mid
) where
import Graphics.Web.Processing.Mid
| Daniel-Diaz/processing | Graphics/Web/Processing.hs | bsd-3-clause | 209 | 0 | 5 | 34 | 27 | 20 | 7 | 3 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Types
( Server, ServerState(..), initServerState
-- * Configuration types
, Environment(..), getEnvironment, getOptions, Source(..)
, getConfig, parseCmdLine
, logMsg
) where
import Control.Monad.IO.Class (liftIO)
import Control.Monad.Trans.State.Lazy... | ashutoshrishi/blogserver | src/Types.hs | bsd-3-clause | 3,574 | 0 | 18 | 888 | 828 | 455 | 373 | 73 | 2 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1993-1998
\section[WwLib]{A library for the ``worker\/wrapper'' back-end to the strictness analyser}
-}
{-# LANGUAGE CPP #-}
module WwLib ( mkWwBodies, mkWWstr, mkWorkerArgs
, deepSplitProductType_maybe, findTypeShape
) where
#include "HsVersions.h"
... | tjakway/ghcjvm | compiler/stranal/WwLib.hs | bsd-3-clause | 30,135 | 0 | 18 | 9,108 | 3,726 | 2,023 | 1,703 | 258 | 2 |
module Haskmon.Types.Pokemon(
module Haskmon.Types.Pokemon,
I.Pokemon, I.Pokedex, I.MetaPokemon
) where
import Haskmon.Types.Internals(MetaData,
MetaPokemon,
MetaAbility,
MetaMove,
Me... | bitemyapp/Haskmon | src/Haskmon/Types/Pokemon.hs | mit | 2,256 | 0 | 6 | 555 | 463 | 272 | 191 | 59 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-|
Module : BasicFSM
Description : A simple example.
Copyright : (c) Max Amanshauser, 2016
License : MIT
Maintainer : max@lambdalifting... | linearray/mealstrom | test/BasicFSM.hs | mit | 3,382 | 0 | 14 | 672 | 980 | 508 | 472 | 67 | 3 |
module Language.Bracer (module X) where
import Language.Bracer.Syntax as X
import Language.Bracer.Parsing as X
import Language.Bracer.Transformations as X
| cbarrett/bracer | Language/Bracer.hs | mit | 156 | 0 | 4 | 18 | 36 | 26 | 10 | 4 | 0 |
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Network.AWS.OpsWorks
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : B... | fmapfmapfmap/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks.hs | mpl-2.0 | 23,282 | 0 | 5 | 5,344 | 2,466 | 1,783 | 683 | 530 | 0 |
{-
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/Control/Concurrent/QSemN.hs | apache-2.0 | 763 | 0 | 4 | 136 | 25 | 19 | 6 | 4 | 0 |
{-# language TypeFamilies #-}
module Planetary.Library (repo, resolve) where
import Control.Lens
import Data.Foldable (fold)
import Planetary.Core
import Planetary.Support.NameResolution
import Planetary.Support.Parser
import qualified Planetary.Library.FrankExamples as Frank
import qualified Planetary.Library.Hask... | joelburget/interplanetary-computation | src/Planetary/Library.hs | bsd-3-clause | 956 | 0 | 9 | 147 | 188 | 119 | 69 | -1 | -1 |
module Types.Basic (
Name, Task, Seed, Signature
) where
import Util.Hash
-- basic types
type Name = String
type Task = String
type Seed = String
type Signature = Digest
| Erdwolf/autotool-bonn | server/src/Types/Basic.hs | gpl-2.0 | 176 | 0 | 4 | 36 | 50 | 33 | 17 | 7 | 0 |
module PackageTests.PreProcess.Check (suite) where
import PackageTests.PackageTester
(PackageSpec(..), assertBuildSucceeded, cabal_build)
import System.FilePath
import Test.HUnit
suite :: FilePath -> Test
suite ghcPath = TestCase $ do
let spec = PackageSpec
{ directory = "PackageTests" </> "PrePro... | DavidAlphaFox/ghc | libraries/Cabal/Cabal/tests/PackageTests/PreProcess/Check.hs | bsd-3-clause | 513 | 0 | 13 | 117 | 120 | 68 | 52 | 13 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.