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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
--------------------------------------------------------------------------------
-- This file is part of diplomarbeit ("Diplomarbeit Johannes Weiß"). --
-- --
-- diplomarbeit is free software: you can redistribute it and/or modify ... | weissi/diplomarbeit | lib/Functionality/David.hs | gpl-3.0 | 8,255 | 0 | 22 | 3,708 | 1,222 | 639 | 583 | 112 | 13 |
module HLint.Default where
import Control.Arrow
import Control.Exception
import Control.Monad
import Control.Monad.Trans.State
import qualified Data.Foldable
import Data.Foldable(asum, sequenceA_, traverse_, for_)
import Data.Traversable(traverse, for)
import Control.Applicative
import Data.Function
import Data.Int
i... | luinix/haskell_snail | .cabal-sandbox/share/x86_64-osx-ghc-7.6.3/hlint-1.8.59/Default.hs | gpl-3.0 | 25,512 | 0 | 11 | 5,659 | 9,113 | 4,693 | 4,420 | -1 | -1 |
{---------------------------------------------------------------------}
{- Copyright 2015, 2016 Nathan Bloomfield -}
{- -}
{- This file is part of Feivel. -}
{- ... | nbloomf/feivel | src/Feivel/Eval/Rat.hs | gpl-3.0 | 5,135 | 0 | 20 | 1,826 | 1,655 | 774 | 881 | -1 | -1 |
-- | A Test-Suite for Verse.
import Test.Framework
import Language.Verse.Parser.Test (tests)
main :: IO ()
main = defaultMain tests
| sykora/verse | test/Test.hs | gpl-3.0 | 135 | 0 | 6 | 22 | 37 | 21 | 16 | 4 | 1 |
module Lab5.Jordan.Lecture5
where
import Data.List
import System.Random
type Row = Int
type Column = Int
type Value = Int
type Grid = [[Value]]
positions, values :: [Int]
positions = [1..9]
values = [1..9]
blocks :: [[Int]]
blocks = [[1..3],[4..6],[7..9]]
showVal :: Value -> String
showVal 0 = " "
sh... | vdweegen/UvA-Software_Testing | Lab5/Jordan/Lecture5.hs | gpl-3.0 | 11,950 | 0 | 16 | 3,562 | 6,662 | 3,748 | 2,914 | 321 | 5 |
module Dsgen.SetSelect.Internals where
import Control.Monad(liftM)
import Control.Monad.Error
import Control.Monad.Trans(liftIO)
import Data.Array.IO
import Data.List((\\), sort)
import System.Random
import Dsgen.Cards
{- Types -}
{- | Set selection emphasis. A set selected with an "emphasized" expansion
will conta... | pshendry/dsgen | src/Dsgen/SetSelect/Internals.hs | gpl-3.0 | 10,316 | 0 | 17 | 2,994 | 2,130 | 1,124 | 1,006 | 178 | 10 |
-- |
-- Module : Data.Constraint.Trivial
-- Copyright : (c) 2014-2016 Justus Sagemüller
-- License : GPL v3 (see LICENSE)
-- Maintainer : (@) jsag $ hvl.no
--
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleC... | leftaroundabout/trivial-constraint | src/Data/Constraint/Trivial.hs | gpl-3.0 | 5,607 | 0 | 11 | 1,313 | 765 | 419 | 346 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Web.NgForm where
import Text.Blaze
import qualified Text.Blaze.Html5 as H
import qualified Text.Blaze.Html5.Attributes as H hiding (form, label)
import Data.Monoid
import Text.Blaze.Internal
import Control.Monad
ngForm = H.form ! H.novalidate mempty ! formRole
formGroup =... | glutamate/ng-form-hs | Web/NgForm.hs | mpl-2.0 | 1,018 | 0 | 16 | 211 | 327 | 170 | 157 | 25 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Data.Collectd.Plugin
( Exec
, Ident (..)
, NotifIdent (..)
, dispatch
, getEnv
, getPrev
, getIdent
, getNid
, getOpts
, putVal
, putNotif
, putNotifSimple
, schedExec
, valueTyp
, module PT
)
where
import C... | kim/hs-collectd | Data/Collectd/Plugin.hs | mpl-2.0 | 3,669 | 0 | 18 | 1,051 | 1,219 | 639 | 580 | 107 | 2 |
{-# LANGUAGE ForeignFunctionInterface #-}
module CCAR.Tests.TestCSV where
import Foreign
import Foreign.C.Types
import Text.ParserCombinators.Parsec
import Control.Monad.Lift
import Control.Monad.Lift.Base
import Control.Monad.Lift.IO
import Control.Monad.Lift.Layer
import Control.Monad.Lift.Top
import Monad.Abo... | asm-products/ccar-websockets | CCAR/Tests/TestCSV.hs | agpl-3.0 | 1,146 | 11 | 11 | 202 | 326 | 177 | 149 | 36 | 1 |
{-# LANGUAGE ForeignFunctionInterface, TypeFamilies, MultiParamTypeClasses,
FlexibleInstances, TypeSynonymInstances,
EmptyDataDecls, ExistentialQuantification, ScopedTypeVariables #-}
module HEP.Jet.FastJet.Class.TDictionary.RawType where
-- import Foreign.Ptr
import Foreign.ForeignPtr
--... | wavewave/HFastJet | oldsrc/HEP/Jet/FastJet/Class/TDictionary/RawType.hs | lgpl-2.1 | 387 | 0 | 4 | 60 | 25 | 19 | 6 | 6 | 0 |
-------------------------------------------------------------------------------
-- |
-- Module: Data.Unfolded.Cycle
-- Copyright: (c) Jonathan David Page 2015
-- License: LGPL version 3 or later (see LICENSE)
-- Maintainer: jonathan@sleepingcyb.org
--
-- Cycles generated from an unfold function.
--
-- The functions in ... | jdpage/unfolded-cycle | Data/Unfolded/Cycle.hs | lgpl-3.0 | 2,924 | 0 | 15 | 677 | 705 | 392 | 313 | 36 | 1 |
import Test.Tasty
import Test.Tasty.HUnit
import Control.Monad.Amb
import Control.Monad.CSP
import Control.Monad
import Data.List
import System.IO.Unsafe
main = defaultMain tests
tests :: TestTree
tests = testGroup "Tests" [unitTests]
unitTests = testGroup "Unit tests"
[ testCase "constraint1" $
oneCSPSoluti... | abarbu/csp-haskell | tests/test.hs | lgpl-3.0 | 3,760 | 0 | 21 | 707 | 2,512 | 1,465 | 1,047 | 85 | 2 |
module NetImportExport where
import NetAux
import NetData
import WindowContext
import Control.Concurrent
import qualified Control.Exception as CE
import Data.Char (toLower)
import Data.List (intersperse, isPrefixOf, nub, partition,
... | haroldcarr/learn-haskell-coq-ml-etc | haskell/playpen/hcpn/src/NetImportExport.hs | unlicense | 13,089 | 0 | 25 | 4,813 | 4,427 | 2,180 | 2,247 | 284 | 6 |
{-# LANGUAGE CPP #-}
module TutorialD.Interpreter.RelationalExpr where
import Text.Megaparsec
#if MIN_VERSION_megaparsec(7,0,0)
import Control.Monad.Combinators.Expr
#else
import Text.Megaparsec.Expr
#endif
import ProjectM36.Base
import TutorialD.Interpreter.Base
import TutorialD.Interpreter.Types
import qualified Data... | agentm/project-m36 | src/bin/TutorialD/Interpreter/RelationalExpr.hs | unlicense | 9,973 | 0 | 15 | 1,698 | 2,623 | 1,283 | 1,340 | 207 | 2 |
module Standard.Syntax where
import Syntax
data Expr = EvenDistr Range Range
| eigengo/hwsexp | core/main/Standard/Syntax.hs | apache-2.0 | 79 | 0 | 6 | 13 | 20 | 12 | 8 | 3 | 0 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE... | erochest/gh-weekly | src/GhWeekly/Types.hs | apache-2.0 | 2,989 | 0 | 12 | 928 | 817 | 444 | 373 | 106 | 1 |
{-# LANGUAGE RecordWildCards #-}
module WBOIT where
import Graphics.GL
import qualified Graphics.UI.GLFW as GLFW
import Control.Monad
import Data.Bits
import Foreign
import Linear
import Cube
import Data.Time
import Halive.Utils
import ... | lukexi/wboit | test/WBOIT.hs | bsd-2-clause | 6,860 | 0 | 13 | 1,732 | 1,034 | 514 | 520 | 102 | 5 |
{-# LANGUAGE DeriveDataTypeable #-}
module Data.Posts.Thread
( Thread (..)
, ThreadMeta (..)
, threadSingle
, threadReply
, threadLength
, children
, reverseChildren
, recentChildren
, parent
, PostIx
) where
import Prelude
import Data.Typeable (Typeable)
import Data.SafeCo... | JerrySun/league-famous | Data/Posts/Thread.hs | bsd-2-clause | 1,660 | 0 | 9 | 382 | 559 | 304 | 255 | -1 | -1 |
module Language.Granule.Checker.LaTeX where
import Data.List (intercalate)
data Derivation =
Node String [Derivation] | Leaf String
deriving Eq
instance Show Derivation where
show (Leaf s) = s
show (Node c premises) =
"\\dfrac{" <> intercalate " \\quad " (map show premises) <> "}{" <> c <> "}"
mkDocum... | dorchard/gram_lang | frontend/src/Language/Granule/Checker/LaTeX.hs | bsd-3-clause | 520 | 0 | 12 | 89 | 132 | 71 | 61 | 14 | 1 |
--
-- Copyright © 2014-2015 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.
--
-- | Re-export the public API t... | anchor/synchronise | lib/Synchronise.hs | bsd-3-clause | 893 | 0 | 5 | 169 | 87 | 62 | 25 | 14 | 0 |
module Test.ElmSourceGenerators where
import Test.QuickCheck
wsRequired :: Gen String
wsRequired =
elements
[ " "
, "\n "
, "{-A-}"
, "{-A-}{-B-}"
, "--A\n "
]
wsOptional :: Gen String
wsOptional =
oneof [ wsRequired, return "" ]
withWhitespace :: Gen String -> [String] -> Gen String
... | nukisman/elm-format-short | tests/Test/ElmSourceGenerators.hs | bsd-3-clause | 1,539 | 0 | 13 | 490 | 464 | 237 | 227 | 64 | 1 |
module Problem2 where
import Data.Char
import Data.List
import Data.Maybe
import qualified Data.Sequence as S
import qualified Data.Traversable as T
import qualified Data.Foldable as F
import Control.Applicative
import System.IO
-- The goal in this problem is to find the minimum number of coins needed to change the i... | msosnicki/algorithms | app/week4/Problem2.hs | bsd-3-clause | 1,782 | 0 | 13 | 463 | 758 | 398 | 360 | 47 | 3 |
module Blog.Admin.PendingComments where
import qualified Blog.Model.CommentBodyParser as CBP
import qualified Blog.Model.Entry as B
import qualified Blog.Constants as C
import qualified Blog.FrontEnd.Urls as U
import Utilities
import Data.Maybe
import Blog.FrontEnd.ContentAtoms
import Text.XHtml.Strict
display_comme... | prb/perpubplat | src/Blog/Admin/PendingComments.hs | bsd-3-clause | 7,424 | 0 | 15 | 3,675 | 1,768 | 930 | 838 | 130 | 3 |
{-# LANGUAGE StandaloneDeriving #-}
module While.AbstractSyntax where
import Prelude hiding (Num, True, False)
-- Numbers
type {- n <- -} Num = Integer
-- Variables
type {- x <- -} Var = String
-- Arithmetic expressions
data {- a <- -} Aexp
= Num Num
| Var Var
| Add Aexp Aexp
| Mul Aexp Aexp
| Sub Aexp... | grammarware/slps | topics/implementation/NielsonN07/Haskell/src/While/AbstractSyntax.hs | bsd-3-clause | 908 | 0 | 15 | 252 | 299 | 169 | 130 | 35 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Language.Gator.Ops.Trace (
traceTo,
traceToN,
(~~~),
) where
import Control.Monad.State
import Language.Gator.Logic
import Language.Gator.IO
import Language.Gator.Gates
import Language.Gator.Gates.Trace
import Language.Gator.Ops.General
import qualified Data.Map a... | sw17ch/gator | src/Language/Gator/Ops/Trace.hs | bsd-3-clause | 1,114 | 0 | 12 | 287 | 492 | 258 | 234 | 36 | 1 |
{-# LANGUAGE FlexibleContexts, NoMonomorphismRestriction #-}
-----------------------------------------------------------------------------
-- | The parsed C from "Text.OpenGL.Xml.CParse" needs to be interpreted to
-- get to the more restricted and useful types of
-- "Text.OpenGL.Xml.TypeTypes".
--
-- This transformatio... | Laar/opengl-xmlspec | src/Text/OpenGL/Xml/CProcess.hs | bsd-3-clause | 7,728 | 0 | 15 | 1,833 | 1,752 | 888 | 864 | 132 | 20 |
{-# Language PatternGuards #-}
module Blub
( blub
, foo
, bar
) where
import Control.Monad
{-|
Some Haddock doc
One line more
-}
f :: Int -> Int
f = (+ 3)
g :: Int -> Int
g =
where
| dan-t/hsimport | tests/goldenFiles/ModuleTest34.hs | bsd-3-clause | 201 | 0 | 5 | 61 | 54 | 34 | 20 | -1 | -1 |
{-# OPTIONS -Wall #-}
module Main where
import Lib
import Options.Applicative
main :: IO ()
main = execParser opts >>= watch
where
opts = info (helper <*> watcher)
( fullDesc
<> progDesc "Watches files for changes and executes a command on change"
<> header "watcher - File ... | denibertovic/watcher | app/Main.hs | bsd-3-clause | 340 | 0 | 11 | 97 | 71 | 38 | 33 | 10 | 1 |
{-# LANGUAGE UnboxedTuples #-}
module Crypto.Cipher.Feistel where
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as L
import Data.Word
import Data.Bits
import Data.Binary
import System.Endian
toW32Pair :: B.ByteString -> ( Word32, Word32 )
toW32Pair b = let (x1, x2) = B.splitAt 4 b
... | joecrayne/cipher-cast5 | Crypto/Cipher/Feistel.hs | bsd-3-clause | 1,518 | 0 | 13 | 487 | 558 | 325 | 233 | 41 | 1 |
{-# LANGUAGE ExistentialQuantification, GADTs, ScopedTypeVariables, TypeFamilies, FlexibleInstances, MultiParamTypeClasses, GeneralizedNewtypeDeriving, RankNTypes, BangPatterns, UndecidableInstances, EmptyDataDecls, RecursiveDo, RoleAnnotations, FunctionalDependencies #-}
module Reflex.Host.Class where
import Prelude ... | bennofs/reflex | src/Reflex/Host/Class.hs | bsd-3-clause | 2,492 | 0 | 13 | 400 | 772 | 408 | 364 | 40 | 1 |
module Data.Thyme
( module Data.Thyme.Calendar
, module Data.Thyme.Clock
, module Data.Thyme.Format
, module Data.Thyme.LocalTime
) where
import Data.Thyme.Calendar
import Data.Thyme.Clock
import Data.Thyme.Format
import Data.Thyme.LocalTime
| ekmett/thyme | src/Data/Thyme.hs | bsd-3-clause | 264 | 0 | 5 | 46 | 60 | 41 | 19 | 9 | 0 |
module Embot.Wire
( accumEM
, filterMapE, filterSameE
, priorAndCurrentE, priorAndCurrent1E
, diffE, diffByE, groupedDiffE, groupedDiffByE
, logDebugE
) where
import ClassyPrelude
import Control.Arrow ((>>>), arr)
import Control.Monad.Logger (MonadLogger, logDebug)
import ... | Dridus/embot | src/Embot/Wire.hs | bsd-3-clause | 2,371 | 0 | 16 | 631 | 1,101 | 580 | 521 | -1 | -1 |
--------------------------------------------------------------------
-- |
-- Module : Email
-- Copyright : (c) Nicolas Pouillard 2008, 2009, 2010, 2011
-- License : BSD3
--
-- Maintainer: Nicolas Pouillard <nicolas.pouillard@gmail.com>
-- Stability : provisional
-- Portability:
--
---------------------------------... | np/mbox-tools | Email.hs | bsd-3-clause | 5,956 | 0 | 16 | 1,396 | 1,021 | 559 | 462 | 64 | 3 |
module NanoUtils.Container
(
normalize
, normalizeByMax
, foldMapM
) where
import Prelude hiding (foldr,maximum)
import Data.Foldable
import Data.Monoid
import Control.Monad
-- | Normalize values in a container, that is, each value is
-- divided by the total
normalize :: (Foldable t,Functor t,Fr... | nanonaren/NanoUtils | NanoUtils/Container.hs | bsd-3-clause | 822 | 0 | 9 | 197 | 272 | 144 | 128 | 17 | 1 |
module GameState where
-- todo Don't expose internal functions and Data
import qualified Data.Map as M
data GameStatus = GameStatus {board :: Board, runStatus :: RunStatus}
deriving (Show)
data RunStatus = Init | Running | Paused
deriving (Show)
type Point = (Int, Int)
type CellMap = M.Map Point Bool
data Board... | JobaerChowdhury/game-of-life | app/GameState.hs | bsd-3-clause | 3,047 | 0 | 13 | 745 | 1,174 | 653 | 521 | 72 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Graphics.QuadRenderer (
initQuadRenderer
) where
import Graphics.Utils
import Graphics.Types
import Graphics.Rendering.OpenGL
import Graphics.Rendering.OpenGL.Raw
import Control.Monad
import System.Exit ... | schell/blocks | src/Graphics/QuadRenderer.hs | bsd-3-clause | 3,934 | 0 | 12 | 1,195 | 970 | 488 | 482 | 90 | 1 |
module Main where
{-
Goal: In the background, generate data at some rate and feed them
into a shared TChan.
Concurrently, run a GUI that displays the data coming in, along with
some running statistic on the incoming data.
GUI has buttons that turn on and off 'listening' to the data in the TChan.
(Side-question, what ... | skwalker/SimpleStreamingGUI | SimpleStreamingGUI.hs | bsd-3-clause | 888 | 0 | 10 | 169 | 177 | 90 | 87 | 17 | 1 |
module Expressions.Parser
( parseExpression
) where
import Data.Function
import Data.List
import Data.Char
import Data.Maybe
import Expressions.Expressions
-- Parser
parseExpression :: String -> Expression
parseExpression x
| (not . null . snd) parsedExpression = error "I can't parse it! :C"
... | etu-fkti5301-bgu/alt-exam_automated_theorem_proving | src/Expressions/Parser.hs | bsd-3-clause | 6,669 | 0 | 14 | 2,744 | 1,699 | 896 | 803 | 110 | 3 |
-- from base
import Control.Arrow (first)
import System.Environment (getArgs)
-- from hierarchical-clustering
import Data.Clustering.Hierarchical
-- from diagrams-lib
import Diagrams.Prelude
-- from diagrams-cairo
import Diagrams.Backend.Cairo (Cairo)
import Diagrams.Backend.Cairo.CmdLine (multiMain)
-- from hspec
... | meteficha/hierarchical-clustering-diagrams | tests/runtests.hs | bsd-3-clause | 2,537 | 0 | 19 | 1,013 | 834 | 430 | 404 | 75 | 5 |
{-# LANGUAGE CPP #-}
-- | Haste's main compiler driver.
module Main where
import Language.Haskell.GHC.Simple as GHC
#if __GLASGOW_HASKELL__ >= 710
import Language.Haskell.GHC.Simple.PrimIface
import Packages
import PackageConfig
#endif
import GHC
import Outputable (showPpr)
import Platform
import System.Environment (g... | nyson/haste-compiler | src/hastec.hs | bsd-3-clause | 11,308 | 0 | 24 | 3,113 | 3,118 | 1,606 | 1,512 | 235 | 11 |
module Main (main) where
import Control.Monad
import Language.Haskell.HLint
import System.Environment
import System.Exit
main :: IO ()
main = do
args <- getArgs
hints <- hlint $ ["src", "--cpp-define=HLINT", "--cpp-ansi"] ++ args
unless (null hints) exitFailure
| sonyandy/wart-lens | tests/hlint.hs | bsd-3-clause | 270 | 0 | 10 | 43 | 90 | 49 | 41 | 10 | 1 |
------------------------------------------------------------------------------
-- File: Messages.hs
-- Creation Date: Dec 30 2012 [02:49:56]
-- Last Modified: Oct 08 2013 [22:09:50]
-- Created By: Samuli Thomasson [SimSaladin] samuli.thomassonAtpaivola.fi
--
-- |
-- Module : Network.SimpleIRC.Core
-- Copyrigh... | SimSaladin/haikubot | Haikubot/Messages.hs | bsd-3-clause | 7,055 | 39 | 17 | 1,981 | 1,867 | 1,001 | 866 | 139 | 6 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-sns/gen/Network/AWS/SNS/SetPlatformApplicationAttributes.hs | mpl-2.0 | 5,258 | 0 | 10 | 924 | 419 | 259 | 160 | 53 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
module GHC.Conc.Signal
( Signal
, HandlerFun
, setHandler
, runHandlers
, runHandlersPtr
) where
import Control.Concurrent.MVar (MVar, newMVar, withMVar)
import Data.Dynamic (Dynamic)
import Foreign.C.Types... | alexander-at-github/eta | libraries/base/GHC/Conc/Signal.hs | bsd-3-clause | 3,457 | 0 | 20 | 765 | 820 | 430 | 390 | 71 | 3 |
import Criterion.Main
import qualified Data.Text as T
import qualified Data.Text.Lazy as TL
import qualified Data.Text.Lazy.Encoding as TLE
import qualified Data.ByteString as S
import qualified Data.ByteString.Lazy as L
import Data.ByteString.Lazy.Internal (ByteString (..))
import Data.Text.StreamDecoding
calcLen :: ... | fpco/text-stream-decode | bench/count-chars.hs | mit | 1,595 | 0 | 10 | 380 | 469 | 268 | 201 | 36 | 2 |
{-| Implementation of the doc strings for the opcodes.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code m... | leshchevds/ganeti | src/Ganeti/Hs2Py/OpDoc.hs | bsd-2-clause | 15,453 | 0 | 4 | 2,862 | 819 | 493 | 326 | 244 | 1 |
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE helpset
PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN"
"http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="en-GB">
<title>Retest Add-On</title>
<maps>
<homeID>retest</homeID>
<mapref... | kingthorin/zap-extensions | addOns/retest/src/main/javahelp/org/zaproxy/addon/retest/resources/help/helpset.hs | apache-2.0 | 974 | 85 | 51 | 169 | 405 | 215 | 190 | -1 | -1 |
module Renaming.RenameInExportedType
(
NewType
) where
data NewType = MT Int
| RefactoringTools/HaRe | test/testdata/Renaming/RenameInExportedType.expected.hs | bsd-3-clause | 86 | 0 | 6 | 20 | 20 | 12 | 8 | 4 | 0 |
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
mo... | sdiehl/ghc | testsuite/tests/dependent/should_compile/T15725.hs | bsd-3-clause | 2,061 | 29 | 11 | 529 | 759 | 414 | 345 | -1 | -1 |
{-# LANGUAGE Safe #-}
-----------------------------------------------------------------------------
-- |
-- Module : System.Console.GetOpt
-- Copyright : (c) Sven Panne 2002-2005
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : exp... | frantisekfarka/ghc-dsi | libraries/base/System/Console/GetOpt.hs | bsd-3-clause | 16,507 | 0 | 12 | 4,729 | 3,014 | 1,634 | 1,380 | 135 | 10 |
{-# LANGUAGE BangPatterns #-}
module Main where
import Control.DeepSeq
import Control.Exception (evaluate)
import Criterion.Main
import Data.List (foldl')
import qualified Data.IntSet as S
import qualified Data.WordSet as W
import Data.Word (Word)
main = do
let s = S.fromAscList elems :: S.IntSet
s_even ... | gereeter/bounded-intmap | benchmarks/IntSet.hs | mit | 4,243 | 0 | 17 | 1,512 | 1,610 | 835 | 775 | 91 | 2 |
{- Author: Jeff Newbern
Maintainer: Jeff Newbern <jnewbern@nomaware.com>
Time-stamp: <Mon Nov 10 11:59:14 2003>
License: GPL
-}
{- DESCRIPTION
Example 1 - Our first monad
Usage: Compile the code and execute the resulting program.
It will print Dolly's maternal grandfather.
-}
-- everything yo... | maurotrb/hs-exercises | AllAboutMonads/examples/example1.hs | mit | 1,769 | 10 | 12 | 394 | 474 | 248 | 226 | 25 | 1 |
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFam... | Lysxia/generic-random | src/Generic/Random/DerivingVia.hs | mit | 9,983 | 0 | 15 | 1,689 | 2,082 | 1,202 | 880 | -1 | -1 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.WebGLDebugRendererInfo (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.WebGLDebugRendererInfo
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
import GHC... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/WebGLDebugRendererInfo.hs | mit | 379 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
import CRC (Bit(I,O), generate)
main = print . generate . read =<< getLine
| LinuxMercedes/CRC | generate.hs | mit | 77 | 0 | 7 | 15 | 35 | 21 | 14 | 2 | 1 |
-- CIS 194 Homework 2
module Chapter2.Log where
import Control.Applicative
data MessageType = Info
| Warning
| Error Int
deriving (Show, Eq)
type TimeStamp = Int
data LogMessage = LogMessage MessageType TimeStamp String
| Unknown String
deriving (Show, Eq)
dat... | ssanj/YorgeyCourse | src/Chapter2/Log.hs | mit | 1,082 | 0 | 9 | 324 | 233 | 130 | 103 | 24 | 1 |
module NginxLint.Hint (
analyzeDecl
) where
import Data.List (isPrefixOf, isInfixOf)
import Data.Maybe (mapMaybe)
--import Debug.Trace (trace)
import qualified Text.ParserCombinators.Parsec as P
import NginxLint.Data
import NginxLint.Parse (plainString)
argHints :: [Arg -> Maybe Hint]
argHints = [ hintArgExcess... | temoto/nginx-lint | NginxLint/Hint.hs | mit | 2,287 | 0 | 15 | 502 | 550 | 292 | 258 | 36 | 4 |
{-# LANGUAGE RecordWildCards #-}
module Common.Conversions (convertToCore, CoreTranslation(..), iBuiltIn) where
import Common.Types
import qualified Outer.AST as O
import Outer.Types (oBuiltIn)
import qualified Core.AST as I
import Common.Error
import Common.SrcLoc
import Common.Util
import Control.Applicative
impo... | QuickChick/Luck | luck/src/Common/Conversions.hs | mit | 11,718 | 0 | 17 | 3,297 | 5,092 | 2,554 | 2,538 | 275 | 7 |
{-# LANGUAGE OverloadedStrings #-}
module Data.API where
import qualified Network.HTTP as HTTP
import qualified Network.Stream as HTTP
import Data.Word
import Data.Aeson
import Data.Text (Text)
import Data.Revisions
import Data.ByteString.Lazy
import Control.Monad
import Control.Applicative
import Util.Common
... | AKST/wikit | socket-server/src/Data/API.hs | mit | 2,250 | 0 | 15 | 666 | 697 | 366 | 331 | 74 | 0 |
module Euler.Problem6Spec ( spec ) where
import Helper
import Euler.Problem6
spec :: Spec
spec = do
describe "sumSquareDiff" $ do
it "1..2" $ do
(sumSquareDiff [1..2] :: Int) `shouldBe` (4 :: Int)
it "1..3" $ do
(sumSquareDiff [1..3] :: Int) `shouldBe` (22 :: Int)
it "1..5" $ do
(sum... | slogsdon/haskell-exercises | pe/testsuite/specs/Euler/Problem6Spec.hs | mit | 371 | 0 | 16 | 91 | 156 | 85 | 71 | 12 | 1 |
{-# OPTIONS_GHC -F -pgmF htfpp #-}
import Test.Framework
import TypeStructure.Prelude.Basic
import {-@ HTF_TESTS @-} TypeStructureTest
import {-@ HTF_TESTS @-} TypeStructure.THTest
main = htfMain $ htf_thisModulesTests : htf_importedTests
| nikita-volkov/type-structure | src/HTFTestSuite.hs | mit | 242 | 0 | 6 | 30 | 36 | 22 | 14 | 6 | 1 |
{-
Copyright (c) 2015 Nils 'bash0r' Jonsson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distr... | project-horizon/framework | src/lib/Language/PolyDSL/DOM/Declaration/TypeSignature.hs | mit | 1,714 | 0 | 8 | 300 | 61 | 41 | 20 | 6 | 0 |
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable #-}
module Text.RTF
(RTF(..),
Paragraph(..),
readFile,
readByteString)
where
import qualified BinaryFiles as BF
import qualified Control.Monad.Identity as MTL
import qualified Data.ByteString as BS
import qualified Data.Char as Ch
import qualified Data.Co... | IreneKnapp/direct-rich-text-format | Haskell/Text/RTF.hs | mit | 9,447 | 10 | 26 | 3,221 | 2,844 | 1,419 | 1,425 | 307 | 9 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Main (main) where
import Data.CReal.Converge
import Data.CReal.Extra ()
import Data.CReal.... | expipiplus1/exact-real | test/Test.hs | mit | 7,647 | 0 | 15 | 1,963 | 2,249 | 1,181 | 1,068 | -1 | -1 |
-- Rainfall
-- http://www.codewars.com/kata/56a32dd6e4f4748cc3000006/
module Codewars.G964.Rainfall (mean, variance) where
import Data.List (isPrefixOf, find)
import Data.List.Split (splitOn)
import Data.Maybe (fromMaybe)
import Control.Monad (liftM)
import Control.Arrow ((&&&))
mean :: String -> String -> Double
me... | gafiatulin/codewars | src/6 kyu/Rainfall.hs | mit | 762 | 0 | 21 | 125 | 335 | 185 | 150 | -1 | -1 |
module Main where
import Test.DocTest
import System.Directory
import System.FilePath
import Control.Applicative
import Control.Monad
import Data.List
main :: IO ()
main = getSources >>= \sources -> doctest $
"-i."
: "-idist/build/autogen"
: "-optP-include"
: "-optPdist/build/autogen/cabal_macros.h"
: sour... | ledger/commodities | test/doctests.hs | mit | 792 | 0 | 12 | 151 | 260 | 140 | 120 | 24 | 1 |
/*Owner & Copyrights: Vance King Saxbe. A.*//* Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe... | VanceKingSaxbeA/GoldSaxMachineStore | GoldSaxMachineModule11/src/Chapter11/Update.hs | mit | 2,728 | 23 | 19 | 531 | 674 | 345 | 329 | 31 | 1 |
{-# LANGUAGE RankNTypes, TypeFamilies #-}
{-| Implements multi-maps - maps that map keys to sets of values
This module uses the standard naming convention as other collection-like
libraries and is meant to be imported qualified.
-}
{-
Copyright (C) 2014 Google Inc.
This program is free software; you can redistrib... | ribag/ganeti-experiments | src/Ganeti/Utils/MultiMap.hs | gpl-2.0 | 4,133 | 0 | 17 | 895 | 1,154 | 617 | 537 | 69 | 1 |
{-|
Copyright : (c) Nathan Bloomfield, 2017
License : GPL-3
Maintainer : nbloomf@gmail.com
Stability : experimental
-}
module Hakyll.Shortcode.Types.MD5_Digest (
MD5_Digest()
) where
import Hakyll.Shortcode.Validate
-- | Strings of 64 hexadecimal digits. Case insensitive.
newtype MD5_Digest
= Make { un... | nbloomf/hakyll-shortcode | src/Hakyll/Shortcode/Types/MD5_Digest.hs | gpl-3.0 | 652 | 0 | 12 | 133 | 126 | 73 | 53 | 15 | 0 |
-- | Module for evaluating scheme expressions.
--
-- Copyright 2008 Mats Klingberg
--
-- This file is part of hscheme and is licensed under the GNU GPL, see the
-- LICENSE file for the full license text.
module Eval (
eval,
testEval,
nullEnv
) where
-- System imports
import Control.Monad.Error
import Da... | matkli/hscheme | Eval.hs | gpl-3.0 | 8,214 | 0 | 15 | 2,729 | 2,053 | 1,065 | 988 | -1 | -1 |
-----------------------------------------------------------------------------
--
-- Module : Main
-- Copyright :
-- License : AllRightsReserved
--
-- Maintainer :
-- Stability :
-- Portability :
--
-- |
--
-----------------------------------------------------------------------------
module Main ( main ... | lostbean/DeUni | profile/Benchmark.hs | gpl-3.0 | 980 | 0 | 14 | 254 | 227 | 125 | 102 | 20 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Jason.Parse
(
parse
) where
import Control.Applicative
import Data.Attoparsec.ByteString as P hiding (parse)
import qualified Data.Attoparsec.ByteString as P (parse)
import Data.Attoparsec.ByteString.Char8 as PC... | TOSPIO/jason | src/Jason/Parse.hs | gpl-3.0 | 2,512 | 0 | 19 | 751 | 790 | 418 | 372 | 73 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Web.Spock
import Web.Spock.Config
import Control.Monad.Trans
import Data.Monoid
import Data.IORef
import Network.Wai.Middleware.Static
import qualified Data.Text as T
data MySession = EmptySession
data MyAppState = DummyAppState (IORef Int)
main :: IO ()
... | scepticulous/carna-ng | carna-server/app/Main.hs | gpl-3.0 | 893 | 0 | 16 | 208 | 288 | 148 | 140 | 25 | 1 |
{- |
Module : Color
Description : Color
Copyright : (c) Frédéric BISSON, 2015
License : GPL-3
Maintainer : zigazou@free.fr
Stability : experimental
Portability : POSIX
-}
module Color where
{-|
Two colors: `Black` and `White`
-}
data Color = Black | White deriving (Eq, Ord, Enum, Show)
{-|
Invert a `Col... | Zigazou/LangtonAnt | src/Color.hs | gpl-3.0 | 450 | 0 | 6 | 89 | 61 | 35 | 26 | 5 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs | mpl-2.0 | 5,394 | 0 | 18 | 1,290 | 739 | 434 | 305 | 100 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/CreateUserProfile.hs | mpl-2.0 | 5,476 | 0 | 9 | 1,130 | 665 | 401 | 264 | 74 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-ec2/gen/Network/AWS/EC2/DescribeSpotDatafeedSubscription.hs | mpl-2.0 | 4,484 | 0 | 9 | 765 | 408 | 251 | 157 | 54 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-classroom/gen/Network/Google/Resource/Classroom/Invitations/Accept.hs | mpl-2.0 | 6,172 | 0 | 18 | 1,443 | 870 | 511 | 359 | 118 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/EventTags/Insert.hs | mpl-2.0 | 3,221 | 0 | 14 | 741 | 406 | 242 | 164 | 63 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-youtube-reporting/gen/Network/Google/Resource/YouTubeReporting/Media/Download.hs | mpl-2.0 | 5,719 | 0 | 26 | 1,482 | 909 | 510 | 399 | 127 | 1 |
module Database.Migratory.Migrate.Types (Migration(..), migrationStateVector) where
import Data.Kind
import Data.Typeable
import Database.Migratory.Schema
import Database.Migratory.Schema.ToValue
data Migration :: [Type] -> [Type] -> Type where
RootMigration :: (tbls ~ '[]) =>
{ _migrationId :: Int
... | SASinestro/migratory | src/Database/Migratory/Migrate/Types.hs | mpl-2.0 | 1,081 | 0 | 10 | 215 | 289 | 171 | 118 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dataproc/gen/Network/Google/Resource/Dataproc/Projects/Regions/WorkflowTemplates/Create.hs | mpl-2.0 | 6,152 | 0 | 17 | 1,288 | 787 | 462 | 325 | 120 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE GeneralizedNewtypeDeriving, ViewPatterns #-}
import Control.Applicative
import Control.Concurrent.STM.DTVar
import Control.Concurrent.STM.Promise
import Control.Concurrent.STM.Promise.Process
import Control.Concurrent.STM.Promise.Tree
import Control.Concurrent.STM.Pro... | danr/stm-promise | test/Trees.hs | lgpl-3.0 | 5,494 | 0 | 17 | 1,521 | 1,898 | 966 | 932 | 114 | 4 |
module Main (main) where
import Control.Concurrent (threadDelay)
import Control.Monad (forM_)
import Data.List (partition)
import Data.Maybe (fromMaybe)
import Data.Word (Word16, Word8)
import Hexwax as HW
import System.Console.GetOpt
import System.Env... | emacstheviking/hexwax-usb | webstepper.hs | lgpl-3.0 | 8,000 | 1 | 15 | 1,977 | 1,493 | 805 | 688 | 116 | 3 |
module Main where
import Numeric
import Data.Char
import Digits
isPalindrome :: Eq a => [a] -> Bool
isPalindrome digs = digs == reverse digs
findDoubleBasePalindromes = filter (isPalindrome.toBase2) $ filter (isPalindrome.digits) [1..1000000]
where
toBase2 num = showIntAtBase 2 intToDigit num ""
main = print ... | kliuchnikau/project-euler | 036/Main.hs | apache-2.0 | 352 | 0 | 8 | 57 | 112 | 59 | 53 | 9 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{- |
Module : Neovim.Plugin.Classes
Description : Classes and data types related to plugins
Copyright : (c) Sebastian Witte
License : Apache-2.0
Maintainer : woozletoff@gmail.com
Stability : exp... | gibiansky/nvim-hs | library/Neovim/Plugin/Classes.hs | apache-2.0 | 12,148 | 0 | 16 | 3,720 | 1,803 | 1,000 | 803 | 159 | 6 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Sparse.Matrix.Internal.Array
( Arrayed(..)
, Array
--... | ekmett/sparse | src/Sparse/Matrix/Internal/Array.hs | bsd-2-clause | 9,260 | 0 | 13 | 2,167 | 3,151 | 1,644 | 1,507 | 194 | 0 |
-- Copyright (c) 2015 Bart Massey
-- [This program is licensed under the "2-clause ('new') BSD License"]
-- Please see the file COPYING in the source
-- distribution of this software for license terms.
-- | First weekday of 2015, where 0 is Sunday.
start2015 :: Int
start2015 = 4
-- | Names and number of days in each ... | BartMassey/haskell-basic-examples | calendar2015.hs | bsd-2-clause | 1,857 | 0 | 10 | 389 | 552 | 318 | 234 | 32 | 2 |
module Handler.Archives (getArchivesR) where
import Import
import Helpers.Post
getArchivesR :: Handler RepHtml
getArchivesR = do
now <- liftIO $ getCurrentTime
posts <- runDB $ selectList [PostDraft !=. True] [Desc PostDate]
defaultLayout $ do
setTitle "Archives"
$(widgetFile "archives"... | pbrisbin/devsite | Handler/Archives.hs | bsd-2-clause | 322 | 0 | 12 | 70 | 95 | 47 | 48 | 10 | 1 |
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE RankNTypes #-}
module TopicMachine where
{--
We can do several optimalizations.
TCE: this one is easy for the one block case
--}
import TopicParser hiding (stack, program, memory)
import qualified Data.HashMap.Strict as S
import qualified Data.Vector as V
i... | edgarklerks/dotfiles | .xmonad/TopicMachine.hs | bsd-2-clause | 21,389 | 0 | 28 | 7,318 | 7,593 | 3,790 | 3,803 | 326 | 18 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QFile.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:31
Warning : this file is machine generated - do not mod... | keera-studios/hsQt | Qtc/Core/QFile.hs | bsd-2-clause | 23,232 | 0 | 14 | 4,195 | 7,980 | 4,086 | 3,894 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Hardwood
import qualified Data.ByteString.Char8 as C8
import Data.Maybe
import Safe
import System.Environment
main :: IO ()
main = do
args <- getArgs
let
port = fromMaybe 4000 ((args `atMay` 1) >>= readMay)
hostNa... | narrative/hardwood | app/Main.hs | bsd-3-clause | 406 | 0 | 14 | 104 | 110 | 61 | 49 | 14 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving , DeriveGeneric #-}
-- |"TriplesGraph" contains a list-backed graph implementation suitable
-- for smallish graphs or for temporary graphs that will not be queried.
-- It maintains the triples in the order that they are given in, and is
-- especially useful for holding N-Triples... | jutaro/rdf4h | src/Data/RDF/Graph/TriplesList.hs | bsd-3-clause | 4,247 | 0 | 10 | 836 | 910 | 494 | 416 | 59 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module System.Heap.Pointer where
import Data.Bits
import Data.Binary
type Offset = Word64
type Size = Word64
newtype Pointer a = Ptr { unPtr :: Offset }
deriving (Show, Binary, Eq, Num, Bits)
nullPtr :: Pointer a
nullPtr = 0
pointerSize :: Word64
pointerSize = fromIn... | sebastiaanvisser/diskheap | src/System/Heap/Pointer.hs | bsd-3-clause | 777 | 0 | 9 | 128 | 243 | 141 | 102 | 24 | 1 |
module ETests.Pretty.Literal
( prettyLiteralSpecs
, prettyLiteralTestCases
) where
import Text.PrettyPrint.HughesPJ
import Test.Hspec
import Test.Hspec.HUnit()
import Language.TheExperiment.Parser
import Language.TheExperiment.Pretty.Literal
import ETests.Utils
prettyLiteralTestCases :: (String -> String ->... | jvranish/TheExperiment | test/ETests/Pretty/Literal.hs | bsd-3-clause | 1,424 | 0 | 13 | 339 | 312 | 171 | 141 | 35 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Arrows #-}
module GetLogs where
import ClassyPrelude hiding ((</>))
import Control.Monad.Trans.Resource hiding (throwM)
import Control.Arrow
import Network.HTTP.Client
import Network.HTTP.Conduit
impor... | limaner2002/EPC-tools | src/GetLogs.hs | bsd-3-clause | 11,144 | 6 | 28 | 2,624 | 3,299 | 1,686 | 1,613 | 186 | 3 |
-- | Values with a @id@ string accessor.
module Data.Geo.OSM.Lens.IdL where
import Control.Lens.Lens
class IdL a where
idL ::
Lens' a String
| tonymorris/geo-osm | src/Data/Geo/OSM/Lens/IdL.hs | bsd-3-clause | 150 | 0 | 7 | 31 | 35 | 21 | 14 | 5 | 0 |
{-# LANGUAGE PackageImports, OverloadedStrings, ScopedTypeVariables #-}
module ByteStringMonad (
ByteString, Word8, Word16, BS.pack, BS.unpack, BS.append, BS.concat,
ByteStringM, runByteStringM, evalByteStringM, throwError,
headBS, take, takeWords, takeInt, takeWord16, takeLen, emptyBS,
list1, list, section, whol... | YoshikuniJujo/forest | subprojects/tls-analysis/client/ByteStringMonad.hs | bsd-3-clause | 3,302 | 18 | 13 | 617 | 1,301 | 682 | 619 | 94 | 3 |
module Main where
import MixedTypesNumPrelude
import AERN2.MP.Ball
import qualified Data.List as List
import AERN2.AD.Differential hiding (x)
-- import AERN2.Util.Util
import AERN2.BoxFun.Type
import AERN2.Linear.Vector.Type ((!), Vector)
import qualified AERN2.Linear.Vector.Type as V
import AERN2.BoxFunMinMax.Type
i... | michalkonecny/aern2 | aern2-mfun/bench/Heron.hs | bsd-3-clause | 1,140 | 0 | 16 | 246 | 284 | 163 | 121 | 32 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.