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 Main where
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
run count = do
putStrLn ("\nTurns count: " ++ show count)
putStrLn $ show $ last $ take count fibs
run (count + 1)
main = do
run 1
| dskecse/Adv2Game | testFib.hs | gpl-3.0 | 204 | 0 | 10 | 54 | 100 | 49 | 51 | 8 | 1 |
-- | Implementation of diff-match-patch
module Data.DiffMatchPatch.Internal
( TextPair
, makeTextPair
, getTexts
, firstText
, secondText
, getTextCores
, commonPrefix
, commonSuffix
, commonSuffixes
) where
import BasicPrelude
import qualified Data.Text as Text
-- | A pair ... | jml/diff-match-patch | src/Data/DiffMatchPatch/Internal.hs | gpl-3.0 | 2,705 | 0 | 12 | 608 | 499 | 293 | 206 | -1 | -1 |
-- This file is part of tersmu
-- Copyright (C) 2014 Martin Bays <mbays@sdf.org>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of version 3 of the GNU General Public License as
-- published by the Free Software Foundation.
--
-- You should have received a copy of the G... | lagleki/tersmu-0.2 | Util.hs | gpl-3.0 | 772 | 4 | 11 | 165 | 225 | 122 | 103 | 8 | 3 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LiberalTypeSynonyms #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- | General law tests for instances defined in this package
... | bennofs/vplan | tests/Laws.hs | gpl-3.0 | 5,351 | 0 | 20 | 1,382 | 2,402 | 1,216 | 1,186 | -1 | -1 |
{- ============================================================================
| Copyright 2011 Matthew D. Steele <mdsteele@alum.mit.edu> |
| |
| This file is part of Fallback. |
... | mdsteele/fallback | src/Fallback/State/Area.hs | gpl-3.0 | 26,013 | 0 | 20 | 5,825 | 6,607 | 3,442 | 3,165 | 397 | 18 |
module Test where
main = print "Test"
| Jiggins/Matrix | Math/Test.hs | gpl-3.0 | 39 | 0 | 5 | 8 | 12 | 7 | 5 | 2 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-billing/gen/Network/Google/Resource/CloudBilling/BillingAccounts/Projects/List.hs | mpl-2.0 | 6,655 | 0 | 18 | 1,442 | 896 | 523 | 373 | 128 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-youtube/gen/Network/Google/Resource/YouTube/Subscriptions/Delete.hs | mpl-2.0 | 2,958 | 0 | 12 | 661 | 317 | 195 | 122 | 49 | 1 |
--
-- Copyright 2017-2018 Azad Bolour
-- Licensed under GNU Affero General Public License v3.0 -
-- https://github.com/azadbolour/boardgame/blob/master/LICENSE.md
--
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE DisambiguateRecordFields #-}
module Bolour.Language.Domain.WordDictionarySpec where
import Test.Hspec
i... | azadbolour/boardgame | haskell-server/test/Bolour/Language/Domain/WordDictionarySpec.hs | agpl-3.0 | 2,147 | 0 | 18 | 412 | 499 | 264 | 235 | 41 | 1 |
module Main where
import HC
import Lib
main :: IO ()
main = do
top
hctop
initAndRunProgram
| haroldcarr/learn-haskell-coq-ml-etc | haskell/topic/monads/2017-06-snoyman-readert-design-pattern/app/Main.hs | unlicense | 100 | 0 | 6 | 26 | 34 | 18 | 16 | 8 | 1 |
{- Copyright 2014-2015 David Farrell <shokku.ra@gmail.com>
- 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 l... | shockkolate/arata | src/Arata/DB.hs | apache-2.0 | 2,150 | 0 | 12 | 340 | 534 | 285 | 249 | 38 | 1 |
-- Copyright (c) 2016 Fernando Rincon
--
-- 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 agree... | frincon/heventsourced | erp/src/Erp.hs | apache-2.0 | 701 | 0 | 5 | 124 | 41 | 31 | 10 | 5 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
module HERMIT.Dictionary.AlphaConversion
( -- * Alpha-Renaming and Shadowing
externals
-- ** Alpha-Renaming
, alphaR
, alphaLamR
, alphaCaseBinderR
, alphaAltWithR
, alphaAltVarsR
, alphaAltR
, alphaCaseR... | beni55/hermit | src/HERMIT/Dictionary/AlphaConversion.hs | bsd-2-clause | 22,110 | 0 | 18 | 5,493 | 4,745 | 2,454 | 2,291 | 257 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Test.Nero.Match where
import Test.SmallCheck.Series.Instances ()
import Test.Tasty (TestTree, testGroup)
import qualified Test.Tasty.Lens.Prism as Prism
import Nero.Match
import Nero.Prelude
tests :: TestTree
tests = testGroup "Match"
[ Prism.test (prefixed "/" :: Prism' T... | plutonbrb/nero | tests/Test/Nero/Match.hs | bsd-3-clause | 1,013 | 0 | 10 | 181 | 387 | 207 | 180 | 24 | 1 |
module Lucid.Foundation.Navigation
( module Lucid.Foundation.Navigation.OffCanvas
, module Lucid.Foundation.Navigation.TopBar
, module Lucid.Foundation.Navigation.IconBar
, module Lucid.Foundation.Navigation.SideNav
, module Lucid.Foundation.Navigation.Magellan
, module Lucid.Foundation.Navigation.SubNav
... | athanclark/lucid-foundation | src/Lucid/Foundation/Navigation.hs | bsd-3-clause | 782 | 0 | 5 | 63 | 129 | 94 | 35 | 17 | 0 |
{-# LANGUAGE LambdaCase #-}
module Types.SCCode where
import Data.List
import GHC.Generics
import Types.Filter
import Types.PrettyFilter
import Types.DSPNode
import Utils
rest :: [a] -> [a]
rest [] = []
rest (a:as) = as
data SCCode =
SCFilter { oid :: Int, vars :: [String], function :: String, args :: [(St... | aedanlombardo/HaskellPS | DSP-PBE/src/Types/SCCode.hs | bsd-3-clause | 5,056 | 0 | 21 | 1,493 | 1,974 | 1,092 | 882 | 88 | 5 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module Haystack.Web.Preferences where
import Prelude hiding (forM_, mapM_)
import Control.Applicative ((<$>), optional)
import Control.Monad (msum, liftM2)
import Control.Monad.Reader (ask, ReaderT)
import Data.List.Split (splitOn)
import Data.Map (Map)
import q... | isovector/haystack | src/Haystack/Web/Preferences.hs | bsd-3-clause | 4,037 | 0 | 14 | 1,480 | 1,155 | 604 | 551 | 98 | 1 |
{-# LANGUAGE DoAndIfThenElse #-}
module Type(Type(..), makeUniqueTVars, parse) where
import Text.Parsec hiding (parse)
import qualified Text.Parsec as Parsec
import Control.Applicative hiding ((<|>))
import Control.Monad
import Data.List
import Term(TermClass(..), Substitution(..))
import VarEnvironment
data Type = ... | projedi/type-inference-rank2 | src/Type.hs | bsd-3-clause | 3,404 | 0 | 17 | 869 | 1,399 | 708 | 691 | 95 | 4 |
{-# LANGUAGE CPP #-}
import Prelude
#if !MIN_VERSION_base(4,6,0)
hiding (catch)
#endif
import Control.Exception (IOException, catch)
import Control.Exception.Assert
import Control.Monad
import qualified Data.ByteString.Char8 as BS
import Data.Monoid
import Distribution.PackageDescription
import Distribution.Simple... | liyang/assert | tests/rewrite.hs | bsd-3-clause | 1,394 | 1 | 12 | 259 | 364 | 191 | 173 | 33 | 1 |
module Paths_src (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName
) where
import Data.Version (Version(..))
import System.Environment (getEnv)
version :: Version
version = Version {versionBranch = [0,1], versionTags = []}
bindir, libdir, datadir, libexecdir :: FilePath
bindi... | part-xx/hott-plastic | dist/build/autogen/Paths_src.hs | bsd-3-clause | 939 | 0 | 10 | 144 | 277 | 159 | 118 | 22 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
module Fragment.Let.Helpers (
tmLetRec
, tmLet
, checkLetBindings
) where
import Data.List (... | dalaing/type-systems | src/Fragment/Let/Helpers.hs | bsd-3-clause | 1,861 | 0 | 17 | 520 | 800 | 424 | 376 | 52 | 1 |
-- | Messages to be printed to the player
module Quoridor.Cmdline.Messages
where
import Quoridor (Color, Turn)
msgAwaitingTurn :: Color -> String
msgAwaitingTurn c = "Waiting for " ++ show c ++ " to make his turn."
msgYourTurn :: String
msgYourTurn = "It's your turn."
msgGameEnd :: Color -> String
msgGame... | talw/quoridor-hs | src/Quoridor/Cmdline/Messages.hs | bsd-3-clause | 946 | 0 | 8 | 214 | 182 | 101 | 81 | 21 | 1 |
{-# LANGUAGE DeriveGeneric #-}
module EnumTests ( Mode(Directory, NormalFile, ExecutableFile, Symlink) ) where
import Protolude hiding (Enum)
import GraphQL.API (GraphQLEnum)
-- https://github.com/jml/graphql-api/issues/116
-- Generic enum code is broken
data Mode = Directory | NormalFile | ExecutableFile | Symlink... | jml/graphql-api | tests/EnumTests.hs | bsd-3-clause | 377 | 0 | 6 | 50 | 79 | 51 | 28 | 9 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Update
-- Copyright : (c) David Himmelstrup 2005
-- License : BSD-like
--
-- Maintainer : lemmih@gmail.com
-- Stability : provisional
-- Portability : portable
--
--
-------------------... | typelead/epm | epm/Distribution/Client/Update.hs | bsd-3-clause | 3,325 | 0 | 19 | 756 | 632 | 348 | 284 | 63 | 3 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE MagicHash #-}
-- for unboxed shifts
-----------------------------------------------------------------------------
-- |
-- Module : Data.Serialize.Builder
-- Copyright : Lennart Kolmodin, Ross Paterson, Galois Inc. 2009
-- License : BSD3-style (see LICENSE)
--
-- Main... | triplepointfive/cereal | src/Data/Serialize/Builder.hs | bsd-3-clause | 15,406 | 0 | 15 | 3,335 | 3,040 | 1,702 | 1,338 | 186 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
module Data.Diverse.AFoldable where
-- | Constrained Foldable for a specified type instead for all types.
class AFoldable t a where
afoldr :: (a -> b -> b) -> b -> t a -> b
afoldl' :: AFoldable t a => (b -> a -> b) -> b -> t a -> b
afoldl' f z0 xs = afoldr f' id xs z0
wh... | louispan/data-diverse | src/Data/Diverse/AFoldable.hs | bsd-3-clause | 346 | 0 | 10 | 87 | 135 | 69 | 66 | 7 | 1 |
{-# LANGUAGE RecordWildCards #-}
module Main where
import Control.Monad
import Data.List
import Data.Maybe
import Data.Monoid
import System.FilePath as System
import System.IO as System
import qualified Distribution.ModuleName as Cabal
import qualified Distribution.Package as Cabal
import qualified Distribution.Pa... | PlushBeaver/cabal-list-sources | app/Main.hs | bsd-3-clause | 5,730 | 0 | 18 | 1,580 | 1,566 | 804 | 762 | 137 | 5 |
module Challenge where
safeLast :: [a] -> Maybe a
safeLast [] = Nothing
safeLast xs = Just $ last xs
rangeStr :: Int -> Int -> String
rangeStr s e = show s ++ "->" ++ show e
endOfRange :: [Int] -> Maybe (Int, Int)
endOfRange [] = Nothing
endOfRange (x:xs) = safeLast matches
where
matches = takeWhile (\(i, y) -... | mindm/2017Challenges | challenge_6/haskell/halogenandtoast/src/Challenge.hs | mit | 625 | 0 | 13 | 189 | 305 | 159 | 146 | 17 | 3 |
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Qi.Test.Config.DDB.Simple where
{-
import Control.Lens
import Control.Monad (void)
import Data.Aeson
import Data.Aeson.Encode.Pretty (encodePret... | qmuli/qmuli | tests/Qi/Test/Config/DDB/Simple.hs | mit | 2,827 | 0 | 3 | 877 | 13 | 11 | 2 | 4 | 0 |
{- |
Module : ./SoftFOL/Translate.hs
Description : utility to create valid identifiers for atp provers
Copyright : (c) Klaus Luettich, Uni Bremen 2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : luecke@informatik.uni-bremen.de
Stability : provisional
Portability : portable
collection ... | spechub/Hets | SoftFOL/Translate.hs | gpl-2.0 | 3,654 | 0 | 17 | 743 | 721 | 382 | 339 | 78 | 11 |
module Main where
import PathFind
f a b c = a (findPath dijkstra b) c | graninas/The-Amoeba-World | src/Amoeba/Test/Experiments/ModuleAbstraction/Main.hs | gpl-3.0 | 70 | 0 | 7 | 15 | 32 | 17 | 15 | 3 | 1 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE StrictData #-}
module Network.Tox.Time where
import qualified System.Clock as Clock
import Test.QuickCheck.Arbitrary (Arbitrary, arbitrary)
{-------------------------------------------------------------------------------
-
- :: Implementation.
-
----... | iphydf/hs-toxcore | src/Network/Tox/Time.hs | gpl-3.0 | 1,785 | 0 | 9 | 295 | 499 | 260 | 239 | 31 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/DeleteLayer.hs | mpl-2.0 | 3,554 | 0 | 12 | 733 | 406 | 248 | 158 | 56 | 1 |
{-# LANGUAGE CPP #-}
-- | DFOV (Digital Field of View) implemented according to specification at <http://roguebasin.roguelikedevelopment.org/index.php?title=Digital_field_of_view_implementation>.
-- This fast version of the algorithm, based on "PFOV", has AFAIK
-- never been described nor implemented before.
module Gam... | Concomitant/LambdaHack | Game/LambdaHack/Server/Fov/Digital.hs | bsd-3-clause | 6,643 | 0 | 18 | 1,874 | 1,585 | 863 | 722 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
-- | This module only exports orphan 'Ser.Serialise' instances. Import as:
--
-- @
--... | k0001/haskell-money | safe-money-serialise/src/Money/Serialise.hs | bsd-3-clause | 3,436 | 0 | 15 | 643 | 1,008 | 514 | 494 | 76 | 0 |
-- Copyright (c) 2016 Eric McCorkle. 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 the above copyright
-- notice, this list of conditions... | saltlang/compiler-toolbox | src/Control/Monad/CommentBuffer.hs | bsd-3-clause | 8,692 | 4 | 15 | 1,680 | 2,080 | 1,101 | 979 | 174 | 1 |
{-# LANGUAGE TypeOperators, TypeFamilies, MultiParamTypeClasses, GADTs, FlexibleContexts, FlexibleInstances, ScopedTypeVariables, NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Category.Comma
-- License : BSD-style (see the file LICEN... | treeowl/data-category | Data/Category/Comma.hs | bsd-3-clause | 2,853 | 0 | 16 | 787 | 1,142 | 616 | 526 | 46 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Network.IRC.Bot.Log where
import Data.Data
data LogLevel
= Debug
| Normal
| Important
deriving (Eq, Ord, Read, Show, Data, Typeable)
type Logger = LogLevel -> String -> IO ()
stdoutLogger :: LogLevel -> Logger
stdoutLogger minLvl msgLvl msg
| msgLvl >... | jonte/ircbot | Network/IRC/Bot/Log.hs | bsd-3-clause | 427 | 0 | 8 | 100 | 141 | 74 | 67 | 15 | 1 |
module Object.Infer where
-- $Id$
import Object.Data
import Autolib.Reporter.Type hiding ( result )
import Autolib.ToDoc
import Autolib.TES.Term
import Autolib.TES.Identifier
import Control.Monad ( guard )
type Exp = Term Identifier Identifier
infer :: Signature -> Exp -> Reporter Type
infer sig exp = do
in... | florianpilz/autotool | src/Object/Infer.hs | gpl-2.0 | 1,652 | 24 | 35 | 552 | 523 | 255 | 268 | 41 | 6 |
module Main where
import Graphics.UI.Gtk
main = do
initGUI
-- Create the builder, and load the UI file
builder <- builderNew
builderAddFromFile builder "simple.ui"
-- Retrieve some objects from the UI
window <- builderGetObject builder castToWindow "window1"
b... | phischu/gtk2hs | gtk/demo/gtkbuilder/GtkBuilderTest.hs | lgpl-3.0 | 577 | 0 | 8 | 172 | 95 | 47 | 48 | 12 | 1 |
{-
(c) The University of Glasgow 2006
(c) The AQUA Project, Glasgow University, 1993-1998
TcRules: Typechecking transformation rules
-}
{-# LANGUAGE ViewPatterns #-}
module TcRules ( tcRules ) where
import HsSyn
import TcRnMonad
import TcSimplify
import TcMType
import TcType
import TcHsType
import TcExpr
import Tc... | tjakway/ghcjvm | compiler/typecheck/TcRules.hs | bsd-3-clause | 14,510 | 2 | 17 | 4,466 | 1,643 | 850 | 793 | 134 | 3 |
module D1 where
{-Rename data constructor `Tree` to `AnotherTree`.
This refactoring affects module `D1', 'B1' and 'C1' -}
data AnotherTree a = Leaf a | Branch (AnotherTree a) (AnotherTree a)
fringe :: AnotherTree a -> [a]
fringe (Leaf x ) = [x]
fringe (Branch left right) = fringe left ++ fringe right
class Sa... | kmate/HaRe | old/testing/renaming/D1_TokOut.hs | bsd-3-clause | 580 | 0 | 8 | 151 | 217 | 112 | 105 | 15 | 1 |
{-# LANGUAGE TypeFamilies, FlexibleContexts #-}
-- Results in context reduction stack overflow
module Class1 where
class C a where
foo :: a x -> a y
class C (T a) => D a where
type T a :: * -> *
bar :: a -> T a x -> T a y
instance C Maybe where
foo Nothing = Nothing
instance D () where
type T () = Mayb... | urbanslug/ghc | testsuite/tests/indexed-types/should_compile/Class1.hs | bsd-3-clause | 341 | 0 | 9 | 95 | 136 | 69 | 67 | 12 | 0 |
{-# LANGUAGE StandaloneDeriving #-}
module Main where
data A
deriving instance Read A
deriving instance Show A
main = print (read "[]" :: [A])
-- Should successfully read the empty list
| forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/deriving/should_run/T7931.hs | bsd-3-clause | 196 | 0 | 7 | 41 | 45 | 26 | 19 | -1 | -1 |
quicksort :: (Ord a) => [a] -> [a]
quicksort [] = []
quicksort (x:xs) =
smaller ++ [x] ++ bigger
where
smaller = quicksort [ e | e <- xs, e <= x ]
bigger = quicksort [ e | e <- xs, e > x ]
| dzeban/cs | sorting/quicksort.hs | mit | 216 | 0 | 10 | 74 | 119 | 63 | 56 | 6 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.TheBook.TypesTest
-- Copyright : (c) 2014, Jakub Kozlowski
-- License : MIT
--
-- Maintainer : mail@jakub-kozlowski.com
--
-- Tests for 'Data.TheBook.Types'.
----------------------------------------------... | ggreif/thebook-haskell | tests/Data/TheBook/TypesTest.hs | mit | 792 | 0 | 8 | 163 | 104 | 68 | 36 | 12 | 1 |
{-# LANGUAGE OverloadedStrings, JavaScriptFFI #-}
module Main where
import GHCJS.Types
import GHCJS.Foreign
import GHCJS.Marshal
import qualified Data.JSString as JSS
jx, jy, jz :: JSString
jx = "x"
jy = "xy"
jz = "xyz"
hx, hy, hz :: String
hx = "X"
hy = "XY"
hz = "XYZ"
foreign import javascript unsafe "h$log($1);... | ghcjs/ghcjs | test/ffi/jsString.hs | mit | 619 | 5 | 10 | 155 | 213 | 123 | 90 | 21 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Test.Hspec
import qualified Data.Set as S
import qualified Data.Map as M
import Control.Exception
import Control.Concurrent
import Control.Concurrent.STM
import System.Posix
import System.Process
import System.Process.Internals (withProcessHandle, ProcessHan... | gree/haskell-prefork | test/test-prefork.hs | mit | 4,224 | 0 | 22 | 1,017 | 1,188 | 571 | 617 | 105 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.Socket.ByteString.Lazy.Posix (
-- * Send data to a socket
send
, sendAll
) where
import qualified Data.ByteString.Lazy as L
import Data.ByteString.Unsafe (unsafeUseAsCStringLen)
import ... | CloudI/CloudI | src/api/haskell/external/network-3.1.0.1/Network/Socket/ByteString/Lazy/Posix.hs | mit | 2,081 | 0 | 18 | 653 | 537 | 286 | 251 | 46 | 2 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-@ LIQUID "-i../../bench" @-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.StackSet
-- Copyright : (c) Don Stewart 200... | gridaphobe/target | examples/XMonad/StackSet.hs | mit | 35,974 | 0 | 14 | 9,246 | 5,822 | 3,182 | 2,640 | 228 | 4 |
{-# LANGUAGE BangPatterns, OverloadedStrings, TemplateHaskell #-}
import Control.Exception (finally)
import Control.Lens (makeLenses, to, (&), (.~), (^.),
(^?))
import Control.Monad (unless)
import ... | objectx/kippt-grabber | src/Main.hs | mit | 3,521 | 0 | 20 | 1,365 | 902 | 474 | 428 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Reactive where
import Types
import World
import Mob
import Reactive.Banana
import Graphics.Gloss
import Control.Applicative
import Control.Lens
import Graphics.Gloss.Interface.Pure.Game hiding (Event)
import qualified Graphics.Gloss.Interface.Pure.Game as G
makePrisms ''G.Ev... | edwardwas/tanks15 | src/Reactive.hs | mit | 895 | 0 | 11 | 220 | 279 | 142 | 137 | 23 | 5 |
{-# LANGUAGE BangPatterns, DataKinds, DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Hadoop.Protos.ClientNamenodeProtocolProtos.CreateFlagProto (CreateFlagProto(..)) where
import Prelude ((+), (/), (.))
import qualified Prelude as Prelude'
import qua... | alexbiehl/hoop | hadoop-protos/src/Hadoop/Protos/ClientNamenodeProtocolProtos/CreateFlagProto.hs | mit | 3,189 | 0 | 11 | 553 | 784 | 429 | 355 | 69 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Proxygen.Database
( Database
, DatabaseIORef
, newDatabase
, updateDatabase
) where
import Proxygen.Database.Cache
import Proxygen.Card
import Proxygen.Card.Raw
import Data.IORef
import qualified Data.Map.Strict as M
import qualified Data.Aeson as Aeson
i... | Dryvnt/proxygen-hs | src/Proxygen/Database.hs | mit | 1,456 | 0 | 13 | 284 | 326 | 175 | 151 | 35 | 2 |
{-# LANGUAGE DeriveGeneric #-}
module ContentIdentifier (
create
, createLazy
, nil
, Algro (..)
, Type
, Value
, toURNBuilder
, toURN
, ContentIdentifier (..)
)
where
import Control.Applicative
import Control.DeepSeq
import Control.DeepSeq.Generics (genericRnf)
import Data.ByteString.Builder
... | danstiner/clod | src/ContentIdentifier.hs | mit | 3,640 | 0 | 10 | 635 | 1,053 | 587 | 466 | 95 | 1 |
{-|
Module : Language.GoLite.Syntax.SrcAnn
Description : GoLite syntax definitions with source annotations
Copyright : (c) Jacob Errington and Frederic Lafrance, 2016
License : MIT
Maintainer : goto@mail.jerrington.me
Stability : experimental
This module provides type synonyms for practically all the typ... | djeik/goto | libgoto/Language/GoLite/Syntax/SrcAnn.hs | mit | 11,104 | 0 | 17 | 2,469 | 2,739 | 1,444 | 1,295 | 214 | 15 |
import Drawing
import Geometry
main = drawPicture myPicture
myPicture points =
drawLine (a,b) &
drawLine (c,d) &
drawLine (f,g) &
drawLabels [a,b,c,d,e,f,g] ["A","B","C","D","E","F","G"]&
message $ "Parallel Lines"
where [a,b] = take 2 points
[c,d] = circle_circle (a,b) (b... | alphalambda/k12math | contrib/MHills/GeometryLessons/code/teacher/key_lesson5c.hs | mit | 405 | 0 | 11 | 114 | 220 | 126 | 94 | 13 | 1 |
module Credentials (
credentialsForAppName,
) where
import System.Environment
import System.IO.Error
import Network.HTTP.Authentication.Basic
import Data.Char
import Data.Monoid
import Data.List (uncons)
-- Look up credentials for the given app name, fall back to the global
-- credentials if there aren't app spec... | keithduncan/logplex-statsd | src/Credentials.hs | mit | 1,429 | 0 | 15 | 404 | 375 | 194 | 181 | 32 | 3 |
charName :: Char -> String
charName 'a' = "Wa lala wa"
charName 'b' = "Zabar dast"
charName 'c' = "Chal Hunr Dafa ho"
charName a = error "Dafa ho sahi input da! :/ "
map' f [] = []
map' f xs = [f x | x <- xs]
fil' :: (a->Bool) -> [a] -> [a]
fil' f [] = []
fil' f xs = [x | x <- xs, f x]
fil'' p[] = []
fil'' p (x:x... | badarshahzad/Learn-Haskell | Solution of Weekly labs/main.hs | mit | 3,273 | 1 | 15 | 1,028 | 1,502 | 781 | 721 | 86 | 5 |
module Language.Python.Parser.State where
import qualified Text.Parsec as P
data ParseState = ParseState {
} deriving Show
| Garciat/Hucc | src/Language/Python/Parser/State.hs | mit | 132 | 1 | 5 | 25 | 29 | 20 | 9 | 4 | 0 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE NoStarIsType #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
module Main where
import TH_unresolvedInfix_Lib
import Language.Haskell.TH
--------------------------------------------------------------------------------
-- Expr... | ghcjs/ghcjs | test/ghc/th/tH_unresolvedInfix.hs | mit | 5,101 | 0 | 16 | 1,321 | 2,125 | 1,222 | 903 | 96 | 1 |
-- |
-- Module : $Header$
-- Description : Definition of an abstract expression language as the first IR for the Ohua compiler.
-- Copyright : (c) Sebastian Ertel, Justus Adam 2017. All Rights Reserved.
-- License : EPL-1.0
-- Maintainer : dev@justus.science, sebastian.ertel@gmail.com
-- Stability : exper... | ohua-dev/ohua-core | core/src/Ohua/DFLang/Passes.hs | epl-1.0 | 9,538 | 0 | 19 | 2,636 | 1,963 | 1,015 | 948 | -1 | -1 |
module Folgerhs.Parse ( parseCorpus
, corpus
, parse
) where
import Data.Maybe
import Data.List
import Text.XML.Light.Input (parseXML)
import Text.XML.Light.Proc (onlyElems, elChildren)
import Text.XML.Light.Types (QName (..), Element (..), Content, Att... | SU-LOSP/folgerhs | src/Folgerhs/Parse.hs | gpl-3.0 | 2,181 | 0 | 13 | 708 | 809 | 418 | 391 | 47 | 5 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- Copyright (C) 2012 John Millikin <john@john-millikin.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, either ver... | jotrk/haskell-dbus | tests/DBusTests/Transport.hs | gpl-3.0 | 16,585 | 378 | 19 | 2,612 | 4,697 | 2,308 | 2,389 | 387 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Adapter.CliArgs where
import Types.CliArguments
import Types.AppConfig
import Types.LocalConfig
import Types.Base
import Prelude hiding(FilePath)
--fromLocalConfig :: LocalConfig -> CliArgs
--fromLocalConfig local = Config file verbose
--fromLocalConfig (LocalConfig [] ... | diegospd/pol | app/Adapter/CliArgs.hs | gpl-3.0 | 373 | 0 | 5 | 55 | 39 | 26 | 13 | 7 | 0 |
{-# LANGUAGE OverloadedStrings, CPP #-}
module Types where
import Data.IntMap (IntMap)
import Data.Aeson
import Control.Monad (mzero)
#if __GLASGOW_HASKELL__ < 710
import Control.Applicative ((<$>), (<*>))
#endif
data Point = Point
{ pointX :: Int
, pointY :: Int
} deriving (Show, Read, Eq, Ord)
instance FromJ... | mschristiansen/intro | src/Types.hs | gpl-3.0 | 534 | 0 | 9 | 111 | 185 | 105 | 80 | 16 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.CloudMonitoring.Types.Sum
-- Copyright : (c) 2015-2016... | rueshyna/gogol | gogol-cloudmonitoring/gen/Network/Google/CloudMonitoring/Types/Sum.hs | mpl-2.0 | 2,880 | 0 | 11 | 665 | 429 | 235 | 194 | 56 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Purchases/Products/Acknowledge.hs | mpl-2.0 | 6,599 | 0 | 23 | 1,614 | 953 | 553 | 400 | 141 | 1 |
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable, RecordWildCards #-}
module Main where
import Blaze.ByteString.Builder
import Blaze.ByteString.Builder.Char8 (fromString)
import Control.Monad
import qualified Data.ByteString.Lazy as B
import qualified Data.ByteString as BS
import Control.Concurrent (forkIO)
import C... | koodilehto/kryptoradio | receiver/Main.hs | agpl-3.0 | 8,757 | 0 | 23 | 2,187 | 2,095 | 1,088 | 1,007 | 155 | 9 |
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : TestExplode.TestExplode
Description : Definitions of part-testcases, graphs of them, and an evaluation function to generate complete testcases (strings).
Copyright : (c) Hans-Jürgen Guth, 2014
License : LGPL
Maintainer : juergen.software@freea2a.de
Stability : experimenta... | testexplode/testexplode | src/TestExplode/TestExplode.hs | lgpl-3.0 | 23,337 | 0 | 16 | 9,855 | 3,086 | 1,737 | 1,349 | 247 | 3 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
module QDSL01 (module QDSL01) where
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
import Language.Haskell.TH.Quote
import Language.Haskell.TH.Lib
power :: Int -> TExpQ (Float -> Float)
power n | n < 0 = [|| \x -> if x == 0 then 0 ... | egaburov/funstuff | Haskell/thsk/QDSL01.hs | apache-2.0 | 550 | 4 | 19 | 155 | 262 | 149 | 113 | -1 | -1 |
module Main (main) where
import Criterion.Main
import Data.Fixed
import Data.Int
import Data.Time
import Data.Time.LocalTime.TimeZone.Olson
import Data.Time.LocalTime.TimeZone.Series
import Data.Time.Zones
import System.Environment
foreign import ccall safe "time.h tzset" c_tzset :: IO ()
setupTZ :: String -> IO TZ
... | nilcons/haskell-tz | benchmarks/benchTZ.hs | apache-2.0 | 4,379 | 0 | 11 | 951 | 1,563 | 769 | 794 | 99 | 1 |
module Test.Kibr.Css where
import Preamble
import Language.CSS.YUI (pxToPercent)
import Test.Framework (Test)
import Test.Framework.Providers.HUnit (testCase)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Test.Framework.TH (testGro... | dag/kibr | src/Test/Kibr/Css.hs | bsd-2-clause | 1,125 | 0 | 10 | 257 | 302 | 166 | 136 | -1 | -1 |
module Data.Drasil.IdeaDicts where
import Language.Drasil.Chunk.NamedIdea (IdeaDict, mkIdea)
import Language.Drasil.Chunk.CommonIdea (CI, commonIdeaWithDict)
import Language.Drasil.NounPhrase (cn')
compScience, softEng, mathematics, progLanguage, idglass, physics, civilEng
, materialEng, documentc, knowledgemng :: ... | JacquesCarette/literate-scientific-software | code/drasil-lang/Data/Drasil/IdeaDicts.hs | bsd-2-clause | 1,747 | 0 | 7 | 375 | 375 | 212 | 163 | 21 | 1 |
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# OPTIONS_GHC -fno-cse #-}
{-# OPTIONS_GHC -fno-full-laziness #-}
{-# OPTIONS_GHC -fno-float-in #-}
{-# OPTIONS_GHC -fno-wa... | ekmett/concurrent | src/Concurrent/Capability/Pinned.hs | bsd-2-clause | 1,647 | 0 | 10 | 251 | 430 | 238 | 192 | 40 | 1 |
module Drasil.SSP.BasicExprs where
import Prelude hiding (sin, cos, tan)
import Language.Drasil
import Drasil.SSP.Unitals (baseAngle, baseWthX, earthqkLoadFctr, fs,
impLoadAngle, intNormForce, inxi, inxiM1, midpntHght, mobShrC, shearFNoIntsl,
shearRNoIntsl, shrResC, slcWght, sliceHght, sliceHghtW, surfAngle,
s... | JacquesCarette/literate-scientific-software | code/drasil-example/Drasil/SSP/BasicExprs.hs | bsd-2-clause | 4,542 | 0 | 19 | 856 | 2,149 | 1,063 | 1,086 | 74 | 1 |
{-# LANGUAGE QuasiQuotes #-}
module Atomo.Kernel.Message (load) where
import Atomo
import Atomo.Valuable
load :: VM ()
load = do
[p|(m: Message) type|] =: do
Message m <- here "m" >>= findMessage
case m of
Single {} -> return (particle "single")
Keyword {} -> return (parti... | vito/atomo | src/Atomo/Kernel/Message.hs | bsd-3-clause | 1,126 | 0 | 20 | 346 | 413 | 209 | 204 | 28 | 3 |
-- This is UnescapePure version as proposed by Bodigrim in
-- https://github.com/haskell/aeson/pull/894
--
-- WARNING: This file is security sensitive as it uses unsafeWrite which does
-- not check bounds. Any changes should be made with care and we would love to
-- get informed about them, just cc us in any PR targett... | dmjio/aeson | benchmarks/bench/UnescapePureText2.hs | bsd-3-clause | 10,014 | 0 | 18 | 2,840 | 3,138 | 1,658 | 1,480 | 211 | 31 |
module Packet ( command
, packet
, readPacket
, parseControlPacket
) where
import Data.ByteString.Builder as BS
import Data.ByteString.Lazy (toStrict)
import Data.ByteString as BS
import Data.ByteString.Char8 as BSC (unpack)
import Data.Word
import Data.Monoid ((... | amir-sabbaghi/encoder | src/Packet.hs | bsd-3-clause | 2,187 | 0 | 20 | 931 | 645 | 331 | 314 | 48 | 6 |
{-# LANGUAGE FlexibleInstances
, BangPatterns
, MagicHash
, ScopedTypeVariables
, TypeFamilies
, UndecidableInstances
, OverlappingInstances
, DeriveDataTypeable
, MultiParamTypeClasses
, NamedFieldPuns
#-}
-- State monad transformer is needed for both step & graph:
#ifndef MODNAME
#define MODNAME... | rrnewton/Haskell-CnC | Intel/Cnc6.hs | bsd-3-clause | 1,815 | 11 | 16 | 404 | 284 | 145 | 139 | 31 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Concurrent.Async
import Control.Concurrent
import Control.Monad
import Data.List
import Data.Maybe
import System.Environment
import System.Exit
import System.Console.GetOpt
import Data.ByteString.Char8 (unpack)
import Database.Memcache.Protocol
impor... | dterei/memcache-hs | tools/OpGen.hs | bsd-3-clause | 3,913 | 0 | 23 | 1,436 | 1,226 | 646 | 580 | 92 | 4 |
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE InstanceSigs #-}
{-... | louispan/data-diverse | src/Data/Diverse/Many/Internal.hs | bsd-3-clause | 46,345 | 0 | 20 | 10,307 | 13,429 | 7,317 | 6,112 | 573 | 2 |
import ConfigCheckTest
main = configCheckTest "custom-b"
| bitemyapp/dyre | Tests/config-check/configCheckTestB.hs | bsd-3-clause | 57 | 0 | 5 | 6 | 12 | 6 | 6 | 2 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Main where
import Control.Applicative
import Control.Monad
import Control.Monad.Trans
import Data.Aeson
import qualified Data.ByteString.Char8 as BSC
import qualified Data.Text as T
import ... | anchor/nagios-plugin-rabbitmq-exchange | src/Main.hs | bsd-3-clause | 2,536 | 25 | 10 | 609 | 576 | 298 | 278 | 45 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
module Control.Monad.Supply.Class
( MonadSupply (..)
) where
import Control.Applicative
import Co... | sonyandy/wart | src/Control/Monad/Supply/Class.hs | bsd-3-clause | 939 | 0 | 9 | 149 | 248 | 144 | 104 | 22 | 0 |
-- A simple test program for the Haskell parser,
-- originally written by Sven Panne.
module Main (main, mainArgs, testLexer) where
import Data.List
import Language.Haskell.Lexer (lexer, Token(EOF))
import Language.Haskell.ParseMonad (runParserWithMode)
import Language.Haskell.Parser
import Language.Haskell.Syntax
im... | FranklinChen/hugs98-plus-Sep2006 | packages/haskell-src/examples/hsparser.hs | bsd-3-clause | 3,996 | 38 | 17 | 832 | 1,208 | 630 | 578 | 93 | 9 |
module Main (
main
) where
import Brainhuck.Interpreter(execute)
import System.Environment(getArgs)
main :: IO ()
main = getArgs >>= \args -> case args of
"-h":_ -> putStrLn "brainhuck [-hi] <files>"
"-i":_ -> getLine >>= execute >> putStrLn ""
files -> mapM_ (\f -> readFile f >>= execute) files >> putStrLn ... | ameingast/brainhuck | src/Main.hs | bsd-3-clause | 322 | 0 | 15 | 60 | 124 | 65 | 59 | 9 | 3 |
-- | Partial binding to CoreAudio.
-- At the moment only HostTime and parts of the HAL (Hardware Abstraction Layer) is supported.
--
-- See <http://developer.apple.com/documentation/MusicAudio/Reference/CACoreAudioReference/AudioHardware/>
{-# LANGUAGE ForeignFunctionInterface, ScopedTypeVariables #-}
module System... | chpatrick/hmidi | System/MacOSX/CoreAudio.hs | bsd-3-clause | 16,827 | 0 | 19 | 3,773 | 4,749 | 2,372 | 2,377 | 309 | 3 |
module IptAdmin.DelPage where
import Control.Monad.Error
import Happstack.Server.SimpleHTTP
import IptAdmin.DelPage.Render
import IptAdmin.Render
import IptAdmin.System
import IptAdmin.Template
import IptAdmin.Types
import IptAdmin.Utils
import Iptables
import Iptables.Print
import Iptables.Types
import Safe
import T... | etarasov/iptadmin | src/IptAdmin/DelPage.hs | bsd-3-clause | 2,147 | 0 | 16 | 500 | 489 | 245 | 244 | 48 | 1 |
{-# Language DeriveFunctor ,BangPatterns, TupleSections #-}
module APIparser where
import Control.Applicative
import Control.Arrow ((&&&),(***))
import Control.Concurrent (threadDelay)
import Control.Concurrent.Async
import Control.Concurrent.MVar
import Control.Exception (SomeException,catch)
import Control.Lens
imp... | felipeZ/Dynamics | src/APIparser.hs | bsd-3-clause | 29,603 | 2 | 21 | 9,686 | 8,364 | 4,270 | 4,094 | -1 | -1 |
module ParsecChar(module Text.ParserCombinators.Parsec.Char) where
import Text.ParserCombinators.Parsec.Char
| OS2World/DEV-UTIL-HUGS | oldlib/ParsecChar.hs | bsd-3-clause | 109 | 0 | 5 | 6 | 21 | 15 | 6 | 2 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE ExtendedDefaultRules #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE Ov... | kylcarte/ink-ui | src/Ink/UI.hs | bsd-3-clause | 7,332 | 0 | 20 | 2,481 | 2,275 | 1,187 | 1,088 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-tabs #-}
{- $Id: TestsFirstSecond.hs,v 1.2 2003/11/10 21:28:58 antony Exp $
******************************************************************************
* Y A M P A *
* ... | ivanperez-keera/Yampa | yampa/tests/TestsFirstSecond.hs | bsd-3-clause | 4,904 | 0 | 12 | 1,190 | 2,089 | 1,312 | 777 | 83 | 1 |
{-# LANGUAGE BangPatterns, DeriveDataTypeable #-}
{-# OPTIONS_HADDOCK not-home #-}
-- |
-- Module : Data.Text.Internal.Lazy
-- Copyright : (c) 2009, 2010 Bryan O'Sullivan
--
-- License : BSD-style
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portability : GHC
--
-- /Warning/: this is... | bitemyapp/bytestring-streaming | Data/Text/Streaming.hs | bsd-3-clause | 6,917 | 6 | 15 | 1,803 | 1,266 | 689 | 577 | -1 | -1 |
module Horbits.Types where
import Numeric.NumType.TF
import Horbits.Dimensional.Prelude
type DSpecificAngularMomentum = Dim Pos2 Zero Neg1 Zero Zero Zero Zero
type SpecificAngularMomentum = Quantity DSpecificAngularMomentum
| chwthewke/horbits | src/horbits/Horbits/Types.hs | bsd-3-clause | 248 | 0 | 5 | 47 | 48 | 28 | 20 | 5 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Trombone.Server.Config
( Config(..)
, HmacKeyConf(..)
, allowLocal
, buildHmacConf
, defaultConfig
, lookupKey
, options
, translOpts
, versionH
) where
import Data.ByteString ( ByteString )
import Data.... | johanneshilden/principle | Trombone/Server/Config.hs | bsd-3-clause | 7,605 | 0 | 14 | 2,293 | 1,684 | 982 | 702 | 160 | 3 |
{-# LANGUAGE NoImplicitPrelude #-}
module GCHQ.Data.Puzzle
( Puzzle
, mapPuzzleSquares
, readPuzzleJSON
, rowColCount
, writePuzzleJSON
, solvePuzzle
) where
import Control.Monad ( (>=>) )
import Data.Aeson ( decode', encode )
import qualified Data.ByteString.Lazy.Char8 as LBS ( ByteString )
import Data... | jship/gchq-shading-puzzle2015 | lib/GCHQ/Data/Puzzle.hs | bsd-3-clause | 1,298 | 0 | 10 | 210 | 405 | 241 | 164 | 35 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ViewPatterns #-}
-- Keep using iso8601DateFormat, since the alternative was introduced in time-1.9
-- while GHC 8.6 still has time-1.8.
-- Safe once we no longer support GHC 8.6.
{-# OPTIONS_GHC -Wno-deprecations #-}
#ifdef FILE_EMBED
{-# LANGUAGE TemplateHaskell #-}
#endif
module G... | ndmitchell/shake | src/General/Template.hs | bsd-3-clause | 3,850 | 0 | 16 | 775 | 772 | 424 | 348 | 45 | 5 |
-- |
-- Module : Data.ByteArray.View
-- License : BSD-style
-- Maintainer : Nicolas DI PRIMA <nicolas@di-prima.fr>
-- Stability : stable
-- Portability : Good
--
-- a View on a given ByteArrayAccess
--
module Data.ByteArray.View
( View
, view
, takeView
, dropView
) where
import Data.B... | NicolasDP/hs-memory | Data/ByteArray/View.hs | bsd-3-clause | 3,649 | 0 | 20 | 1,140 | 967 | 507 | 460 | 83 | 1 |
{-# LANGUAGE Haskell98 #-}
{-# LINE 1 "Control/Monad/Trans/Writer/Lazy.hs" #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE Safe #-}
{-# LANGUAGE AutoDeriveTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.T... | phischu/fragnix | tests/packages/scotty/Control.Monad.Trans.Writer.Lazy.hs | bsd-3-clause | 9,874 | 0 | 14 | 2,227 | 2,654 | 1,451 | 1,203 | 166 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.