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 Compiler.Rum.Internal.Rumlude where
import Control.Monad.Trans (MonadIO, liftIO)
import Data.Char (ord)
import qualified Data.HashMap.Strict as HM (HashMap, fromList)
import Data.List (intercalate)
import Data.Monoid ((<... | vrom911/Compiler | src/Compiler/Rum/Internal/Rumlude.hs | mit | 2,806 | 0 | 11 | 895 | 928 | 513 | 415 | 49 | 3 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE... | wujf/yesod | yesod-core/Yesod/Core/Handler.hs | mit | 40,441 | 0 | 21 | 10,123 | 8,180 | 4,408 | 3,772 | -1 | -1 |
-- This module provides utilities for computing hashes based on the
-- structural definitions of datatypes. The purpose of this is to
-- provide a mechanism for tagging serialized data in such a way that
-- deserialization issues can be anticipated.
--
-- This portion of the store package is still under development and... | fpco/store | src/Data/Store/TypeHash.hs | mit | 593 | 0 | 5 | 114 | 47 | 35 | 12 | 7 | 0 |
module Server.Handler where
import Agda ( getCommandLineOptions
, runAgda
)
import qualified Agda.IR as IR
import Agda.Interaction.Base ( CommandM... | banacorn/agda-language-server | src/Server/Handler.hs | mit | 6,916 | 0 | 34 | 3,047 | 1,091 | 591 | 500 | 99 | 5 |
-- | This module contains a set of utilities for use in other parts of the
-- project.
module Utils where
----------
-- Code --
-- | @'map'@, but with its arguments reversed.
for :: [a] -> (a -> b) -> [b]
for = flip map
-- | Splitting a map by a delimiter.
splitBy :: (Show a, Eq a) => a -> [a] -> [[a]]
splitBy =
... | crockeo/tic-taskell | src/Utils.hs | mit | 962 | 0 | 12 | 317 | 379 | 201 | 178 | 19 | 2 |
-- The product of these numbers is 26 × 63 × 78 × 14 = 1788696
-- What is the greatest product of four adjacent numbers in the same direction
-- (up, down, left, right, or diagonally) in the 20×20 grid?
| sravan-s/euler | euler-0011/prodInGrid.hs | mit | 209 | 0 | 2 | 43 | 5 | 4 | 1 | 1 | 0 |
module ProjectEuler.Problem15
( problem
) where
import ProjectEuler.Types
problem :: Problem
problem = pureProblem 15 Solved result
-- https://oeis.org/A000984
result :: Integer
result = maximum [ fa (i+j) `div` (fa i * fa j)
| i<- [0..20]
, j<- [0..20]
]
wher... | Javran/Project-Euler | src/ProjectEuler/Problem15.hs | mit | 387 | 0 | 11 | 140 | 141 | 77 | 64 | 11 | 2 |
import GHC.Conc (par, pseq)
import System.IO.Unsafe (unsafePerformIO)
import System.Environment (getArgs)
import Data.Time.Clock (getCurrentTime, diffUTCTime)
import Data.Array.IO (IOUArray, newArray, writeArray, getElems)
import Data.Word (Word8)
import System.IO (hPutStrLn, hPutStr, stderr)
import Control.Monad (forM... | smlsharp/smlsharp | benchmark/benchmarks_parallel/mandelbrot/mandelbrot_ghc_par.hs | mit | 3,214 | 0 | 26 | 1,155 | 1,224 | 643 | 581 | 75 | 5 |
module Text.Regex.PCRE.ByteString.Gsub
(gsub) where
import Data.Array ((!))
import Data.ByteString.Char8 (ByteString)
import Data.Char (isDigit)
import Text.Regex.PCRE (MatchText, (=~))
import Data.ByteString.Char8 as B8
---------------... | HaskVan/regex-pcre-gsub | src/Text/Regex/PCRE/ByteString/Gsub.hs | mit | 1,432 | 0 | 14 | 423 | 480 | 261 | 219 | 28 | 4 |
{-# OPTIONS_HADDOCK hide #-}
module Graphics.Gloss.Internals.Interface.Simulate.State
( State (..)
, stateInit )
where
-- | Simulation state
data State
= State
{ -- | The iteration number we're up to.
stateIteration :: !Integer
-- | Whether the animation is free-running (or single step)
, stateRun :: !Bo... | gscalzo/HaskellTheHardWay | gloss-try/gloss-master/gloss/Graphics/Gloss/Internals/Interface/Simulate/State.hs | mit | 1,059 | 45 | 9 | 242 | 196 | 120 | 76 | 37 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-missing-fields #-}
module Text.Hamlet
( -- * Plain HTML
Html
, shamlet
, shamletFile
, xshamlet
, xshamletFile
-- * Hamlet
, HtmlUrl
... | fgaray/shakespeare | Text/Hamlet.hs | mit | 21,173 | 0 | 20 | 5,520 | 6,916 | 3,577 | 3,339 | 474 | 14 |
module StmContainers.Multimap
(
Multimap,
new,
newIO,
null,
focus,
lookup,
lookupByKey,
insert,
delete,
deleteByKey,
reset,
unfoldlM,
unfoldlMKeys,
unfoldlMByKey,
listT,
listTKeys,
listTByKey,
)
where
import StmContainers.Prelude hiding (insert, delete, lookup, alter, foldM, toList, e... | nikita-volkov/stm-containers | library/StmContainers/Multimap.hs | mit | 5,020 | 0 | 19 | 1,090 | 1,574 | 826 | 748 | -1 | -1 |
import Prelude hiding (null)
import Data.Nullable
import Data.Maybe
import Database.Zookeeper.Core as Z
import Database.Redis.Redis
import Database.Redis.ByteStringClass
import Control.Concurrent
import Control.Concurrent.MVar
import Control.Monad
import qualified Database.Siege.DBNode as N
import Database.Siege.Flus... | DanielWaterworth/siege | exec/siege-distributed.hs | mit | 1,287 | 0 | 17 | 213 | 428 | 220 | 208 | 42 | 1 |
module Client where
import Control.Concurrent.Chan (Chan,
newChan,
readChan)
import Network.Socket (setSocketOption,
socket,
SocketOption(..),
Socket... | agomezl/TicTacToe | src/Client.hs | mit | 1,957 | 0 | 13 | 877 | 412 | 220 | 192 | 46 | 2 |
module Csv1 where
-- file: ch16/csv1.hs
import Text.ParserCombinators.Parsec
csvFile :: GenParser Char st [[String]]
csvFile =
do
result <- many line
eof
return result
csvFile' :: GenParser Char st [[String]]
csvFile' =
do
result <- many line2
eof
return r... | brodyberg/Notes | csv/csv1/src/csv1.hs | mit | 1,339 | 0 | 9 | 385 | 449 | 226 | 223 | 47 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE StandaloneDeriving #-}
module Abt.Concrete.LocallyNameless
( Tm(..)
, Tm0
, _TmOp
, Va... | jonsterling/hs-abt | src/Abt/Concrete/LocallyNameless.hs | mit | 3,287 | 0 | 14 | 905 | 1,404 | 708 | 696 | 114 | 5 |
-- | Lowlevel communication
module NXT.Comm (
-- * Comm types
NXTPort(..),
NXTBrick(..),
NXTHandle,
Message,
-- * Open/Close
nxtOpen,
nxtClose,
-- * Time
nxtInitTime,
nxtUpdateTime,
-- * Basic Read/Write
nxtRead,
nxtWrite,
-- * Communication
send,
sendReceive,
send0,
send1,
send2,
send3,
send4,
s... | janv/haskell-nxt | src/NXT/Comm.hs | mit | 5,734 | 72 | 15 | 923 | 1,306 | 686 | 620 | 106 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE InstanceSigs #-}
module Course.Traversable where
import Course.Functor
import Course.Applicative
import Course.List
-- | All instances of the `Traversable` type-class must satisfy two laws. These
-- laws are not checked by the compi... | harrisi/on-being-better | list-expansion/Haskell/course/src/Course/Traversable.hs | cc0-1.0 | 897 | 0 | 12 | 213 | 185 | 100 | 85 | 21 | 0 |
--
-- Copyright (c) 2013 Bonelli Nicola <bonelli@antifork.org>
--
-- 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.
--... | YelaSeamless/cgrep | src/CGrep/Strategy/Regex.hs | gpl-2.0 | 1,932 | 0 | 18 | 408 | 366 | 199 | 167 | 24 | 1 |
module Language where
data Math = Increment
| Decrement
| Multiply Int
deriving (Show, Read)
data Operation = Apply Operation Operation
| GetLength
| ApplyMath Math Operation
| GetCharAt Operation
| NoOperation
| Sequence... | graninas/Haskell-Algorithms | Tests/HaskellSkbRii/Task3/Language.hs | gpl-3.0 | 2,266 | 0 | 6 | 616 | 146 | 103 | 43 | 17 | 0 |
module StoreSpec (spec) where
import Test.Hspec
import Test.QuickCheck
spec :: Spec
spec = do
describe "Store.storeInit" $ do
it "returns the first element of a list" $ do
head [23 ..] `shouldBe` (23 :: Int)
it "returns the first element of an *arbitrary* list" $
property $ \x xs -> head (x:xs... | mschristiansen/intro | test/StoreSpec.hs | gpl-3.0 | 336 | 0 | 15 | 82 | 112 | 60 | 52 | 10 | 1 |
{-# LANGUAGE Arrows #-}
import qualified SDL
import FRP.Netwire
import Control.Wire
import Prelude hiding ((.), id, until)
import Data.Text (pack)
import Linear
import Linear.Affine
instance (Num a, Num b) => Num (a,b) where
(a,b) + (c,d) = (a+c,b+d)
(a,b) * (c,d) = (a*c,b*d)
abs (a,b) = (abs a,abs b)
signum ... | mdietz94/asteroids | frp.hs | gpl-3.0 | 3,215 | 1 | 21 | 727 | 1,494 | 775 | 719 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings #-}
module Lamdu.GUI.ExpressionEdit.RecordEdit
( make
) where
import Prelude.Compat
import Control.Lens.Operators
import Control.Lens.Tuple
import Control.MonadA (MonadA)
import qualified Data.List as List
import ... | rvion/lamdu | Lamdu/GUI/ExpressionEdit/RecordEdit.hs | gpl-3.0 | 6,514 | 0 | 23 | 1,705 | 1,692 | 889 | 803 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings #-}
module Text.Editor.VimActions where
import Control.Applicative
import Control.Monad (msum)
import Prelude hiding (Either(..))
import qualified Prelude as P
import Data.Attoparsec.Text (Parser)
import qualified... | svenkeidel/hsedit | src/Text/Editor/VimActions.hs | gpl-3.0 | 1,497 | 0 | 9 | 330 | 401 | 236 | 165 | 42 | 1 |
module QFeldspar.Expression.Conversions.NameResolution () where
import QFeldspar.MyPrelude
import qualified QFeldspar.Expression.ADTUntypedNamed as AUN
import qualified QFeldspar.Expression.ADTUntypedDebruijn as AUD
import qualified QFeldspar.Environment.Map as EM
import qualified QFeldspar.E... | shayan-najd/QFeldspar | QFeldspar/Expression/Conversions/NameResolution.hs | gpl-3.0 | 1,996 | 0 | 15 | 694 | 529 | 301 | 228 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable, TemplateHaskell #-}
{-# LANGUAGE EmptyDataDecls, RankNTypes, ScopedTypeVariables #-}
module Main where
import Prelude (Ord,Show)
import Prelude
((==), (/=), (<), (<=), (>=), (>), (+), (-), (*), (/), (**), (>>=),
(>>), (=<<), (&&), (||), (^), (^^), (.), ($), ($!), (+... | danr/hipspec | examples/old-examples/BoolExp.hs | gpl-3.0 | 2,846 | 2 | 12 | 823 | 1,154 | 659 | 495 | 73 | 2 |
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- Module : Gen.Types.Orphans
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : This Source Code Form is subject to the terms of
-- the Mozilla xtPublic License, v. 2.0.
-- A copy of the MPL can be foun... | fmapfmapfmap/amazonka | gen/src/Gen/Types/Orphans.hs | mpl-2.0 | 1,972 | 0 | 12 | 538 | 405 | 222 | 183 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/DescribeRaidArrays.hs | mpl-2.0 | 5,181 | 0 | 10 | 1,015 | 648 | 390 | 258 | 70 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-servicemanagement/gen/Network/Google/Resource/ServiceManagement/Services/Configs/Get.hs | mpl-2.0 | 5,969 | 0 | 19 | 1,377 | 872 | 509 | 363 | 127 | 1 |
module OSRIC.Character where
data Character = Character { health :: Integer
}
| kaashif/hs-irc-osric | lib/OSRIC/Character.hs | agpl-3.0 | 107 | 0 | 8 | 41 | 21 | 13 | 8 | 2 | 0 |
----------------------------------------------------------------------
-- |
-- Module : Main
-- Maintainer : Markus Forsberg
-- Stability : (stability)
-- Portability : (portability)
--
-- > CVS $Date: 2006/06/05 15:25:00 $
-- > CVS $Author: markus $
-- > CVS $Revision: 1.1 $
--
--------------------------------... | johnjcamilleri/maltese-functional-morphology | lib/Command.hs | lgpl-3.0 | 9,395 | 4 | 18 | 3,089 | 2,589 | 1,388 | 1,201 | 179 | 6 |
module Math.Topology.KnotTh.Enumeration.DiagramInfo.AllDiagramsInfo
( module X
, AllDiagramsInfo
, allDiagrams
) where
import qualified Data.Vector.Unboxed as UV
import Math.Topology.KnotTh.Knotted
import Math.Topology.KnotTh.Enumeration.DiagramInfo as X
newtype AllDiagramsInfo k = AllDiagramsInfo [(... | mishun/tangles | src/Math/Topology/KnotTh/Enumeration/DiagramInfo/AllDiagramsInfo.hs | lgpl-3.0 | 1,026 | 0 | 15 | 295 | 338 | 186 | 152 | 24 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
module Openshift.V1.DeploymentStrategy where
import GHC.Generics
import Data.Text
import Openshift.Any
import Openshi... | minhdoboi/deprecated-openshift-haskell-api | openshift/lib/Openshift/V1/DeploymentStrategy.hs | apache-2.0 | 1,451 | 0 | 18 | 213 | 233 | 139 | 94 | 25 | 0 |
-- Copyright 2021 Google LLC
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in ... | google/haskell-trainings | haskell_101/codelab/02_datatypes/src/Codelab.hs | apache-2.0 | 2,250 | 0 | 6 | 431 | 144 | 102 | 42 | 14 | 1 |
{- Copyright 2014 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 law or... | shockkolate/arata | src/Arata/Message.hs | apache-2.0 | 1,385 | 0 | 10 | 247 | 337 | 175 | 162 | 20 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Network.Wai.Handler.Warp (Port)
import System.Environment (getArgs)
import Web.Scotty
import Types
defaultPort :: Port
defaultPort = 8888
runService :: Port -> IO ()
runService port = scotty port $ do
get "/" $ file "index.html"
notFound $ json $ Error 400 "service ... | jotrk/webui-service | src/Main.hs | bsd-2-clause | 535 | 0 | 11 | 122 | 178 | 89 | 89 | 18 | 2 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Curve25519
( tests -- :: Int -> Tests
) where
import Control.Monad
import Crypto.DH.Curve25519
import Crypto.Key
import Test.QuickCheck
import Util
------------------------------------------------------------... | thoughtpolice/hs-nacl | tests/Curve25519.hs | bsd-3-clause | 855 | 0 | 10 | 201 | 223 | 126 | 97 | 19 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
module Game.Vector where
-- A Euclidian vector.
-- Minimal complete definition requires 'vzero', 'vscale','vdot', and
-- any two of 'vplus', 'vminus', and 'vnegate'
class Vector a v | v -> a where
vplu... | Ginto8/Pong-Haskell | src/Game/Vector.hs | bsd-3-clause | 1,661 | 0 | 9 | 432 | 839 | 463 | 376 | 48 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Prompt
-- Copyright : (C) 2007 Andrea Rossato
-- License : BSD3
--
-- Maintainer : Spencer Janssen <spencerjanssen@gmail.com>
-- Stability : unstable
-- Por... | adinapoli/xmonad-contrib | XMonad/Prompt.hs | bsd-3-clause | 47,446 | 0 | 26 | 13,416 | 12,232 | 6,478 | 5,754 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
-- | Produce an Elm module for an 'Interface'. This provides type
-- definitions and useful helpers for integrating apps written in
-- the Elm Architecture.
--
-- Unlike the Ivory, Tower, and Haskell backends, we don't have a
-- Producer/Consumer distinction. Instead, the Elm backen... | GaloisInc/gidl | src/Gidl/Backend/Elm/Interface.hs | bsd-3-clause | 12,842 | 0 | 28 | 4,008 | 3,593 | 1,834 | 1,759 | 276 | 6 |
{-# Language BangPatterns #-}
module Main where
import Data.Text.Lazy (Text)
import Types
import Parser
import Network.Socket
import System.IO (IOMode (ReadMode), stderr)
import Control.Concurrent.STM
import Control.Concurrent
import qualified Data.Map as M
import qualified Data.Text.Lazy.IO as TI
import qualified Dat... | MasseR/statskell | server.hs | bsd-3-clause | 3,501 | 0 | 20 | 908 | 1,197 | 600 | 597 | 93 | 7 |
{- |
This package easily lets you create high quality histogram plots from your data in Haskell. It automatically bins your data using whichever binning strategy you'd like, then plots the data. It uses the gnuplot package to do all the actual graphing, so any options that work for making gnuplot pretty will also wo... | mikeizbicki/histogram | src/Graphics/Histogram.hs | bsd-3-clause | 10,950 | 0 | 20 | 2,543 | 2,514 | 1,394 | 1,120 | 126 | 4 |
{-# LANGUAGE OverloadedStrings, RecordWildCards, ScopedTypeVariables #-}
module Properties (tests) where
import Data.Aeson (eitherDecode)
import Data.Aeson.Encode (encode, encodeToBuilder)
import Data.Aeson.Internal (IResult(..), formatError, ifromJSON, iparse)
import Data.Aeson.Parser (value)
import Data.Aeson.Types... | nurpax/aeson | tests/Properties.hs | bsd-3-clause | 9,111 | 0 | 19 | 1,928 | 2,267 | 1,202 | 1,065 | 157 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Keter.Node.TypesSpec (main, spec) where
import Keter.Node
import Keter.Node.Types
import Keter.App
import Keter.AppManager
import Keter.Types
import Control.Concurrent
import Test.Hspec
import Data.Aeson
import Filesystem.Path.CurrentOS (directory, encodeString, (<.>),(</>),e... | plow-technologies/keter-node | test/Keter/Node/TypesSpec.hs | bsd-3-clause | 1,539 | 0 | 16 | 371 | 325 | 173 | 152 | 33 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
module KifuDB
( run
) where
import Control.Applicative ((<$>))
import Control.... | suzuki-shin/kifuDB | src/KifuDB.hs | bsd-3-clause | 1,819 | 0 | 18 | 451 | 355 | 177 | 178 | 36 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
import Control.Applicative
import Control.Monad.Identity (Identity)
import Data.List (intercalate)
import System.Environment
import Text.Parsec ((<?>))
import qualifie... | ytakano/tsukuyomi | validator/lunar_lisp/lunar_lisp_parser.hs | bsd-3-clause | 8,377 | 0 | 13 | 2,417 | 1,970 | 968 | 1,002 | 192 | 2 |
{-# LANGUAGE TypeOperators #-}
module Numeric.LinearAlgebra.GivensRotation where
import Data.Packed.Matrix
import Data.Packed.Vector
import Data.Packed.ST
import Data.Yall.Lens
import Numeric.Container
import Data.Packed.Matrix.Lens.Util
import Data.Packed.Matrix.Lens
import Test.QuickCheck
triagonalize :: (Floatin... | exit91/hmatrix-lens | Numeric/LinearAlgebra/GivensRotation.hs | bsd-3-clause | 2,348 | 0 | 14 | 686 | 1,127 | 590 | 537 | 67 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Server.UCmdT where
import Control.Lens (makeLenses)
import qualified Data.ByteString as B
import Types
import QCommon.XCommandT
data UCmdT =
UCmdT { _ucName :: B.ByteString
, _ucFunc :: XCommandT
}
makeLenses ''UCmdT
| ksaveljev/hake-2 | src/Server/UCmdT.hs | bsd-3-clause | 279 | 0 | 9 | 56 | 64 | 39 | 25 | 10 | 0 |
{-# LANGUAGE CPP, TypeSynonymInstances, DeriveDataTypeable, FlexibleInstances,
GeneralizedNewtypeDeriving, OverloadedStrings, FlexibleContexts #-}
{-# OPTIONS_HADDOCK not-home #-}
-- |A type for profile preferences. These preference values are used by both
-- Firefox and Opera profiles.
module Test.WebDriv... | wuzzeb/hs-webdriver | src/Test/WebDriver/Common/Profile.hs | bsd-3-clause | 9,530 | 0 | 13 | 2,159 | 1,790 | 959 | 831 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
module Api.Login where
import Control.Lens
import Control.Monad.IO.Class (liftIO)
import Contro... | pellagic-puffbomb/simpleservantblog | src/Api/Login.hs | bsd-3-clause | 4,034 | 0 | 24 | 1,321 | 1,026 | 537 | 489 | 89 | 3 |
--
-- Copyright © 2013-2014 Anchor Systems, Pty Ltd and Others
--
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms of
-- the 3-clause BSD licence.
--
{-# LANGUAGE DataKinds ... | anchor/synchronise | test/api-roundtrip-test.hs | bsd-3-clause | 3,469 | 0 | 16 | 872 | 669 | 335 | 334 | 70 | 2 |
module Data.Function.Instances.Algebra.Ring where
import Data.Function.Instances.Algebra.Internal
import Algebra.Ring as R
instance C a => C (k -> a) where
(*) = zipFn (R.*)
one = const R.one
fromInteger = const . R.fromInteger
f ^ e = \x -> f x R.^ e
| TobBrandt/function-instances-algebra | Data/Function/Instances/Algebra/Ring.hs | bsd-3-clause | 262 | 0 | 8 | 51 | 106 | 61 | 45 | 8 | 0 |
{-# LANGUAGE TupleSections, ScopedTypeVariables, CPP #-}
module Minimisation where
import Control.Arrow ( (&&&) )
#if __GLASGOW_HASKELL__ < 710
import Control.Applicative ( (<$>), Applicative )
#endif
import Control.Monad ( when )
-- Eval is a strict identity monad.
import Control.Parallel.Strategies ( runEval )
imp... | owst/Penrose | src/Minimisation.hs | bsd-3-clause | 13,920 | 0 | 16 | 3,773 | 3,295 | 1,723 | 1,572 | 178 | 3 |
module Jerimum.Tests.Integration.DataTypeHelper where
import Control.Monad
import qualified Data.Map as M
import Data.Monoid
import Data.String
import qualified Database.PostgreSQL.Simple as PQ
import Database.PostgreSQL.Simple.ToField
import ... | dgvncsz0f/nws | test/Jerimum/Tests/Integration/DataTypeHelper.hs | bsd-3-clause | 10,830 | 0 | 20 | 3,798 | 2,305 | 1,165 | 1,140 | 299 | 1 |
{-# LANGUAGE CPP, DeriveDataTypeable, MagicHash, UnboxedTuples #-}
{- |
Copyright : (c) Andy Sonnenburg 2013
License : BSD3
Maintainer : andy22286@gmail.com
-}
module Data.Prim.Array
( MutableArray
, newArray
, readArray
, writeArray
) where
import Control.Monad.Prim
impor... | sonyandy/var | src/Data/Prim/Array.hs | bsd-3-clause | 1,080 | 0 | 11 | 245 | 331 | 174 | 157 | 25 | 1 |
{-# Language
FlexibleInstances,
GeneralizedNewtypeDeriving,
OverloadedStrings,
ScopedTypeVariables,
TypeSynonymInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
--------------------------------------------------------------------
-- |
-- Module: HTrade.Backend.Types
--
-- Various types and constants share... | davnils/distr-btc | src/HTrade/Backend/Types.hs | bsd-3-clause | 5,657 | 0 | 16 | 1,518 | 1,195 | 676 | 519 | 121 | 1 |
module Network.Tangaroa.Byzantine.Timer
( resetElectionTimer
, resetHeartbeatTimer
, cancelTimer
) where
import Control.Lens hiding (Index)
import Control.Monad.Trans (lift)
import System.Random
import Control.Concurrent.Lifted
import Network.Tangaroa.Byzantine.Types
import Network.Tangaroa.Byzantine.Util
ge... | chrisnc/tangaroa | src/Network/Tangaroa/Byzantine/Timer.hs | bsd-3-clause | 1,235 | 0 | 13 | 203 | 366 | 192 | 174 | 29 | 1 |
module Main where
import Graph
import GraphDegree
import GraphAlgorithms(maxCliques, maxIndepSets, greedyIndepSet, allMaxIndepSets)
import LevGraphs(levIntGraph, levLevelIntEdges, levLevelTwoIntEdges, vtZeroEdges, vtZeroLevelEdges, firstLevels, midLevels)
import QaryGraphs(qMiddleLevelIntEdges)
import Util(argMaximums... | cullina/Extractor | src/Main.hs | bsd-3-clause | 2,353 | 0 | 11 | 440 | 916 | 473 | 443 | 41 | 1 |
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
-- | A renderer that produces a native Haskell 'String', mostly meant for
-- debugging purposes.
--
module Text.Blaze.Svg.Renderer.String
( renderSvg
) where
import Text.Blaze.Renderer.String (renderMarkup)
renderSvg = renderMarkup | deepakjois/blaze-svg | src/Text/Blaze/Svg/Renderer/String.hs | bsd-3-clause | 290 | 0 | 5 | 42 | 35 | 25 | 10 | 5 | 1 |
{-
This a separate part of the high-level test of the hackage server
(see HighLevelTest.hs). This set of tests check that the user self
registration wors. This test needs local outgoing email, which isn't
available on all hosts, so we keep it as a separate test.
System requirements:
1. Port `testPort` (cu... | edsko/hackage-server | tests/CreateUserTest.hs | bsd-3-clause | 3,849 | 0 | 15 | 949 | 820 | 389 | 431 | 73 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE OverlappingInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ... | dmcclean/dimensional-dk-linalg | src/Numeric/LinearAlgebra/Dimensional/DK/Internal.hs | bsd-3-clause | 13,935 | 0 | 16 | 3,158 | 3,034 | 1,576 | 1,458 | 118 | 1 |
module Pos.Infra.Reporting.NodeInfo
( extendWithNodeInfo
, getNodeInfo
, extendRTDesc
) where
import Universum
import Data.Bits (Bits (..))
import Formatting (sformat, stext, (%))
import Network.Info (IPv4 (..), getNetworkInterfaces, ipv4)
import Serok... | input-output-hk/pos-haskell-prototype | infra/src/Pos/Infra/Reporting/NodeInfo.hs | mit | 1,743 | 0 | 12 | 400 | 433 | 236 | 197 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( makeApplication
, getApplicationDev
, makeFoundation
) where
import Import
import Settings
import Yesod.Auth
import Yesod.Default.Config
import Yesod.Default.Main
import Yesod.Default.Handlers
import Network.Wai.Middleware.RequestLogger
( m... | Laquendi/memopad | Application.hs | mit | 3,268 | 0 | 13 | 605 | 601 | 335 | 266 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
module Node.Util.Monitor (
registerMetrics
) where
import Data.Monoid ((<>))
import qualified Data.Text as T
import Node
import qualified System.Metrics as Monitoring
import qualified System.Metrics.Distribution as Monitoring.Distribution
impo... | input-output-hk/pos-haskell-prototype | networking/src/Node/Util/Monitor.hs | mit | 1,657 | 0 | 12 | 331 | 360 | 184 | 176 | 31 | 2 |
#include "nrutil.h"
// void (*derivs)(float, float [], float []))
struct ODE {
void operator()(valarray<double> &ydot, const valarray<double> y, const double t) {
// bla bla
}
};
template<typename D, class Array, typename Derivs>
void rk4(
Array &out,
const Array &y, const Array &dydx, const int n,
const D x,... | otgonbayar999/libpeyton | include/astro/math/rk.hs | gpl-2.0 | 8,609 | 550 | 18 | 1,355 | 3,051 | 2,116 | 935 | -1 | -1 |
module Bar where
import qualified Foo.Foo as Barry
mkFoo = <ref>Foo "yo!"
| carymrobbins/intellij-haskforce | tests/gold/resolve/Data00006/Bar.hs | apache-2.0 | 76 | 2 | 6 | 14 | 26 | 16 | 10 | -1 | -1 |
-- Copyright : Daan Leijen (c) 1999, daan@cs.uu.nl
-- HWT Group (c) 2003, haskelldb-users@lists.sourceforge.net
-- License : BSD-style
module Opaleye.Internal.HaskellDB.PrimQuery where
import qualified Opaleye.Internal.Tag as T
import Data.ByteString (ByteString)
type TableName = String
type ... | bergmark/haskell-opaleye | src/Opaleye/Internal/HaskellDB/PrimQuery.hs | bsd-3-clause | 3,014 | 0 | 8 | 1,234 | 525 | 326 | 199 | 64 | 0 |
{-# LANGUAGE CPP #-}
module Bead.Daemon.Logout (
startLogoutDaemon
, LogoutDaemon(..)
#ifdef TEST
, logoutQueueTests
#endif
) where
{-
The purpose of the logout daemon is to make logout the active
users after a given amount of a time, maintaining the activity information
of the users.
This functionality is ... | andorp/bead | src/Bead/Daemon/Logout.hs | bsd-3-clause | 8,804 | 0 | 23 | 2,245 | 2,126 | 1,071 | 1,055 | 89 | 2 |
{-# LANGUAGE TemplateHaskell, RankNTypes, FlexibleContexts #-}
{-| Pure functions for manipulating reservations of temporary objects
NOTE: Reservations aren't released specifically, they're just all
released at the end of a job. This could be improved in the future.
-}
{-
Copyright (C) 2014 Google Inc.
All rights ... | apyrgio/ganeti | src/Ganeti/WConfd/TempRes.hs | bsd-2-clause | 18,794 | 0 | 18 | 4,083 | 4,603 | 2,400 | 2,203 | -1 | -1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ExistentialQuantifi... | rahulmutt/ghcvm | libraries/base/GHC/TypeNats.hs | bsd-3-clause | 5,126 | 3 | 10 | 1,016 | 1,115 | 673 | 442 | -1 | -1 |
-- The algorithm is a combination of http://www.crsr.net/Notes/EinsteinsProblem.html and http://blog.darrenstruthers.net/2012/10/solving-einsteins-puzzle-with-haskell.html
module EinsteinPuzzle where
import Data.List
import Data.Maybe
data Color = Blue | Green | Red | White | Yellow deriving (Eq, Show, Enum, Bounded... | warreee/Algorithm-Implementations | Einstein_Puzzle/Haskell/warreee/EinsteinPuzzle.hs | mit | 8,629 | 0 | 13 | 2,849 | 3,242 | 1,827 | 1,415 | 133 | 1 |
{-# LANGUAGE BangPatterns, OverloadedStrings #-}
module Main where
import Control.Applicative
import Control.Monad
import Control.Monad.IO.Class
import Data.Aeson
import Data.Configurator
import Data.Int
import Data.Text (Text)
import Data.Pool
import Database.MySQL.Simple
... | saturday06/FrameworkBenchmarks | frameworks/Haskell/snap/bench/src/Main.hs | bsd-3-clause | 3,201 | 0 | 13 | 842 | 1,036 | 525 | 511 | 88 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -Werror #-}
-- Trac #3261
module Foo where
foo :: Int
foo = ceiling 6.3
| urbanslug/ghc | testsuite/tests/typecheck/should_fail/tcfail204.hs | bsd-3-clause | 119 | 0 | 5 | 26 | 20 | 13 | 7 | 5 | 1 |
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TemplateHaskell #-}
module Data.Bin
( newRect
, packRects
, atlasRect
, Bin(..)
, getOffsets
, findOffset
)
where
-- |
import Control.Lens
--import Data.Monoid
import Data.List
import qualified Data.Map as Map
import Data.Maybe
import ... | mfpi/hsys | src/Data/Bin.hs | mit | 6,260 | 131 | 17 | 1,407 | 2,521 | 1,328 | 1,193 | -1 | -1 |
module Melvin.Damn.Actions (
pong,
login,
join,
part,
msg,
action,
disconnect
) where
import Data.Map (fromList)
import Melvin.Chatrooms
import Melvin.Damn.HTML
import Melvin.Prelude hiding (re)
import Melvin.Types hiding (token)
import Text.Damn.Packet hiding (render)
pong :: Packe... | pikajude/melvin | src/Melvin/Damn/Actions.hs | mit | 1,429 | 0 | 14 | 348 | 535 | 274 | 261 | 44 | 1 |
module Main where
import qualified Challenge263.Easy as E
import qualified Challenge263.Intermediate as I
import Data.Map ((!))
import Test.Hspec
main :: IO ()
main = do
let easyInput = ["122333444455555666666777777788888888","563881467447538846567288767728553786","https... | z0isch/reddit-dailyprogrammer | Challenge263/src/Main.hs | mit | 1,955 | 0 | 21 | 395 | 632 | 320 | 312 | 30 | 1 |
module Multiply where
mul :: (Integral a) => a -> a -> a
mul x 0 = 0
mul x y = x + mul x (y - 1)
| Lyapunov/haskell-programming-from-first-principles | chapter_8/multiply.hs | mit | 98 | 0 | 8 | 30 | 62 | 33 | 29 | 4 | 1 |
--
-- Load source file
-- :l <source file name>
--
-- Compile
-- ghc -o first first.hs
--
-- Exit
-- :quit
--
-- Value
-- hoge (-10) | sonsongithub/LearnHaskell | first.hs | mit | 132 | 0 | 2 | 28 | 14 | 13 | 1 | 1 | 0 |
-- file: ch01/WC.hs
-- lines beginning with "--" are comments.
main = interact lineCount
where lineCount input = show (length (lines input)) ++ "\n"
| dobrite/rwh | ch01/WC.hs | mit | 157 | 0 | 12 | 32 | 40 | 20 | 20 | 2 | 1 |
{-# LANGUAGE GADTs, KindSignatures, TypeFamilies, OverlappingInstances,
EmptyDataDecls, DeriveDataTypeable, StandaloneDeriving, FlexibleInstances,
ScopedTypeVariables #-}
module Syntax (
module Operator,
module Type,
Time,
Dist (..),
Process (..),
Type (..),
varUsedInDist,
varUsedInProcess,
... | vbalalla/financial_contract_language | Language/Syntax.hs | mit | 3,620 | 0 | 17 | 888 | 1,525 | 767 | 758 | -1 | -1 |
module Syntax where
data Type =
TyBool
| TyNat
deriving (Show, Eq)
data Term =
TmTrue
| TmFalse
| TmIf Term Term Term
| TmZero
| TmSucc Term
| TmPred Term
| TmIsZero Term
deriving Show
type Error = String
| kellino/TypeSystems | typedArith/Syntax.hs | mit | 250 | 0 | 6 | 85 | 71 | 43 | 28 | 15 | 0 |
module ConvertJS (toContext, toProof, fromAnalysis, fromRule) where
import GHCJS.Types
import GHCJS.Marshal
import Data.Aeson.Types
import qualified ConvertAeson as A
import Types
-- Conversion from/to JSRef
toContext :: JSVal -> IO (Either String Context)
toContext val = do
valMB <- fromJSVal val
case valM... | nomeata/incredible | logic/js/ConvertJS.hs | mit | 811 | 0 | 12 | 181 | 244 | 126 | 118 | 22 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGAnimatedLength
(js_getBaseVal, getBaseVal, js_getAnimVal, getAnimVal,
SVGAnimatedLength, castToSVGAnimatedLength, gTypeSVGAnimatedLength)
where
import Prelude ((.), (==), (>>=), return, IO... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/SVGAnimatedLength.hs | mit | 1,866 | 12 | 11 | 232 | 471 | 287 | 184 | 30 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.Attr
(js_getName, getName, js_getSpecified, getSpecified, js_setValue,
setValue, js_getValue, getValue, js_getOwnerElement,
getOwnerElement, js_getIsId, getIsId, Attr, castToAttr, gTypeAttr)... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/Attr.hs | mit | 3,208 | 38 | 11 | 472 | 852 | 484 | 368 | 50 | 1 |
{-# LANGUAGE CPP, NoImplicitPrelude, PackageImports #-}
module Foreign.Marshal.Utils.Compat (
module Base
) where
import "base-compat" Foreign.Marshal.Utils.Compat as Base
| haskell-compat/base-compat | base-compat-batteries/src/Foreign/Marshal/Utils/Compat.hs | mit | 175 | 0 | 4 | 21 | 25 | 19 | 6 | 4 | 0 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances #-}
{- |
Module : $Header$
Description : Instance of class Logic for common logic
Copyright : (c) Karl Luc, DFKI Bremen 2010, Eugen Kuksa and Uni Bremen 2011
License : GPLv2 or higher, see LICENSE.txt
Maintainer : eugenk@informatik.uni-bremen.de... | nevrenato/HetsAlloy | CommonLogic/Logic_CommonLogic.hs | gpl-2.0 | 5,786 | 0 | 10 | 1,196 | 985 | 528 | 457 | 133 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
----------------------------------------------... | ChrisLane/leksah | src/IDE/Pane/PackageEditor.hs | gpl-2.0 | 79,910 | 0 | 36 | 27,711 | 20,341 | 10,595 | 9,746 | 1,371 | 8 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( makeApplication
, getApplicationDev
, makeFoundation
) where
import Import
import Control.Monad.Logger (runLoggingT)
import qualified Database.Persist
import Database.Persist.Sql (runMigration)
import Database.Persist.MySQL (createMySQLPool, my... | marcellussiegburg/autotool | yesod/Application.hs | gpl-2.0 | 3,836 | 0 | 13 | 687 | 844 | 472 | 372 | -1 | -1 |
module Filter.Randomize (randomizeProblems) where
import Data.List
import Data.Hashable
import Text.Pandoc
import System.Random
import Prelude
randomizeProblems :: Int -> Block -> Block
randomizeProblems salt (Div ("",[],[]) contents) = Div ("",[],[]) (randomize salt contents)
randomizeProblems _ x = x
randomize :: ... | opentower/carnap | Carnap-Server/Filter/Randomize.hs | gpl-3.0 | 748 | 0 | 17 | 169 | 349 | 182 | 167 | 16 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module TCPDumpParser1 (parseFile, TCPPacket(..), showText) where
-- parse the output of tcpdump -ttnnr file
import Data.Int
import System.Environment
import Data.Maybe
import Text.Printf
import qualified Data.ByteString.Char8 as B
import qualified Data.Attoparsec.ByteStr... | mjansen/tcp-stream | src/TCPDumpParser1.hs | gpl-3.0 | 3,778 | 0 | 22 | 970 | 1,444 | 715 | 729 | 120 | 2 |
module Language.SMTLib2.Internals.Monad where
import Language.SMTLib2.Internals.Backend as B
import Language.SMTLib2.Internals.Type
import Control.Monad.State.Strict
import Control.Exception (onException)
#if !MIN_VERSION_base(4,8,0)
import Control.Applicative
#endif
import Data.Set (Set)
import qualified Data.Set as... | hguenther/smtlib2 | Language/SMTLib2/Internals/Monad.hs | gpl-3.0 | 3,414 | 0 | 19 | 890 | 1,389 | 700 | 689 | -1 | -1 |
{-# LANGUAGE CPP #-}
module Hledger.Web.WebOptions
where
import Prelude
import Data.Default
#if !MIN_VERSION_base(4,8,0)
import Data.Functor.Compat ((<$>))
#endif
import Data.Maybe
import Hledger.Cli hiding (progname,version,prognameandversion)
import Settings
progname, version :: String
progname = "hledger-web"
#ifd... | mstksg/hledger | hledger-web/Hledger/Web/WebOptions.hs | gpl-3.0 | 3,364 | 0 | 14 | 866 | 823 | 459 | 364 | 69 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving, TemplateHaskell, PolymorphicComponents #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
module Lamdu.Sugar.Convert.Monad
( TagParamInfo(..)
, TagFieldParam(..), _TagFieldParam, _CollidingFieldParam
, OuterScopeInfo(..), osiPos, osiScope
, RecursiveRe... | Peaker/lamdu | src/Lamdu/Sugar/Convert/Monad.hs | gpl-3.0 | 6,796 | 0 | 20 | 1,568 | 1,835 | 1,010 | 825 | -1 | -1 |
module Data.Wot.Parser where
import qualified Data.ByteString.Lazy as L
import qualified Data.ByteString.Lazy.Char8 as BC
import Data.Bits
import Data.Word
import Data.Binary.Get
import Control.Applicative ((<$>),(<*>))
import Control.Monad (replicateM, liftM)
import Codec.Compression.BZip (decompress)
import Codec.Ar... | gdetrez/haskell-wot | Data/Wot/Parser.hs | gpl-3.0 | 2,076 | 0 | 11 | 477 | 668 | 373 | 295 | 50 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/Routes/List.hs | mpl-2.0 | 6,385 | 0 | 18 | 1,415 | 678 | 409 | 269 | 94 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-vault/gen/Network/Google/Resource/Vault/Matters/SavedQueries/Get.hs | mpl-2.0 | 5,252 | 0 | 18 | 1,210 | 781 | 455 | 326 | 117 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module BarthPar.Scrape.Types.Internals where
import Control.DeepSeq
import Control.Lens
import qualified Data.Aeson as A
import Da... | erochest/barth-scrape | src/BarthPar/Scrape/Types/Internals.hs | apache-2.0 | 2,599 | 0 | 11 | 769 | 675 | 375 | 300 | 103 | 0 |
-- | Handling the NELexicon dictionary.
module NLP.Nerf.Dict.NELexicon
( parseNELexicon
, readNELexicon
) where
import qualified Data.Text.Lazy as L
import qualified Data.Text.Lazy.IO as L
import NLP.Nerf.Dict.Base
-- | Parse the NELexicon into a list of entries.
parseNELexicon :: L.Text -> [Entry]
parseNELexicon =... | kawu/nerf | src/NLP/Nerf/Dict/NELexicon.hs | bsd-2-clause | 701 | 0 | 12 | 120 | 200 | 114 | 86 | 14 | 2 |
{-# LANGUAGE PackageImports, FlexibleContexts #-}
module Propellor.PropAccum
( host
, PropAccum(..)
, (&)
, (&^)
, (!)
, propagateContainer
) where
import Data.Monoid
import Propellor.Types
import Propellor.Property
import Propellor.Types.Info
import Propellor.PrivData
-- | Starts accumulating the properties... | np/propellor | src/Propellor/PropAccum.hs | bsd-2-clause | 2,319 | 33 | 10 | 451 | 631 | 350 | 281 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1999
Analysis functions over data types. Specficially, detecting recursive types.
This stuff is only used for source-code decls; it's recorded in interface
files for imported data types.
-}
{-# LANGUAGE CPP #-}
module TcTyD... | gcampax/ghc | compiler/typecheck/TcTyDecls.hs | bsd-3-clause | 34,316 | 0 | 19 | 9,493 | 4,742 | 2,497 | 2,245 | 314 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.