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 FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Control.P... | solorab/proof-haskell | Control/Proof/Simple.hs | mit | 5,049 | 0 | 16 | 1,233 | 1,755 | 924 | 831 | 126 | 7 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-s3/gen/Network/AWS/S3/GetObjectAcl.hs | mpl-2.0 | 4,902 | 0 | 14 | 1,194 | 828 | 487 | 341 | 90 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : RoverTests
-- Copyright : (c) 2017 Pascal Poizat
-- License : Apache-2.0 (see the file LICENSE)
--
-- Maintainer : pascal.poizat@lip6.fr
-- Stability : experimental
-- Portability : unknown
--
-- Test file... | pascalpoizat/veca-haskell | test/RoverTests.hs | apache-2.0 | 11,809 | 0 | 11 | 3,731 | 3,946 | 2,176 | 1,770 | 364 | 1 |
{-# LANGUAGE Rank2Types #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.IntSet.Lens
-- Copyright : (C) 2012-16 Edward Kmett
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : provisional
... | ddssff/lens | src/Data/IntSet/Lens.hs | bsd-3-clause | 1,938 | 0 | 6 | 351 | 150 | 102 | 48 | 16 | 1 |
{-# LANGUAGE PatternGuards, ExistentialQuantification, CPP #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Idris.Core.Execute (execute) where
import Idris.AbsSyntax
import Idris.AbsSyntaxTree
import IRTS.Lang(FDesc(..), FType(..))
import Idris.Primitives(Prim(..), primitives)
import Idris.Core.TT
import Id... | athanclark/Idris-dev | src/Idris/Core/Execute.hs | bsd-3-clause | 29,467 | 0 | 6 | 10,849 | 259 | 166 | 93 | 28 | 1 |
-- A wrapper script for Cabal Setup.hs scripts. Allows compiling the real Setup
-- conditionally depending on the Cabal version.
module SetupWrapper (setupWrapper) where
import Distribution.Package
import Distribution.Compiler
import Distribution.Simple.Utils
import Distribution.Simple.Program
import Distribution.Sim... | fit-ivs/calc | deps/pango-0.13.1.1/SetupWrapper.hs | gpl-3.0 | 6,967 | 0 | 17 | 2,012 | 1,351 | 703 | 648 | 123 | 9 |
{-# LANGUAGE Rank2Types #-}
module Opaleye.Internal.PackMap where
import qualified Opaleye.Internal.Tag as T
import qualified Opaleye.Internal.HaskellDB.PrimQuery as HPQ
import Control.Applicative (Applicative, pure, (<*>), liftA2)
import qualified Control.Monad.Trans.State as State
import Data.... | alanz/haskell-opaleye | src/Opaleye/Internal/PackMap.hs | bsd-3-clause | 4,764 | 0 | 12 | 1,065 | 1,136 | 629 | 507 | 59 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
module Stack.FileWatch
( fileWatch
, fileWatchPoll
, printExceptionStderr
) where
import Blaze.ByteString.Builder (toLazyByteString, copyByteString)
import Blaze.ByteString.Builder.Char.Utf8 (fromShow)
import Control.Concurrent.Async (ra... | robstewart57/stack | src/Stack/FileWatch.hs | bsd-3-clause | 5,294 | 0 | 25 | 1,856 | 1,292 | 642 | 650 | 111 | 7 |
import Sudoku
import Control.Exception
import System.Environment
import Data.Maybe
main :: IO ()
main = do
[f] <- getArgs
grids <- fmap lines $ readFile f
print (length (filter isJust (map solve grids)))
| lywaterman/parconc-examples | sudoku-par1.hs | bsd-3-clause | 217 | 0 | 13 | 45 | 89 | 44 | 45 | 9 | 1 |
{-# LANGUAGE ImplicitParams, TypeFamilies #-}
module T3540 where
thing :: (a~Int)
thing = undefined
thing1 :: Int -> (a~Int)
thing1 = undefined
thing2 :: (a~Int) -> Int
thing2 = undefined
thing3 :: (?dude :: Int) -> Int
thing3 = undefined
thing4:: (Eq a) -> Int
thing4 = undefined | forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/typecheck/should_fail/T3540.hs | bsd-3-clause | 288 | 0 | 7 | 55 | 104 | 61 | 43 | -1 | -1 |
module Main where
import Data.Functor ((<$>))
import Data.Maybe (isJust, fromJust)
import System.Cmd (rawSystem)
import System.Exit (ExitCode(..))
import System.IO (hFlush, stdout)
import System.Posix.Process (forkProcess, getProcessStatus)
import Hackonad.LineParser
typePrompt :: IO ()
typePrompt = putStr... | triplepointfive/Hackonad | src/Main.hs | mit | 1,671 | 0 | 16 | 466 | 545 | 283 | 262 | 39 | 3 |
module Main where
import Data.Monoid
import Test.Framework
import qualified Test.Parser as Parser
import qualified Test.Eval as Eval
main :: IO ()
main = defaultMainWithOpts tests mempty
tests = concat
[ Parser.tests
, Eval.tests
]
| forestbelton/anima | Test/Main.hs | mit | 250 | 0 | 7 | 52 | 68 | 41 | 27 | 10 | 1 |
module Main where
import Reddit.TheButton.Connection
import Reddit.TheButton.Types
import Reddit.TheButton.AnyBar
import Reddit.TheButton.Utility
import Control.Monad (forever)
import Control.Concurrent (forkIO)
import Control.Concurrent.Chan (readChan, dupChan)
import System.IO (hSetBuffering, Buffe... | romac/thebutton.hs | src/Main.hs | mit | 624 | 0 | 12 | 112 | 180 | 97 | 83 | 19 | 1 |
-- | This file defines 'FormulaTree', the type used for modeling the calculation trees.
--
-- Author: Thorsten Rangwich. See file <../LICENSE> for details.
module Tree.FormulaTree
(
FormulaTree(..),
TreeError(..),
NamedFunction(..) -- FIXME: Export creater and exporters, not type
)
where
import qualified Data.Pla... | tnrangwi/grill | src/Tree/FormulaTree.hs | mit | 1,303 | 0 | 9 | 368 | 134 | 91 | 43 | 16 | 0 |
{-# LANGUAGE Rank2Types #-}
module Statistics
where
import Data.Foldable
import Control.Monad.State
import System.Random
import Data.List
type Rnd a = (RandomGen g) => State g a
randomRM :: (Random a) => (a, a) -> Rnd a
randomRM v = do
g <- get
(x, g') <- return $ randomR v g
put g'
return x
choose :: [a] ... | anttisalonen/starrover2 | src/Statistics.hs | mit | 2,451 | 0 | 12 | 719 | 1,251 | 639 | 612 | 76 | 3 |
{-# LANGUAGE FlexibleInstances #-}
module TermSpec where
import Data.Text as T
import Test.QuickCheck
import Faun.Term
import TextGen
instance Arbitrary Term where
arbitrary = oneof [genVar, genConst, genFun]
genTerms :: Gen [Term]
genTerms = sized $ \n -> do
size <- choose (0, n `mod` 6) -- Huge lists of argum... | PhDP/Sphinx-AI | tests/TermSpec.hs | mit | 701 | 0 | 12 | 140 | 225 | 117 | 108 | 25 | 1 |
-- |
-- Module: BigE.Attribute.Vert_P_N
-- Copyright: (c) 2017 Patrik Sandahl
-- Licence: MIT
-- Maintainer: Patrik Sandahl <patrik.sandahl@gmail.com>
-- Stability: experimental
-- Portability: portable
-- Language: Haskell2010
module BigE.Attribute.Vert_P_N
( Vertex (..)
) where
import BigE.Attribut... | psandahl/big-engine | src/BigE/Attribute/Vert_P_N.hs | mit | 2,273 | 0 | 16 | 786 | 524 | 274 | 250 | 46 | 0 |
{-# LANGUAGE CPP, OverloadedStrings #-}
module NewAccount (newAccountSpecs) where
import Data.Monoid
import Yesod.Auth
import Yesod.Test
import Foundation
import Text.XML.Cursor (attribute)
import qualified Data.Text as T
redirectCode :: Int
#if MIN_VERSION_yesod_test(1,4,0)
redirectCode = 303
#else
redirectCode = 30... | jasonzoladz/yesod-auth-account-fork | tests/NewAccount.hs | mit | 7,624 | 0 | 20 | 2,916 | 1,282 | 522 | 760 | 170 | 2 |
module Hamming (distance) where
distance :: String -> String -> Maybe Int
distance xs ys = error "You need to implement this function."
| exercism/xhaskell | exercises/practice/hamming/src/Hamming.hs | mit | 137 | 0 | 7 | 24 | 38 | 20 | 18 | 3 | 1 |
import Data.Digits
lend = length . digits 10
bases = [1..9] -- lend (10^x) > 10 for all x
exponents = [1..30] -- lend (9^x) > x for x>30
pairs = [(base,exponent) | base <- bases, exponent <- exponents]
isValid (base,exponent) = (lend (base^exponent) == exponent)
valid = filter isValid pairs
answer = length valid | gumgl/project-euler | 63/63.hs | mit | 319 | 0 | 9 | 60 | 119 | 66 | 53 | 8 | 1 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE TemplateHaskell #-}
-- | The basic typeclass for a Yesod application.
module Yesod.Internal.Core
( -- * Type classes
Yesod (..)
, Yesod... | piyush-kurur/yesod | yesod-core/Yesod/Internal/Core.hs | mit | 31,135 | 0 | 26 | 9,240 | 6,199 | 3,298 | 2,901 | 551 | 7 |
module MiniSequel.Adapter.PostgreSQL.Log
where
import qualified MiniSequel.Adapter.PostgreSQL as Adapter
--
-- exec con query = do
-- print query
-- Adapter.exec con query
--
-- takeModel con model = do
-- print model
-- Adapter.takeModel con model
| TachoMex/MiniSequel | src/MiniSequel/Adapter/Log.hs | mit | 276 | 0 | 4 | 63 | 25 | 21 | 4 | 2 | 0 |
import System.Exit
mul [x, y] = xInt * yInt
where xInt = read x :: Integer
yInt = read y :: Integer
mainLoop 0 = exitWith ExitSuccess
mainLoop x = do
values <- getLine
print $ mul (words values)
mainLoop (x - 1)
main = do
loops <- getLine
mainLoop (read loops :: Integer)
| ranisalt/spoj | mul.hs | mit | 288 | 0 | 10 | 70 | 130 | 64 | 66 | 12 | 1 |
{-# LANGUAGE DeriveGeneric, OverloadedStrings #-}
module Main where
import Data.Aeson
import qualified Data.ByteString.Lazy.Char8 as BS
import Data.Map.Strict(Map)
import qualified Data.Map.Strict as M
import Data.Maybe(fromJust)
import Data.Tree(Tree(..), flatten, unfoldTree)
import Diagrams.Backend.SVG.CmdLine(defaul... | bobgru/tree-derivations | src/LSystem5.hs | mit | 5,140 | 0 | 12 | 1,247 | 1,561 | 840 | 721 | 102 | 2 |
import Test.Hspec
import StringCalculator
import Control.Exception (evaluate)
main :: IO ()
main = hspec $ do
describe "StringCalculator" $ do
it "should return 0 for an empty string" $ do
calculate "" `shouldBe` 0
it "should return 1 for a string '1'" $ do
calculate "1" `s... | theUniC/string-calculator.hs | tests/Spec.hs | mit | 890 | 0 | 17 | 278 | 211 | 99 | 112 | 20 | 1 |
module Main where
import qualified Network as Net
import System.IO (Handle, hClose)
import System.Environment (getArgs)
import Data.ByteString (ByteString)
import Control.Monad (forever, unless)
import Control.Concurrent.STM (STM, atomically)
import Control.Concurrent (ThreadId, forkIO, threadDelay)
import Control.Exc... | wyager/Neks | Network/Neks/NeksServer.hs | mit | 3,546 | 0 | 16 | 967 | 1,029 | 521 | 508 | 78 | 4 |
--------------------------------------------------------------------------
-- Copyright (c) 2007-2010, ETH Zurich.
-- All rights reserved.
--
-- This file is distributed under the terms in the attached LICENSE file.
-- If you do not find this file, copies can be found by writing to:
-- ETH Zurich D-INFK, Haldeneggsteig... | UWNetworksLab/arrakis | hake/ArchDefaults.hs | mit | 11,931 | 0 | 21 | 3,947 | 3,310 | 1,746 | 1,564 | 237 | 2 |
{-# LANGUAGE QuasiQuotes, ScopedTypeVariables #-}
module Handler.EntryPics where
import Import
import Utils.Database
import qualified Hasql as H
import qualified Data.Text as T
getEntryPicsR :: Int -> Handler Html
getEntryPicsR entryId = do
dbres <- liftIO $ do
conn <- getDbConn
H.session conn $ ... | dgonyeo/brandskell | Handler/EntryPics.hs | mit | 860 | 0 | 19 | 333 | 187 | 96 | 91 | 20 | 2 |
{-# LANGUAGE PackageImports #-}
{-# OPTIONS_GHC -fno-warn-dodgy-exports -fno-warn-unused-imports #-}
-- | Reexports "Numeric.Natural.Compat"
-- from a globally unique namespace.
module Numeric.Natural.Compat.Repl (
module Numeric.Natural.Compat
) where
import "this" Numeric.Natural.Compat
| haskell-compat/base-compat | base-compat/src/Numeric/Natural/Compat/Repl.hs | mit | 292 | 0 | 5 | 31 | 28 | 21 | 7 | 5 | 0 |
{-# LANGUAGE BangPatterns #-}
{- |
- Module : Memo
- Description : Infinite memorization tree structure
- Copyright : (c) Maciej Bendkowski
-
- Maintainer : maciej.bendkowski@gmail.com
- Stability : experimental
-}
module Memo (
Tree(..), idx, nats, toList
) where
-- | An infinite binary t... | maciej-bendkowski/blaz | src/Memo.hs | mit | 1,080 | 0 | 9 | 379 | 357 | 190 | 167 | 20 | 2 |
module YesNo (
YesNo
) where
import Tree
import TrafficLight
class YesNo a where
yesno :: a -> Bool
instance YesNo Int where
yesno 0 = False
yesno _ = True
instance YesNo [ a ] where
yesno [] = False
yesno _ = True
instance YesNo Bool where
yesno = id
-- Function 'id' means identity, get argument... | afronski/playground-fp | books/learn-you-a-haskell-for-great-good/making-our-own-types-and-typeclasses/YesNo.hs | mit | 713 | 0 | 8 | 178 | 239 | 125 | 114 | 25 | 2 |
{-# OPTIONS_GHC -O0 #-}
{-# LANGUAGE CPP,
DeriveGeneric,
DeriveDataTypeable,
LambdaCase,
MagicHash,
StandaloneDeriving
#-}
#ifndef __GHCJS__
{-# LANGUAGE PackageImports #-}
#endif
{- |
Communication between the compiler (GHCJS) and runtime (on nod... | ghcjs/ghcjs | lib/ghcjs-th/GHCJS/Prim/TH/Types.hs | mit | 3,274 | 0 | 9 | 954 | 495 | 303 | 192 | 73 | 0 |
--
--
-- (C) 2011-14 Nicola Bonelli <nicola@pfq.io>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- T... | Mr-Click/PFQ | user/Haskell/test/test-send.hs | gpl-2.0 | 3,536 | 0 | 18 | 1,125 | 983 | 548 | 435 | 64 | 2 |
doubleMe x = x + x
tripleMe x = doubleMe x + x
doubleSmallNumbers x = if x < 100
then doubleMe x
else x
boomBang xs = [if x < 10 then "Boom" else "Bang" | x <- xs, odd x]
tmp :: Int->Int
tmp x = x * 4
lucky :: (Integral a) => a -> String
lucky 7 = "LUCKY NUMBER S... | benetis/programming_theory_exercises | Benetis_Zygimantas/3/tmp.hs | gpl-2.0 | 1,252 | 0 | 12 | 342 | 604 | 321 | 283 | 39 | 2 |
{-# OPTIONS -Wall #-}
{-# LANGUAGE FlexibleInstances, UndecidableInstances #-}
module Editor.MonadF(MonadF) where
class (Monad m, Functor m) => MonadF m
instance (Monad m, Functor m) => MonadF m
| nimia/bottle | codeedit/Editor/MonadF.hs | gpl-3.0 | 196 | 0 | 6 | 29 | 57 | 31 | 26 | -1 | -1 |
module Export2 where
import ExportBasic
import ExportBasic2
f :: Int
f = 4
(/**) :: a -> Int -> Int
_ /** z = 2 * g * z -- 12 * z
where
g = 3 * k -- 6
where
k = 3
infixr 6 /**
data Listt a = a :> a | Empt
data Listt2 a = a :>< a | Empty
data Listt3 a = a :>>< a | Emptyy
type Hello = Int
mai... | Helium4Haskell/helium | test/exports/Export2.hs | gpl-3.0 | 337 | 0 | 8 | 113 | 140 | 83 | 57 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
-----------------------------------------------------------------------------
-- |
-- Module : Numeric.MonteCarlo.Plain
-- Copyright : (c) 2011, 2013 Ian-Woo Kim
--
-- License : GPL-3
-- Maintainer : Ian-Woo Kim <ianwookim@gmail.com>
-- Stability : experimental
-- Portabilit... | wavewave/hMC | src/Numeric/MonteCarlo/Plain.hs | gpl-3.0 | 2,345 | 0 | 16 | 846 | 726 | 352 | 374 | 60 | 2 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, FunctionalDependencies, TypeFamilies, TemplateHaskell, FlexibleContexts, ViewPatterns, NoMonomorphismRestriction #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS -Wall -fno-warn-orphans #-}
module QuickCheckUtil where
import Test.QuickCheck
import Control.Mon... | DanielSchuessler/hstri | QuickCheckUtil.hs | gpl-3.0 | 6,113 | 0 | 15 | 1,508 | 2,176 | 1,132 | 1,044 | 125 | 2 |
module SocialForce.Run (
runSocialForce
) where
import Control.Monad.Random
import FRP.FrABS
import FRP.Yampa
import SocialForce.Init
import SocialForce.Renderer
import SocialForce.Model
winSize :: (Int, Int)
winSize = (1000, 600)
winTitle :: String
winTitle = "SocialForce"
frequency :: Int
frequency = 0
... | thalerjonathan/phd | coding/libraries/chimera/examples/ABS/SocialForce/Run.hs | gpl-3.0 | 795 | 0 | 10 | 160 | 188 | 106 | 82 | 32 | 1 |
main :: IO()
main = do
args <- getContents
mapM_ putStrLn $ map compress $ lines args
compress :: String -> String
compress str = compress' str "" 0
compress' :: String -> String -> Int -> String
compress' [] prev count = prev ++ if count > 1 then show count else ""
compress' str _ 0 = (compre... | woodsjc/hackerrank-challenges | string-compression.hs | gpl-3.0 | 576 | 6 | 10 | 163 | 267 | 135 | 132 | 13 | 4 |
module Wordify.Rules.FormedWord (FormedWords,
FormedWord,
PlacedSquares,
allWords,
mainWord,
adjacentWords,
playerPlaced,
... | Happy0/haskellscrabble | src/Wordify/Rules/FormedWord.hs | gpl-3.0 | 11,930 | 0 | 23 | 3,582 | 2,684 | 1,394 | 1,290 | 162 | 12 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-serviceconsumermanagement/gen/Network/Google/Resource/ServiceConsumerManagement/Services/TenancyUnits/Delete.hs | mpl-2.0 | 5,114 | 0 | 15 | 1,079 | 697 | 408 | 289 | 101 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-cloudtasks/gen/Network/Google/Resource/CloudTasks/Projects/Locations/Queues/Pause.hs | mpl-2.0 | 5,633 | 0 | 16 | 1,235 | 785 | 461 | 324 | 112 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-logging/gen/Network/Google/Resource/Logging/Projects/Locations/Buckets/Views/List.hs | mpl-2.0 | 6,645 | 0 | 18 | 1,477 | 895 | 521 | 374 | 134 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Moonbase.Util.Css
( Scope(..)
, Id(..)
, combine, (&)
, RuleM(..)
, css, cssRules, (%)
, withCss
, bgColor, fgColor
) where
import Moonbase.Theme
import Control.Applicative
impo... | felixsch/moonbase-ng | src/Moonbase/Util/Css.hs | lgpl-2.1 | 4,396 | 0 | 12 | 1,187 | 1,586 | 835 | 751 | 111 | 1 |
import AdventOfCode (readInputFile)
import Control.Monad (foldM)
import Data.Char (isDigit)
import Text.Read (readMaybe)
data JsonNest = Object Bool | Array deriving (Show)
-- Left are for possible but malformed input strings, like } or ].
-- error are for invalid states that no input string, well-formed or malforme... | petertseng/adventofcode-hs | bin/12_json_numbers.hs | apache-2.0 | 3,487 | 0 | 14 | 790 | 1,460 | 769 | 691 | 78 | 6 |
{-
Copyright 2015 Tristan Aubrey-Jones
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... | flocc-net/flocc | v0.1/Compiler/Tests/PfFb/Run2.hs | apache-2.0 | 1,951 | 0 | 14 | 347 | 397 | 214 | 183 | 38 | 2 |
data Position t = Position t deriving (Show)
stagger (Position d) = Position (d + 2)
crawl (Position d) = Position (d + 1)
rtn x = x
x >>== f = f x | fbartnitzek/notes | 7_languages/Haskell/drunken-monad.hs | apache-2.0 | 149 | 0 | 7 | 35 | 88 | 44 | 44 | 5 | 1 |
module Routes.Header where
import Text.Blaze.Html
-- local
import Session
import Html.Header
buildHeaderHtml :: ServerT Html
buildHeaderHtml = do
return $ headerHtml
| mcmaniac/blog.nils.cc | src/Routes/Header.hs | apache-2.0 | 173 | 0 | 7 | 28 | 41 | 24 | 17 | 7 | 1 |
{-# LANGUAGE DeriveGeneric #-}
module Model.JsonTypes.Turn
( Turn(..)
, jsonTurn
)
where
import Data.Aeson (ToJSON)
import Database.Persist.Sql (Entity(..))
import Data.Time.Clock (UTCTime)
import GHC.Generics (Generic)
import qualified Model.... | flatrapp/core | app/Model/JsonTypes/Turn.hs | apache-2.0 | 717 | 0 | 9 | 233 | 182 | 108 | 74 | 19 | 1 |
s :: [Int]
s = map (2^) [0..]
bin :: Int -> [Int]
bin 0 = []
bin x = (x `mod` 2):(bin $ x `div` 2)
tak [] = []
tak ((0,s):xs) = tak xs
tak ((1,s):xs) = s:(tak xs)
ans x = tak $ zip (bin x) s
main = do
c <- getContents
let i = map read $ lines c :: [Int]
o = map ans i
mapM_ putStrLn $ map unwords $ map... | a143753/AOJ | 0031.hs | apache-2.0 | 334 | 0 | 11 | 99 | 247 | 129 | 118 | 14 | 1 |
-- Copyright 2020 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 to in ... | google/hrepl | hrepl/tests/Chain3Alternate.hs | apache-2.0 | 760 | 0 | 5 | 128 | 42 | 31 | 11 | 3 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- This is needed so that we can have constraints in type synonyms.
{-# LANGUAGE RankNTypes #-}
module Main where
import Network.Wreq
import Control.Lens
import Data.Aeson.Lens (_String, _Array, key)
main :: IO()
main = do
r <- get "https://api.github.com/users/prt2121/repos"
p... | prt2121/haskell-practice | httpee/src/Main.hs | apache-2.0 | 1,117 | 0 | 13 | 192 | 108 | 66 | 42 | -1 | -1 |
{-# LANGUAGE TupleSections #-}
module Evolution where
import System.Random
import Control.Monad
import Control.Arrow
import Data.List
import Data.Ord
--import Data.MList
type Probability = Double
type FitnessValue = Double
type Quantile = Double
type FitnessFunction a = a -> FitnessValue
type ReproducingFunction a =... | jtapolczai/Scratchpad | src/Evolution.hs | apache-2.0 | 1,717 | 0 | 13 | 415 | 612 | 326 | 286 | 44 | 1 |
module Data.IORef (
IORef, newIORef, readIORef, writeIORef, modifyIORef, modifyIORef', atomicModifyIORef, atomicModifyIORef', atomicWriteIORef
) where
import System.Mock.IO.Internal
| 3of8/mockio | New_IORef.hs | bsd-2-clause | 190 | 0 | 4 | 24 | 42 | 28 | 14 | 3 | 0 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QCursor.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:16
Warning : this file is machine generated - do not m... | keera-studios/hsQt | Qtc/Gui/QCursor.hs | bsd-2-clause | 8,833 | 0 | 15 | 1,608 | 3,079 | 1,590 | 1,489 | -1 | -1 |
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE OverloadedStrings #-}
-- | An example of how to do LDAP logins with ldap-client.
--
-- First, the assumptions this example makes. It defaults to LDAP over TLS,
-- so if you only have a plaintext server, please replace `Secure` with `Plain`.
-- It also assumes the accounts y... | VictorDenisov/ldap-client | example/login.hs | bsd-2-clause | 3,786 | 0 | 29 | 1,293 | 942 | 485 | 457 | 73 | 3 |
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
module Math.Budget.Lens.FixedIntervalL where
import Math.Budget.FixedPeriod
class FixedIntervalL cat target | target -> cat where
fixedIntervalL :: cat target FixedPeriod
| tonymorris/hbudget | src/Math/Budget/Lens/FixedIntervalL.hs | bsd-3-clause | 239 | 0 | 7 | 29 | 42 | 25 | 17 | 5 | 0 |
{-# LANGUAGE FlexibleContexts #-} -- for parsec 3
import SICP.LispParser
import SICP.DB
import Text.Parsec hiding (space)
import Data.MultiSet (MultiSet)
import qualified Data.MultiSet as MultiSet
import Control.Monad
import Test.Tasty
import Test.Tasty.HUnit
import Test.Tasty.QuickCheck as QC
dbTests :: DB -> Tes... | feumilieu/sicp-haskell | test/test.hs | bsd-3-clause | 7,633 | 32 | 11 | 1,667 | 1,187 | 593 | 594 | 96 | 3 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module SIGyM.Store.Generation (
Generation
, GenEnv (..)
, GenState (..)
, GenError (..)
, Registry
, mkEnvironment
, runGen
, evalGen
, getTime
, findStore
, findContext
, noMsg
, strMsg
, throwError
, catchError
, liftIO
) where
impo... | meteogrid/sigym-core | src/SIGyM/Store/Generation.hs | bsd-3-clause | 1,612 | 0 | 11 | 368 | 521 | 277 | 244 | 46 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Text.Parsec.Char.Extras where
import Control.Applicative ((*>), (<*))
import Data.Char (isSpace)
import Text.Parsec (ParsecT, Stream, between, char, letter, many, sepBy1, satisfy, spaces)
csv :: Stream s m Char => ParsecT s u m a -> ParsecT s u m [a]
csv = (`sepBy1` comma)
c... | mitchellwrosen/Sloch | src/lang-gen/Text/Parsec/Char/Extras.hs | bsd-3-clause | 711 | 0 | 8 | 144 | 309 | 166 | 143 | 17 | 1 |
module Main where
import Control.Exception (bracket)
import Data.ByteString (hGetSome)
import Data.Serialize (decode)
import Data.Vector (Vector)
import qualified Data.Vector as Vector
import Minecraft.Anvil (AnvilHeader(..), ChunkLocation(..), getAnvilHeader, readChunkData, decompressChunkData, showAnvilHeader)
impor... | stepcut/minecraft-data | utils/DumpAnvil.hs | bsd-3-clause | 1,117 | 0 | 18 | 268 | 371 | 196 | 175 | 28 | 2 |
module D5Lib where
import Text.Megaparsec (ParseError, Dec, endBy)
import Text.Megaparsec.String (Parser)
import Text.Megaparsec.Char as C
import Text.Megaparsec.Lexer as L
import Data.List (splitAt)
type ParseResult = Either (ParseError Char Dec) Jmps
type Jmps = [Int]
data State = State
{ pos :: Int
, j... | wfleming/advent-of-code-2016 | 2017/D5/src/D5Lib.hs | bsd-3-clause | 1,538 | 0 | 11 | 406 | 583 | 320 | 263 | 41 | 2 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Temperature.EN.Tests
( tests
) where
import Prelude
import Data.String
import Test.Tasty
imp... | facebookincubator/duckling | tests/Duckling/Temperature/EN/Tests.hs | bsd-3-clause | 928 | 0 | 11 | 170 | 194 | 115 | 79 | 21 | 1 |
-- | Display mode is for drawing a static picture.
module Graphics.Gloss.Interface.Pure.Display
( module Graphics.Gloss.Data.Display
, module Graphics.Gloss.Data.Picture
, module Graphics.Gloss.Data.Color
, display)
where
import Graphics.Gloss.Data.Display
import Graphics.Gloss.Data.Pic... | ardumont/snake | deps/gloss/Graphics/Gloss/Interface/Pure/Display.hs | bsd-3-clause | 1,032 | 0 | 9 | 231 | 118 | 83 | 35 | 15 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Eleco.Slave.Backend.Repa where
import Data.Vector.Unboxed
( Vector
, imap
, fromList
)
import qualified Data.Vector.Unboxed as V
import Data.Vector.Binary
import Data.Array.Repa
( Array
, DIM1
, U
, Z(..)
, (:.)(..)
, from... | cikusa/Eleco | Eleco/Slave/Backend/Repa.hs | bsd-3-clause | 4,224 | 0 | 16 | 1,061 | 1,436 | 773 | 663 | -1 | -1 |
module Arimaa
( module Types
, module Parser
) where
import Types
import Parser | Saulzar/arimaa | src/Arimaa.hs | bsd-3-clause | 91 | 0 | 4 | 25 | 20 | 14 | 6 | 5 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Util.Timer
-- Description : A module for setting up timers.
-- Copyright : (c) Andrea Rossato and David Roundy 2007
-- License : BSD-style (see xmonad/LICENSE)
--
-- Maintainer : andrea.rossato@unibz.i... | xmonad/xmonad-contrib | XMonad/Util/Timer.hs | bsd-3-clause | 1,857 | 0 | 17 | 408 | 379 | 194 | 185 | 31 | 2 |
module Language.Haskell.GhcMod.Lang where
import DynFlags (supportedLanguagesAndExtensions)
import Language.Haskell.GhcMod.Types
import Language.Haskell.GhcMod.Convert
-- | Listing language extensions.
listLanguages :: Options -> IO String
listLanguages opt = return $ convert opt supportedLanguagesAndExtensions
| darthdeus/ghc-mod-ng | Language/Haskell/GhcMod/Lang.hs | bsd-3-clause | 316 | 0 | 6 | 32 | 60 | 36 | 24 | 6 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.PixelBufferObject
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portab... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/PixelBufferObject.hs | bsd-3-clause | 779 | 0 | 4 | 87 | 46 | 37 | 9 | 6 | 0 |
{-# LANGUAGE CPP #-}
-- | This module provides remote monitoring of a running process over
-- HTTP. It can be used to run an HTTP server that provides both a
-- web-based user interface and a machine-readable API (e.g. JSON.)
-- The former can be used by a human to get an overview of what the
-- program is doing and ... | fpco/ekg | System/Remote/Monitoring.hs | bsd-3-clause | 6,893 | 0 | 9 | 1,211 | 360 | 269 | 91 | 27 | 1 |
{-|
Module : PP.Grammars.Ebnf
Description : Defines a AST and parser for the EBNF language
Copyright : (c) 2017 Patrick Champion
License : see LICENSE file
Maintainer : chlablak@gmail.com
Stability : provisional
Portability : portable
AST for the EBNF language.
Based on the grammar given in the ISO/IEC 1... | chlablak/platinum-parsing | src/PP/Grammars/Ebnf.hs | bsd-3-clause | 10,858 | 0 | 17 | 2,529 | 3,066 | 1,602 | 1,464 | 210 | 15 |
module Cases.DeclDependencyTest where
import Language.Haskell.Exts hiding (name)
import Test.HUnit
import Cases.BaseDir
import Utils.DependencyAnalysis
import Utils.Nameable
testdecldependency1 = testdecldependency test1
testdecldependency :: (String, String) -> Assertion
testdecldependency (f,s)
= do
... | rodrigogribeiro/mptc | test/Cases/DeclDependencyTest.hs | bsd-3-clause | 1,013 | 0 | 13 | 207 | 295 | 157 | 138 | 22 | 1 |
module Agon.Data.Types where
data UUIDs = UUIDs [String]
data CouchUpdateResult = CouchUpdateResult {
curRev :: String
} deriving Show
data CouchList e = CouchList {
clItems :: [CouchListItem e]
} deriving Show
data CouchListItem e = CouchListItem {
cliItem :: e
} deriving Show
| Feeniks/Agon | app/Agon/Data/Types.hs | bsd-3-clause | 296 | 0 | 10 | 61 | 81 | 50 | 31 | 11 | 0 |
{-# LANGUAGE StandaloneDeriving, DeriveFunctor, OverloadedStrings #-}
module Web.Rest (
Request(..),
Method(..),Location,Accept,ContentType,Body,
Response(..),
ResponseCode,
RestT,Rest,rest,
runRestT,Hostname,Port,RestError(..)) where
import Web.Rest.Internal (
Request(..),
Method(..),L... | phischu/haskell-rest | src/Web/Rest.hs | bsd-3-clause | 476 | 0 | 6 | 78 | 147 | 100 | 47 | 16 | 0 |
{-# LANGUAGE DataKinds, DeriveDataTypeable, FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances, FunctionalDependencies, MagicHash #-}
{-# LANGUAGE MultiParamTypeClasses, PolyKinds, QuasiQuotes, RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables, StandaloneDeriving, TemplateHaskell #-}
{-# LANGUAGE TypeFam... | konn/reactive-objc | Messaging/Core.hs | bsd-3-clause | 2,309 | 0 | 17 | 569 | 836 | 457 | 379 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module OAuthHandlers
( routes ) where
------------------------------------------------------------------------------
import Control.Applicative
import Control.Monad
import Control.Monad.Trans
import Data.ByteString (... | HaskellCNOrg/snaplet-oauth | example/src/OAuthHandlers.hs | bsd-3-clause | 4,350 | 0 | 17 | 1,169 | 721 | 399 | 322 | 66 | 2 |
module Math.Matrix where
import Math.Vector
import Data.List ( intercalate )
import Data.Maybe ( fromJust, fromMaybe )
import qualified Data.List as L
type Matrix a = [Vector a]
-- Projection Matrices
orthoMatrix :: (Num t, Fractional t) => t -> t -> t -> t -> t -> t -> Matrix t
ort... | schell/blocks | src/Math/Matrix.hs | bsd-3-clause | 6,213 | 0 | 15 | 2,660 | 2,184 | 1,183 | 1,001 | 104 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module VirtualDom.Prim where
import Control.Applicative
import Control.Lens
import Control.Monad.State
import Data.String (IsString(fromString))
import GHCJS.DOM.Event
import GHCJS.Foreign
import GHCJS.Types
import System.IO.Unsafe
import qualified ... | ocharles/virtual-dom | src/VirtualDom/Prim.hs | bsd-3-clause | 5,318 | 68 | 14 | 986 | 1,198 | 619 | 579 | -1 | -1 |
module Twitch.Run where
import Prelude hiding (FilePath, log)
import Twitch.Internal ( Dep, runDep )
import Twitch.InternalRule
( Config(dirs, logger), InternalRule, toInternalRule, setupRules )
import Twitch.Rule ( RuleIssue )
import Data.Either ( partitionEithers )
import System.FilePath ( FilePath )
import Syste... | jfischoff/twitch | src/Twitch/Run.hs | mit | 1,264 | 0 | 10 | 207 | 359 | 199 | 160 | 28 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Chapter2.Section2.LabInteractive where
import Prelude
{- Ex 1: Which of the following implementations defines a
function putStr' :: String -> IO () that takes a
String as its parameter and writes it to the
standard output?
Note... | ltfschoen/HelloHaskell | src/Chapter2/Section2/LabInteractive.hs | mit | 17,861 | 0 | 13 | 6,045 | 725 | 424 | 301 | 37 | 2 |
module FrontEnd.Tc.Module (tiModules,TiData(..)) where
import Control.Monad.Writer
import Data.Char
import Text.PrettyPrint.HughesPJ as PPrint
import qualified Data.Foldable as T
import qualified Data.Map as Map
import qualified Data.Set as Set
import DataConstructors
import DerivingDrift.Drift
import Doc.PPrint as P... | dec9ue/jhc_copygc | src/FrontEnd/Tc/Module.hs | gpl-2.0 | 13,185 | 32 | 22 | 3,406 | 3,740 | 1,961 | 1,779 | -1 | -1 |
{-
This source file is a part of the noisefunge programming environment.
Copyright (C) 2015 Rev. Johnny Healey <rev.null@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation... | wolfspyre/noisefunge | nfreset/nfreset.hs | gpl-3.0 | 890 | 1 | 7 | 191 | 32 | 15 | 17 | 4 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
@Uniques@ are used to distinguish entities in the compiler (@Ids@,
@Classes@, etc.) from each other. Thus, @Uniques@ are the basic
comparison key in the compiler.
If there is any single operation that needs to be fast, i... | nushio3/ghc | compiler/basicTypes/Unique.hs | bsd-3-clause | 13,652 | 0 | 12 | 3,576 | 2,043 | 1,112 | 931 | 163 | 3 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Setup
-- Copyright : Isaac Jones 2003-2004
-- Duncan Coutts 2007
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell... | randen/cabal | Cabal/Distribution/Simple/Setup.hs | bsd-3-clause | 89,397 | 0 | 26 | 24,015 | 18,104 | 10,250 | 7,854 | 1,738 | 10 |
{-
(c) The University of Glasgow, 2000-2006
\section{Fast booleans}
-}
{-# LANGUAGE CPP, MagicHash #-}
module Eta.Utils.FastBool (
--fastBool could be called bBox; isFastTrue, bUnbox; but they're not
FastBool, fastBool, isFastTrue, fastOr, fastAnd
) where
-- Import the beggars
import GHC.Exts
#ifdef DEBUG... | rahulmutt/ghcvm | compiler/Eta/Utils/FastBool.hs | bsd-3-clause | 1,846 | 0 | 6 | 350 | 211 | 121 | 90 | 17 | 1 |
-- | see http://www.cs.cmu.edu/~emc/15414-f11/assignments/hw2.pdf
module DPLL.Pigeon where
import DPLL.Data
import DPLL.Solve
import DPLL.Trace (modus0)
pigeon :: Int -> Int -> CNF
pigeon pigs holes =
let encode p h = Literal $ (p - 1) * holes + h
in do p <- [ 1 .. pigs ]
return $ do h <-... | marcellussiegburg/autotool | collection/src/FD/Pigeon.hs | gpl-2.0 | 523 | 0 | 14 | 173 | 208 | 108 | 100 | 12 | 1 |
{-# language ViewPatterns, ScopedTypeVariables, FlexibleInstances, DeriveDataTypeable #-}
module Sorts.Nikki.Types where
import Prelude hiding (lookup)
import Data.Map (Map)
import Data.Data
import Data.Initial
import Data.Abelian
import Data.Directions
import qualified Data.Strict as Strict
import Data.Accessor
i... | geocurnoff/nikki | src/Sorts/Nikki/Types.hs | lgpl-3.0 | 4,541 | 0 | 13 | 999 | 1,192 | 656 | 536 | 151 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns, MagicHash #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Bits
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICE... | alexander-at-github/eta | libraries/base/Data/Bits.hs | bsd-3-clause | 21,596 | 0 | 14 | 6,360 | 3,688 | 2,043 | 1,645 | 260 | 2 |
{-# LANGUAGE CPP #-}
module ETA.Rename.RnSplice (
rnTopSpliceDecls,
rnSpliceType, rnSpliceExpr, rnSplicePat, rnSpliceDecl,
rnBracket,
checkThLocalName
) where
import ETA.BasicTypes.Name
import ETA.BasicTypes.NameSet
import ETA.HsSyn.HsSyn
import ETA.BasicTypes.RdrName
import ETA.TypeC... | alexander-at-github/eta | compiler/ETA/Rename/RnSplice.hs | bsd-3-clause | 24,906 | 0 | 10 | 7,501 | 579 | 334 | 245 | 28 | 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>Дополнение Selenium</title>
<maps>
<homeID>top</homeID>
<mapref location... | thc202/zap-extensions | addOns/selenium/src/main/javahelp/org/zaproxy/zap/extension/selenium/resources/help_ru_RU/helpset_ru_RU.hs | apache-2.0 | 1,006 | 77 | 66 | 156 | 481 | 241 | 240 | -1 | -1 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="ar-SA">
<title>Retest Add-On</title>
<maps>
<homeID>retest</homeID>
<mapref location="m... | thc202/zap-extensions | addOns/retest/src/main/javahelp/org/zaproxy/addon/retest/resources/help_ar_SA/helpset_ar_SA.hs | apache-2.0 | 961 | 77 | 67 | 156 | 411 | 208 | 203 | -1 | -1 |
module T16804a where
import Data.Monoid
data Test = A | B
deriving (Show)
instance Monoid Test where
mempty = A
-- empty for linenumbers in T16804 to be correct
-- empty for linenumbers in T16804 to be correct
testFunction :: Test -> Test -> Bool
testFunction A B = True
testFunction B A = True
testFunction _ _ =... | sdiehl/ghc | testsuite/tests/ghci/scripts/T16804a.hs | bsd-3-clause | 597 | 0 | 9 | 133 | 199 | 105 | 94 | 20 | 1 |
{- $Id: AFRPTestsRPSwitch.hs,v 1.2 2003/11/10 21:28:58 antony Exp $
******************************************************************************
* A F R P *
* *
* Module:... | ony/Yampa-core | tests/AFRPTestsRPSwitch.hs | bsd-3-clause | 8,137 | 10 | 16 | 2,609 | 2,637 | 1,646 | 991 | 184 | 1 |
-- (c) 2000-2005 by Martin Erwig [see file COPYRIGHT]
module Data.Graph.Inductive.Query.SP(
spTree,spLength,sp,
dijkstra
) where
import qualified Data.Graph.Inductive.Internal.Heap as H
import Data.Graph.Inductive.Graph
import Data.Graph.Inductive.Internal.RootPath
expand :: Real b => b -> LPath b -> Contex... | FranklinChen/hugs98-plus-Sep2006 | packages/fgl/Data/Graph/Inductive/Query/SP.hs | bsd-3-clause | 1,114 | 0 | 14 | 249 | 576 | 305 | 271 | 21 | 2 |
import Test.Cabal.Prelude
main = cabalTest $ do
cabal "new-test" []
| themoritz/cabal | cabal-testsuite/PackageTests/TestSuiteTests/ExeV10/cabal.test.hs | bsd-3-clause | 73 | 0 | 9 | 15 | 26 | 13 | 13 | 3 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Doc.Developing
-- Copyright : (C) 2007 Andrea Rossato
-- License : BSD3
--
-- Maintainer : andrea.rossato@unibz.it
-- Stability : unstable
-- Portability : portable
--
-- This module gives a brief o... | pjones/xmonad-test | vendor/xmonad-contrib/XMonad/Doc/Developing.hs | bsd-2-clause | 11,768 | 0 | 3 | 1,763 | 73 | 70 | 3 | 2 | 0 |
{-|
Code for setting up the RIO environment.
-}
module Urbit.King.App
( KingEnv
, runKingEnvStderr
, runKingEnvStderrRaw
, runKingEnvLogFile
, runKingEnvNoLog
, kingEnvKillSignal
, killKingActionL
, onKillKingSigL
, HostEnv
, runHostEnv
, PierEnv
, runPierEnv
, killPierActionL
, onKillPi... | urbit/urbit | pkg/hs/urbit-king/lib/Urbit/King/App.hs | mit | 8,381 | 0 | 15 | 1,799 | 2,046 | 1,057 | 989 | -1 | -1 |
{-|
Module : Test.Problem
Description : The Test node for the Problem module
Copyright : (c) Andrew Burnett 2014-2015
Maintainer : andyburnett88@gmail.com
Stability : experimental
Portability : Unknown
Contains the node for the tests of the Problem module and its children
-}
module Test.Problem (
tests
... | aburnett88/HSat | tests-src/Test/Problem.hs | mit | 748 | 0 | 7 | 158 | 96 | 64 | 32 | 16 | 1 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.DedicatedWorkerGlobalScope (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.DedicatedWorkerGlobalScope
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
im... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/DedicatedWorkerGlobalScope.hs | mit | 391 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.