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 : Distribution.Client.Fetch
-- Copyright : (c) David Himmelstrup 2005
-- Duncan Coutts 2011
-- License : BSD-like
--
-- Maintainer : cabal-devel@gmail.com
-- Stability : provisional
-- Port... | jwiegley/ghc-release | libraries/Cabal/cabal-install/Distribution/Client/Fetch.hs | gpl-3.0 | 6,699 | 0 | 16 | 1,801 | 1,108 | 583 | 525 | 121 | 4 |
{-# LANGUAGE RankNTypes, CPP #-}
{-| Provides all lens-related functions.
-}
{-
Copyright (C) 2014 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 ... | leshchevds/ganeti | src/Ganeti/Lens.hs | bsd-2-clause | 4,190 | 0 | 12 | 814 | 782 | 422 | 360 | 46 | 3 |
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE... | saturday06/FrameworkBenchmarks | frameworks/Haskell/yesod/yesod-postgres/src/Main.hs | bsd-3-clause | 6,496 | 0 | 17 | 1,889 | 1,411 | 753 | 658 | -1 | -1 |
module FrontEnd.Tc.Class(
Pred,
ClassHierarchy(),
splitPreds,
generalize,
splitReduce,
topDefaults,
freeMetaVarsPreds,
simplify,
assertEntailment,
assertEquivalant,
Preds
)where
import Control.Monad.Reader
import Data.Monoid
import Util.Std
import qualified Data.Map as M... | hvr/jhc | src/FrontEnd/Tc/Class.hs | mit | 9,270 | 0 | 19 | 2,573 | 3,309 | 1,705 | 1,604 | 219 | 8 |
module SDL.Raw.Platform (
-- * Platform Detection
getPlatform
) where
import Control.Monad.IO.Class
import Foreign.C.String
foreign import ccall "SDL.h SDL_GetPlatform" getPlatform' :: IO CString
getPlatform :: MonadIO m => m CString
getPlatform = liftIO getPlatform'
{-# INLINE getPlatform #-}
| bj4rtmar/sdl2 | src/SDL/Raw/Platform.hs | bsd-3-clause | 302 | 0 | 6 | 45 | 65 | 38 | 27 | 8 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude, MagicHash #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.List
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Ma... | beni55/haste-compiler | libraries/ghc-7.8/base/Data/List.hs | bsd-3-clause | 43,092 | 3 | 16 | 13,863 | 7,156 | 4,167 | 2,989 | 364 | 8 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell, QuasiQuotes, TypeFamilies, MultiParamTypeClasses, ViewPatterns #-}
module YesodCoreTest.Json (specs, Widget) where
import Yesod.Core
import Test.Hspec
import qualified Data.Map as Map
import Network.Wai.Test
import Data.Text (Text)
import Data.ByteString.Lazy (ByteStrin... | pikajude/yesod | yesod-core/test/YesodCoreTest/Json.hs | mit | 1,493 | 0 | 14 | 355 | 405 | 204 | 201 | 40 | 2 |
-- !!! Testing the Int Enum instances.
{-# LANGUAGE CPP #-}
module Main(main) where
import Control.Exception
#if __GLASGOW_HASKELL__ < 705
import Prelude hiding (catch)
#endif
import Data.Int
main = do
putStrLn "Testing Enum Int8:"
testEnumInt8
putStrLn "Testing Enum Int16:"
testEnumInt16
putStrLn "Testing ... | beni55/ghcjs | test/pkg/base/enum02.hs | mit | 8,604 | 0 | 15 | 1,585 | 4,768 | 2,607 | 2,161 | 181 | 1 |
{-# LANGUAGE TypeFamilies, FlexibleContexts, UndecidableInstances #-}
-- This is a copy of typecheck/should_run/T3500b, but it's here for
-- a different reason: at one time, it sent the compiler into a loop.
-- ANd T3500b isn't tested 'fast' mode
module T9565 where
newtype Mu f = Mu (f (Mu f))
type family Id m
type... | urbanslug/ghc | testsuite/tests/simplCore/should_compile/T9565.hs | bsd-3-clause | 551 | 0 | 12 | 115 | 184 | 98 | 86 | 12 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module T4003B where
import {-# SOURCE #-} T4003A (HsExpr)
import Data.Data
data HsLit = HsChar
deriving (Data, Typeable)
data HsOverLit id
= OverLit (HsExpr id)
deriving (Data, Typeable)
data OverLitVal = HsIntegral
deriving (Data, Typeable)
| urbanslug/ghc | testsuite/tests/rename/should_compile/T4003B.hs | bsd-3-clause | 294 | 0 | 8 | 55 | 82 | 48 | 34 | 11 | 0 |
{-# LANGUAGE OverloadedLists #-}
-----------------------------------------------------------------------------
-- |
-- Module : Algebra.Graph.Test.Label
-- Copyright : (c) Andrey Mokhov 2016-2022
-- License : MIT (see the file LICENSE)
-- Maintainer : andrey.mokhov@gmail.com
-- Stability : experimental
--
-- T... | snowleopard/alga | test/Algebra/Graph/Test/Label.hs | mit | 5,510 | 0 | 13 | 1,384 | 2,192 | 1,119 | 1,073 | -1 | -1 |
{-|
Module : ElfParser
Description : ELF Parser
Copyright : (c) Mathieu Suen, 2014
License : MIT
Maintainer : mathk.sue@gmail.com
-}
module ElfParser
(
ELFInfo,
ELFSection(..),
ELFHeader(..),
ELFProgramHeader(..),
ELFSec... | mathk/arm-isa | ElfParser.hs | mit | 28,272 | 0 | 17 | 7,825 | 6,801 | 3,549 | 3,252 | 625 | 29 |
-- Type.hs ---
--
-- Filename: Type.hs
-- Description:
-- Author: Manuel Schneckenreither
-- Maintainer:
-- Created: Mon Oct 6 13:20:53 2014 (+0200)
-- Version:
-- Package-Requires: ()
-- Last-Updated: Mon May 8 08:42:49 2017 (+0200)
-- By: Manuel Schneckenreither
-- Update #: 115
-- URL:
-- Doc URL:
--... | ComputationWithBoundedResources/ara-inference | src/Data/Rewriting/ARA/ByInferenceRules/InfTreeNode/Type.hs | mit | 3,342 | 0 | 13 | 1,049 | 662 | 391 | 271 | 47 | 1 |
{-# LANGUAGE BangPatterns #-}
module Data.Smashy.Number where
import Data.Bits (unsafeShiftL, unsafeShiftR, (.&.), (.|.))
import qualified Data.Vector.Storable as VS
import qualified Data.Vector.Storable.Mutable as VM
import Data.Word (Word8)
import Control.Monad.ST.Strict (runST)... | jahaynes/smashy2 | src/Data/Smashy/Number.hs | mit | 1,017 | 0 | 15 | 289 | 419 | 219 | 200 | 26 | 2 |
module Main where
import LI11718
import SimulateT6
import qualified ${player1} as P1
import qualified ${player2} as P2
import qualified ${player3} as P3
import qualified ${player4} as P4
import System.Environment
import Text.Read
main = do
let guiargs = GUIArgs (${mapa}) (${pista}) (${bot1}) (${bot2}) (${bot3}... | hpacheco/HAAP | examples/plab/oracle/SimulateT6Match.hs | mit | 352 | 14 | 12 | 58 | 109 | 80 | 29 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
--
-- Module : Operation
-- Copyright :
-- License : AllRightsReserved
--
-- Maintainer :
-- Stability :
-- Portability :
--
-- |
--
----------------------------------------------------------... | uvNikita/SyntacticAnalyzer | src/Operation.hs | mit | 1,141 | 0 | 7 | 258 | 313 | 174 | 139 | 36 | 1 |
{-# LANGUAGE MagicHash, UnboxedTuples, CPP, RankNTypes #-}
{-# OPTIONS_GHC -fno-full-laziness #-}
module Data.TrieVector.ArrayPrim (
Array
, MArray
, new
, write
, read
, thaw
, index
, freeze
, unsafeFreeze
, unsafeThaw
, sizeof
, sizeofMut
, copy
, copyMut
... | AndrasKovacs/trie-vector | Data/TrieVector/ArrayPrim.hs | mit | 1,413 | 0 | 10 | 312 | 270 | 169 | 101 | 64 | 1 |
module Prepare.Decompose where
import Data.Text (Text)
import qualified Data.Text as Text
-- decompose using the canonical mapping but without affecting the order
decompose :: Text -> Text
decompose = Text.concatMap decomposeChar
-- generated from ucd
decomposeChar :: Char -> Text
decomposeChar '\x00C0' = "\x0041\x0... | ancientlanguage/haskell-analysis | prepare/src/Prepare/Decompose.hs | mit | 79,162 | 0 | 6 | 8,288 | 16,547 | 8,279 | 8,268 | 2,067 | 1 |
isPrime :: Integer -> Bool
isPrime x = ([] == [y | y <- [2..floor (sqrt $ fromIntegral x)], mod x y == 0])
primeSumPairs :: Integer -> [(Integer, Integer, Integer)]
primeSumPairs n =
map makePairSum $ filter isPrimeSum [(x, y)|x <-[1..n], y <- [1..(x-1)]]
where
isPrimeSum (a,b) = isPrime $ a + b
makePairS... | shouya/thinking-dumps | sicp/chap2/2.40.hs | mit | 343 | 0 | 14 | 74 | 203 | 110 | 93 | 7 | 1 |
module Bot.Component.Combinator (
(+++)
, (>>+)
, combine
) where
import Bot.Component
import Control.Applicative
import Control.Monad.Trans
-- | Combine two generalized process methods into a single process method.
(+++) :: BotMonad b
=> (String -> b ())
-> (String -> b ())
->... | numberten/zhenya_bot | Bot/Component/Combinator.hs | mit | 1,212 | 0 | 14 | 310 | 354 | 187 | 167 | 26 | 1 |
module Main where
import qualified Tests.Store.LevelDBExternal as LevelDB
import Test.Framework (defaultMain, testGroup)
main :: IO ()
main = defaultMain tests
where
tests = [ testGroup "Tests.Store.LevelDB" LevelDB.externalTests ]
| danstiner/clod | test/ExternalTestSuite.hs | mit | 250 | 0 | 9 | 46 | 61 | 36 | 25 | 6 | 1 |
import Data.Char
ucfirst :: String -> String
ucfirst "" = ""
ucfirst (c:cs) = toUpper c : cs
toUpperCase :: String -> String
toUpperCase = map toUpper
uchead :: String -> Char
uchead = head . (map toUpper) | candu/haskellbook | ch9/dataChar.hs | mit | 208 | 0 | 7 | 40 | 86 | 45 | 41 | 8 | 1 |
module Parser where
import Text.ParserCombinators.Parsec ( Parser, string, many, char, alphaNum
, letter, (<|>), digit, space, many1
, oneOf, skipMany1, parse, sepBy, try
, endBy)
import Text.ParserCombinato... | ayberkt/Eva | src/Parser.hs | mit | 2,398 | 0 | 12 | 704 | 781 | 396 | 385 | 68 | 3 |
-- @Prefix.hs
{-# LANGUAGE TemplateHaskell #-}
module Prefix where
import Data.Text.Lazy (Text)
import Database.Persist.TH
data Prefix = Prefix {pre :: Text, count :: Int}
deriving (Show, Read, Eq)
derivePersistField "Prefix" | cirquit/mchain-haskell | src/mc-db/Prefix.hs | mit | 229 | 0 | 8 | 33 | 65 | 39 | 26 | 7 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworkscm-server.html
module Stratosphere.Resources.OpsWorksCMServer where
import Stratosphere.ResourceImport... | frontrowed/stratosphere | library-gen/Stratosphere/Resources/OpsWorksCMServer.hs | mit | 9,833 | 0 | 15 | 1,044 | 1,644 | 927 | 717 | 108 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
-- | Controlling execution
module Control.Biegunka.Execute.Settings
( Executor
, runExecutor
, forkExecutor
-- * Executor environment
, Execution
, HasExecution(..)
-- * Initialize 'Execution'
, withExecution
-- * Auxiliary types
, Work(..)
) where
imp... | biegunka/biegunka | src/Control/Biegunka/Execute/Settings.hs | mit | 3,855 | 0 | 19 | 1,023 | 1,091 | 611 | 480 | 90 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-identitypool-cognitostreams.html
module Stratosphere.ResourceProperties.CognitoIdentityPoolCognitoStr... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/CognitoIdentityPoolCognitoStreams.hs | mit | 2,819 | 0 | 12 | 253 | 355 | 202 | 153 | 32 | 1 |
-----------------------------------------------------------------------------
--
-- Module : WAM.Compile
-- Copyright :
-- License : GPL Nothing
--
-- Maintainer : Angelos Charalambidis <a.charalambidis@di.uoa.gr>
-- Stability : Experimental
-- Portability :
--
-- |
--
--------------------------------... | acharal/wam | src/WAM/Compile.hs | gpl-2.0 | 11,042 | 3 | 26 | 4,035 | 3,198 | 1,653 | 1,545 | 234 | 11 |
import Data.Data
import Language.C.Pretty
import Language.C.Syntax.AST
import Language.C.Syntax.Constants
import Language.C.Data.Node
import Language.C.Parser (parseC)
import Data.Generics
import Data.ByteString.Char8 (pack)
import Language.C.Data.Position (position)
import Control.Monad.State
count :: CStat -> Int
co... | copton/ocram | try/syb/SybTest.hs | gpl-2.0 | 1,496 | 0 | 19 | 302 | 554 | 282 | 272 | 43 | 2 |
module Domains where
import Domains.Arithmetic
import Domains.PropLogic
import Domains.English
| arnizamani/aiw | Domains.hs | gpl-2.0 | 96 | 0 | 4 | 10 | 19 | 12 | 7 | 4 | 0 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Maybe
import Data.Attoparsec.ByteString.Char8
import qualified Data.ByteString.Char8 as BS
import Control.Applicative
allDigits = skipWhile notSigned *> many (signed decimal <* skipWhile notSigned)
where
notSigned c = (c < '0' || c > '9') && c /= '-' && c /= '+'... | lorem-ipsum/adventofcode2015 | day12.hs | gpl-2.0 | 402 | 0 | 12 | 74 | 127 | 67 | 60 | 10 | 1 |
import qualified Data.List as L
main = do
putStrLn.(!! 999999) . L.sort . L.permutations $ "0123456789"
| NaevaTheCat/Project-Euler-Haskell | P24.hs | gpl-2.0 | 109 | 1 | 11 | 21 | 41 | 23 | 18 | 3 | 1 |
module Robatira.Model.Cards
where
import Data.Char (chr)
data Suit = Spades | Hearts | Diamonds | Clubs deriving (Show, Eq, Enum)
data Rank = Ace | Two | Three | Four | Five | Six | Seven | Eight | Nine |
Ten | Jack | Queen | King deriving (Show, Eq, Enum)
data Joker = RedJoker | BlackJoker | Whit... | pbrandwijk/robatira | src/Robatira/Model/Cards.hs | gpl-3.0 | 1,543 | 0 | 9 | 295 | 484 | 268 | 216 | 29 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module Gis.Saga.Doc (renderTable, renderDot, renderNodes)
where
import qualified Data.Map as M
import Gis.Saga.Types
import Data.List (intercalate)
import Text.Printf (printf)
class TableView a where renderTable :: a -> String
instance TableView SagaIoC... | michelk/bindings-saga-cmd.hs | src/Gis/Saga/Doc.hs | gpl-3.0 | 2,825 | 0 | 11 | 611 | 927 | 509 | 418 | 63 | 1 |
module Paths_Akkerman_func (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
import Data.Version (Version(..))
import System.Environment (getEnv)
import Prelude
catchIO :: IO a -> (Exception.IOException -> I... | nastya13/Akkerman-func | dist/build/autogen/Paths_Akkerman_func.hs | gpl-3.0 | 1,557 | 0 | 10 | 182 | 371 | 213 | 158 | 28 | 1 |
module Slidecoding
(
-- Browser
browse
-- CabalHelper
, loadExposedModules
-- GHCI
, run
, ioStream
-- Indexer
, indexIO
-- Presentation
, load
-- ReplSession
, evalInSession
, startSession
, endSession
-- SlidesWriter
, processSlides
... | ptitfred/slidecoding | src/Slidecoding.hs | gpl-3.0 | 593 | 0 | 4 | 152 | 87 | 58 | 29 | 21 | 0 |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings, RecordWildCards #-}
module Lamdu.GUI.ParamEdit
( Info(..), make
, eventMapAddFirstParam
) where
import Control.Lens.Operators
import Control.Lens.Tuple
import qualified Data.Map as Map
import Data.Store.Transaction (Transactio... | da-x/lamdu | Lamdu/GUI/ParamEdit.hs | gpl-3.0 | 5,497 | 0 | 18 | 1,236 | 1,356 | 718 | 638 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
module WebParsing.ReqParser where
import qualified Text.Parsec as Parsec
import Text.Parsec.String (Parser)
import Text.Parsec ((<|>))
import Database.Requirement
-- define separators
fromSeparator :: Parser ()
fromSeparator = Parsec.spaces >> (Parsec.choice $ map (Parsec.try . Parse... | christinem/courseography | app/WebParsing/ReqParser.hs | gpl-3.0 | 6,504 | 0 | 21 | 1,561 | 1,738 | 862 | 876 | 159 | 3 |
{-# OPTIONS -O2 -Wall -Werror -Wwarn -XRankNTypes #-}
{- |
Module : Network.GoTextProtocol2.Types
Copyright : Copyright (C) 2010 Fabian Linzberger
License : GNU GPL, version 3 or above
Maintainer : Fabian Linzberger <e@lefant.net>
Stability : experimental
Portability: probably
Shared types... | lefant/kurt | src/Network/GoTextProtocol2/Types.hs | gpl-3.0 | 1,048 | 0 | 9 | 383 | 146 | 89 | 57 | 17 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-toolresults/gen/Network/Google/Resource/ToolResults/Projects/Histories/Executions/Clusters/List.hs | mpl-2.0 | 5,284 | 0 | 17 | 1,170 | 478 | 290 | 188 | 86 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.CloudSearch.Types.Sum
-- Copyright : (c) 2015-2016 Bre... | brendanhay/gogol | gogol-cloudsearch/gen/Network/Google/CloudSearch/Types/Sum.hs | mpl-2.0 | 45,982 | 0 | 11 | 10,696 | 6,395 | 3,418 | 2,977 | 776 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/Update.hs | mpl-2.0 | 5,753 | 0 | 19 | 1,312 | 622 | 368 | 254 | 105 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-youtube/gen/Network/Google/Resource/YouTube/Videos/GetRating.hs | mpl-2.0 | 5,855 | 0 | 19 | 1,385 | 819 | 480 | 339 | 118 | 1 |
module Console
where
import Control.Monad.State
import Control.Concurrent.STM
import Char
import Control.Exception
import Prelude hiding (catch)
import Libaddutil.STMServer
import Freekick.Libmatch.MatchStatus
data ConsoleStatus = ConsoleStatus { status :: Bool }
startConsoleStatus :: ConsoleStatus
startConsoleSta... | anttisalonen/freekick | haskell/freekick_server/physics/src/Console.hs | agpl-3.0 | 1,646 | 0 | 26 | 535 | 537 | 272 | 265 | 34 | 7 |
{-# OPTIONS -XFlexibleInstances #-}
{-# OPTIONS -XMultiParamTypeClasses #-}
--------------------------------------------------------------------------------
-- $Id: LookupMapTest.hs,v 1.1 2004/01/13 12:31:24 graham Exp $
--
-- Copyright (c) 2003, G. KLYNE. All rights reserved.
-- See end of this file for li... | amccausl/Swish | Swish/HaskellUtils/LookupMapTest.hs | lgpl-2.1 | 24,343 | 0 | 12 | 4,502 | 5,804 | 3,377 | 2,427 | -1 | -1 |
{-# language ViewPatterns, ScopedTypeVariables, PackageImports, EmptyDataDecls,
TypeSynonymInstances, FlexibleInstances,
StandaloneDeriving, DeriveDataTypeable,
DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
module Utils (
(<>),
(<$>),
(<*>),
(<|>),
(*>),
(<*),
pure,
(... | cstrahan/nikki | src/Utils.hs | lgpl-3.0 | 17,720 | 0 | 16 | 4,604 | 7,591 | 4,026 | 3,565 | -1 | -1 |
module Kivuli.Evaluator where
import Language.Haskell.Interpreter
import Kivuli.Types
import Control.Monad.Catch (MonadMask)
evaluate :: (Functor m, MonadIO m, MonadMask m) => Test -> m TestResult
evaluate test = do
let expressionToEvaluate = (head . expressions) test
expected = expectedRe... | karun012/kivuli | src/Kivuli/Evaluator.hs | unlicense | 1,075 | 0 | 16 | 367 | 286 | 142 | 144 | 19 | 6 |
{-# LANGUAGE QuasiQuotes, TypeFamilies, GeneralizedNewtypeDeriving, TemplateHaskell, GADTs #-}
module Model where
import Yesod
import Data.Time
import Data.Text
-- You can define all of your database entities in the entities file.
-- You can find more information on persistent and how to declare entities
-- at:
-- ht... | masaedw/Yiki | Model.hs | bsd-2-clause | 444 | 0 | 8 | 56 | 49 | 28 | 21 | 6 | 0 |
{-# LANGUAGE QuasiQuotes, TypeFamilies, GeneralizedNewtypeDeriving, TemplateHaskell, GADTs, TypeSynonymInstances #-}
module Model where
import Yesod
import Data.Time
import Data.Text (Text)
import Database.Persist.MongoDB
import Language.Haskell.TH.Syntax
import Database.Persist
import Database.Persist.Base
import Da... | periodic/Simple-Yesod-ToDo | Model.hs | bsd-2-clause | 4,688 | 0 | 14 | 1,192 | 1,294 | 676 | 618 | 86 | 0 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE LambdaCase #-}
module PreludeExtra
( module Exports
, module PreludeExtra
) where
import Control.Monad.State as Exports hiding (withState, withStateT)
import Control.Monad.Reader as Exports hiding (local)
import Control.Monad.Trans.Control as Exports hiding (control... | lukexi/rumpus | src/PreludeExtra.hs | bsd-3-clause | 2,554 | 0 | 10 | 438 | 806 | 482 | 324 | 56 | 2 |
-- |Declares data to represent the input command stream
module Commands
where
import Geometry
import Environment
-- |Represents the overall input stream, which looks like this:
--
-- @
-- 5 5
-- 1 2 N
-- LMLMLMLMM
-- 3 3 E
-- MMRMMRMRRM
-- @
data OverallInput = OverallInput {
inputPlateau :: PlateauOrE... | garethrowlands/marsrover | src/Commands.hs | bsd-3-clause | 899 | 0 | 9 | 215 | 141 | 94 | 47 | 14 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
-- © 2002 Peter Thiemann
module WASH.CGI.CGIConfig where
import Control.Exception
import System.Environment
import System.IO
import System.IO.Unsafe
tmpDir, varDir, imageDir, emailTmpDir, frameDir, persistentDir, persistent2Dir, registryDir, keyFile, pbmPath, catProgram, sendmailP... | nh2/WashNGo | WASH/CGI/CGIConfig.hs | bsd-3-clause | 1,052 | 20 | 11 | 150 | 229 | 142 | 87 | 23 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE Flexibl... | sleexyz/haskell-fun | VectorTest.hs | bsd-3-clause | 3,391 | 0 | 12 | 767 | 1,235 | 666 | 569 | 83 | 1 |
{-# LANGUAGE TupleSections, GeneralizedNewtypeDeriving #-}
-- |A graph implementation mapping hashed S to a mapping of
-- hashed P to hashed O, backed by 'Data.HashMap'.
module Data.RDF.Graph.HashMapS (HashMapS) where
import Prelude hiding (pred)
import Control.DeepSeq (NFData)
import Data.RDF.Types
import Data.RDF.... | jutaro/rdf4h | src/Data/RDF/Graph/HashMapS.hs | bsd-3-clause | 7,912 | 0 | 13 | 1,540 | 2,491 | 1,369 | 1,122 | 112 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Pkgs.Pretty where
import Data.List
import Text.PrettyPrint
import Pkgs.Syntax
instance Show Toplevel where
show = pretty
instance Show PkgTerm where
show = render . prettyPkg
instance Show IfaceTerm where
show = render . prettyIface
instance Show Expr where
... | markflorisson/packages | Pkgs/Pretty.hs | bsd-3-clause | 3,283 | 0 | 13 | 743 | 1,252 | 619 | 633 | 77 | 1 |
module Main where
import Test.Framework (defaultMain, testGroup)
------------------------------------------------------------------------------
main :: IO ()
main = defaultMain tests
where
tests = [
]
| snapframework/logging-streams | test/TestSuite.hs | bsd-3-clause | 231 | 0 | 7 | 51 | 45 | 26 | 19 | 5 | 1 |
{-# LANGUAGE EmptyDataDecls, GADTs, FlexibleContexts, FlexibleInstances, UndecidableInstances, TypeSynonymInstances, DeriveDataTypeable, RecordWildCards, ScopedTypeVariables, MultiParamTypeClasses #-}
module YaLedger.Types
(module YaLedger.Tree,
module YaLedger.Types.Common,
module YaLedger.Types.Monad,
mod... | portnov/yaledger | YaLedger/Types.hs | bsd-3-clause | 741 | 0 | 5 | 82 | 118 | 81 | 37 | 19 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
#ifndef MIN_VERSION_profunctors
#define MIN_VERSION_profunctors(x,y,z) 0
#endif
-----------------------------------------------------------------------------
-- |
-- Module : Data.Machine.Mealy
-- Copyright : (C) 2012 Ed... | HuwCampbell/machines | src/Data/Machine/Mealy.hs | bsd-3-clause | 6,263 | 0 | 17 | 1,539 | 2,463 | 1,324 | 1,139 | 153 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import System.Environment
import System.IO
import Imager3000.Parse
import Imager3000.Download
import Imager3000.Concurrent.MVar
import Imager3000.Fetch
main :: IO ()
main = do
--hSetBuffering stdout LineBuffering
[url] <- getArgs
run url
run :: Strin... | BsAsHaskell/imager3000 | src/Main.hs | bsd-3-clause | 533 | 0 | 13 | 109 | 148 | 76 | 72 | 18 | 1 |
module Module1.Task1 where
main = putStrLn "Hello, world!"
| dstarcev/stepic-haskell | src/Module1/Task1.hs | bsd-3-clause | 63 | 0 | 5 | 12 | 14 | 8 | 6 | 2 | 1 |
module AERN2.AD.Type where
import MixedTypesNumPrelude
import AERN2.MP.Precision
data Differential a =
OrderZero {diff_x :: a}
| OrderOne {diff_x :: a, diff_dx :: a}
| OrderTwo {diff_x :: a, diff_dx :: a, diff_dxt :: a, diff_d2x :: a}
deriving (Show)
order :: Differential a -> Integer
order (OrderZe... | michalkonecny/aern2 | aern2-mfun/src/AERN2/AD/Type.hs | bsd-3-clause | 1,425 | 2 | 10 | 357 | 566 | 290 | 276 | 34 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Web.Yo (
fromParameters
, Yo (..)
) where
import Control.Lens ((^?), (^.), (^..))
import Data.Aeson ((.:), decode, Value (Object, String))
import Data.Aeson.Lens (_String, key, nth, values)
import Data.ByteString (ByteString, isPrefixOf)
import qualified Data.ByteStri... | ryota-ka/yo-slack-adapter | src/Web/Yo.hs | bsd-3-clause | 3,744 | 0 | 18 | 1,250 | 1,052 | 583 | 469 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
{-# OPTIONS_GHC -fno-warn-implicit-prelude #-}
module Paths_FileServer (
version,
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
i... | Garygunn94/DFS | FileServer/.stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/autogen/Paths_FileServer.hs | bsd-3-clause | 2,184 | 0 | 10 | 239 | 410 | 238 | 172 | 33 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Websave.Web.Dispatch
(
) where
import Websave.Web.AppData (App (..))
import Websave.Web.Handlers (getApiR)
import Websave.Web.Routes (Route (..), resourcesApp)
import Yesod.Core (mkYesodDispatch)
mkYe... | dimsmol/websave | src/Websave/Web/Dispatch.hs | bsd-3-clause | 351 | 0 | 6 | 42 | 75 | 48 | 27 | 10 | 0 |
module Game.Innovation.TypesSpec
where
import SpecHelper
import Game.Innovation.TestHelper
import Game.MetaGame
import Game.Innovation.Types
spec :: Spec
spec = do
describe "User" $ do
it "idOf . mkPlayer = id" $
property $ \id -> (idOf . mkPlayer) id == (U (id :: String))
main :: IO ()
main = hs... | maximilianhuber/innovation | test/Game/Innovation/TypesSpec.hs | bsd-3-clause | 329 | 0 | 15 | 72 | 110 | 60 | 50 | 12 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE UndecidableInstances #-}
module PlaceHolder where
import Type ( Type )
import Outputable
import Name
import NameSet
import RdrName... | AlexanderPankiv/ghc | compiler/hsSyn/PlaceHolder.hs | bsd-3-clause | 3,297 | 0 | 9 | 696 | 443 | 258 | 185 | 54 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Control.Lens
import qualified Data.ByteString.Lazy.Char8 as B
import qualified Data.Text as T
import Network.Wreq
import qualified Network.Wreq.Session as S
import System.Environment
main :: IO ()
main = do
args <- getArgs
let boardDesignFilePath = args !! 0
let boardFi... | jasdennison/scrabble-solver | client/Client.hs | bsd-3-clause | 901 | 0 | 18 | 199 | 292 | 149 | 143 | 24 | 1 |
{- Current Design #-}
{-
Fixed design + Polymorphicj
Here we add a polymorphic constructor
to DocBase.
-}
module D6 where
data Doc a
= Empty
| DocStr (DocBase a)
| Union (Doc a) (Doc a)
data DocBase a
= Str String
| Chr Char
| Free a
comma :: Doc a
comma = DocStr (Chr ',')
bracket :: Doc a ... | dterei/Scraps | haskell/prettyGenerics/D6.hs | bsd-3-clause | 664 | 0 | 11 | 205 | 255 | 132 | 123 | 18 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Types where
import Control.Monad.Reader
import Data.ByteString
import System.IO
data Bot = Bot {
socket :: Handle
}
type Net = ReaderT Bot IO
data Message = Message (Maybe Prefix) Command Params
deriving (Eq, Read, Show)
-- The (optional) prefix can be ei... | nlogax/norby | src/Types.hs | bsd-3-clause | 695 | 0 | 8 | 164 | 167 | 99 | 68 | 19 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Tri-state ("tri-colour") garbage collector.
--
-- * Not compacting: alive memory is not altered
-- * Tracing
module Stg.Machine.GarbageCollection.TriStateTracing (
triStateTracing,
) where
import Data.Map (Map)
import qual... | quchen/stg | src/Stg/Machine/GarbageCollection/TriStateTracing.hs | bsd-3-clause | 2,639 | 0 | 13 | 715 | 603 | 346 | 257 | 55 | 1 |
{-# LANGUAGE CPP, StandaloneDeriving, GeneralizedNewtypeDeriving #-}
-- |
-- Types for referring to remote objects in Remote GHCi. For more
-- details, see Note [External GHCi pointers] in compiler/ghci/GHCi.hs
--
-- For details on Remote GHCi, see Note [Remote GHCi] in
-- compiler/ghci/GHCi.hs.
--
module GHCi.Remote... | sdiehl/ghc | libraries/ghci/GHCi/RemoteTypes.hs | bsd-3-clause | 4,050 | 0 | 12 | 632 | 795 | 428 | 367 | 61 | 1 |
module Stars where
import Rumpus
-- Golden Section Spiral (via http://www.softimageblog.com/archives/115)
pointsOnSphere :: Int -> [V3 GLfloat]
pointsOnSphere (fromIntegral -> n) =
map (\k ->
let y = k * off - 1 + (off / 2)
r = sqrt (1 - y*y)
phi = k * inc
in V3 (c... | lukexi/rumpus | util/ObjectArchive/Home/Stars.hs | bsd-3-clause | 1,153 | 0 | 19 | 443 | 374 | 193 | 181 | -1 | -1 |
module Good where
good :: Int
good = 42
| juhp/stack | test/integration/tests/init-omit-packages/files/good/Good.hs | bsd-3-clause | 41 | 0 | 4 | 10 | 14 | 9 | 5 | 3 | 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="ru-RU">
<title>Надстройка «Пользовательские полезные нагрузки» </title>
<maps>
<homeID>custo... | kingthorin/zap-extensions | addOns/custompayloads/src/main/javahelp/org/zaproxy/zap/extension/custompayloads/resources/help_ru_RU/helpset_ru_RU.hs | apache-2.0 | 1,080 | 81 | 65 | 159 | 545 | 273 | 272 | -1 | -1 |
{-# LANGUAGE CPP #-}
-- | /Towards Haskell in the Cloud/ (Epstein et al., Haskell Symposium 2011)
-- proposes a new type construct called 'static' that characterizes values that
-- are known statically. Cloud Haskell uses the
-- 'Control.Distributed.Static.Static' implementation from
-- "Control.Distributed.Static". Th... | qnikst/distributed-process | src/Control/Distributed/Process/Closure.hs | bsd-3-clause | 7,391 | 0 | 6 | 1,493 | 430 | 347 | 83 | 57 | 0 |
{-# LANGUAGE TypeInType, KindSignatures #-}
module T16344 where
import Data.Kind
data T ka (a::ka) b = MkT (T Type Int Bool)
(T (Type -> Type) Maybe Bool)
| sdiehl/ghc | testsuite/tests/dependent/should_fail/T16344.hs | bsd-3-clause | 198 | 0 | 10 | 70 | 57 | 34 | 23 | -1 | -1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.ForeignPtr.Safe
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Main... | tolysz/prepare-ghcjs | spec-lts8/base/Foreign/ForeignPtr/Safe.hs | bsd-3-clause | 1,424 | 0 | 4 | 343 | 87 | 66 | 21 | 20 | 0 |
module Main () where
import SimpleJSON
import PrettyJSON
import Prettify
main = putStrLn (pretty 10 value) where
value = renderJValue (JObject [("f", JNumber 1), ("q", JBool True)])
| pauldoo/scratch | RealWorldHaskell/ch05/Main.hs | isc | 194 | 0 | 12 | 39 | 72 | 41 | 31 | 6 | 1 |
import XMonad
import XMonad.Config.Desktop
import XMonad.Util.EZConfig (additionalKeysP)
import XMonad.Layout.NoBorders (noBorders)
import XMonad.Layout.ResizableTile -- ResizableTall
import XMonad.Actions.WindowBringer (gotoMenu, bringMenu)
import XMonad.Layout.Magnifier (maximizeVertical, MagnifyMsg(Toggle))
import ... | grafoo/dot | files/xmonad.hs | mit | 1,258 | 0 | 17 | 311 | 244 | 149 | 95 | 23 | 1 |
module WykopLinks (
promotedLinks
, promotedLinks'
, upcomingLinks
, upcomingLinks'
, PSort(..)
, USort(..)
, module WykopTypes
) where
import WykopTypes
import WykopUtils hiding (toGet)
data PSort = Day | Week | Month
instance Show PSort where
show Day = "day"
show Week = "week... | mikusp/hwykop | WykopLinks.hs | mit | 1,003 | 0 | 11 | 231 | 386 | 208 | 178 | 30 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
-- | This module loads the MaxMind's GeoIp City database.
module Network.GeoIp.GeoCityIp (
GeoCityDB,
load,
findRange,
findLocation) where
import qualified Data.ByteString as B
import Data.Bits
import Network.GeoIp.GeoDB
data GeoCityDB = GeoCityDB GeoDB
-- | Load the ... | astro/GeoIp | Network/GeoIp/GeoCityIp.hs | mit | 2,502 | 40 | 17 | 484 | 804 | 425 | 379 | 50 | 3 |
import Data.List
import qualified Data.Map as Map
import qualified Data.List.Ordered as Ordered
import qualified Data.Array as Array
import Primes
import Utils
import Debug.Trace
maxTest = 1000
testPrimeTable = takeWhile (<maxTest) primes
nT = (length testPrimeTable) - 1
data PrimalityTest = PrimalityTest { table :... | arekfu/project_euler | p0060/p0060.hs | mit | 3,299 | 0 | 14 | 903 | 692 | 388 | 304 | 37 | 2 |
{-# OPTIONS_GHC -F -pgmF htfpp #-}
module TypeStructureTest where
import Test.Framework
import TypeStructure.Prelude.Basic
import TypeStructure.Prelude.Data
import TypeStructure
test_differentStructuresDontEqual = do
assertNotEqual (graph (undefined :: Int16)) (graph (undefined :: Int8))
test_sameStructuresDoEqua... | nikita-volkov/type-structure | src/TypeStructureTest.hs | mit | 536 | 0 | 11 | 68 | 144 | 81 | 63 | 12 | 1 |
module CombinationTest where
import Combination
import Test.Tasty.HUnit
import Test.Tasty
combs = [
("repeat 1", [1,3,2,1], 3, [[1,1,2],[1,1,3],[1,2,3]]),
("1 choose 2", [1], 2, []),
("1 choose 1", [1], 1, [[1]]),
("0 choose 1", [], 1, []),
("all same", [1,... | pterodragon/programming | Haskell/algorithm/test/CombinationTest.hs | mit | 710 | 0 | 11 | 221 | 282 | 177 | 105 | 17 | 1 |
loop :: Int -> IO ()
loop n = do
if n <= 10
then do
print (n * n)
loop (n + 1)
else
return ()
main :: IO ()
main = loop 1
| chsm/code | hs/soh/basics/04-01.hs | mit | 179 | 0 | 12 | 92 | 87 | 42 | 45 | 9 | 2 |
module PE0018 where
import Data.Char (isDigit)
type Row = [Int]
type TriangleGraph = [Row]
-- from position n in a given row,
-- positions n and n+1 are reachable in the next row
sample :: TriangleGraph
sample = [
[3],
[7, 4],
[2, 4, 6],
[8, 5, 9, 3]
]
-- combine two neighboring positions in paths... | mvidner/projecteuler | src/PE0018.hs | mit | 1,541 | 0 | 10 | 352 | 560 | 302 | 258 | 41 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module RenderData where
import Control.Monad.Except
import Data.Text
import Syntax
import LinearProof
ctor :: Text -> [Text] -> Text
ctor c ps = c `append` "(" `append` (intercalate "," ps) `append` ")"
lst :: [Text] -> Text
lst xs = "[" `append` (intercalate "," xs) `append` "]"
... | ulrikrasmussen/BoxProver | src/RenderData.hs | mit | 3,484 | 7 | 17 | 740 | 1,306 | 639 | 667 | 80 | 20 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
module SetGameWeb.Data where
import Control.Lens (makeLenses, view)
import ... | cmwilhelm/setGame | executable/SetGameWeb/Data.hs | mit | 1,575 | 0 | 12 | 342 | 414 | 220 | 194 | 43 | 1 |
{-# LANGUAGE RecordWildCards #-}
import Sprockell.System
-- Note that it never prints "First shared memaddr equals 5": all sprockells
-- are terminated before the shared memory gets a chance to write it.
prog :: [Instruction]
prog = [
Const 78 RegA
, Const 10 RegB
, Const 5 RegC
... | martijnbastiaan/sprockell | src/DemoDebug.hs | mit | 905 | 0 | 10 | 265 | 151 | 82 | 69 | 15 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleContexts #-}
-- | A MySQL backend for @persistent@.
module Database.Persist.MySQL
( withMySQLPool
, withMySQLConn
, createMySQLPo... | psibi/persistent | persistent-mysql/Database/Persist/MySQL.hs | mit | 52,629 | 29 | 33 | 17,059 | 11,446 | 6,058 | 5,388 | -1 | -1 |
-- |Here we have the representation of variables inside Zeno; see 'ZVarClass' for the
-- different types of variable we can have.
module Zeno.Var (
ZVar (..), ZVarClass (..), HasSources (..),
ZDataType, ZType, ZExpr, ZTerm, ZAlt,
ZBinding, ZBindings, ZClause, ZExprSubstitution,
ZEquality, ZHypothesis, ZQuantif... | trenta3/zeno-0.2.0.1 | src/Zeno/Var.hs | mit | 5,924 | 0 | 16 | 1,466 | 1,571 | 844 | 727 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
module Eval where
import Types
import Data.Maybe
import Prelude hiding (lookup)
import Data.Map
import Control.Exception
eval :: Expression -> Env -> IO (Expression, Env)
eval (Identifier x) env = isValidLookup (lookup x env) x env
eval (Number x) env = return (Number x, env)
eval ... | ckirkendall/hlisp | Eval.hs | gpl-2.0 | 3,909 | 0 | 15 | 926 | 1,889 | 951 | 938 | 103 | 2 |
{- |
Module : ./SoftFOL/ProveDarwin.hs
Description : Interface to the TPTP theorem prover via Darwin.
Copyright : (c) Heng Jiang, Uni Bremen 2004-2007
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : needs POSIX
Interface for th... | gnn/Hets | SoftFOL/ProveDarwin.hs | gpl-2.0 | 15,270 | 0 | 23 | 4,089 | 3,681 | 1,953 | 1,728 | 315 | 10 |
fmap f (alpha h) = alpha (f . h) | hmemcpy/milewski-ctfp-pdf | src/content/2.4/code/haskell/snippet08.hs | gpl-3.0 | 32 | 1 | 7 | 8 | 28 | 13 | 15 | -1 | -1 |
module Main where
import Sara.Parser.ParserTest
import Sara.Ast.OperatorsTest
import Sara.Semantic.TypeCheckerTest
import Sara.CompilerTest
import Sara.RegressionTest
import Test.Framework
main :: IO ()
main = defaultMain tests
tests :: [Test]
tests = [ regressionGroup
, typeCheckerGroup
, parserGro... | Lykos/Sara | tests/Tests.hs | gpl-3.0 | 374 | 0 | 6 | 75 | 83 | 51 | 32 | 15 | 1 |
module Interface.Torrent.List (torrentList) where
import HTorrentPrelude
import Interface.Torrent.Behavior
import Interface.Torrent.Entry
import qualified Graphics.UI.Threepenny as UI
import Graphics.UI.Threepenny.Core
import Reactive.Threepenny
torrentList :: [TorrentBehavior] -> UI (Element, Behavior (Maybe Torren... | ian-mi/hTorrent | Interface/Torrent/List.hs | gpl-3.0 | 947 | 0 | 13 | 190 | 305 | 161 | 144 | 21 | 1 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, OverloadedStrings, Arrows #-}
module Types (
ColValue(..)
, Row
, mshow
, ToString(..)
) where
import Data.List
import Data.String.ToString
import Prelude hiding (id)
import Data.Monoid
import CsvParser
writeHeader::Row -> String
writeHeader r = "<tr>" ++... | b1g3ar5/CsvDatabase | src/Types.hs | gpl-3.0 | 2,501 | 0 | 14 | 504 | 880 | 467 | 413 | 54 | 1 |
{-
CC_Clones - Classic games reimplemented
© Callum Lowcay 2006-2011
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
(at your option) any later version.
This prog... | CLowcay/CC_Clones | src/Common/HighScores.hs | gpl-3.0 | 5,561 | 67 | 20 | 1,031 | 1,705 | 867 | 838 | 138 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-healthcare/gen/Network/Google/Resource/Healthcare/Projects/Locations/DataSets/DicomStores/GetIAMPolicy.hs | mpl-2.0 | 7,354 | 0 | 16 | 1,463 | 807 | 472 | 335 | 129 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-shopping-content/gen/Network/Google/Resource/Content/ReturnpolicyOnline/List.hs | mpl-2.0 | 4,921 | 0 | 17 | 1,139 | 723 | 420 | 303 | 107 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.