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 : URLEncoding
-- Copyright : Copyright (c) 2005,2006 Minero Aoki
-- License : LGPL (see COPYING)
--
-- Maintainer: masahiro.sakai@gmail.com
-- Stability : experimental
-- Portability : non-portable
{-# LA... | msakai/ptq | src/URLEncoding.hs | lgpl-2.1 | 1,043 | 0 | 6 | 160 | 77 | 57 | 20 | 6 | 1 |
module Proc.Util (mkProc, mkLambda, procUtilTests) where
import Common
import Proc.Compiled
import Proc.Params
import Data.IORef
import Control.Monad.Except
import TclErr
import Util
import Internal.Types (CmdCore(..))
import qualified TclObj as T
import Test.HUnit
mkLambda :: T.TclObj -> TclM ([T.TclObj] -> TclM T.... | tolysz/hiccup | Proc/Util.hs | lgpl-2.1 | 2,160 | 3 | 18 | 638 | 693 | 348 | 345 | 59 | 5 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : Credentials.CLI.Types.Protocol
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
-- Stability ... | brendanhay/credentials | credentials-cli/src/Credentials/CLI/Types/Protocol.hs | apache-2.0 | 1,930 | 0 | 12 | 419 | 546 | 295 | 251 | 43 | 1 |
-- Copyright (c) 2010 - Seweryn Dynerowicz
-- 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... | sdynerow/Semirings-Library | haskell/Algebra/Constructs/Scoped.hs | apache-2.0 | 2,945 | 6 | 17 | 816 | 1,319 | 697 | 622 | 59 | 1 |
module Handler.User where
import Import
import Prelude (head)
import Yesod.Auth
import Yesod.Auth.HashDB hiding (User, UserId, UniqueUser, userSalt, userPassword)
import qualified Data.Text as T
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as BL
import qualified Data.ByteString.Char8 as... | rennyhernandez/pure-mu | Handler/User.hs | apache-2.0 | 5,623 | 0 | 20 | 1,443 | 1,603 | 818 | 785 | -1 | -1 |
module Graphics.UI.GLFW
( -- * Error handling
Error (..)
--
, setErrorCallback, ErrorCallback
-- * Initialization and version information
, Version (..)
--
, init
, terminate
, getVersion
, getVersionString
-- * Monitor handling
, Monitor
, MonitorState (..)
, VideoMode (..)... | sgraf812/GLFW-b | Graphics/UI/GLFW.hs | bsd-2-clause | 32,552 | 0 | 21 | 8,695 | 8,362 | 4,353 | 4,009 | 738 | 25 |
-- |
-- Module : $Header$
-- Copyright : (c) 2013-2014 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
--
-- The purpose of this module is to convert all patterns to variable
-- patterns. It also eliminates pattern bindings by d... | TomMD/cryptol | src/Cryptol/Parser/NoPat.hs | bsd-3-clause | 14,240 | 361 | 19 | 4,715 | 4,250 | 2,343 | 1,907 | 298 | 17 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_HADDOCK show-extensions #-}
{-|
Module : $H... | rimmington/eclogues | eclogues/src/Eclogues/Job/Resources.hs | bsd-3-clause | 6,363 | 1 | 16 | 1,580 | 1,887 | 1,043 | 844 | 109 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : RefacLetWhere
-- Copyright : (c) Christopher Brown 2008
--
-- Maintainer : cmb21@kent.ac.uk
-- Stability : provisional
-- Portability : portable
--
-- This module contains a transformation for HaRe.
-- Let to W... | forste/haReFork | refactorer/RefacLetWhere.hs | bsd-3-clause | 24,016 | 0 | 26 | 10,128 | 4,763 | 2,469 | 2,294 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes, ViewPatterns #-}
module Samples.SumListSpec where
import Pipeline.Pipeline
import Test.Hspec
import Grin.TH
import Test.Test hiding (newVar)
import Test.Assertions
runTests :: IO ()
runTests = hspec spec
spec :: Spec
spec = do
-- TODO: Reenable before merge
xit "lazy... | andorp/grin | grin/test/Samples/SumListSpec.hs | bsd-3-clause | 2,881 | 0 | 14 | 1,308 | 178 | 102 | 76 | 29 | 1 |
import Data.Word
import Data.Bits
type BitBinary = (BitString, [Word8])
data BitString = BitString {
bitIndex :: Int,
bigEnd :: [Bool],
littleEnd :: [Bool] } deriving Show
emptyBitString = BitString 0 [] []
getLittle, getBig :: Int -> BitBinary -> ([Bool], BitBinary)
getLittle 0 bb = ([], bb)
getLittle n (BitSt... | YoshikuniJujo/binary-file | examples/test/bits.hs | bsd-3-clause | 2,992 | 76 | 13 | 690 | 1,519 | 849 | 670 | 84 | 2 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE RecordWildCards #-}
module IG.REST.Markets.Types where
import Data.Aeson
import Data.Monoid
import Data.String.Conversions
import Data.Text
import Data.Time
import IG.REST
import GHC.Generics
data MarketData = MarketData { nodes :: Maybe [Node]
... | wjdhamilton/ig-haskell | src/IG/REST/Markets/Types.hs | bsd-3-clause | 12,922 | 0 | 15 | 5,756 | 2,009 | 1,143 | 866 | 245 | 0 |
module Parse.LiteralTest where
import Test.Tasty
import Test.Tasty.HUnit
import Box (render)
import Data.Text (unpack)
import ElmFormat.Render.Box (formatLiteral)
import Parse.Literal (literal)
import Parse.TestHelpers (assertParse, assertParseFailure)
example :: String -> String -> String -> TestTree
example name ... | nukisman/elm-format-short | tests/Parse/LiteralTest.hs | bsd-3-clause | 2,726 | 0 | 11 | 798 | 534 | 271 | 263 | 62 | 1 |
{-# LANGUAGE BangPatterns, CPP, MagicHash, NondecreasingIndentation #-}
-------------------------------------------------------------------------------
--
-- | Main API for compiling plain Haskell source code.
--
-- This module implements compilation of a Haskell source. It is
-- /not/ concerned with preprocessing of ... | tjakway/ghcjvm | compiler/main/HscMain.hs | bsd-3-clause | 71,080 | 0 | 26 | 21,059 | 11,821 | 6,037 | 5,784 | 826 | 9 |
module Text.Highlighter.Lexers.S (lexer) where
import Text.Regex.PCRE.Light
import Text.Highlighter.Types
lexer :: Lexer
lexer = Lexer
{ lName = "S"
, lAliases = ["splus", "s", "r"]
, lExtensions = [".S", ".R"]
, lMimetypes = ["text/S-plus", "text/S", "text/R"]
, lStart = root'
, lFlags = [mul... | chemist/highlighter | src/Text/Highlighter/Lexers/S.hs | bsd-3-clause | 2,527 | 0 | 10 | 465 | 629 | 336 | 293 | 60 | 1 |
module Data.CompactMap.Generic
( CompactMap
, fromList
, toVector
, lookup
, getLE
, getIndex
) where
import qualified Data.Vector.Generic as V
import GHC.Exts (sortWith)
import Control.Applicative
import Prelude hiding (lookup)
data CompactMap vec k v = CompactMap { getMap :: vec v
... | bartavelle/compactmap | src/Data/CompactMap/Generic.hs | bsd-3-clause | 1,896 | 0 | 12 | 828 | 762 | 397 | 365 | 44 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# OPTIONS -Wall #-}
module Main where
import System.Console.CmdArgs.Implicit (cmdArgs)
import TweetProxy.Options (options, optionsConf)
import TweetProxy.Config (getConfig)
import ... | passy/tweetproxy | src/Main.hs | bsd-3-clause | 888 | 0 | 9 | 123 | 218 | 131 | 87 | 22 | 1 |
{-# LANGUAGE OverloadedStrings, NegativeLiterals #-}
module ETA.CodeGen.Prim where
import ETA.Main.DynFlags
import ETA.Types.TyCon
import ETA.Types.Type
import ETA.StgSyn.StgSyn
import ETA.Prelude.PrimOp
import ETA.Utils.Panic
import ETA.Utils.FastString
import Data.Maybe
import Codec.JVM
import ETA.CodeGen.ArgRep
imp... | AlexeyRaga/eta | compiler/ETA/CodeGen/Prim.hs | bsd-3-clause | 46,644 | 0 | 20 | 9,541 | 13,390 | 6,663 | 6,727 | 906 | 4 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.TextureCompressionRGTC
-- Copyright : (c) Sven Panne 2013
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : p... | mfpi/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/TextureCompressionRGTC.hs | bsd-3-clause | 816 | 0 | 4 | 97 | 47 | 38 | 9 | 6 | 0 |
{-# LANGUAGE
TemplateHaskell
#-}
module Main where
import Control.Monad
import Data.Maybe
import Data.List.Split
import qualified Data.Set as Set
import qualified System.FilePath.Glob as Glob
import Text.Printf
import Test.Tasty
import Test.Tasty.QuickCheck
import Test.Tasty.HUnit
import Test.Tasty.TH
import qua... | msakai/icfpc2015 | test/Test.hs | bsd-3-clause | 18,111 | 0 | 20 | 3,198 | 3,616 | 1,965 | 1,651 | 361 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Types where
import Control.Lens
import Graphics.UI.Threepenny.Core
import qualified Graphics.UI.Threepenny as UI
data GameState = GameState {
_gamePhase :: GamePhase
, _gameTheme :: Theme
}
data Theme = Prisoners | Academics | Spouses
deriving (Eq, Ord,... | imalsogreg/GameTheory | src/Types.hs | bsd-3-clause | 1,448 | 0 | 8 | 434 | 311 | 186 | 125 | 44 | 0 |
{-# LANGUAGE CPP, TypeFamilies #-}
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2006
--
-- The purpose of this module is to transform an HsExpr into a CoreExpr which
-- when evaluated, returns a (Meta.Q Meta.Exp) computation analogous to the
-- input... | mettekou/ghc | compiler/deSugar/DsMeta.hs | bsd-3-clause | 100,688 | 61 | 24 | 30,363 | 31,650 | 15,813 | 15,837 | 1,715 | 18 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE Te... | michael-swan/quick-quiz | src/Quiz/Types.hs | bsd-3-clause | 9,683 | 0 | 19 | 2,963 | 1,688 | 940 | 748 | 139 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
-}
{-# LANGUAGE CPP, DeriveDataTypeable, ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-} -- Note [Pass sensitive types]
... | shlevy/ghc | compiler/hsSyn/HsExpr.hs | bsd-3-clause | 104,172 | 0 | 20 | 29,358 | 17,725 | 9,365 | 8,360 | 1,163 | 19 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{... | iblumenfeld/saw-core | src/Verifier/SAW/Simulator/SBV.hs | bsd-3-clause | 31,135 | 0 | 28 | 7,677 | 11,043 | 5,663 | 5,380 | 687 | 9 |
{-# LANGUAGE DataKinds, ForeignFunctionInterface, GADTs, OverloadedStrings #-}
{-# LANGUAGE PolyKinds, QuasiQuotes, TemplateHaskell, TypeFamilies #-}
module Main where
import Data.Text (Text)
import qualified Data.Text as T
import qualified Language.ObjC.Inline as C
C.context C.... | konn/inline-c-objc | examples/hello.hs | bsd-3-clause | 566 | 0 | 7 | 113 | 112 | 65 | 47 | 13 | 1 |
-- | TCP implementation of the transport layer.
--
-- The TCP implementation guarantees that only a single TCP connection (socket)
-- will be used between endpoints, provided that the addresses specified are
-- canonical. If /A/ connects to /B/ and reports its address as
-- @192.168.0.1:8080@ and /B/ subsequently conne... | haskell-distributed/network-transport-tcp | src/Network/Transport/TCP.hs | bsd-3-clause | 99,065 | 912 | 27 | 27,920 | 12,145 | 7,299 | 4,846 | 1,423 | 43 |
-- 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.
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Time.EN.BZ.Corpus
( allExamples
) where
import Data.Strin... | facebookincubator/duckling | Duckling/Time/EN/BZ/Corpus.hs | bsd-3-clause | 3,189 | 0 | 10 | 1,147 | 831 | 502 | 329 | 64 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module GitLab.Milestone where
import Data.Monoid (mconcat)
import qualified Data.Text.Encoding as TE
import Data.Conduit
import Network.HTTP.Conduit
import Web.PathPieces (toPathPiece)
import GitLab.Rest (restSource)
import GitLab.Types
listMilesto... | maoe/gitlab | src/GitLab/Milestone.hs | bsd-3-clause | 593 | 0 | 12 | 105 | 146 | 85 | 61 | 19 | 1 |
-- | multiple context free grammar,
-- with CYK table parser. (Johannes Waldmann, HTWK Leipzig)
-- Note (Maik): it is actually an Unger-style parser,
-- or: top-down memoizing dynamic programming algorithm
module MCFG.MCFG where
import qualified Data.Map as M
import Control.Monad.State.Strict
import Data... | adp-multi/adp-multi | tests/MCFG/MCFG.hs | bsd-3-clause | 3,492 | 10 | 18 | 1,385 | 1,237 | 677 | 560 | 82 | 4 |
module Data.Shapely.Utilities
where
import Data.Shapely.Classes
-- | Apply a function on the 'Normal' representation of a type to an ordinary
-- value.
--
-- > ($$) f = to . f . from
infixr 0 $$
($$) :: (Shapely a, Shapely b)=> (Normal a -> Normal b) -> a -> b
($$) f = to . f . from
| jberryman/shapely-data | src/Data/Shapely/Utilities.hs | bsd-3-clause | 291 | 0 | 9 | 66 | 83 | 49 | 34 | 5 | 1 |
{-|
Module : Idris.Core.ProofTerm
Description : Proof term. implementation and utilities.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, PatternGuards #-}
module Idris.Core.ProofTerm(
ProofTerm, Goal(..), mkProofTerm, getProofTerm
... | eklavya/Idris-dev | src/Idris/Core/ProofTerm.hs | bsd-3-clause | 16,175 | 5 | 21 | 5,488 | 6,192 | 3,189 | 3,003 | 273 | 23 |
-- | 'Strive.Actions.Authentication'
module Strive.Options.Authentication
( BuildAuthorizeUrlOptions (..)
) where
import Data.Aeson (encode)
import Data.ByteString.Char8 (unpack)
import Data.ByteString.Lazy (toStrict)
import Data.Default (Default, def)
import Data.List (intercalate)
import Data.Maybe (catMaybes)
i... | liskin/strive | library/Strive/Options/Authentication.hs | mit | 1,513 | 0 | 16 | 232 | 309 | 182 | 127 | 29 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE LambdaCase #-}
module CO4.Prelude.Nat
( Nat, width, value, nat, uNat, knownNat
, gtNat, geNat, eqNat, leNat, ltNat
, isZeroNat
, maxNat, minNat, timesNat
, plusNat, plus'Nat, plusCLANat, p... | apunktbau/co4 | src/CO4/Prelude/Nat.hs | gpl-3.0 | 17,265 | 2 | 29 | 5,006 | 5,031 | 2,651 | 2,380 | 311 | 8 |
module CO4.TypesUtil
( splitScheme, quantifiedNames, typeOfScheme, isFunType, splitFunType
, argumentTypes, resultType, functionType, fromSType, typeOfAdt, schemeOfName)
where
import CO4.Language
import CO4.Names (funName)
import CO4.PPrint (PPrint (..))
-- |Returns the quantified na... | apunktbau/co4 | src/CO4/TypesUtil.hs | gpl-3.0 | 2,180 | 0 | 13 | 509 | 592 | 327 | 265 | 37 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadPipeline.hs | mpl-2.0 | 4,063 | 0 | 12 | 882 | 541 | 327 | 214 | 63 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# OPTIONS_HADDOCK show-extensions #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.BEncode.Reader
-- Copyright : (c) 2015 Matthew Leon <ml@matthewleon.com>
-- License : BSD3
-- Maintainer : creichert07@g... | matthewleon/bencode | src/Data/BEncode/Reader.hs | bsd-3-clause | 4,249 | 0 | 15 | 895 | 617 | 361 | 256 | 37 | 3 |
-----------------------------------------------------------------------------
-- |
-- Module : Language.Python.Common.PrettyParseError
-- Copyright : (c) 2009 Bernie Pope
-- License : BSD-style
-- Maintainer : bjpop@csse.unimelb.edu.au
-- Stability : experimental
-- Portability : ghc
--
-- Pretty printin... | jml/language-python | src/Language/Python/Common/PrettyParseError.hs | bsd-3-clause | 909 | 0 | 10 | 121 | 151 | 87 | 64 | 9 | 0 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
-----------------------------------------------------------------------------------------
-- |
-- Module : FRP.Yampa.Vector3
-- Copyright : (c) Antony Courtney and Henrik Nilsson, Yale University, 2003
-- License : BSD-style (see the LICENSE file i... | eigengrau/haskell-yampa | src/FRP/Yampa/Vector3.hs | bsd-3-clause | 4,560 | 0 | 13 | 997 | 1,142 | 605 | 537 | 63 | 1 |
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
module Distribution.Client.Dependency.Modular.Tree where
import Control.Monad hiding (mapM)
import Data.Foldable
import Data.Traversable
import Prelude hiding (foldr, mapM)
import Distribution.Client.Dependency.Modular.Dependency
import Distribution.Cl... | Helkafen/cabal | cabal-install/Distribution/Client/Dependency/Modular/Tree.hs | bsd-3-clause | 5,206 | 0 | 11 | 1,605 | 1,573 | 822 | 751 | -1 | -1 |
{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeOperators #-}
module Tholos.Business.Interface where
import Control.Monad.Catch (MonadCatch, MonadThrow)
import ... | charlescrain/tholos | src/Tholos/Business/Interface.hs | bsd-3-clause | 1,494 | 0 | 14 | 716 | 214 | 129 | 85 | 29 | 0 |
import Control.Concurrent.Async ()
main :: IO ()
main = pure ()
| juhp/stack | test/integration/tests/620-env-command/files/Main.hs | bsd-3-clause | 65 | 0 | 6 | 12 | 30 | 16 | 14 | 3 | 1 |
module D1 where
data BTree a
= Empty | T a (BTree a) (BTree a) deriving Show
buildtree :: Ord a => [a] -> BTree a
buildtree [] = Empty
buildtree ((x : xs)) = insert x (buildtree xs)
insert :: Ord a => a -> (BTree a) -> BTree a
insert val v2
= let f (new@(T val Empty Empty)) = new in f v2
newPat_1 = Em... | mpickering/HaRe | old/testing/unfoldAsPatterns/D1AST.hs | bsd-3-clause | 433 | 0 | 13 | 117 | 229 | 121 | 108 | 14 | 1 |
{-# OPTIONS_GHC -Wno-redundant-constraints -Wno-simplifiable-class-constraints #-}
{-# LANGUAGE UndecidableInstances, MultiParamTypeClasses,
FunctionalDependencies, FlexibleInstances #-}
module T3108 where
-- Direct recursion terminates (typechecking-wise)
class C0 x
where
m0 :: x -> ()
m0 = const un... | sgillespie/ghc | testsuite/tests/typecheck/should_compile/T3108.hs | bsd-3-clause | 962 | 0 | 8 | 182 | 258 | 141 | 117 | -1 | -1 |
module Codec.Xlsx.Lens
( ixSheet
, atSheet
, ixCell
, atCell
, cellValueAt
) where
import Codec.Xlsx.Types
import Control.Applicative
import Control.Lens
import Data.Text
ixSheet :: Applicative f
=> Text
-> (Worksheet -> f Worksheet)
-> Xlsx
-> f Xlsx
ixSheet s = x... | lookunder/xlsx | src/Codec/Xlsx/Lens.hs | mit | 982 | 0 | 12 | 340 | 357 | 181 | 176 | 40 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SourceBuffer
(js_appendBuffer, appendBuffer, js_appendBufferView,
appendBufferView, js_abort, abort, js_remove, remove, js_setMode,
setMode, js_getMode, getMode, js_getUpdating, getUpdating,... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/SourceBuffer.hs | mit | 8,831 | 118 | 11 | 1,317 | 1,837 | 995 | 842 | 127 | 1 |
module Hackup.Driver(runActions) where
import Control.Error
import Hackup.Action
import Hackup.Driver.Core (flush)
import qualified Hackup.Driver.DryRun as DryRun
import qualified Hackup.Driver.IODriver as IODriver
import Hackup.Errors
import Hackup.Opts
-- TOD... | chwthewke/hackup | src/Hackup/Driver.hs | mit | 746 | 0 | 11 | 189 | 201 | 111 | 90 | 17 | 2 |
module Zwerg.Generator
( module EXPORTED
, Generator(..)
, generate
, EntityAssembler(..)
, EntityHatcher(..)
, (+>)
, (<+)
, (++>)
, (<++)
, assignUniformRandomStats
, putOnRandomEmptyTile
, generateOnRandomEmptyTile
, generateAndEquip
, generateAndHold
, generateAndHoldN
) where
impor... | zmeadows/zwerg | lib/Zwerg/Generator.hs | mit | 3,473 | 0 | 14 | 636 | 882 | 500 | 382 | -1 | -1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGRect
(js_setX, setX, js_getX, getX, js_setY, setY, js_getY, getY,
js_setWidth, setWidth, js_getWidth, getWidth, js_setHeight,
setHeight, js_getHeight, getHeight, SVGRect, castToSVGRect,
... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/SVGRect.hs | mit | 3,564 | 56 | 9 | 534 | 947 | 533 | 414 | 52 | 1 |
-- |
-- Module: Math.NumberTheory.PrimesTests
-- Copyright: (c) 2016 Andrew Lelechenko
-- Licence: MIT
-- Maintainer: Andrew Lelechenko <andrew.lelechenko@gmail.com>
--
-- Tests for Math.NumberTheory.Primes
--
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
module Math.NumberTheory.Prime... | cartazio/arithmoi | test-suite/Math/NumberTheory/PrimesTests.hs | mit | 1,322 | 0 | 11 | 221 | 318 | 174 | 144 | 25 | 1 |
-- | This module holds the 'TMap' data type, which is used internally to
-- store bucket contents as well as provide the Hash data structure.
module Control.Concurrent.STM.TMap ( -- * Types
TMap
-- * Constructors
... | nahiluhmot/hasqueue | src/Control/Concurrent/STM/TMap.hs | mit | 2,655 | 0 | 10 | 1,109 | 592 | 318 | 274 | 43 | 1 |
module Main (main) where
import Criterion.Main
import System.Random
import Control.Monad
import Data.List
randInt :: IO Int
randInt = randomRIO (0,1000)
benchAtSize :: Int -> Benchmark
benchAtSize n =
env (replicateM n randInt) $
\xs ->
bgroup (show n) [bench "sort" $ nf sort xs]
main :: IO ()
mai... | oisdk/Square | bench/bench.hs | mit | 395 | 0 | 10 | 100 | 144 | 76 | 68 | 17 | 1 |
{-# LANGUAGE GADTs #-}
module Data.Some where
-- import Data.Hashable
import Data.Type.Equality
-- import Data.Ord
import Prelude
data Some f where
Some :: f x -> Some f
-- 'TestEquality' is a more informative @Eq1@
instance (TestEquality f) => Eq (Some f) where -- TODO or Eq1? or TestCoercion?
Some x =... | sboosali/commands | commands-core/sources/Data/Some.hs | mit | 1,040 | 0 | 8 | 186 | 128 | 73 | 55 | 10 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-|
Module : Madl.Base.Identifiers
Description : Identifier types for components and channels in a Madl network.
Copyright : (c) Sanne Wouda 2015
This module defines the types 'ComponentID' and 'ChannelID'.
ComponentIDs are used to identify 'Components' of a 'MadlNet... | julienschmaltz/madl | src/Madl/Identifiers.hs | mit | 865 | 0 | 9 | 139 | 145 | 84 | 61 | 9 | 0 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
module AI.Clustering.KMeans.Internal
{-# WARNING "To be used by developer only" #-}
( forgy
, kmeansPP
, sumSquares
) where
import Control.Monad.Primitive (PrimMonad, PrimState)
import qualified Data.HashSet ... | kaizhang/clustering | src/AI/Clustering/KMeans/Internal.hs | mit | 2,810 | 0 | 21 | 1,017 | 910 | 469 | 441 | 63 | 2 |
{-# LANGUAGE FlexibleContexts #-}
--------------------------------------------------------------------------------
-- |
-- Module : AI.Clustering.Hierarchical
-- Copyright : (c) 2015 Kai Zhang
-- License : MIT
-- Maintainer : kai@kzhang.org
-- Stability : experimental
-- Portability : portable
--
--... | kaizhang/clustering | src/AI/Clustering/Hierarchical.hs | mit | 4,518 | 0 | 11 | 1,103 | 913 | 505 | 408 | 64 | 6 |
fibonacci 0 = 0
fibonacci 1 = 1
fibonacci x = fibonacci (x -1) + fibonacci (x - 2)
| Numberartificial/workflow | haskell-first-principles/haskell-from-first-principles-master/08/08.04.00-fibonacci-sequence.hs | mit | 83 | 0 | 8 | 19 | 49 | 24 | 25 | 3 | 1 |
{-# LANGUAGE FunctionalDependencies, MultiParamTypeClasses #-}
module Algebraic2.Class
( Algebraic (..)
, module Expression.Op
, module Autolib.Reporter
, module Autolib.ToDoc
)
where
import Algebraic2.Instance as AI
import Condition
import Expression.Op
import Autolib.Reporter
import Autolib.ToDoc
import Autolib... | Erdwolf/autotool-bonn | src/Algebraic2/Class.hs | gpl-2.0 | 1,440 | 2 | 11 | 339 | 440 | 238 | 202 | 37 | 0 |
module Import where
import Foreign.C
import Foreign.Ptr
import Foreign.Marshal.Array
type Matrix = ()
-- display.c/h
foreign import ccall "should_quit" checkQuit :: IO CChar
foreign import ccall "set_screen" setScreen ::
CDouble -> CDouble -> CDouble -> CDouble -> IO ()
foreign import ccall "init_live_render" init... | WFT/LazyArmature | src/Import.hs | gpl-3.0 | 3,069 | 0 | 14 | 528 | 925 | 473 | 452 | 60 | 0 |
module NumBool (
nTrue,
nFalse,
nCmp,
nCmp3
) where
nTrue = 1
nFalse = 0
nCmp :: (Eq a) => a -> a -> Int
nCmp = \x y -> if x == y then nTrue else nFalse
nCmp3 :: (Eq a) => a -> a -> a -> Int
nCmp3 = \x y z -> if x == y && y == z then nTrue else nFalse
| adarqui/lambda-calculus | NumBool.hs | gpl-3.0 | 259 | 0 | 9 | 75 | 134 | 77 | 57 | 11 | 2 |
-- 18/03/16
-- Lorenzo Jose Lamas
-- Algebra I
-- Labo
--
| lorenzojlamas/ejercicios | ClaseX.hs | gpl-3.0 | 58 | 0 | 2 | 12 | 7 | 6 | 1 | 1 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : HEP.Parser.LHE.Sanitizer.Type
-- Copyright : (c) 2013 Ian-Woo Kim
--
-- License : GPL-3
-- Maintainer : Ian-Woo Kim <ianwookim@gmail.com>
-- Stability : experimental
-- Porta... | wavewave/LHE-sanitizer | src/HEP/Parser/LHE/Sanitizer/Type.hs | gpl-3.0 | 739 | 0 | 8 | 163 | 76 | 53 | 23 | 8 | 0 |
module Data.Rhythm.Rocksmith where
import Data.Rhythm.Time
import Data.Rhythm.Guitar
import Data.Rhythm.Event
import Data.Time
import qualified Data.EventList.Relative.TimeBody as RTB
import qualified Sound.MIDI.Message.Channel.Voice as V
import qualified Numeric.NonNegative.Wrapper as NN
data Song t a = Song
{ tit... | mtolly/rhythm | src/Data/Rhythm/Rocksmith.hs | gpl-3.0 | 2,897 | 0 | 11 | 661 | 845 | 510 | 335 | 93 | 0 |
{-# LANGUAGE FlexibleInstances #-}
module HS2AST.Tests.Generators where
import Control.Applicative
import qualified Data.AttoLisp as L
import Data.Data
import qualified Data.Set as Set
import HS2AST.Sexpr
import HS2AST.Types
import System.Directory
import Test.QuickCheck
-- Arbitrary instances
instance... | ouanixi/hs2ast | tests/HS2AST/Tests/Generators.hs | gpl-3.0 | 1,045 | 0 | 11 | 280 | 275 | 149 | 126 | 22 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Metafun.Compiler.State
(Compiler, runCompiler,
newVar,
getScopeVars, withScopeVars,
lookupLiftedName, withLiftedNames,
output) where
import Control.Monad.RWS
import Control.Monad
import Control.Applicative
import qualified Language.CxxMPL.Synta... | 8l/metafun | src/Metafun/Compiler/State.hs | gpl-3.0 | 2,465 | 0 | 12 | 706 | 781 | 408 | 373 | 48 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-chat/gen/Network/Google/Resource/Chat/Spaces/Messages/Create.hs | mpl-2.0 | 5,709 | 0 | 18 | 1,324 | 866 | 506 | 360 | 122 | 1 |
module Language.Haskell.Brittany.Internal.Prelude
( module E
) where
import Control.Applicative as E (Alternative(..), Applicative(..))
import Control.Arrow as E ((&&&), (***), (<<<), (>>>), first, second)
import Control.Concurrent as E (forkIO, forkOS, threadDelay)
import Control.Concurrent.Chan as E (Chan)
impor... | lspitzner/brittany | source/library/Language/Haskell/Brittany/Internal/Prelude.hs | agpl-3.0 | 3,940 | 0 | 6 | 857 | 1,378 | 952 | 426 | 187 | 0 |
{-# LANGUAGE OverloadedStrings, TypeSynonymInstances, FlexibleInstances #-}
module Data.Text.PrettyHtml (unlinesHtml, prettyHtml, prettyThings) where
import Import
import Data.Attoparsec.Text
import qualified Text.Blaze.Html5.Attributes as Attr
import qualified Text.Blaze.Html5 as Html
import Data.Either
import D... | Happy0/snowdrift | Data/Text/PrettyHtml.hs | agpl-3.0 | 1,914 | 0 | 21 | 443 | 593 | 311 | 282 | -1 | -1 |
module Freekick.Libsoccer.Trophy
where
import System.IO
data Trophy =
Trophy { name :: String,
id :: Int,
image :: FilePath,
points :: Int,
bonus :: Int
}
deriving (Eq, Show)
nullTrophy :: Trophy... | anttisalonen/freekick | haskell/libfreekick/Freekick/Libsoccer/Trophy.hs | agpl-3.0 | 353 | 0 | 8 | 165 | 83 | 50 | 33 | 11 | 1 |
{-# LANGUAGE DeriveDataTypeable, RecordWildCards #-}
module Main where
import Control.Applicative
import Control.Concurrent
import Control.Monad
import qualified Data.ByteString.Char8 as B
import Data.Time.Clock
import Graphics.OpenGLES
import qualified Graphics.UI.GLFW as GLFW
-- ghc examples/glsl-sandbox-player.hs -... | capsjac/opengles | examples/glsl-sandbox-player.hs | lgpl-3.0 | 3,766 | 150 | 17 | 687 | 1,238 | 645 | 593 | 94 | 2 |
import Data.Char
import Data.List
{-instance Num a => Num [a] where
xs + ys = zipWith (+) xs ys
-}
-- Exercise 1
myfilter :: (a -> Bool) -> [a] -> [a]
myfilter f [] = []
myfilter f (x:xs)
| f x = x : myfilter f xs
| otherwise = myfilter f xs
{-
foldl (-) 100 [1,2,3] = ((((100) - 1) - 2) - 3)
foldr (-) 10... | Pieterjaninfo/PP | FP/block1s2.hs | unlicense | 5,846 | 0 | 12 | 1,380 | 3,289 | 1,755 | 1,534 | 138 | 1 |
import Math.NumberTheory.Powers.Cubes (isCube')
import Data.List (subsequences, delete)
a329732 n = last $ head $ filter (isCube' . product) $ map (n:) $ subsequences [n+1..]
g n k = filter (isCube' . product) $ map ([n,k]++) $ subsequences [n+1..k-1]
primeCount p = length $ filter (isCube' . product) $ map ([p,2*p,... | peterokagey/haskellOEIS | src/Sandbox/OEIS/A329732.hs | apache-2.0 | 371 | 0 | 11 | 59 | 221 | 118 | 103 | 5 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Data.Geometry.MapnikVectorTileSpec where
import qualified Control.Exception as Exception
import qualified Control.Monad.IO.Class as MonadIO
import qualified Data.ByteString.Lazy as LazyByteString
import qualified Data.ByteString.Lazy ... | sitewisely/zellige | test/Data/Geometry/MapnikVectorTileSpec.hs | apache-2.0 | 28,937 | 0 | 25 | 5,059 | 5,978 | 2,876 | 3,102 | 349 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Openshift.V1.Capabilities where
import GHC.Generics
import Openshift.V1.Capability
import qualified Data.Aeson
-- | Adds and removes POSIX cap... | minhdoboi/deprecated-openshift-haskell-api | openshift/lib/Openshift/V1/Capabilities.hs | apache-2.0 | 623 | 0 | 10 | 91 | 100 | 61 | 39 | 15 | 0 |
data Either' a b = Left' a | Right' b
deriving (Show)
instance Functor (Either' a) where
fmap f (Right' x) = Right' $ f x
fmap f (Left' x) = Left' x
| EricYT/Haskell | src/chapter-7-7.hs | apache-2.0 | 176 | 0 | 8 | 60 | 80 | 41 | 39 | 5 | 0 |
module Application.HXournal.NetworkClipboard.Client.Command where
import Application.HXournal.NetworkClipboard.Client.ProgType
import Application.HXournal.NetworkClipboard.Client.Job
import Application.HXournal.NetworkClipboard.Client.Config
import Data.Configurator
commandLineProcess :: HXournalClip_client -> IO ()
... | wavewave/hxournalclip-client | lib/Application/HXournal/NetworkClipboard/Client/Command.hs | bsd-2-clause | 1,288 | 0 | 11 | 183 | 381 | 185 | 196 | 26 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TupleSections #-}
module Inspector
( date
, matches
, inspect
, find
, findInspect
, findCount
) where
import Protolude.Lifted hiding ((<>), catch, find, pred, try, yield)
import Cache.Header
import qualified Codec.Compression.GZip as G... | pbogdan/ngx-cache-inspector | src/Inspector.hs | bsd-3-clause | 3,311 | 0 | 22 | 853 | 1,160 | 602 | 558 | 102 | 2 |
{-# LANGUAGE DeriveFunctor, DeriveDataTypeable #-}
-- |
-- Based on FortranP.hs from Parameterized Fortran by Martin Erwig.
--
-- Language definition for Fortran (covers a lot of standards, but still incomplete)
--
-- The AST is parameterised by type variable p which allows all nodes
-- of the AST to be annotated. The ... | dagit/language-fortran | src/Language/Fortran.hs | bsd-3-clause | 19,860 | 8 | 11 | 8,292 | 7,186 | 3,771 | 3,415 | 406 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Dhall.Test.SemanticHash where
import Data.Text (Text)
import Prelude hiding (FilePath)
import Test.Tasty (TestTree)
import Turtle (FilePath)
import qualified Data.Text as Text
import qualified Data.Text.IO as Text.IO
import qualified Dhall.Core as Co... | Gabriel439/Haskell-Dhall-Library | dhall/tests/Dhall/Test/SemanticHash.hs | bsd-3-clause | 1,549 | 0 | 14 | 300 | 396 | 219 | 177 | 33 | 1 |
module Utils where
import Data.Char (toUpper, toLower, isSpace)
import Data.Functor ((<$>))
import Data.Map (Map)
import qualified Data.Map.Strict as M
unsafeLookup :: (Show k, Show v, Ord k) => k -> Map k v -> v
unsafeLookup k m =
case M.lookup k m of
Nothing -> error $ "unsafeLookup on key " ++ show k ++ " i... | adamschoenemann/asa-analysis | src/Utils.hs | bsd-3-clause | 702 | 0 | 11 | 151 | 331 | 178 | 153 | 19 | 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.
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Time.EN.ZA.Corpus
( allExamples
) where
import Data.Strin... | facebookincubator/duckling | Duckling/Time/EN/ZA/Corpus.hs | bsd-3-clause | 3,580 | 0 | 11 | 1,284 | 941 | 569 | 372 | 70 | 1 |
{-# LANGUAGE ScopedTypeVariables, BangPatterns #-}
module ECC.Tester (eccMain, eccPrinter, eccMerger) where
import ECC.Types
import System.Random.MWC
import Control.Monad
--import Control.Monad.Primitive (PrimMonad, PrimState)
import Control.Monad.Trans (MonadIO(liftIO))
import Control.Concurrent
import Data.Word
impo... | ku-fpg/ecc-manifold | src/ECC/Tester.hs | bsd-3-clause | 19,299 | 376 | 31 | 7,183 | 5,202 | 2,734 | 2,468 | 393 | 8 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.WindowPos
-- Copyright : (c) Sven Panne 2013
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
--... | mfpi/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/WindowPos.hs | bsd-3-clause | 947 | 0 | 4 | 146 | 84 | 63 | 21 | 18 | 0 |
module Problem30 where
import Data.Char
digits :: Int -> [Int]
digits n = map digitToInt $ show n
isDigitNthPower :: Int -> Int -> Bool
isDigitNthPower _ 1 = False
isDigitNthPower n x = x == sum (map (^n) $ digits x)
main :: IO ()
main = print . sum $ filter (isDigitNthPower 5) [1..1000000]
| noraesae/euler | src/Problem30.hs | bsd-3-clause | 296 | 0 | 10 | 60 | 135 | 70 | 65 | 9 | 1 |
module System.Topology where
import System.Topology.HwlocXML
import System.Topology.Lstopo
import System.Topology.Types
| acfoltzer/system-topology | src/System/Topology.hs | bsd-3-clause | 121 | 0 | 4 | 10 | 24 | 16 | 8 | 4 | 0 |
module Main where
import Diagrams.Prelude
import Diagrams.Backend.SVG
import Diagrams.TwoD
import Diagrams.Trail
import qualified Data.ByteString.Lazy as B (readFile)
import Data.Csv (decode,HasHeader(HasHeader))
import Data.Vector (Vector)
import qualified Data.Vector as V (map,toList,slice)
main :: IO ()
main = do... | phischu/noisy-peaks | Main.hs | bsd-3-clause | 857 | 0 | 14 | 125 | 367 | 205 | 162 | 19 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, TupleSections #-}
module Bot
( Bot (..)
, runBot
, BotProcess
, botProcess
) where
import Control.Applicative
import Control.Monad.State
import IRC
newtype Bot s a = Bot {unBot :: State s a}
deriving (Functor, Applicative, Monad, MonadStat... | scvalex/logorrhea | bot/Bot.hs | bsd-3-clause | 696 | 0 | 13 | 172 | 256 | 137 | 119 | 20 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
-------------------------------------------------------------------
-- |
-- Module : Irreverent.Bitbucket.Core.Data.NewAccessKey
-- Copyright : (C) 2017 Irreverent Pixel Feats
-- License : BSD-style (see the file /LICENSE.md)
-- Maintainer : Dom De Re
--
--------------... | irreverent-pixel-feats/bitbucket | bitbucket-core/src/Irreverent/Bitbucket/Core/Data/NewAccessKey.hs | bsd-3-clause | 693 | 0 | 12 | 106 | 90 | 61 | 29 | 14 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoStarIsType #-}
module Numeric.Units.Dimensional.LinearAlgebra.VectorAD where
import qualified Prelude
import Numeric.Units.Dimensional.Prelude
import Numeric.Units.Dimensional (... | bjornbm/dimensional-experimental | src/Numeric/Units/Dimensional/LinearAlgebra/VectorAD.hs | bsd-3-clause | 2,876 | 0 | 16 | 693 | 878 | 476 | 402 | 33 | 1 |
--
-- Copyright (c) 2009-2011, ERICSSON AB
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- this l... | rCEx/feldspar-lang-small | src/Feldspar/Vector.hs | bsd-3-clause | 2,668 | 0 | 5 | 505 | 88 | 77 | 11 | 4 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TypeFamilies #-}
--
-- Regs.hs --- UART Register Description
--
-- Copyright (C) 2013, Galois, Inc.
-- All Rights Reserved.
--
module Ivory.BSP.STM32.Peripheral.UART.Regs where
import Ivory.Language
import... | GaloisInc/ivory-tower-stm32 | ivory-bsp-stm32/src/Ivory/BSP/STM32/Peripheral/UART/Regs.hs | bsd-3-clause | 2,521 | 0 | 4 | 875 | 43 | 35 | 8 | 8 | 0 |
{-# LANGUAGE QuasiQuotes #-}
module Cauterize.JavaScript.LibTemplate
( libFromSpec
) where
import Data.String.Interpolate
import Data.Text.Lazy (unpack)
import Data.List.Split
import Data.List (intercalate)
import Data.Char
import Data.Word
import Numeric
import qualified Cauterize.Specification as S
import quali... | cauterize-tools/caut-javascript-ref | src/Cauterize/JavaScript/LibTemplate.hs | bsd-3-clause | 4,553 | 0 | 16 | 996 | 1,218 | 661 | 557 | 88 | 5 |
{-# LANGUAGE DataKinds #-}
module HLearn.Data.SpaceTree.CoverTree
where
import Debug.Trace
import qualified Data.List as L
import Data.Either
import qualified Prelude as P
import qualified Data.Vector.Generic as VG
import qualified Data.Vector.Unboxed as VU
import qualified Data.Vector as V
import Data.Params
... | iamkingmaker/HLearn | src/HLearn/Data/SpaceTree/CoverTree.hs | bsd-3-clause | 51,631 | 0 | 17 | 15,388 | 11,508 | 6,002 | 5,506 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, KindSignatures, DataKinds, TypeOperators #-}
{-# LANGUAGE FlexibleInstances, FlexibleContexts #-}
module Database.Neo4j where
import Control.Applicative ((<$>), (<*>))
import Database.Neo4j.Types
import Language.Cypher
import qualified Network.HTTP as H
import qualified Network.Strea... | HaskellDC/neo4j-cypher | Database/Neo4j.hs | bsd-3-clause | 2,670 | 0 | 18 | 578 | 981 | 516 | 465 | 57 | 7 |
{-
This file is part of Pulse, a Haskell binding to PulseAudio library.
Pulse is free software: you can redistribute it and/or modify it under
BSD-3. You should have received a copy of the BSD-3 License along with
Pulse. If not, see <http://www.opensource.org/licenses/BSD-3-clause>.
This file was modified from the ma... | MnO2/r3 | src/Text/R3/Internal/C2HS.hs | bsd-3-clause | 5,262 | 0 | 11 | 963 | 1,031 | 561 | 470 | 79 | 2 |
module Cases.IfaceReaderTest where
import Data.List
import qualified Data.Map as Map
import Language.Haskell.Exts hiding (name)
import Tc.Assumption
import Tc.Class
import Tc.Kc.KcEnv
import Iface.IfaceReader
import Utils.Id
import qualified Utils.Env as Env
testifacereader1
= parseInterface modulen >> ret... | rodrigogribeiro/mptc | test/Cases/IfaceReaderTest.hs | bsd-3-clause | 417 | 0 | 7 | 56 | 87 | 54 | 33 | 13 | 1 |
{-# LANGUAGE
FlexibleContexts
, OverloadedStrings
#-}
module Application where
import Imports hiding ((</>))
import Routes
import qualified Data.Text as T
import System.Directory
import Control.Monad.Reader
-- * Security
data AuthRole = NeedsLogin
data AuthErr = NeedsAuth
authorize :: ( Monad m
... | athanclark/contact-logger | src/Application.hs | bsd-3-clause | 1,268 | 0 | 12 | 272 | 351 | 180 | 171 | 31 | 2 |
main = putStrLn("Hello, world")
| rtoal/ple | haskell/hello.hs | mit | 32 | 0 | 6 | 4 | 12 | 6 | 6 | 1 | 1 |
module Data.Wright.Colour where
import Data.Wright.Types
import qualified Numeric.Matrix as M (map)
import Data.Wright.RGB.Matrix (m')
import Data.Vector (fromVector)
import Data.Matrix (toMatrix, fromMatrix)
import Data.Wright.RGB.Compand (compand)
class Colour m where
toXYZ :: Model -> m ℝ -> XYZ ℝ
toLAB :: Mod... | fmap-archive/wright | src/Data/Wright/Colour.hs | mit | 1,055 | 0 | 15 | 318 | 551 | 290 | 261 | 31 | 0 |
module Main where
import Test.HUnit
import Test.Snap.Snaplet.HandleIt.Router as Router
unitTests :: [Test]
unitTests = concat
[ Router.tests
]
main :: IO Counts
main = runTestTT $ test unitTests
| AtticHacker/snaplet-handle-it | tests/test-snaplet-handle-it.hs | gpl-3.0 | 222 | 0 | 7 | 55 | 60 | 36 | 24 | 8 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.