code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE NoImplicitPrelude #-}
module Foreign.String where
import Compiler.Num -- for (-)
data CPPString
builtin getStringElement 2 "getStringElement" "Vector"
builtin sizeOfString 1 "sizeOfString" "Vector"
unpack_cpp_string s = [getStringElement s i | i <- [0..sizeOfString s - 1]]
listFromString s = unpack_cpp... | bredelings/BAli-Phy | haskell/Foreign/String.hs | gpl-2.0 | 331 | 0 | 10 | 47 | 87 | 44 | 43 | -1 | -1 |
{-|
Module : Matchings
Description : Provides some functions on matchings in graphs
Licence : LGPL-2.1
Maintainer : Manuel Eberl <last name + m _at_ in.tum.de>
Stability : experimental
This module provides some algorithms related to matchings in graphs, most notably an implementation of
Edmond's blossom a... | 3of8/haskell_playground | maximum-matching/Data/Graph/Inductive/Query/MaximumMatching.hs | gpl-2.0 | 7,861 | 0 | 21 | 2,421 | 2,552 | 1,341 | 1,211 | 101 | 6 |
{-
Copyright 2012-2015 Vidar Holen
This file is part of ShellCheck.
http://www.vidarholen.net/contents/shellcheck
ShellCheck 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... | chadbrewbaker/shellcheck | shellcheck.hs | gpl-3.0 | 11,635 | 34 | 20 | 3,283 | 3,566 | 1,702 | 1,864 | 275 | 9 |
module MaaS.Color (
Color(..),
genColor,
getColor,
convColor,
colorInterpol
) where
import Data.Word
import MaaS.Tools
import MaaS.Maths
data Color a = Color a a a deriving Show
getColor :: RealFrac a => [Color a] -> a -> Color a
getColor cols r = colorInterpol (cols !! (n-1)) (cols !! n) (remap 0 1 p1 p... | maeln/MaaS | MaaS/Color.hs | gpl-3.0 | 1,088 | 0 | 15 | 252 | 572 | 298 | 274 | 27 | 1 |
module Main where
import System.Directory
import Cube
import qualified Stage1
import qualified Stage2
import qualified Stage3
import qualified Stage4
import qualified CubeReader as Reader
checkFile :: FilePath -> IO Bool
checkFile fp = do
b <- doesFileExist fp
if b then do
putStrLn $ "... | Ricikle/Rubik | Main.hs | gpl-3.0 | 1,089 | 0 | 14 | 281 | 327 | 162 | 165 | 30 | 5 |
{-# OPTIONS -cpp -fglasgow-exts #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.IntSet
-- Copyright : (c) Daan Leijen 2002
-- License : BSD-style
-- Maintainer : libraries@haskell.org
-- Stability : provisional
-- Portability : portable
--
-- A... | kaoskorobase/mescaline | resources/hugs/packages/base/Data/IntSet.hs | gpl-3.0 | 28,920 | 0 | 26 | 8,391 | 6,732 | 3,400 | 3,332 | 454 | 5 |
module TalkBot.Fun ( sass, hello, extend ) where
sass :: String -> String
sass s = case words s of
[] -> hello
w:[] -> "Don't you \"" ++ (extend 1 w) ++ "\" me"
a:b:[] -> a ++ " yourself!"
ws -> unwords $ fmap (extend 3) ws
hello :: String
hello = "hello"
extend :: Int -> String -> String
extend _ ... | RoboNickBot/talkbot | src/TalkBot/Fun.hs | gpl-3.0 | 370 | 0 | 11 | 99 | 183 | 95 | 88 | 12 | 4 |
{-# LANGUAGE NoMonomorphismRestriction #-}
module Pipes.Categorical
(
runEffect
,stdinLn
,stdoutLn
,module Control.Category
,module Control.Arrow
,zip
,each
) where
import qualified Pipes as P
import Pipes ((>->),yield,await,lift,Pipe)
import qualified Pipes.Prelude as PP
import Data.Char
import Control.Category ((... | xpika/line-size | Pipes/Categorical.hs | gpl-3.0 | 990 | 0 | 11 | 187 | 450 | 249 | 201 | 32 | 1 |
module Update where
import qualified Data.Map as M
import Data.Acid
import Data.Record.StateFields
import Query
import Types
register :: String -> String -> Update Database (Either Error Id)
register name password = do
user <- runQuery $ findUser name
case user of
Just _ -> return $ Left EUserExists
No... | ktvoelker/todo | src/Update.hs | gpl-3.0 | 772 | 0 | 15 | 159 | 271 | 133 | 138 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.Manufacturers
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozill... | brendanhay/gogol | gogol-manufacturers/gen/Network/Google/Manufacturers.hs | mpl-2.0 | 4,439 | 0 | 7 | 1,104 | 524 | 378 | 146 | 129 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-identity-toolkit/gen/Network/Google/Resource/IdentityToolkit/RelyingParty/GetAccountInfo.hs | mpl-2.0 | 3,305 | 0 | 13 | 672 | 308 | 189 | 119 | 53 | 1 |
module Codewars.Kata.IsUpperCase where
isUpperCase :: String -> Bool
isUpperCase = not . any (`elem` ['a'..'z'])
| ice1000/OI-codes | codewars/201-300/is-the-string-uppercase.hs | agpl-3.0 | 114 | 0 | 8 | 16 | 39 | 24 | 15 | 3 | 1 |
module Handler.Page where
import Import
import qualified Data.Aeson as Json
import Data.Text as Text (cons, foldr)
import Data.Char (isDigit, isLetter, toLower)
import Network.HTTP.Types.Status (conflict409)
queryPages :: Handler [(Entity Page)]
queryPages = do
d <- getDeploymentId
runDB $ select $ from $ \p... | sir-murray/lol | Handler/Page.hs | agpl-3.0 | 5,186 | 0 | 19 | 1,681 | 1,894 | 923 | 971 | -1 | -1 |
-- Copyright 2020-2021 Google LLC
--
-- 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 t... | google/hs-dependent-literals | dependent-literals-plugin/tests/IntErrors.hs | apache-2.0 | 1,028 | 0 | 5 | 192 | 104 | 73 | 31 | 13 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( makeApplication
, getApplicationDev
, makeFoundation
) where
import Import
import Yesod.Default.Config
import Yesod.Default.Main
import Yesod.Default.Handlers
import Network.Wai.Middleware.RequestLogger
( mkRequestLogger, outputFormat, Outp... | carlohamalainen/rapid-connect-yesod-demo | Application.hs | bsd-2-clause | 3,244 | 0 | 13 | 648 | 541 | 300 | 241 | -1 | -1 |
module Irrigation where
import Data.List (maximumBy)
import Data.Ord (comparing)
import Control.Arrow ((&&&))
type Location = (Int,Int)
data Sprinkler = Sprinkler
{
location :: Location
, radius :: Int
}
data CropField = CropField
{
rows :: Int
, columns :: Int
, crops :: [Loca... | fffej/haskellprojects | daily-programmer/18-03-2015/Irrigation.hs | bsd-2-clause | 1,177 | 0 | 11 | 298 | 464 | 253 | 211 | 28 | 2 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for ganeti-htools.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions a... | apyrgio/snf-ganeti | test/hs/Test/Ganeti/Query/Language.hs | bsd-2-clause | 6,212 | 0 | 11 | 1,165 | 818 | 450 | 368 | 85 | 2 |
{-# Language MultiParamTypeClasses, FlexibleInstances, TypeFamilies #-}
module VarArgs where
import Data.Monoid
{-
This is basically half of the polyToMonoid package as seen on Hackage.
-}
class Monoid m => Monoidable a m where
toMonoid :: a -> m
squish :: Monoidable a m => m -> a -> m
squish m a = m `mappend` toM... | farre/grin | VarArgs.hs | bsd-3-clause | 773 | 0 | 8 | 157 | 264 | 138 | 126 | 17 | 1 |
module Mp3 (playMp3Bytes) where
import Kerchief.Prelude
import Control.Concurrent (forkIO)
import Data.ByteString (ByteString)
import qualified Data.ByteString as BS
import System.FilePath ((</>))
import System.IO -- (hClose)
import System.IO.Silentl... | mitchellwrosen/kerchief | src/Mp3.hs | bsd-3-clause | 957 | 0 | 12 | 235 | 270 | 142 | 128 | 21 | 1 |
-- This module could potentially be rewritten and heavily simplified once the
-- custom context menu spec in HTML 5.1 is adopted by all major browsers. At
-- time of writing the spec is only a recommendation and only implemented by
-- Mozilla Firefox.
module Graphics.UI.Threepenny.Ext.Contextmenu (
-- * Menu items a... | barischj/threepenny-gui-contextmenu | src/Graphics/UI/Threepenny/Ext/ContextMenu.hs | bsd-3-clause | 5,320 | 0 | 18 | 1,127 | 1,166 | 615 | 551 | 68 | 2 |
{-# LANGUAGE CPP #-}
-- | Gang Primitives.
module Data.Array.Repa.Eval.Gang
( theGang
, Gang, forkGang, gangSize, gangIO, gangST)
where
import GHC.IO
import GHC.ST
import GHC.Conc (forkOn)
import Control.Concurrent.MVar
import Control.Exception (assert)
import Control.Monad
import GHC.... | kairne/repa-lts | Data/Array/Repa/Eval/Gang.hs | bsd-3-clause | 7,148 | 27 | 13 | 1,971 | 1,047 | 563 | 484 | 100 | 2 |
module RDiffFS (rdiffFSMain) where
import qualified Data.ByteString.Char8 as B
import Foreign.C.Error
import System.Posix.Types
import System.Posix.Files
import System.Posix.IO
import System.IO.Error -- isPermissionError etc.
import System.Fuse
import System.Environment -- getArgs, withArgs
import System.Directory -- ... | jmtd/rdifffs | RDiffFS.hs | bsd-3-clause | 25,354 | 0 | 28 | 6,733 | 6,220 | 3,130 | 3,090 | 429 | 9 |
-----------------------------------------------------------------------------
-- |
-- Module : Berp.Compile.VarSet
-- Copyright : (c) 2010 Bernie Pope
-- License : BSD-style
-- Maintainer : florbitous@gmail.com
-- Stability : experimental
-- Portability : ghc
--
-- A set of variables. XXX Does this need t... | bjpop/berp | libs/src/Berp/Compile/VarSet.hs | bsd-3-clause | 539 | 0 | 5 | 77 | 39 | 29 | 10 | 4 | 0 |
module ProjectEuler.Problem052 (solution052) where
import Data.Digits
import Data.List
import Util
allEqual :: Eq a => [a] -> Bool
allEqual xs = and $ zipWith (==) xs (tail xs)
sameDigits :: Integer -> Bool
sameDigits = allEqual . map (sort . digits 10) . flip map [2..6] . (*)
solution052 :: Integer
solution052 = h... | guillaume-nargeot/project-euler-haskell | src/ProjectEuler/Problem052.hs | bsd-3-clause | 351 | 0 | 11 | 63 | 142 | 77 | 65 | 10 | 1 |
{-# LANGUAGE RankNTypes #-}
{- Church Encodings -
- - - - - - - - - - -
- By Risto Stevcev -}
module Church where
import Prelude hiding (succ, pred, and, or, not, exp, div, head, tail)
{- Church Logical Operators -
- - - - - - - - - - - - - - -}
type ChurchBool = forall a. a -> a -> a
-- Church Boolean (Tr... | Risto-Stevcev/haskell-church-encodings | RankNTypes/Church.hs | bsd-3-clause | 9,703 | 0 | 16 | 2,327 | 2,919 | 1,636 | 1,283 | 119 | 1 |
{-# LANGUAGE QuasiQuotes #-}
import LiquidHaskell
-------------------------------------------------------------------------
-- | Encoding Sets of Values With Liquid Types --------------------------
-------------------------------------------------------------------------
-- TODO: make this self-enclosed
import D... | spinda/liquidhaskell | tests/gsoc15/unknown/pos/listSet.hs | bsd-3-clause | 1,681 | 0 | 9 | 408 | 350 | 198 | 152 | 25 | 2 |
-- Copyright 2021 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 FlexibleInstances #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE Gene... | google-research/dex-lang | src/lib/CheapReduction.hs | bsd-3-clause | 9,273 | 0 | 28 | 2,225 | 2,971 | 1,462 | 1,509 | -1 | -1 |
module Yesod.CoreBot.Bliki.Store where
import Yesod.CoreBot.Bliki.Prelude
import Control.Monad.State.Class
import Control.Monad.Trans
import qualified Data.ByteString.Lazy as B
import qualified Data.FileStore as FileStore
import qualified Data.Text.Lazy as TL
import qualified Data.Text.Lazy.Encoding as TL... | coreyoconnor/corebot-bliki | src/Yesod/CoreBot/Bliki/Store.hs | bsd-3-clause | 1,358 | 0 | 11 | 313 | 390 | 204 | 186 | -1 | -1 |
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Applicative
import Control.Monad
import Test.Framework (Test, defaultMain, testGroup)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Test.QuickCheck
import Test.QuickCheck.Test
import Data.Byteable
i... | vincenthz/hs-cipher-aes | Tests/Tests.hs | bsd-3-clause | 3,178 | 0 | 16 | 810 | 801 | 468 | 333 | 66 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Inst... | sopvop/cabal | cabal-install/Distribution/Client/InstallPlan.hs | bsd-3-clause | 29,094 | 0 | 19 | 6,850 | 4,897 | 2,624 | 2,273 | 407 | 3 |
module Test.Atomic where
import HDevs.Atomic
import HDevs.Models
import Test.Tasty
import Test.Tasty.HUnit
gain :: Model Double Double
gain = static (4*)
gain' :: Model Double Double
gain' = deltaExt gain 2.3 3
foreverWait :: Assertion
foreverWait = ta gain @?= forever
noWaitOutput :: Assertion
noWaitOutput = lam... | sglumac/HDevs | test/Test/Atomic.hs | bsd-3-clause | 1,821 | 0 | 11 | 370 | 455 | 235 | 220 | 40 | 2 |
{-# LANGUAGE FlexibleContexts #-}
module Main where
import System.Process
import System.Directory
import System.Exit
import Control.Monad
import Options.Applicative
import Data.Monoid
import System.Timeout
import System.FilePath
import Control.Exception
import Data.List
import Data.List.Split
import Data.Time.Clock
im... | nazrhom/vcs-clojure | app/Tester.hs | bsd-3-clause | 7,584 | 0 | 15 | 1,682 | 2,506 | 1,245 | 1,261 | 210 | 3 |
-- This module contains a 1:1 translation of registry.rnc with an (un-)parser.
-- No simplifications are done here.
module Registry (
parseRegistry, unparseRegistry,
Registry(..),
RegistryElement(..),
VendorIds(..),
VendorId(..),
Tags(..),
Tag(..),
Types(..),
Type(..),
TypeFragment(..),
Member(..)... | svenpanne/Vulkan | RegistryProcessor/src/Registry.hs | bsd-3-clause | 25,667 | 0 | 17 | 5,829 | 7,425 | 4,117 | 3,308 | 637 | 8 |
module Validations
( module Validations.Types
, module Validations.Internal
, module Validations.Adapters
, module Validations.Validator
, module Validations.Validation
) where
import Validations.Types
import Validations.Internal
import Validations.Adapters
import Validations.Validator
import Validations.V... | mavenraven/validations | src/Validations.hs | bsd-3-clause | 330 | 0 | 5 | 42 | 61 | 39 | 22 | 11 | 0 |
module Sexy.Classes.DesnocMay (DesnocMay(..)) where
import Sexy.Data (Maybe)
class DesnocMay l where
desnocMay :: l a -> Maybe (a, l a)
| DanBurton/sexy | src/Sexy/Classes/DesnocMay.hs | bsd-3-clause | 141 | 0 | 10 | 25 | 59 | 33 | 26 | 4 | 0 |
import Paths_sample
main = do
fp <- getDataFileName "name.txt"
name <- readFile fp
putStrLn $ "Hello, " ++ init name ++ "!"
| YoshikuniJujo/forest | examples/cabal/test-suite/hello.hs | bsd-3-clause | 128 | 0 | 9 | 26 | 47 | 21 | 26 | 5 | 1 |
module Main (main) where
import Test.Tasty
import Test.Tasty.Hspec
import Test.Tasty.Ingredients.Basic
import Test.Tasty.Runners.AntXML
main :: IO ()
main = do
theSpecs <- testSpec "Specs" specs
defaultMainWithIngredients (antXMLRunner:defaultIngredients) theSpecs
specs :: Spec
specs = do
describe "A test" $ d... | cdodev/scintilla | test/Spec.hs | bsd-3-clause | 415 | 0 | 12 | 71 | 140 | 77 | 63 | 14 | 1 |
module Instructions where
data Instruction
= InstrJump Int --jumps give the number of the node where execution should resume
| InstrConditionalJump Int --jump if false
| InstrFunctionDecl String [String] Int --number of instructions in the function block
| InstrClassDecl String [String]
| InstrRetu... | fegies/pseudocodeCompiler | src/Instructions.hs | bsd-3-clause | 1,216 | 0 | 7 | 298 | 163 | 105 | 58 | 37 | 0 |
module Board
( Board ()
, isValidBoard
, board
, unBoard
, tileAt
, updateTileAt
, tilesAt
, updateTilesAt
, findVoltorbTiles
, findOptionalTiles
, findRequiredTiles
, cluesFor
) where
import Data.Array (Array, array, bounds, (!), (//))
import Data.Char (intToDigit)
import Axis (axes)
import... | jameshales/voltorb-flip | src/Board.hs | bsd-3-clause | 2,420 | 0 | 12 | 480 | 677 | 377 | 300 | -1 | -1 |
-----------------------------------------------------------------------------
--
-- Old-style Cmm utilities.
--
-- (c) The University of Glasgow 2004-2006
--
-----------------------------------------------------------------------------
module OldCmmUtils(
CmmStmts, noStmts, oneStmt, mkStmts, plusStmts, stmtLis... | nomeata/ghc | compiler/cmm/OldCmmUtils.hs | bsd-3-clause | 2,788 | 0 | 11 | 627 | 682 | 382 | 300 | 50 | 1 |
-- |
-- Module : Network.Machine.Protocol.Torrent
-- Copyright : Lodvær 2015
-- License : BSD3
--
-- Maintainer : Lodvær <lodvaer@gmail.com>
-- Stability : provisional
-- Portability : unknown
--
-- Torrent machines.
module Network.Machine.Protocol.Torrent where
-- TODO
| lodvaer/machines-network | src/Network/Machine/Protocol/Torrent.hs | bsd-3-clause | 294 | 0 | 3 | 59 | 19 | 17 | 2 | 1 | 0 |
{-# LINE 1 "GHC.ConsoleHandler.hs" #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.ConsoleHandler
-- Copyright : (c) The Univers... | phischu/fragnix | builtins/base/GHC.ConsoleHandler.hs | bsd-3-clause | 771 | 0 | 4 | 158 | 34 | 29 | 5 | 5 | 0 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds, PolyKinds, KindSignatures #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
module TypeLevel where
type family Map (f :: k1 -> k2) (l :: [k1]) :: [k2] where
Map f '[] = '[]
Map f (e ': l) = (f e) ': (Map f l)
type family FoldR (f :: a -... | vladfi1/hs-misc | lib/Misc/TypeLevel.hs | mit | 1,563 | 0 | 8 | 391 | 730 | 420 | 310 | 34 | 0 |
{-# LANGUAGE GADTs, DataKinds, TypeFamilies #-}
module Control.OperationalTransformation.List
( N (..)
, Vector (..)
, Operation (..)
, apply
, compose
, TransformedPair (..)
, transform
) where
data N = Z | S N deriving (Eq, Show)
data Vector :: * -> N -> * where
EmptyV :: Vector a Z
ConsV :: a... | Operational-Transformation/ot.hs | src/Control/OperationalTransformation/List.hs | mit | 2,592 | 0 | 10 | 765 | 1,137 | 562 | 575 | 47 | 1 |
-- File: Main.hs
-- Author: Adam Juraszek
-- Purpose: Executable read-eval-loop program useful for testing.
-- Source: https://github.com/juriad/Cardguess
{-# OPTIONS_GHC -fno-warn-orphans #-}
{- | The Main module which is used for testing and benchmarking the performance.
When runs a read-eval-loop reacting to s... | juriad/Cardguess | src/Main.hs | mit | 5,995 | 0 | 25 | 1,567 | 1,279 | 671 | 608 | 100 | 8 |
{-# OPTIONS_JHC -fffi #-}
module System.Directory (
Permissions( Permissions, readable, writable, executable, searchable ),
createDirectory, removeDirectory, removeFile,
renameDirectory, renameFile, getDirectoryContents,
getCurrentDirectory, setCurrentDirectory,
doesFileExist, doesDirectoryExist,
... | dec9ue/jhc_copygc | lib/haskell-extras/System/Directory.hs | gpl-2.0 | 2,445 | 0 | 16 | 413 | 707 | 369 | 338 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Documentation.Haddock.Doc (docParagraph) where
import Data.Monoid
import Documentation.Haddock.Types
import Data.Char (isSpace)
-- We put it here so that we can avoid a circular import
-- anything relevant imports this module anyway
instance Monoid (DocH mod id) where
me... | jgm/haddock | haddock-library/src/Documentation/Haddock/Doc.hs | bsd-2-clause | 2,260 | 0 | 11 | 389 | 723 | 365 | 358 | 40 | 1 |
module Tandoori.Typing.Show(printCtxt, showName) where
import Tandoori.GHC.Internals
import Tandoori
import Tandoori.Typing
import Tandoori.Typing.Pretty
import Tandoori.Typing.Error
import Tandoori.Typing.Ctxt
import Tandoori.Typing.MonoEnv
import Control.Applicative ((<$>))
import qualified Data.Map as Map
impo... | bitemyapp/tandoori | src/Tandoori/Typing/Show.hs | bsd-3-clause | 8,003 | 2 | 16 | 2,402 | 2,750 | 1,390 | 1,360 | 130 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- | An abstraction for re-running actions if values or files have changed.
--
-- This is not a full-blown make-style incremental build system, it's a bit
-- more ad-hoc than that, but it's easier to integrate with existing code.
--
-- It's a convenient ... | tolysz/prepare-ghcjs | spec-lts8/cabal/cabal-install/Distribution/Client/RebuildMonad.hs | bsd-3-clause | 5,128 | 0 | 17 | 1,141 | 827 | 461 | 366 | 81 | 5 |
#if defined(mingw32_HOST_OS) || defined(__MINGW32__)
{-# LANGUAGE ForeignFunctionInterface #-}
#endif
module Hint.CompatPlatform (
getPID
) where
import Control.Applicative
import Prelude
#if defined(mingw32_HOST_OS) || defined(__MINGW32__)
import Data.Word
#else
import System.Posix.Process
#endif
getPID :: IO I... | int-e/hint | src/Hint/CompatPlatform.hs | bsd-3-clause | 795 | 0 | 6 | 106 | 72 | 47 | 25 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Conduit
import qualified Data.Conduit.List as CL
import Network.HTTP.Conduit
import Text.HTML.TagStream
import Control.Monad.IO.Class (liftIO)
import qualified Data.ByteString.Char8 as S8
import Data.Time
import System.Locale
import qualified Data.Text as T
import Data.Tex... | mlitchard/lambdaweb.com-content | blog/getposts.hs | bsd-2-clause | 4,271 | 0 | 19 | 1,278 | 1,419 | 708 | 711 | 109 | 10 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE RankNTypes #-}
------------------------------------------------------------------------------
module Data.HeterogeneousEnvironment
( KeyGen
, HeterogeneousEnvironment
, Key
, newKeyGen
, empty
, makeKey
, lookup
, insert
, delete
, adjust
, getKeyId
... | sopvop/heist | src/Data/HeterogeneousEnvironment.hs | bsd-3-clause | 2,887 | 0 | 12 | 581 | 559 | 299 | 260 | 49 | 2 |
{-# LANGUAGE ConstraintKinds, TemplateHaskell, PolyKinds, TypeFamilies #-}
module T7021a where
import GHC.Prim
import Language.Haskell.TH
type IOable a = (Show a, Read a)
type family ALittleSilly :: Constraint
data Proxy a = Proxy
foo :: IOable a => a
foo = undefined
baz :: a b => Proxy a -> b
baz = undefined
ba... | tibbe/ghc | testsuite/tests/th/T7021a.hs | bsd-3-clause | 630 | 0 | 8 | 147 | 190 | 98 | 92 | -1 | -1 |
{-# LANGUAGE NoMonomorphismRestriction, OverloadedStrings #-}
module TimetableImageCreator
(renderTable) where
import Diagrams.Prelude
import Diagrams.Backend.SVG.CmdLine
import Diagrams.Backend.SVG
import Data.List (intersperse)
import Data.List.Utils (replace)
import Data.List.Split (splitOn)
import Lucid (rend... | tamaralipowski/courseography | hs/TimetableImageCreator.hs | gpl-3.0 | 2,994 | 46 | 12 | 611 | 1,028 | 538 | 490 | 78 | 2 |
-- GSoC 2015 - Haskell bindings for OpenCog.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DataKinds #-}
-- | Simple example on executing code in multiple threads.
-- Note, before compiling this code you need to install the package: 'random'.
-- Executing: stack install random
import OpenCog.AtomSpace (AtomSpace,inse... | ceefour/atomspace | examples/haskell/example_multithreading.hs | agpl-3.0 | 1,949 | 0 | 12 | 559 | 618 | 302 | 316 | 53 | 3 |
{-| Module to access the information provided by the Xen hypervisor.
-}
{-
Copyright (C) 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain ... | apyrgio/ganeti | src/Ganeti/Hypervisor/Xen.hs | bsd-2-clause | 4,141 | 0 | 15 | 808 | 738 | 390 | 348 | 57 | 4 |
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module T12646 where
import Language.Haskell.TH
import System.IO
type family F (a :: k) :: * where
F (a :: * -> *) = Int
F (a :: k) = Char
$(do info <- reify ''F
runIO $ putStrLn $ pprint info
runIO $ hFlu... | ezyang/ghc | testsuite/tests/th/T12646.hs | bsd-3-clause | 346 | 0 | 11 | 90 | 117 | 63 | 54 | 13 | 0 |
module Q where
import Map
| themoritz/cabal | cabal-testsuite/PackageTests/Backpack/Reexport1/q/Q.hs | bsd-3-clause | 26 | 0 | 3 | 5 | 7 | 5 | 2 | 2 | 0 |
{-# OPTIONS_GHC -fwarn-incomplete-patterns -fwarn-overlapping-patterns #-}
{-# LANGUAGE GADTs #-}
module PMC004 where
data F a where
F1 :: F Int
F2 :: F Bool
data G a where
G1 :: G Int
G2 :: G Char
h :: F a -> G a -> ()
h F1 G1 = ()
h _ G1 = ()
| sgillespie/ghc | testsuite/tests/pmcheck/should_compile/pmc004.hs | bsd-3-clause | 258 | 0 | 7 | 68 | 93 | 51 | 42 | 12 | 1 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Marshal
-- Copyright : (c) The FFI task force 2003
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : ffi@haskell... | tolysz/prepare-ghcjs | spec-lts8/base/Foreign/Marshal.hs | bsd-3-clause | 1,042 | 0 | 5 | 198 | 90 | 67 | 23 | 14 | 0 |
{-# LANGUAGE OverloadedStrings, DeriveGeneric, DataKinds #-}
module GTFS.Protobuf where
import Data.Int
import Data.ProtocolBuffers
import Data.Text (Text)
import GHC.Generics (Generic)
import GHC.TypeLits
data FeedMessage = FeedMessage {
feedHeader :: Required 1 (Message FeedHeader)
, feedEntity :: Repeated 2 (... | danchoi/gtfs-realtime | GTFS/Protobuf.hs | mit | 6,642 | 0 | 11 | 1,773 | 1,756 | 948 | 808 | 151 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Web.Slack.Config (SlackConfig(..), slackApiToken) where
import Control.Lens.TH
-- | Configuration options needed to connect to the Slack API
data SlackConfig = SlackConfig
{ _slackApiToken :: String -- ^ API Token for Bot
} deriving (Show)
mak... | madjar/slack-api | src/Web/Slack/Config.hs | mit | 342 | 0 | 8 | 78 | 58 | 36 | 22 | 7 | 0 |
module CW4 where
data Tree a = Tree { valkey :: a, leftTree :: Tree a, rightTree :: Tree a } | Empty
deriving (Show)
infixr 9 &
(&) f x = x f
type Folder a b = a -> b -> b
insert :: Ord a => a -> Tree a -> Tree a
insert elem Empty = Tree { valkey = elem, leftTree = Empty, rightTree = Empty }
insert elem Tree {... | GrandArchTemplar/FunctionalProgramming | src/CW4.hs | mit | 1,457 | 0 | 9 | 348 | 595 | 319 | 276 | 28 | 1 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.HTMLLIElement
(setType, getType, setValue, getValue, HTMLLIElement(..),
gTypeHTMLLIElement)
where
... | ghcjs/jsaddle-dom | src/JSDOM/Generated/HTMLLIElement.hs | mit | 2,074 | 0 | 12 | 265 | 541 | 326 | 215 | 30 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Mezzo.Compose.Intervals
-- Description : Interval literals
-- Copyright : (c) Dima Szamozvancev
-- License : MIT
--
-- Maintainer : ds709@cam.ac.uk
-- Stability : experimental
-- Portability : portable
-... | DimaSamoz/mezzo | src/Mezzo/Compose/Intervals.hs | mit | 2,891 | 0 | 13 | 581 | 991 | 530 | 461 | 97 | 1 |
{-# LANGUAGE ViewPatterns #-}
module Unison.Codebase.SqliteCodebase.Conversions where
import Control.Monad (foldM)
import Data.Bifunctor (Bifunctor (bimap))
import Data.Bitraversable (Bitraversable (bitraverse))
import qualified Data.ByteString.Short as SBS
import Data.Either (fromRight)
import Data.Foldable (Foldabl... | unisonweb/platform | parser-typechecker/src/Unison/Codebase/SqliteCodebase/Conversions.hs | mit | 29,201 | 151 | 21 | 6,189 | 10,014 | 5,299 | 4,715 | -1 | -1 |
{-
see Chapter 16 of the Haskell 2010 Language Report
-}
module Data.Char where
data Char
| evilcandybag/JSHC | hslib/Data/Char.hs | mit | 93 | 0 | 3 | 18 | 10 | 7 | 3 | -1 | -1 |
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
-- | This module holds the 'Service' type class.
module Database.Hasqueue.Core.Service ( Service(..) ) where
import Pipes
-- | A 'Service' is a composable abstraction that can be started, stopped,
-- and converted into an 'Pipe.'
class Ser... | nahiluhmot/hasqueue | src/Database/Hasqueue/Core/Service.hs | mit | 553 | 0 | 9 | 119 | 90 | 54 | 36 | 8 | 0 |
import Data.List
data BinTree a = Empty
| Node a (BinTree a) (BinTree a)
deriving (Eq, Ord)
-- declare BinTree a to be an instance of Show
instance (Show a) => Show (BinTree a) where
-- will start by a '<' before the root
... | duncanfinney/haskell-play | 05-trees.hs | mit | 2,514 | 19 | 11 | 1,323 | 554 | 292 | 262 | -1 | -1 |
module FVL.Parser
( ParseError
, parseString
, parseFile
) where
import Text.Parsec hiding (Empty)
import Text.Parsec.String
import Text.Parsec.Expr
import Control.Monad
import Control.Applicative ((<$>), (<$), (<*>), (<*), (*>))
import FVL.Algebra
import FVL.EFAST
import FVL.Lexer
type ExprParser = Parser (Fix Expr... | burz/Feval | FVL/Parser.hs | mit | 3,024 | 0 | 13 | 944 | 1,115 | 575 | 540 | 92 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
module Ch_HessConv_Opts where
import System.Console.CmdArgs
data Ch_HessConv_Opts = Ch_HessConv_Opts
{ input :: FilePath
, output :: FilePath
, addInput :: FilePath
, readFormat :: String
, writeFormat :: String
}
deriving (Show,Data,Typeable)
ch_hessConv_Opts = Ch_He... | sheepforce/Haskell-Tools | ch_hessconv/Ch_HessConv_Opts.hs | gpl-3.0 | 762 | 0 | 9 | 139 | 166 | 93 | 73 | 17 | 1 |
module Language.Objection.TypeCheck
(typeCheck)
where
import qualified Data.Map as M
import Language.Objection.SyntaxTree
data TypeCheckResult = TypeCheckSuccess
| TypeCheckFailure String
deriving (Read, Show)
typeCheck :: Module -> TypeCheckResult
typeCheck (Module... | jhance/objection | Language/Objection/TypeCheck.hs | gpl-3.0 | 723 | 0 | 10 | 241 | 136 | 78 | 58 | 19 | 1 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GADT... | tlaitinen/receipts | backend/Handler/DB/RouteProcessperiods.hs | gpl-3.0 | 8,787 | 0 | 35 | 2,671 | 2,457 | 1,313 | 1,144 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/CreateApp.hs | mpl-2.0 | 8,171 | 0 | 10 | 1,948 | 1,255 | 750 | 505 | 124 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/Projects/Undelete.hs | mpl-2.0 | 6,194 | 0 | 19 | 1,519 | 942 | 549 | 393 | 132 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.TagManager.Types
-- Copyright : (c) 2015-2016 Brendan ... | rueshyna/gogol | gogol-tagmanager/gen/Network/Google/TagManager/Types.hs | mpl-2.0 | 8,731 | 0 | 7 | 2,146 | 1,025 | 695 | 330 | 275 | 1 |
module Widgets.Navbar where
import Import
import Model.Currency
import Model.User
navbar :: Widget
navbar = do
maybe_user <- handlerToWidget maybeAuth
alreadyExpired
(money_info, num_unread_notifs) <- case maybe_user of
Nothing -> return (Nothing, 0)
Just (Entity user_id user) -> do
... | Happy0/snowdrift | Widgets/Navbar.hs | agpl-3.0 | 1,226 | 0 | 28 | 381 | 354 | 180 | 174 | -1 | -1 |
{-# LANGUAGE FlexibleContexts, NoMonomorphismRestriction #-}
module Jaek.UI.Render.Overlays (
compositeSelection
)
where
import Jaek.Base
import Jaek.UI.FrpHandlers
import Diagrams.Prelude
import Data.Colour (Colour, withOpacity)
compositeSelection ::
(Monoid m, Semigroup m, Renderable (Path R2) b, Backend b R... | JohnLato/jaek | src/Jaek/UI/Render/Overlays.hs | lgpl-3.0 | 1,172 | 0 | 14 | 253 | 433 | 229 | 204 | 34 | 1 |
module Main (main) where
import System.Environment(getArgs)
import Hangman
main = do
args <- getArgs
wordList <- readWordFile $ head args
let targetWord = "********"
putStrLn targetWord
mainLoop targetWord wordList
where
mainLoop:: String -> [String] -> IO ()
mainLo... | yamanobori-old/CheatHangman | Main.hs | unlicense | 720 | 0 | 12 | 240 | 192 | 93 | 99 | 18 | 2 |
{-| Generic data loader.
This module holds the common code for parsing the input data after it
has been loaded from external sources.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided t... | ganeti/ganeti | src/Ganeti/HTools/Loader.hs | bsd-2-clause | 18,630 | 0 | 20 | 4,759 | 3,922 | 2,093 | 1,829 | 294 | 2 |
{-# LANGUAGE QuasiQuotes, TemplateHaskell, MultiParamTypeClasses,
OverloadedStrings, TypeFamilies #-}
module Forms where
import Control.Applicative ((<$>), (<*>), pure)
import Prelude
import Yesod
import Yesod.Form ()
import Foundation (App)
--import Yesod.Form.Jquery
--import Data.Text
--import Data.String
impor... | dreamcodez/moddit-yesod | Forms.hs | bsd-2-clause | 1,228 | 0 | 13 | 301 | 180 | 99 | 81 | 21 | 1 |
import "hint" HLint.HLint
ignore "Eta reduce"
ignore "Reduce duplication"
ignore "Avoid lambda"
-- in between, should fix eventually,
--but make relating to original coq development more subtle
-- but also doesnt really matter
ignore "Use camelCase"
ignore "Redundant if"
ignore "Use fromMaybe"
ignore "Use list compreh... | cartazio/haver-raft | HLint.hs | bsd-2-clause | 401 | 0 | 5 | 59 | 59 | 24 | 35 | -1 | -1 |
import Control.Monad (forM_, when)
import qualified Data.Vector.Unboxed.Mutable as MV
import qualified Data.Vector.Unboxed as V
import Data.Vector.Unboxed ((!))
modulo :: Int
modulo = 20092010
sumMod :: Int -> Int -> Int
sumMod a b = (a + b) `mod` modulo
mulMat :: Int -> V.Vector Int -> V.Vector Int -> V.Vector Int... | foreverbell/project-euler-solutions | src/258.hs | bsd-3-clause | 1,535 | 0 | 26 | 536 | 778 | 410 | 368 | 39 | 3 |
{-# LANGUAGE MagicHash, NoImplicitPrelude, TypeFamilies, UnboxedTuples,
MultiParamTypeClasses, RoleAnnotations, CPP, TypeOperators,
PolyKinds #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Types
-- Copyright : (c) The University ... | sdiehl/ghc | libraries/ghc-prim/GHC/Types.hs | bsd-3-clause | 19,980 | 2 | 9 | 5,937 | 858 | 609 | 249 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE FlexibleInstances, FlexibleContexts #-}
-- | Futhark prettyprinter. This module defines 'Pretty' instances
-- for the AST defined in "Language.Futhark.Syntax" and re-exports
-- "Futhark.Util.Pretty" for convenience.
module Language.Futhark.Pretty
( module Futhark.Ut... | mrakgr/futhark | src/Language/Futhark/Pretty.hs | bsd-3-clause | 15,308 | 0 | 17 | 4,412 | 6,708 | 3,261 | 3,447 | 359 | 24 |
{-# LANGUAGE OverloadedStrings #-}
-- | View library.
module HL.View
(module HL.View
,module V)
where
import HL.Foundation as V (Route(..), App, Human(..), Slug(..))
import HL.Static as V
import HL.Types as C
import Control.Monad as V
import Data.Text as V (Text)
import Lucid as V
import Lucid.Bootstrap as V
... | haskell-lang/haskell-lang | src/HL/View.hs | bsd-3-clause | 454 | 0 | 9 | 89 | 164 | 105 | 59 | 15 | 1 |
------------------------------------------------------------------------------
-- | Chart Base
------------------------------------------------------------------------------
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# OPTIONS_GHC -fno-warn... | Soostone/hs-d3 | src/Graphics/HSD3/Chart/Base.hs | bsd-3-clause | 869 | 0 | 8 | 106 | 119 | 71 | 48 | 13 | 0 |
module BEST where
import Data.List
import Data
data Expression
= VariableExpression VarID
| LiteralExpression Literal
| ApplicationExpression Expression Expression
-- Case e of
| CaseExpression Expression [Case]
-- LambdaExpression x (VarExp x) = \x -> x
| LambdaExpression VarID Expression
-- asdf ::... | Lazersmoke/rhc | src/Old/BEST.hs | bsd-3-clause | 4,249 | 0 | 17 | 915 | 1,315 | 669 | 646 | 88 | 1 |
{-# LANGUAGE RankNTypes, TypeFamilies #-}
{- |
This module provides functions creating Reform using Hamlet markup.
This module assumes that you wish for text based controls such as 'inputText' and 'textarea' to using 'String' values. If you prefer 'Data.Text.Text' see "Text.Reform.Hamlet.Text".
-}
module Text.Reform.... | Happstack/reform-hamlet | Text/Reform/Hamlet/String.hs | bsd-3-clause | 10,063 | 0 | 11 | 2,328 | 2,095 | 1,142 | 953 | 136 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Control.Concurrent.Actor
( ActorId
, ActorWorld
, Behavior
, create
, createIO
, wait
, send
, receive
, receiveMaybe
, receiveUntil
, getSelf
, liftIO
) where
import Control.Concurrent (forkIO)
import Control.Concurrent.STM
( TQueue, newT... | amutake/simple-actor | src/Control/Concurrent/Actor.hs | bsd-3-clause | 2,040 | 0 | 14 | 478 | 737 | 385 | 352 | 72 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module OpenRTB.Types.Enum.AdPositionSpec where
import Control.Applicative
import Data.Aeson
import Data.Aeson.TH
import Test.Hspec
import Test.QuickCheck
import Test.Instances
import OpenRTB.Types.Enum.AdPosition
data Mock = Mock { ap :: AdPosition ... | ankhers/openRTB-hs | spec/OpenRTB/Types/Enum/AdPositionSpec.hs | bsd-3-clause | 652 | 0 | 18 | 111 | 195 | 106 | 89 | 21 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Network.NTP.ConfigFinder (findConfig) where
import System.Directory (doesFileExist)
#ifdef mingw32_HOST_OS
import Control.Exception (IOException, handle, bracket)
import Control.Monad (when)
import Data.List (find, tails, isPrefixOf)
import Foreign (w... | jystic/ntpmon | src/Network/NTP/ConfigFinder.hs | bsd-3-clause | 3,020 | 0 | 22 | 635 | 669 | 358 | 311 | 12 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE DeriveGeneric #-}
module Gelatin.GL.Renderer (
-- * Renderer
GLRenderer,
Context(..),
-- * Loading textures
... | cies/gelatin | gelatin-gl/src/Gelatin/GL/Renderer.hs | bsd-3-clause | 32,925 | 13 | 26 | 9,905 | 9,386 | 4,666 | 4,720 | 617 | 6 |
-- !!! Testing Trex
module TrexTest where
import Hugs.Trex
eg1 = (a = True, b = "Hello", c = 12::Int)
eg2 = (c = 12::Int, a = True, b = "Hello")
average r = (#x r + #y r) / 2
-- interaction with type synonyms
type AddA r = (a :: Int | r)
type AddB r = (b :: Int | r)
type ARow = AddA EmptyRow
type BRow = AddB EmptyR... | FranklinChen/Hugs | tests/tcheck/trex.hs | bsd-3-clause | 524 | 20 | 11 | 129 | 291 | 168 | 123 | -1 | -1 |
module Aws.S3.Commands
(
module Aws.S3.Commands.DeleteObject
, module Aws.S3.Commands.GetBucket
, module Aws.S3.Commands.GetObject
, module Aws.S3.Commands.GetService
, module Aws.S3.Commands.PutBucket
, module Aws.S3.Commands.PutObject
)
where
import Aws.S3.Commands.DeleteObject
import Aws.S3.Commands.GetBucket
imp... | jgm/aws | Aws/S3/Commands.hs | bsd-3-clause | 450 | 0 | 5 | 37 | 99 | 72 | 27 | 14 | 0 |
{-# LANGUAGE FlexibleContexts, TypeFamilies #-}
{-# OPTIONS -Wall #-}
module FiniteStateMachine.Defn (
IsFSA, atEnd
) where
-- import Basic.Types
import Basic.Memory (SetLike(isElem))
import Basic.Features (HasState(..), HasTransition, HasInput,
HasFinal(..), HasQ(..))
import Control.Lens ((^.))
class (H... | davidzhulijun/TAM | FiniteStateMachine/Defn.hs | bsd-3-clause | 565 | 0 | 12 | 98 | 230 | 129 | 101 | -1 | -1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE StandaloneDeriving #-}
module ImageUtils where
import Codec.Picture
import Control.DeepSeq
import Data.Ord (Down (..))
import ... | mattrrichard/darwin | src/ImageUtils.hs | bsd-3-clause | 1,463 | 0 | 12 | 408 | 348 | 184 | 164 | 31 | 1 |
{-# LANGUAGE CPP, GeneralizedNewtypeDeriving #-}
-- | The main game action monad type implementation. Just as any other
-- component of the library, this implementation can be substituted.
-- This module should not be imported anywhere except in 'Action'
-- to expose the executor to any code using the library.
module G... | beni55/LambdaHack | Game/LambdaHack/SampleImplementation/SampleMonadServer.hs | bsd-3-clause | 4,919 | 0 | 15 | 1,038 | 1,001 | 568 | 433 | -1 | -1 |
{-# LINE 1 "Control.Monad.ST.Lazy.Safe.hs" #-}
{-# LANGUAGE Trustworthy #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.ST.Lazy.Safe
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICEN... | phischu/fragnix | builtins/base/Control.Monad.ST.Lazy.Safe.hs | bsd-3-clause | 1,168 | 0 | 4 | 234 | 64 | 52 | 12 | 9 | 0 |
{- Language/Haskell/TH/Desugar/FV.hs
(c) Ryan Scott 2018
Compute free variables of programs.
-}
{-# LANGUAGE CPP #-}
module Language.Haskell.TH.Desugar.FV
( fvDType
, extractBoundNamesDPat
) where
#if __GLASGOW_HASKELL__ < 710
import Data.Foldable (foldMap)
#endif
#if __GLASGOW_HASKELL__ < 804
import Data.Mon... | goldfirere/th-desugar | Language/Haskell/TH/Desugar/FV.hs | bsd-3-clause | 2,334 | 0 | 9 | 608 | 671 | 350 | 321 | 41 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.