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 Miscellaneous.A275673Spec (main, spec) where
import Test.Hspec
import Miscellaneous.A275673 (a275673)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A275673" $
it "correctly computes the first 20 elements" $
take 20 (map a275673 [1..]) `shouldBe` expectedValue where
expectedValue = [... | peterokagey/haskellOEIS | test/Miscellaneous/A275673Spec.hs | apache-2.0 | 373 | 0 | 10 | 59 | 160 | 95 | 65 | 10 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QStyleOptionSpinBox.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:36
Warning : this file is machine generate... | keera-studios/hsQt | Qtc/Enums/Gui/QStyleOptionSpinBox.hs | bsd-2-clause | 4,673 | 0 | 18 | 921 | 1,080 | 532 | 548 | 90 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleInstances #-}
module Servant.... | meiersi/ghcjs-servant-client | src/Servant/Common/Req.hs | bsd-3-clause | 12,748 | 44 | 23 | 3,186 | 2,905 | 1,544 | 1,361 | -1 | -1 |
-- | TODO: this box is a bit of a hack due to the deadline pressure...
module Data.ByteString.IsoBaseFileFormat.Boxes.MovieFragment where
import Data.ByteString.IsoBaseFileFormat.Box
import Data.ByteString.IsoBaseFileFormat.Util.BoxContent
-- | Compose a set of boxes into a 'MovieFragment'
movieFragment :: Boxes ts -... | sheyll/isobmff-builder | src/Data/ByteString/IsoBaseFileFormat/Boxes/MovieFragment.hs | bsd-3-clause | 714 | 0 | 9 | 98 | 127 | 73 | 54 | -1 | -1 |
{-# OPTIONS_GHC -Wall #-}
-- |Exports a few routines for dealing with directories.
module System.Console.ShSh.Directory ( parentDir, joinDirs ) where
import System.FilePath ( splitDirectories, joinPath )
-- |Removes the last directory from the path. We could put this in
-- the IO monad and then deal with what happe... | shicks/shsh | System/Console/ShSh/Directory.hs | bsd-3-clause | 798 | 0 | 12 | 169 | 218 | 117 | 101 | 11 | 4 |
{-# OPTIONS -w #-}
{-# LANGUAGE PackageImports #-}
module GHC.GHCi (module M) where
import "base" GHC.GHCi as M
| silkapp/base-noprelude | src/GHC/GHCi.hs | bsd-3-clause | 112 | 0 | 4 | 18 | 22 | 16 | 6 | 4 | 0 |
-- 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 GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Distance.IT.Rules
( rules
) where
... | facebookincubator/duckling | Duckling/Distance/IT/Rules.hs | bsd-3-clause | 1,833 | 0 | 13 | 443 | 451 | 255 | 196 | 56 | 2 |
{-|
Module : Idris.Elab.Value
Description : Code to elaborate values.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE PatternGuards #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Idris.Elab.Value(
elabVal, elabValBind, elabDocTerms
, elabExec, elabREPL
) where... | uuhan/Idris-dev | src/Idris/Elab/Value.hs | bsd-3-clause | 4,759 | 0 | 19 | 1,419 | 1,499 | 771 | 728 | 83 | 4 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.CompressedTexturePixelStorage
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portabili... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/CompressedTexturePixelStorage.hs | bsd-3-clause | 977 | 0 | 4 | 99 | 58 | 45 | 13 | 10 | 0 |
{-# LANGUAGE OverloadedStrings #-}
------------------------------------------------------------------------------
-- | This module is where all the routes and handlers are defined for your
-- site. The 'app' function is the initializer that combines everything
-- together and is exported by this module.
module Site
... | kaol/heist-tutorial | src/Site.hs | bsd-3-clause | 794 | 0 | 12 | 119 | 154 | 82 | 72 | 16 | 1 |
module Connection where
import Network.Socket
startServer :: String -> IO Socket
startServer port = do
(serveraddr:_) <- getAddrInfo (Just (defaultHints {addrFlags = [AI_PASSIVE]}))
Nothing (Just port)
sock <- socket (addrFamily serveraddr) Datagram defaultProtocol
bindSocket sock... | semaj/hademlia | src/Connection.hs | bsd-3-clause | 596 | 0 | 14 | 118 | 211 | 103 | 108 | 13 | 1 |
import Test.Hspec
import Test.QuickCheck
import Lib
import qualified Data.HashTable.IO as H
main :: IO ()
main = hspec $ do
-- describe "incre1" $ do
-- it "Incre every existing element" $ do
-- do ht <- H.new
-- upsert ht (1,1)
-- upsert ht (2,2)
-- ... | hackle/euler | test/Spec.hs | bsd-3-clause | 2,895 | 0 | 18 | 1,233 | 431 | 253 | 178 | 24 | 2 |
{-# LANGUAGE OverloadedLists #-}
module Test.Examples.FunSpec
( spec
) where
import Control.Category (id, (.))
import Control.Lens ((&))
import Data.Foldable (for_)
import Prelude hiding (id, (.))
import Test.Hspec (Spec, describe, it)
im... | Martoon-00/toy-compiler | test/Test/Examples/FunSpec.hs | bsd-3-clause | 5,336 | 0 | 21 | 1,748 | 1,847 | 963 | 884 | -1 | -1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
module Duckling.Distance.Tests
( tests
) where
import Data.String
import Prelude
import Test.Tasty
import q... | facebookincubator/duckling | tests/Duckling/Distance/Tests.hs | bsd-3-clause | 1,630 | 0 | 7 | 247 | 345 | 249 | 96 | 47 | 1 |
module DataSpec where
import Data
import Data.Aeson
import qualified Data.Map.Strict as M
import Test.Hspec
import qualified Test.Hspec.Wai.JSON as J
spec :: Spec
spec = do
let fd1 = M.fromList [("1", 1), ("2", 2)]
fd2 = M.fromList [("1", 3), ("3", 3)]
combined = M.fromList... | semaj/espresso | test/DataSpec.hs | bsd-3-clause | 661 | 0 | 17 | 165 | 231 | 134 | 97 | -1 | -1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, GADTs #-}
-- | The @esqueleto@ EDSL (embedded domain specific language).
-- This module replaces @Database.Persist@, so instead of
-- importing that module you should just import this one:
--
-- @
-- -- For a module using just esqueleto.
-- import Database.Esqueleto
-- ... | frontrowed/esqueleto | src/Database/Esqueleto.hs | bsd-3-clause | 12,207 | 0 | 11 | 2,487 | 889 | 727 | 162 | 70 | 1 |
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
module MiniC.Print where
-- pretty-printer generated by the BNF converter
import MiniC.Abs
import Data.Char
-- the top-level printing method
printTree :: Print a => a -> String
printTree = render . prt 0
type Doc = [ShowS] -> [ShowS]
doc :: ShowS -> Doc
doc = (:)
... | jyp/ling | MiniC/Print.hs | bsd-3-clause | 9,509 | 0 | 16 | 2,311 | 5,306 | 2,599 | 2,707 | 172 | 12 |
{-|
Module : Data.Vector.Hashtables.Internal
Description : Provides internals of hashtables and set of utilities.
Copyright : (c) klapaucius, swamp_agr, 2016-2021
License : BSD3
-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies ... | klapaucius/vector-hashtables | src/Data/Vector/Hashtables/Internal.hs | bsd-3-clause | 30,710 | 0 | 21 | 9,111 | 9,851 | 4,961 | 4,890 | 629 | 5 |
module System.Directory.AsEnv
( module System.Directory.AsEnv
) where
-- generated by https://github.com/rvion/ride/tree/master/jetpack-gen
import qualified System.Directory as I
-- env_canonicalizePath :: FilePath -> IO FilePath
env_canonicalizePath = I.canonicalizePath
-- env_copyFile :: FilePath -> FilePath ... | rvion/ride | jetpack/src/System/Directory/AsEnv.hs | bsd-3-clause | 3,847 | 0 | 6 | 476 | 437 | 261 | 176 | 46 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UnicodeSyntax #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPT... | mgomezch/yesod-squealer | source/Yesod/Squealer.hs | bsd-3-clause | 1,890 | 0 | 8 | 315 | 422 | 238 | 184 | 40 | 1 |
module Main where
import qualified TestConnectFour as Thing
-- import qualified UIConnectFour as Thing
main = Thing.main
| maueroats/teaching | docs/ap-cs/haskell/connect-four/testcases/Main.hs | gpl-3.0 | 136 | 0 | 5 | 32 | 18 | 13 | 5 | 3 | 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-glacier/gen/Network/AWS/Glacier/CompleteMultipartUpload.hs | mpl-2.0 | 8,530 | 0 | 13 | 1,651 | 744 | 466 | 278 | 92 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE CPP, OverloadedStrings #-}
module IRTS.CodegenLLVM (codegenLLVM) where
import IRTS.CodegenCommon
import IRTS.Lang
import IRTS.Simplified
import IRTS.System
import qualified Idris.Core.TT as TT
import Idris.Core.TT (ArithTy(..), IntTy(..), NativeTy(..), nativeTy... | idris-hackers/idris-llvm | src/IRTS/CodegenLLVM.hs | bsd-3-clause | 59,050 | 3 | 24 | 16,113 | 24,637 | 12,201 | 12,436 | 1,289 | 11 |
{-# LANGUAGE OverloadedStrings #-}
--------------------------------------------------------------------------------
-- |
-- Module : Data.Rakhana
-- Copyright : (C) 2014 Yorick Laupa
-- License : (see the file LICENSE)
--
-- Maintainer : Yorick Laupa <yo.eight@gmail.com>
-- Stability : provisional
-- Portability : non-... | erantapaa/rakhana | Data/Rakhana.hs | bsd-3-clause | 1,567 | 0 | 5 | 401 | 220 | 154 | 66 | 58 | 0 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE KindSignatures ... | rahulmutt/ghcvm | libraries/base/GHC/Generics.hs | bsd-3-clause | 29,593 | 0 | 14 | 6,282 | 3,951 | 2,423 | 1,528 | -1 | -1 |
{-# LANGUAGE Haskell98, MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances #-}
{-# LINE 1 "Control/Monad/Reader.hs" #-}
{- |
Module : Control.Monad.Reader
Copyright : (c) Andy Gill 2001,
(c) Oregon Graduate Institute of Science and Technology 2001,
(c) Jeff Newbern 2... | phischu/fragnix | tests/packages/scotty/Control.Monad.Reader.hs | bsd-3-clause | 4,796 | 0 | 6 | 883 | 144 | 103 | 41 | 25 | 0 |
import Test.HUnit (Assertion, (@=?), runTestTT, Test(..))
import Control.Monad (void)
import Bob (responseFor)
testCase :: String -> Assertion -> Test
testCase label assertion = TestLabel label (TestCase assertion)
test_respondsToSomething :: Assertion
test_respondsToSomething =
"Whatever." @=? responseFor "Tom-ay-... | driis/exercism | haskell/bob/bob_test.hs | mit | 3,550 | 0 | 9 | 446 | 500 | 266 | 234 | 74 | 1 |
module Shift.For where
-- -- $Id$
import ToDoc
import Control.Monad ( guard )
-- this is only used for printing
data Prog a = For { var :: String
, bound :: Ex
, body :: [ Prog a ]
}
| It { unIt :: a }
| FJunk
instance ToDoc a => ToDoc ( Prog a ) where
toDoc ( x @ It {} ) = toDoc $ unIt x
toDoc ... | florianpilz/autotool | src/Shift/For.hs | gpl-2.0 | 1,290 | 61 | 12 | 449 | 589 | 317 | 272 | 37 | 3 |
---------------------------------------------------------
-- The main program for the hpc-markup tool, part of HPC.
-- Andy Gill and Colin Runciman, June 2006
---------------------------------------------------------
module HpcMarkup (markup_plugin) where
import Trace.Hpc.Mix
import Trace.Hpc.Tix
import Trace.Hpc.Uti... | forked-upstream-packages-for-ghcjs/ghc | utils/hpc/HpcMarkup.hs | bsd-3-clause | 19,147 | 0 | 56 | 6,364 | 4,847 | 2,544 | 2,303 | 392 | 16 |
{-# LANGUAGE OverloadedStrings #-}
module Bead.Daemon.TestAgent where
import Control.Exception
import Control.Concurrent
import qualified Bead.Controller.Logging as L
import Bead.Controller.ServiceContext as S
import Bead.Controller.UserStories (runUserStory, testAgentFeedbacks... | andorp/bead | src/Bead/Daemon/TestAgent.hs | bsd-3-clause | 1,259 | 0 | 16 | 312 | 309 | 161 | 148 | 26 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module MyInit (
(@/=), (@==), (==@)
, asIO
, assertNotEqual
, assertNotEmpty
, assertEmpty
, isTravis
, BackendMonad
, runConn
, MonadIO
, persistSettings
, MkPersistSettings (..)
, db
, BackendKey(..)
, GenerateKey(..)
, RunDb
-- re-exports
, mod... | naushadh/persistent | persistent-mysql/test/MyInit.hs | mit | 3,751 | 0 | 18 | 917 | 862 | 533 | 329 | 99 | 3 |
module Network.Wai.Util (
handleAcceptTypes,
noStoreFileUploads,
mapHeaders,
defHeader,
defHeader',
replaceHeader,
replaceHeader',
string,
text,
textBuilder,
json,
bytestring,
redirect,
redirect',
stringAscii,
stringHeader,
stringHeaders,
stringHeaders',
queryLookup,
queryLookupAll
) where
import D... | singpolyma/wai-util | Network/Wai/Util.hs | isc | 7,473 | 46 | 12 | 1,151 | 2,013 | 1,084 | 929 | 117 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE Safe #-}
module Data.Stack
( Stack
, pop
, top
, push
, size
)
where
import Protolude
-- | Stack data structure
data Stack a = Stack ![a] deriving (Eq,Show)
instance Functor Stack where
fmap f (Stack xs) = Stack (fmap f xs)
inst... | yogsototh/lish | src/Data/Stack.hs | isc | 1,319 | 0 | 9 | 347 | 401 | 222 | 179 | 29 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Web.Larceny.Html where
import qualified Data.HashSet as HS
import Data.Text (Text)
-- retrieved from: https://www.w3.org/TR/html-markup/elements-by-function.html
html5Nodes :: HS.HashSet Text
html5Nodes = HS.fromList [
-- 5.1. The root element
"html", -- r... | positiondev/larceny | src/Web/Larceny/Html.hs | isc | 4,676 | 0 | 6 | 1,146 | 558 | 406 | 152 | 132 | 1 |
module Main where
import Plugin.Pl.Common
import Plugin.Pl.Optimize
import Plugin.Pl.Parser
import Plugin.Pl.PrettyPrinter
import Plugin.Pl.Transform
import System.Environment (getArgs)
import System.Console.GetOpt
data Flag = Verbose
| StdIn
deriving Eq
options :: [OptDescr Flag]
options = [ Option ['... | jystic/pointfree | Main.hs | mit | 1,671 | 0 | 14 | 408 | 548 | 283 | 265 | 45 | 3 |
module Y2016.M07.D05.Solution where
import Control.Monad.State
import Data.List (intercalate)
import qualified Data.Set as Set
import Control.Scan.CSV
import Data.SymbolTable
import Data.SymbolTable.Decompiler
import Text.HTML.TagSoup
-- convert every name and classname to an encoded value and then save out the
-- re... | geophf/1HaskellADay | exercises/HAD/Y2016/M07/D05/Solution.hs | mit | 3,037 | 0 | 14 | 534 | 501 | 273 | 228 | 34 | 2 |
module DarkSky.App.Output where
import DarkSky.Response
import qualified DarkSky.Response.DataBlock as DB
import qualified DarkSky.Response.DataPoint as DP
import Data.Maybe (fromMaybe)
import Data.Text (unpack)
data Output = Output
{ currentTemperature :: String
, currentSummary :: String
, next48HoursSummary ... | peterstuart/dark-sky | src/DarkSky/App/Output.hs | mit | 1,196 | 0 | 11 | 226 | 274 | 159 | 115 | 32 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleContexts #-}
module Hogldev.Camera (
Camera(..)
, cameraOnKeyboard
, cameraOnMouse
, cameraOnRender
, initCamera
, initWithLocation
) where
import Graphics.Rendering.OpenGL
import Graphics.UI.GLUT (SpecialKey(..))
import ... | triplepointfive/hogldev | common/Hogldev/Camera.hs | mit | 4,653 | 1 | 13 | 1,406 | 1,460 | 789 | 671 | 124 | 6 |
{-|
Module : Day16
Description : <http://adventofcode.com/2016/day/16 Day 16: Dragon Checksum>
-}
{-# OPTIONS_HADDOCK ignore-exports #-}
module Day16 (main) where
import System.IO.Unsafe (unsafePerformIO)
input :: String
input = filter (`elem` "01") $ unsafePerformIO $ readFile "day16.txt"
fill :: String -> Str... | ephemient/aoc2016 | src/Day16.hs | mit | 820 | 0 | 12 | 193 | 345 | 179 | 166 | 17 | 4 |
module Main where
import Test.DocTest
main :: IO ()
main = doctest ["src/Text/LevenshteinDistance.hs"]
| ayachigin/LevenshteinDistance | test/doctests.hs | mit | 105 | 0 | 6 | 15 | 30 | 17 | 13 | 4 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE PatternSynonyms #-}
module Clingo.Internal.Utils
(
ClingoException (..),
pattern Raw.ErrorRuntime,
getException,
ClingoWarning (..),
warningString,
checkAndThrow,
marshal0,
marshal1,
marshal1V,
marshal1... | tsahyt/clingo-haskell | src/Clingo/Internal/Utils.hs | mit | 4,113 | 0 | 17 | 1,185 | 1,477 | 743 | 734 | 126 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Bitcoin.Api.WalletSpec where
import qualified Data.List as L (find)
import Data.Maybe (isJust)
import qualified Data.Text as T (pack)
import qualified Ne... | solatis/haskell-bitcoin-api | test/Network/Bitcoin/Api/WalletSpec.hs | mit | 2,430 | 0 | 23 | 669 | 570 | 290 | 280 | 42 | 1 |
--
--
--
------------------
-- Exercise 13.25.
------------------
--
--
--
module E'13'25 where
| pascal-knodel/haskell-craft | Chapter 13/E'13'25.hs | mit | 106 | 0 | 2 | 24 | 13 | 12 | 1 | 1 | 0 |
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad
import Crypto.Hash.SHA256
import Data.Conduit
import Data.Hex
import Path
import System.IO
import qualified Data.ByteString as S
import Codec.Archive.SAPCAR
bufSink :: Sink S.ByteString IO S.ByteString
bufSink = S.concat . reverse <$> bufSink' []
where
... | VirtualForgeGmbH/hascar | test/Spec.hs | gpl-2.0 | 1,244 | 2 | 15 | 303 | 334 | 162 | 172 | 29 | 2 |
-- OmegaGB Copyright 2007 Bit Connor
-- This program is distributed under the terms of the GNU General Public License
-----------------------------------------------------------------------------
-- |
-- Module : CpuExecution
-- Copyright : (c) Bit Connor 2007 <bit@mutantlemon.com>
-- License : GPL
-- Mai... | bitc/omegagb | src/CpuExecution.hs | gpl-2.0 | 2,272 | 0 | 13 | 627 | 528 | 274 | 254 | -1 | -1 |
{-# LANGUAGE TypeFamilies #-}
-- | Test precedences
module Tests.Precedence where
import Control.Monad.Unit (Unit(..))
import qualified Control.Lens as Lens
import Control.Lens.Tuple
import qualified Lamdu.Calc.Term as V
import qualified Lamdu.Sugar.Parens as Parens
import qualified Lamdu.Sugar.Typ... | lamdu/lamdu | test/Tests/Precedence.hs | gpl-3.0 | 5,590 | 0 | 25 | 1,626 | 1,301 | 700 | 601 | -1 | -1 |
{-# LANGUAGE ViewPatterns,PatternGuards #-}
module Lang.Deappify where
import Lang.FunctionalFO
import Lang.Type
import Control.Applicative
{-
if we apply app enough times to a ptr, then we can unpointer it
(f_ptr @ x) @ y = f [x,y],
when
f_ptr :: FOType tvs _ (ArrTy t1 (ArrTy t2 _))
... | danr/tfp1 | Lang/Deappify.hs | gpl-3.0 | 1,432 | 0 | 14 | 459 | 560 | 281 | 279 | 29 | 5 |
module Add
where
import System.Console.GetOpt
import Common
import Ticket
addOptions :: [(OptDescr (AddOptions -> AddOptions))]
addOptions = [
Option ['m'] ["message"] (ReqArg setMessage "message") "message"
]
data AddOptions = AddOptions { addtitle :: String
, addmessage :: Str... | anttisalonen/nix | src/Add.hs | gpl-3.0 | 1,034 | 0 | 14 | 231 | 336 | 176 | 160 | 26 | 2 |
{-# LANGUAGE PackageImports #-}
module Main where
import Control.Applicative
import Control.Monad
import "mtl" Control.Monad.Reader
import "mtl" Control.Monad.Error
import System.FilePath
import System.Directory
import System.Log.Logger
--
import HEP.Automation.MadGraph.Model
import HEP.Automation.MadGraph.Model.... | wavewave/lhc-analysis-collection | exe/madgraphRun.hs | gpl-3.0 | 3,484 | 0 | 16 | 1,300 | 689 | 382 | 307 | 82 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Patch.hs | mpl-2.0 | 5,575 | 0 | 18 | 1,335 | 867 | 507 | 360 | 121 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-shopping-content/gen/Network/Google/Resource/Content/Orders/Setlineitemmetadata.hs | mpl-2.0 | 6,493 | 0 | 20 | 1,499 | 890 | 519 | 371 | 130 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-logging/gen/Network/Google/Resource/Logging/Organizations/Locations/Buckets/Views/Create.hs | mpl-2.0 | 6,474 | 0 | 18 | 1,422 | 869 | 508 | 361 | 131 | 1 |
{-# LANGUAGE LambdaCase #-}
module Reactive
( Value(..)
, DynValue (..)
, Closure
, newDyn
, assignDyn
, readDyn
, readDynIO
, writeDynSTM
, writeDynIO
, destroyDynSTM
, destroyDynIO
, withDyn
, checkStoreAndReturn
, storeAndReturn
, withDyn2
, withDyn3
, delay
, bi... | hsyl20/reactive-stm | src/lib/Reactive.hs | lgpl-3.0 | 6,536 | 0 | 26 | 2,002 | 2,369 | 1,218 | 1,151 | 156 | 5 |
main = do
putStrLn "First build!" | thelastnode/jam-jukebox | JamJukebox.hs | unlicense | 35 | 0 | 7 | 7 | 12 | 5 | 7 | 2 | 1 |
module Language.Ratscript.Parser.Type (
Parser
, ParserState
, Operator
) where
import Control.Monad.State
import Data.Text (Text)
import qualified Text.Parsec as P
import qualified Text.Parsec.Expr as P
import Text.Parsec.Text ()
---------------------------------------... | jystic/ratscript | src/Language/Ratscript/Parser/Type.hs | apache-2.0 | 493 | 0 | 6 | 105 | 113 | 71 | 42 | 12 | 0 |
{-
Abstract Data Type for Ordered Schemas
Toon Nolten
Since a schema is nothing more than a
set, maybe use RedBlackTree.hs?
-}
{-# LANGUAGE DataKinds, TypeFamilies #-}
module OrderedSchema where
import Universe
import Data.List (sort, insert)
data Bottom
type family So (b :: Bool)
t... | toonn/haskell-casestt | OrderedSchema.hs | bsd-2-clause | 2,292 | 0 | 10 | 611 | 828 | 436 | 392 | -1 | -1 |
{-# OPTIONS_HADDOCK hide #-}
{-# LANGUAGE DeriveDataTypeable, DeriveFunctor #-}
-----------------------------------------------------------------------------
-- |
-- Module : Haddock.Types
-- Copyright : (c) Simon Marlow 2003-2006,
-- David Waern 2006-2009
-- License : BSD-like
--
-- M... | nominolo/haddock2 | src/Haddock/Types.hs | bsd-2-clause | 12,711 | 0 | 13 | 2,726 | 2,127 | 1,251 | 876 | 189 | 1 |
module BlackjackClient where
import BlackjackData
import Network.NetSpec
import Network.NetSpec.Json
import Control.Monad (void)
import Data.List (intercalate)
import System.Environment (getArgs)
import Text.Printf (printf)
readInt :: String -> Int
readInt = read
data ClientState = CS
{ myIndex :: Int }
askActi... | DanBurton/netspec | examples/BlackjackClient.hs | bsd-3-clause | 2,209 | 0 | 19 | 618 | 864 | 426 | 438 | 57 | 4 |
-- 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 DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoRebindableSyntax #-}
{-# LANGUAGE O... | facebookincubator/duckling | Duckling/Ordinal/Types.hs | bsd-3-clause | 1,016 | 0 | 9 | 180 | 235 | 135 | 100 | 24 | 1 |
module Data.Composition where
infixr 9 .*
infixr 9 .**
infixr 9 .***
(.*) :: (Functor f, Functor f1) => (a -> b) -> f (f1 a) -> f (f1 b)
(.*) = fmap . fmap
(.**) :: (Functor f, Functor f1, Functor f2)
=> (a -> b) -> f (f1 (f2 a)) -> f (f1 (f2 b))
(.**) = (.*) . fmap
(.***) :: (Func... | onurzdg/clicklac | src/Data/Composition.hs | bsd-3-clause | 462 | 0 | 14 | 152 | 277 | 152 | 125 | 12 | 1 |
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module Client.KeyConstants where
kTab = 9 :: Int
kEnter = 13 :: Int
kEscape = 27 :: Int
kSpace = 32 :: Int
kBackspace = 127 :: Int
kUpArrow = 128 :: Int
kDownArrow = 129 :: Int
kLeftArrow = 130 :: Int
kRightArrow = 131 :... | ksaveljev/hake-2 | src/Client/KeyConstants.hs | bsd-3-clause | 1,567 | 0 | 4 | 661 | 447 | 280 | 167 | 57 | 1 |
module Roguelike.Event where
import Data.Aeson
import Roguelike.ID
import Roguelike.Action
import Roguelike.Item
data CreatureAddress = Other CreatureID | Myself
deriving (Show, Eq)
type Damage = Int
-- Something like a global ID for now
newtype Appearance = Appearance ID
de... | abbradar/roguelike | src/Roguelike/Event.hs | bsd-3-clause | 830 | 0 | 8 | 242 | 168 | 97 | 71 | 20 | 0 |
-- |
-- Module : Data.Ini.Types
-- Copyright : 2011-2014 Magnus Therning
-- License : BSD3
module Data.Ini.Types where
import qualified Data.Map as M
import Control.Arrow (second)
type Config = M.Map SectionName Section
type SectionName = String
type Section = M.Map OptionName OptionValue
type OptionName = Str... | magthe/hsini | src/Data/Ini/Types.hs | bsd-3-clause | 632 | 0 | 9 | 98 | 168 | 102 | 66 | 12 | 1 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE RecordWildCards #-}
module Distribution.Solver.Modular.Dependency (
-- * Variables
Var(..)
, simplifyVar
, varPI
, showVar
-- * Conflict sets
, ConflictSet
, ConflictMap
, CS.showConflictSet
-- * Constrained instances
, CI(..)
-- * Flagged de... | mydaum/cabal | cabal-install/Distribution/Solver/Modular/Dependency.hs | bsd-3-clause | 12,349 | 0 | 14 | 2,667 | 2,592 | 1,408 | 1,184 | 163 | 9 |
LevelPreds
{ lpredPre =
NameT
{ nameTName = "p_galois'a_function_call'P"
, nameTParams =
[ TyCon "map" [ TyCon "int" [] , TyCon "int" [] ]
, TyCon "map" [ TyCon "addr" [] , TyCon "addr" [] ]
, TyCon "map" [ TyCon "addr" [] , TyCon "int" [] ]
, TyCo... | GaloisInc/verification-game | web-prover/demo-levels/a_function_call/holes.hs | bsd-3-clause | 5,095 | 0 | 20 | 2,737 | 1,421 | 757 | 664 | -1 | -1 |
module CRDT.Cv.GCounter
( GCounter (..)
, initial
, query
-- * Operation
, increment
) where
import Data.IntMap.Strict (IntMap)
import qualified Data.IntMap.Strict as IntMap
import Data.Semilattice (Semilattice)
-- | Grow-only counter.
newtype GCounter a = GCounter (IntMap ... | cblp/crdt | crdt/lib/CRDT/Cv/GCounter.hs | bsd-3-clause | 919 | 0 | 8 | 223 | 284 | 152 | 132 | 24 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Language.Verilog.Syntax
-- Copyright : (c) Signali Corp. 2010
-- License : All rights reserved
--
-- Maintainer : pweaver@signalicorp.com
-- Stability : experimental
-- Portability : ghc
--
-- Verilo... | githubkleon/ConvenientHDL | src/Language/Verilog/Syntax.hs | bsd-3-clause | 697 | 0 | 5 | 99 | 39 | 32 | 7 | 4 | 0 |
{-# LANGUAGE QuasiQuotes #-}
{-@ LIQUID "--no-termination "@-}
import LiquidHaskell
---------------------------------------------------------------------
----------------------- Datatype Definition -------------------------
---------------------------------------------------------------------
data Bndr
data Ex... | spinda/liquidhaskell | tests/gsoc15/unknown/pos/LambdaEvalTiny.hs | bsd-3-clause | 1,610 | 0 | 13 | 383 | 290 | 168 | 122 | -1 | -1 |
{-# OPTIONS_HADDOCK hide #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.Functions.F11
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : por... | haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F11.hs | bsd-3-clause | 75,498 | 0 | 19 | 9,860 | 12,076 | 6,170 | 5,906 | 1,177 | 1 |
{- |
Use this module to build your own version of the Yesod scaffolding's
DevelMain.hs. Do this by creating a module that wraps a call to update
with proper arguments, e.g. the webapp you're developing. Generally
you'll re-export shutdown as-is.
For an example, see Snowdrift's dev/Runner.hs (FIXME: Add a link once
it'... | chreekat/ghci-runner | src/Dev/Runner.hs | bsd-3-clause | 2,648 | 0 | 15 | 695 | 505 | 248 | 257 | 45 | 2 |
module Problem14
( longestCollatz
, collatz
) where
import Data.List as L
longestCollatz :: Int -> Int
longestCollatz cap =
let seqs = map (\n -> (length.collatz $ n, n)) [1..cap]
longest = L.maximum seqs
in snd longest
collatz :: Int -> [Int]
collatz 1 = [1]
collatz n =
let n' = nextCollatz n
... | candidtim/euler | src/Problem14.hs | bsd-3-clause | 427 | 0 | 14 | 126 | 184 | 96 | 88 | 17 | 1 |
{-# LANGUAGE CPP #-}
module DBUtil where
import Control.Applicative ((<$>))
import Database.Persist
import Database.Persist.GenericSql
import Model
-- #define SQLite
#ifdef SQLite
import Database.Persist.Sqlite (withSqliteConn)
runSql :: SqlPersist IO... | daimatz/scotty-on-heroku | src/DBUtil.hs | bsd-3-clause | 1,078 | 0 | 10 | 323 | 169 | 93 | 76 | 20 | 1 |
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE NoMonomorphismRestriction, MonoLocalBinds #-}
module XMonad.StackSet
(StackSet(..), Workspace(..), Screen(..), Stack(..),
RationalRect(..), new, view, greedyView, lookupWorkspace, screens,
workspaces, allWindows, currentTag, peek, index, integrate,
... | shayan-najd/Haskell-Desugar-Generic | Examples/XMonad/SS_bitter.hs | bsd-3-clause | 15,634 | 2 | 24 | 6,768 | 6,601 | 3,606 | 2,995 | 394 | 4 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.HP.ImageTransform
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
-... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/HP/ImageTransform.hs | bsd-3-clause | 1,315 | 0 | 4 | 145 | 106 | 78 | 28 | 24 | 0 |
import Control.Lens
import Data.IntMap (fromList)
import Hmlk.DataSet
ds :: DataSet
ds = DataSet {_rows = fromList . zip [1..] $
[[Numeric 0, Numeric 0, Nominal "red", Numeric 0],
[Numeric 1, Numeric 1, Nominal "red", Numeric 3],
[Numeric 1, Numeric (-2), Nominal "blue", ... | rednum/hmlk | examples/dataset.hs | bsd-3-clause | 2,000 | 0 | 13 | 529 | 705 | 379 | 326 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module BoolExpr.QuickCheck.OBDD
( runTests
, prop_evalTreeEquivalency ) where
import Test.QuickCheck (Property, property, quickCheckAll)
import qualified BoolExpr.BoolExpr as BE
import qualified BoolExpr.OBDD as OBDD
import BoolExpr.QuickCheck.BoolExpr (BoolExprWithEnv (..))
--
... | robrene/robdd-with-template-hs | test/BoolExpr/QuickCheck/OBDD.hs | bsd-3-clause | 726 | 0 | 10 | 99 | 149 | 88 | 61 | 14 | 1 |
module Main where
import qualified Guide.Main
import Prelude (IO)
main :: IO ()
main = Guide.Main.main
| aelve/hslibs | src/site/Main.hs | bsd-3-clause | 120 | 0 | 6 | 33 | 36 | 22 | 14 | 5 | 1 |
{-# LANGUAGE BangPatterns, CPP #-}
-- | A CSV parser. The parser defined here is RFC 4180 compliant, with
-- the following extensions:
--
-- * Empty lines are ignored.
--
-- * Non-escaped fields may contain any characters except
-- double-quotes, commas, carriage returns, and newlines.
--
-- * Escaped fields may... | edtsech/cassava | Data/Csv/Parser.hs | bsd-3-clause | 6,473 | 0 | 20 | 1,691 | 1,387 | 759 | 628 | 116 | 5 |
{-- | Plugin submodule specialised in operating on the AcidState database.
--}
module Cardano.Wallet.Server.Plugins.AcidState
( createAndArchiveCheckpoints
) where
import Universum
import Control.Concurrent (threadDelay)
import Data.Acid (AcidState, createArchive, createCheckpoi... | input-output-hk/pos-haskell-prototype | wallet/src/Cardano/Wallet/Server/Plugins/AcidState.hs | mit | 3,844 | 0 | 17 | 1,076 | 770 | 411 | 359 | -1 | -1 |
module Parakeet.Linguistics.Romaji (
chList
, toKana
, otherForms
, dakutenize
, unDakutenize
, isSyllabicN
, normSyllabicN
, sokuonize
, unSokuonize
, longVowelize
, longVowelizeWithMacron
, longVowelize1WithMacron
, unLongVowelize
, factor
) where
import Data.Functor.Compose (Compose (..))
import ... | foreverbell/parakeet | src/Parakeet/Linguistics/Romaji.hs | mit | 7,069 | 0 | 17 | 1,714 | 2,624 | 1,417 | 1,207 | 142 | 2 |
{-# LANGUAGE TemplateHaskell #-}
module Lamdu.Data.Meta
( DefinitionState(..)
, SpecialArgs(..), _Verbose, _Operator
, PresentationMode
) where
import qualified Control.Lens as Lens
import qualified Lamdu.Calc.Type as T
import Lamdu.Prelude
data DefinitionState = DeletedDefinition | LiveDef... | lamdu/lamdu | src/Lamdu/Data/Meta.hs | gpl-3.0 | 633 | 0 | 6 | 127 | 165 | 98 | 67 | -1 | -1 |
import Database.HDBC
import Database.HDBC.PostgreSQL
import System.IO
import Control.Exception
import Data.ByteString.Base64
import qualified Crypto.Hash.SHA3 as SHA3
main :: IO ()
main = do
putStrLn "Enter database host"
dbHost <- getLine
putStrLn "Enter database port"
dbPort <- getLine
putStrLn "Enter data... | Mic92/yammat | Migration/0.0.0-0.0.1/Migration.hs | agpl-3.0 | 1,433 | 0 | 18 | 305 | 463 | 219 | 244 | 46 | 2 |
module Instance where
data TrafficLight = Red | Yellow | Green
class Eq a where
(==) :: a -> a -> Bool
(/=) :: a -> a -> Bool
x == y = not (x /= y)
x /= y = not (x == y)
instance Eq TrafficLight where
Red == Red = True
Green == Green = True
Yellow == Yellow = True
_ == _ = False | Atsky/haskell-idea-plugin | data/haskellParserTests/Instance.hs | apache-2.0 | 314 | 0 | 9 | 103 | 150 | 77 | 73 | 12 | 0 |
-----------------------------------------------------------------------------
--
-- | Parsing the top of a Haskell source file to get its module name,
-- imports and options.
--
-- (c) Simon Marlow 2005
-- (c) Lemmih 2006
--
-----------------------------------------------------------------------------
{-# OPTIONS -fno... | mcmaniac/ghc | compiler/main/HeaderInfo.hs | bsd-3-clause | 12,803 | 34 | 26 | 3,657 | 2,652 | 1,361 | 1,291 | -1 | -1 |
{-# LANGUAGE Haskell98 #-}
{-# LINE 1 "Network/Wai/Handler/Warp/Internal.hs" #-}
{-# OPTIONS_GHC -fno-warn-deprecations #-}
module Network.Wai.Handler.Warp.Internal (
-- * Settings
Settings (..)
, ProxyProtocol(..)
-- * Low level run functions
, runSettingsConnection
, runSettingsConnectionMaker
, ... | phischu/fragnix | tests/packages/scotty/Network.Wai.Handler.Warp.Internal.hs | bsd-3-clause | 2,406 | 0 | 5 | 489 | 295 | 223 | 72 | 50 | 0 |
import qualified System.Random as Rnd
import System.Exit (exitFailure)
import System.Environment (getArgs)
import qualified Data.Array.IArray as Arr
-- Casting Methods ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- I'd like to use the below implementation, but as of 2017/01/08,
-- the System.Random implementation is _hor... | waywardcode/small_programs | casthex/haskell/casthex.hs | gpl-2.0 | 5,259 | 0 | 14 | 1,542 | 1,074 | 610 | 464 | 114 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-cloudwatch/gen/Network/AWS/CloudWatch/DescribeAlarmHistory.hs | mpl-2.0 | 6,398 | 0 | 12 | 1,377 | 949 | 555 | 394 | 96 | 1 |
{- |
This is a hets extension to mmt, see http://trac.kwarc.info/MMT/
This extension is/will be used to pattern check the twelf files for hets.
hets-mmt-standalone.jar - a standalone package that can be invoked with "java -jar hets-mmt-standalone.jar" command
-}
module MMT where
| nevrenato/HetsAlloy | MMT.hs | gpl-2.0 | 283 | 0 | 2 | 45 | 5 | 4 | 1 | 1 | 0 |
{-# LANGUAGE RelaxedPolyRec #-} -- needed for inlinesBetween on GHC < 7
{-# LANGUAGE ScopedTypeVariables #-}
{-
Copyright (C) 2006-2015 John MacFarlane <jgm@berkeley.edu>
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 S... | csrhodes/pandoc | src/Text/Pandoc/Readers/Markdown.hs | gpl-2.0 | 73,232 | 0 | 28 | 20,407 | 21,562 | 10,656 | 10,906 | 1,611 | 7 |
{-# LANGUAGE FlexibleContexts #-}
module Language.Haskell.Liquid.Bare.Env (
BareM
, Warn
, TCEnv
, BareEnv(..)
, TInline(..), InlnEnv
, inModule
, withVArgs
, setRTAlias
, setRPAlias
, setREAlias
, execBare
) where
import HscTypes
import TyCon
import Var
import Control.Monad.Er... | mightymoose/liquidhaskell | src/Language/Haskell/Liquid/Bare/Env.hs | bsd-3-clause | 2,703 | 0 | 14 | 721 | 825 | 452 | 373 | 76 | 2 |
-- | Extra functions for optparse-applicative.
module Options.Applicative.Builder.Extra
(boolFlags
,boolFlagsNoDefault
,maybeBoolFlags
,firstBoolFlags
,enableDisableFlags
,enableDisableFlagsNoDefault
,extraHelpOption
,execExtraHelp
,textOption
,textArgument
,optionalFirst
,absFileOption
,relF... | AndreasPK/stack | src/Options/Applicative/Builder/Extra.hs | bsd-3-clause | 6,524 | 0 | 20 | 2,075 | 1,294 | 681 | 613 | 124 | 2 |
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE TypeOperators #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Traversable
... | snoyberg/ghc | libraries/base/Data/Traversable.hs | bsd-3-clause | 10,843 | 0 | 12 | 2,233 | 1,881 | 1,068 | 813 | 113 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Hadrian.Oracles.Cabal
-- Copyright : (c) Andrey Mokhov 2014-2018
-- License : MIT (see the file LICENSE)
-- Maintainer : andrey.mokhov@gmail.com
-- Stability : experimental
--
-- This module defines oracles for readi... | snowleopard/shaking-up-ghc | src/Hadrian/Oracles/Cabal.hs | bsd-3-clause | 1,600 | 0 | 10 | 218 | 190 | 114 | 76 | 18 | 1 |
import qualified Data.Vector as U
import Data.Word
main = print (U.length (U.replicate 1 (7 :: Word64)))
| dolio/vector | old-testsuite/microsuite/length-word64.hs | bsd-3-clause | 106 | 0 | 10 | 17 | 46 | 26 | 20 | 3 | 1 |
module Language.Haskell.Format.Utilities
( defaultFormatter
, hunitTest
, showDiff
, wasReformatted
) where
import System.IO.Unsafe
import Language.Haskell.Format
import Language.Haskell.Source.Enumerator
import Conduit
import Control.Monad
import Data.Algorithm.DiffContext
import Data.List
import Data.May... | danstiner/hfmt | src/Language/Haskell/Format/Utilities.hs | mit | 3,400 | 0 | 12 | 602 | 904 | 457 | 447 | 81 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.ProcessingInstruction
(js_getTarget, getTarget, js_getSheet, getSheet,
ProcessingInstruction, castToProcessingInstruction,
gTypeProcessingInstruction)
where
import Prelude ((.), (==),... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/ProcessingInstruction.hs | mit | 1,968 | 12 | 11 | 273 | 483 | 293 | 190 | 35 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Main (
hist,
main
) where
-- | Global imports
import Data.List
import System.Random
import System.Environment (
getArgs
)
-- | Local imports
import Calculus
import Combinatorics
import Distribution
import Geometry
import Random
import Statistics
import Units
import... | korczis/haskell-world | src/cli/Main.hs | mit | 717 | 0 | 11 | 187 | 243 | 136 | 107 | 29 | 1 |
module Proxy.Types.TechTypes where
-- | The datatype containing all units special abilites
data TechType = Stimpacks
| Lockdown
| EMPShockwave
| SpiderMines
| ScannerSweep
| TankSiegeMode
| DefensiveMatrix
| Irradiate
... | mapinguari/SC_HS_Proxy | src/Proxy/Types/TechTypes.hs | mit | 1,433 | 0 | 6 | 755 | 164 | 108 | 56 | 48 | 0 |
{-# LANGUAGE CPP #-}
-- Just exists due to TH stage restriction... The actual testing TH code
-- is in "Data.Store.TH".
module Data.StoreSpec.TH where
verbose :: Bool
verbose =
#if VERBOSE_TEST
True
#else
False
#endif
| fpco/store | test/Data/StoreSpec/TH.hs | mit | 228 | 0 | 4 | 45 | 23 | 17 | 6 | 5 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Language.PureScript.Kinds
-- Copyright : (c) Phil Freeman 2013
-- License : MIT
--
-- Maintainer : Phil Freeman <paf31@cantab.net>
-- Stability : experimental
-- Portability :
--
-- |
--
---------------------... | michaelficarra/purescript | src/Language/PureScript/Kinds.hs | mit | 1,651 | 0 | 11 | 366 | 502 | 275 | 227 | 29 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.