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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE Rank2Types #-}
module TeX.Parser.Assignment
where
import Text.Parsec ((<|>), (<?>), modifyState, getState, anyToken)
import Control.Lens ((.~), (^.))
import TeX.Alias
import TeX.Category
import TeX.Count
import TeX.Def hiding (definition)
import TeX.Parser.MacroParser
import TeX.Parser.Parser
import TeX.... | xymostech/tex-parser | src/TeX/Parser/Assignment.hs | mit | 4,587 | 0 | 17 | 873 | 1,438 | 707 | 731 | 108 | 5 |
module Observable.Examples (
betaBinomial
, linearFit
, sinusoidal
, sinusoidalModel
, simulate
, ast
, condition
) where
import Observable
-- | A simple beta-binomial model for testing.
betaBinomial :: Int -> Double -> Double -> Observable Int
betaBinomial n a b = do
p <- observe "p" (beta a b)... | jtobin/observable-examples | Observable/Examples.hs | mit | 1,626 | 0 | 13 | 339 | 624 | 310 | 314 | 39 | 1 |
{-# LANGUAGE Arrows #-}
module Logic (logic) where
import Prelude hiding (id, (.))
import Control.Applicative (pure)
import Control.Category
import Control.Arrow
import Control.Coroutine
import Control.Coroutine.FRP
import Lambda.OpenGL (KeyEvent(..))
import Lambda.Vector
import ViewModel
logic :: Coroutine [KeyE... | leonidas/lambda-frp | src/Logic.hs | mit | 477 | 0 | 10 | 117 | 126 | 78 | 48 | 16 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Net.UDP_Client(
initialize,UDP_API,Interface(..),Packet(..),template,Port(..)
) where
import Net.Concurrent
import Control.Monad.State
import Control.Monad.Trans(lift)
import Data.Map (Map)
import qualified Data.Map as Map
import Data.List((\\))
--import System.Random(ra... | nh2/network-house | Net/UDP_Client.hs | gpl-2.0 | 2,779 | 34 | 18 | 631 | 1,043 | 555 | 488 | 73 | 5 |
module Main where
main :: IO ()
main = do
print (2 * 3 + 5)
print (2 + 2 * 3 + 1)
print (3 ** 4 + 5 * 2 ** 5 + 1)
| llscm0202/BIGDATA2017 | ATIVIDADE1/exerciciosBasicos/ex1.hs | gpl-3.0 | 122 | 0 | 13 | 44 | 86 | 43 | 43 | 6 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module ConnectionM
( ConnStateConfig (..)
, ConnectionM
, ConnState (..)
, ConnReader (..)
, evalConnectionM
, initConnStateConfig
) where
import Data.ByteString.Lazy (ByteString)
import qualified Data.ByteString.Lazy as BS
import Data.Map.Strict (Map)
import C... | authchir/SoSe17-FFP-haskell-http2-server | src/ConnectionM.hs | gpl-3.0 | 3,760 | 0 | 11 | 1,537 | 704 | 387 | 317 | -1 | -1 |
module System.DevUtils.Base.Data.List (
split,
splitBy
) where
split :: (Eq a) => a -> [a] -> [[a]]
split d l = splitBy (/= d) l
splitBy :: (Eq a) => (a -> Bool) -> [a] -> [[a]]
splitBy _ [] = []
splitBy f l = h :
case t of
[] -> []
_ -> splitBy f (tail t)
where
(h, t) = (takeWhile f l, dropWhile f l)
| adarqui/DevUtils-Base | src/System/DevUtils/Base/Data/List.hs | gpl-3.0 | 315 | 0 | 11 | 82 | 194 | 107 | 87 | 12 | 2 |
module Jet.Hist
(
histData
, mkHist
) where
import Data.Map (Map, fromList)
import Interface.Histogram1D
basicCut :: String
basicCut = " AND nl >= 1 AND nb >= 3 AND nj >= 4 AND pTj1 > 90 AND met > 150"
histData :: Map String HistFill
histData = fromList [ ("m_bl_th... | cbpark/GluinoStopPolarization | lib/Jet/Hist.hs | gpl-3.0 | 1,001 | 0 | 10 | 509 | 185 | 105 | 80 | 24 | 1 |
module Experiment.Planets.Types where
-- import Data.Word
import Linear.V2
import Linear.V3
import Linear.Vector
import Physics
import Render.Sprite
import Render.Surface
-- import Data.Colour
data Planet = Planet { planetName :: String
, planetRadius :: Double
, plan... | mstksg/netwire-experiments | src/Experiment/Planets/Types.hs | gpl-3.0 | 851 | 0 | 12 | 279 | 233 | 130 | 103 | 21 | 0 |
{-# LANGUAGE CPP, PackageImports #-}
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Safe #-}
#endif
module System.IO.Error (
-- * I\/O errors
IOError, -- = IOException
userError, -- :: String -> IOError
mkIOError, -- :: IOErrorType -> String -> May... | jwiegley/ghc-release | libraries/haskell2010/System/IO/Error.hs | gpl-3.0 | 3,099 | 0 | 9 | 841 | 256 | 178 | 78 | 38 | 1 |
module Main where
import ADC.Lib
import ADC.Config
import ADC.DB
import ADC.Types.Types
import Data.Pool
import Control.Concurrent
import Control.Monad (forever)
import ADC.Options
main :: IO ()
main = do
opts <- options
cfg <- readCfg $ config opts
withResource (connPool cfg) initMigrations
loadLastModified... | gore-v/AuctionParser | app/Main.hs | gpl-3.0 | 518 | 0 | 12 | 104 | 179 | 87 | 92 | 22 | 1 |
-------------------------------------------------------------------------------
-- Dictionaries implemented by using AVL Trees
--
-- Data Structures. Grado en Informática. UMA.
-- Pepe Gallardo, 2012
-------------------------------------------------------------------------------
module AVLDictionary
( Dictio... | danipozodg/dependency | AVLDictionary.hs | gpl-3.0 | 2,963 | 0 | 13 | 791 | 1,330 | 694 | 636 | 71 | 2 |
module Moonbase.Util.Widget.Chart where
import qualified Graphics.UI.Gtk as Gtk
import qualified Graphics.Rendering.Cairo as Cairo
import qualified System.Glib as Glib
import System.IO.Unsafe (unsafePerformIO)
import Control.Monad
import Control.Lens
import qualified Data.Vector as Vec
import qualified Data.Sequence... | felixsch/moonbase-ng | src/Moonbase/Util/Widget/Chart.hs | lgpl-2.1 | 5,126 | 0 | 16 | 956 | 1,451 | 764 | 687 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Lib where
import Control.Monad.Trans.State
import Data.Char
import Data.Data
import Data.Generics.... | haroldcarr/learn-haskell-coq-ml-etc | haskell/topic/generics/data-typeable/2014-04-chris-done-data-typeable/src/Lib.hs | unlicense | 8,575 | 0 | 22 | 2,211 | 1,618 | 851 | 767 | 89 | 3 |
module ProjectM36.Notifications where
import ProjectM36.Base
import ProjectM36.Error
import ProjectM36.RelationalExpression
import ProjectM36.StaticOptimizer
import qualified Data.Map as M
import Data.Either (isRight)
-- | Returns the notifications which should be triggered based on the transition from the first 'Data... | agentm/project-m36 | src/lib/ProjectM36/Notifications.hs | unlicense | 1,072 | 0 | 11 | 192 | 189 | 100 | 89 | 15 | 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/lambdircd | src/IRCD/Logic.hs | apache-2.0 | 2,083 | 1 | 19 | 516 | 522 | 255 | 267 | -1 | -1 |
module Combinatorics where
import Control.Lens
triplets :: [a] -> [(a,a,a)]
triplets (a : b : c : xs) = [(a,b,c)] ++ [(x,y,z) | x <- [a,b,c], (y,z) <- pairs xs] ++ [(x,y,z) | (x,y) <- pairs [a,b,c], z <- xs] ++ triplets xs
triplets _ = []
-- return the list of all unordered pairs
pairs :: [a] -> [(a,a)]
pairs (a : b ... | epeld/zatacka | old/Combinatorics.hs | apache-2.0 | 715 | 0 | 13 | 167 | 527 | 298 | 229 | 16 | 1 |
module Main where
import System.IO ( hSetBuffering
, BufferMode( LineBuffering )
, stdout
)
import Control.Concurrent
import Control.Concurrent.STM
import Control.Concurrent.STM.TChan
-----------------------------------------------------------------
-- An alternative "stateless"... | dimitriv/ziria-sem | Haskell/ZirPar.hs | apache-2.0 | 7,526 | 2 | 14 | 2,219 | 1,495 | 787 | 708 | 91 | 2 |
{-# LANGUAGE RecordWildCards #-}
module NLP.LTAG.Tree
(
-- * Tree
Tree (..)
, showTree
, showTree'
, toWord
-- * Path
, Path
, follow
-- * Substitution
, subst
-- * Adjoining
, AuxTree (..)
, adjoin
-- * Derivation
, Deriv
, Trans
, derive
-- * Traversal
, walk
) where
import Control.Applicative ((<$>))... | kawu/ltag | src/NLP/LTAG/Tree.hs | bsd-2-clause | 5,210 | 0 | 13 | 1,248 | 1,382 | 749 | 633 | 93 | 2 |
{-# LANGUAGE FlexibleInstances, RankNTypes #-}
{-# OPTIONS_GHC -Wall #-}
{- |
Module : SystemFI
Description : Abstract syntax and pretty printer for SystemFI.
Copyright : (c) 2014—2015 The F2J Project Developers (given in AUTHORS.txt)
License : BSD3
Maintainer : Zhiyuan Shi <zhiyuan.shi@gmail.... | wxzh/fcore | lib/SystemFI.hs | bsd-2-clause | 15,358 | 1 | 20 | 4,464 | 6,852 | 3,505 | 3,347 | 262 | 5 |
{-# LANGUAGE QuasiQuotes #-}
module Test0 () where
import LiquidHaskell
[lq| type Nat = { v:Int | 0 <= v } |]
[lq| ok :: Nat -> Nat |]
ok x = hi
where
hi :: [lq| Nat |]
hi = x
| spinda/liquidhaskell | benchmarks/gsoc15/pos/test2.hs | bsd-3-clause | 191 | 0 | 6 | 57 | 49 | 33 | 16 | 8 | 1 |
-- | Metamodel bridge to Snap permissions wrt roles from
-- 'Snap.Snaplet.Auth'.
module Snap.Snaplet.Redson.Permissions
( SuperUser(..)
-- * Commit checking
, checkWrite
, filterUnreadable
-- * Whole-model functions
, getModelPermissions
, stripModel
)
where
import Data.Lens.Common
i... | dzhus/snaplet-redson | src/Snap/Snaplet/Redson/Permissions.hs | bsd-3-clause | 5,310 | 0 | 17 | 1,582 | 1,068 | 591 | 477 | 86 | 3 |
{-# LANGUAGE CPP, ViewPatterns #-}
module TcFlatten(
FlattenMode(..),
flatten, flattenManyNom,
unflatten,
) where
#include "HsVersions.h"
import TcRnTypes
import TcType
import Type
import TcEvidence
import TyCon
import TyCoRep -- performs delicate algorithm on types
import Coercion
import Var
import Var... | vikraman/ghc | compiler/typecheck/TcFlatten.hs | bsd-3-clause | 59,811 | 50 | 23 | 18,112 | 6,144 | 3,270 | 2,874 | -1 | -1 |
{-|
Module : Reactive.DOM.Internal.Mutation
Description : Definition of Mutation, to describe DOM updates.
Copyright : (c) Alexander Vieth, 2016
Licence : BSD3
Maintainer : aovieth@gmail.com
Stability : experimental
Portability : non-portable (GHC only)
-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE FlexibleInst... | avieth/reactive-dom | Reactive/DOM/Internal/Mutation.hs | bsd-3-clause | 2,787 | 0 | 13 | 599 | 823 | 421 | 402 | 66 | 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.
module Duckling.Volume.HR.Tests
( tests ) where
import Data.String
import Prelude
import Test.Tasty
import Duc... | facebookincubator/duckling | tests/Duckling/Volume/HR/Tests.hs | bsd-3-clause | 500 | 0 | 9 | 77 | 79 | 50 | 29 | 11 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : TestSuite.Puzzles.Coins
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : erkokl@gmail.com
-- Stability : experimental
--
-- Test suite for Data.SBV.Examples.Puzzles.Coins
------------------... | josefs/sbv | SBVTestSuite/TestSuite/Puzzles/Coins.hs | bsd-3-clause | 912 | 0 | 14 | 218 | 189 | 105 | 84 | 10 | 1 |
{-# LANGUAGE OverloadedStrings, LambdaCase, QuasiQuotes #-}
module Transformations.Simplifying.CaseSimplificationSpec where
import Control.Monad
import Data.Monoid hiding (Alt)
import Transformations.Simplifying.CaseSimplification
import Test.Hspec
import Test.QuickCheck hiding (generate)
import Test.Test
import Test... | andorp/grin | grin/test/Transformations/Simplifying/CaseSimplificationSpec.hs | bsd-3-clause | 3,413 | 0 | 17 | 940 | 682 | 343 | 339 | 61 | 8 |
module Graphics.Gnuplot.Execute where
import Graphics.Gnuplot.Private.OS (gnuplotName, )
import System.Exit (ExitCode, )
import System.IO (hPutStr, )
import qualified System.Process as Proc
simple ::
[String] {-^ The lines of the gnuplot script to be piped into gnuplot -}
-> [String] {-^ Options for gnuplo... | kubkon/gnuplot | execute/pipe/Graphics/Gnuplot/Execute.hs | bsd-3-clause | 557 | 0 | 9 | 113 | 137 | 79 | 58 | 15 | 1 |
--------------------------------------------------------------------------------
-- | Call into the Haskell LLVM API to generate LLVM bitcode.
--
module Llvm.CodeOutput where
-- import ErrUtils
-- import Outputable
import Llvm.AbsSyn as AbsSyn
import Llvm.MetaData
import Llvm.Types
import Llvm.TypeConversions
impo... | a-ford/notghc | Llvm/CodeOutput.hs | bsd-3-clause | 22,098 | 0 | 18 | 6,384 | 4,929 | 2,533 | 2,396 | 370 | 18 |
{-|
Module : Preliminaries
Copyright : © Yghor Kerscher, 2016
Licence : BSD-3
Maintainer : kerscher@acm.org
Stability : experimental
The Haskell Report specifies the <https://www.haskell.org/onlinereport/standard-prelude.html Prelude> with a minimal amount of definitions that are always available in scop... | kerscher/preliminaries | source/Preliminaries.hs | bsd-3-clause | 7,637 | 0 | 10 | 1,156 | 901 | 562 | 339 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.SBV.BitVectors.Model
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : erkokl@gmail.com
-- Stability : experimental
--
-- Instance declarations for our symbolic world
------------------... | TomMD/cryptol | sbv/Data/SBV/BitVectors/Model.hs | bsd-3-clause | 88,082 | 0 | 23 | 25,825 | 25,692 | 13,345 | 12,347 | -1 | -1 |
{-# LANGUAGE UnicodeSyntax #-}
module Typed.Parser where
import Control.Applicative ((<|>))
import qualified Text.Parsec.Language as L
import qualified Text.Parsec.Token as T
import Text.ParserCombinators.Parsec (Parser, alphaNum, chainl1,
... | ayberkt/TAPL | src/Typed/Parser.hs | bsd-3-clause | 2,587 | 0 | 11 | 691 | 703 | 373 | 330 | 68 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving
, StandaloneDeriving
, TemplateHaskell
, UnicodeSyntax
#-}
module System.FTDI.Properties where
-------------------------------------------------------------------------------
-- Imports
--------------------------------------------------------... | roelvandijk/ftdi | System/FTDI/Properties.hs | bsd-3-clause | 3,569 | 0 | 13 | 970 | 688 | 395 | 293 | 55 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Tinc.Sandbox (
PackageConfig
, Sandbox
, findPackageDb
, initSandbox
, recache
) where
import Prelude ()
import Prelude.Compat
import Control.Monad.Comp... | beni55/tinc | src/Tinc/Sandbox.hs | bsd-3-clause | 2,410 | 0 | 15 | 468 | 665 | 344 | 321 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Language.Eiffel.Position
(Pos (..)
,Line
,Column
,SourcePos
,sourceLine
,sourceColumn
,sourceName
,inheritPos
,attachPos
,attachPosM
,attachEmptyPos
,attachPosBefore
,attachPosHere
,takePos
,position
... | scottgw/language-eiffel | Language/Eiffel/Position.hs | bsd-3-clause | 1,915 | 0 | 10 | 475 | 645 | 336 | 309 | 57 | 1 |
module Util.System(tempfile,withTempdir,rmFile,catchIO) where
-- System helper functions.
import Control.Monad (when)
import System.Directory (getTemporaryDirectory
, removeFile
, removeDirectoryRecursive
, createDirectoryIfMissing
... | andyarvanitis/Idris-dev | src/Util/System.hs | bsd-3-clause | 1,488 | 0 | 13 | 493 | 395 | 204 | 191 | 32 | 2 |
{-
%
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
TcGenDeriv: Generating derived instance declarations
This module is nominally ``subordinate'' to @TcDeriv@, which is the
``official'' interface to deriving-related things.
This is where we do all the grimy bindings... | nushio3/ghc | compiler/typecheck/TcGenDeriv.hs | bsd-3-clause | 103,881 | 0 | 19 | 33,003 | 18,330 | 9,639 | 8,691 | 1,290 | 9 |
{-# Language TypeFamilies #-}
module Data.Source.String.Offset where
import Data.Source.Class
data Src
= Src
{ loc :: Int
, str :: [Char]
} deriving (Eq,Ord,Read,Show)
instance Source Src where
type Location Src = Int
type Element Src = Char
type Token Src = [Char]
type Error Src = () -- errors a... | permeakra/source | Data/Source/String/Offset.hs | bsd-3-clause | 761 | 0 | 12 | 279 | 294 | 159 | 135 | 23 | 1 |
module Algebra.Structures.Field
( module Algebra.Structures.IntegralDomain
, Field(..)
, (</>)
) where
import Algebra.Structures.IntegralDomain
class IntegralDomain a => Field a where
inv :: a -> a
(</>) :: Field a => a -> a -> a
x </> y = x <*> inv y
infixl 7 </>
| Alex128/abstract-math | src/Algebra/Structures/Field.hs | bsd-3-clause | 292 | 0 | 7 | 73 | 104 | 59 | 45 | 10 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Todo.Changelog (
-- * The Log type
Log (..),
logHead,
-- * Log entries
LogEntry (..),
... | neosam/haskelltodo | src/Todo/Changelog.hs | bsd-3-clause | 10,426 | 0 | 18 | 2,668 | 2,511 | 1,329 | 1,182 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
-- |
-- Copyright : (c) 2010-2012 Benedikt Schmidt
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Benedikt Schmidt <beschmi@gmail.com>
--
-- Equation... | rsasse/tamarin-prover | lib/term/src/Term/Maude/Signature.hs | gpl-3.0 | 7,924 | 0 | 17 | 1,718 | 1,694 | 994 | 700 | 130 | 5 |
{-# LANGUAGE Rank2Types, NoMonomorphismRestriction, ScopedTypeVariables #-}
module Database.Design.Ampersand.Test.Parser.ParserTest (
parseReparse, parseScripts, showErrors
) where
import Prelude hiding (readFile)
import Database.Design.Ampersand.ADL1.PrettyPrinters(prettyPrint)
import Database.Design.Ampersand.Co... | guoy34/ampersand | src/Database/Design/Ampersand/Test/Parser/ParserTest.hs | gpl-3.0 | 1,511 | 0 | 14 | 251 | 484 | 263 | 221 | 28 | 2 |
module Propellor.Property.Tor where
import Propellor
import qualified Propellor.Property.File as File
import qualified Propellor.Property.Apt as Apt
isBridge :: Property
isBridge = setup `requires` Apt.installed ["tor"]
`describe` "tor bridge"
where
setup = "/etc/tor/torrc" `File.hasContent`
[ "SocksPort 0"
,... | abailly/propellor-test2 | src/Propellor/Property/Tor.hs | bsd-2-clause | 486 | 6 | 9 | 74 | 118 | 75 | 43 | 15 | 1 |
-- |
-- Module : Crypto.Number.Serialize.Internal.LE
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : Good
--
-- Fast serialization primitives for integer using raw pointers (little endian)
{-# LANGUAGE BangPatterns #-}
module Crypto.Num... | vincenthz/cryptonite | Crypto/Number/Serialize/Internal/LE.hs | bsd-3-clause | 2,415 | 0 | 14 | 718 | 692 | 341 | 351 | 48 | 1 |
{-# LANGUAGE RecordWildCards #-}
record = 1 | bitemyapp/apply-refact | tests/examples/Extensions13.hs | bsd-3-clause | 44 | 0 | 4 | 7 | 7 | 4 | 3 | 2 | 1 |
{-# language MagicHash #-}
{-# language UnboxedTuples #-}
module CopyArray
( smallCopy
) where
import GHC.Exts
import GHC.IO
data ByteArray = ByteArray ByteArray#
-- Does an 8 byte copy with sub-word (2 bytes) alignment
-- Should be unrolled into 4 aligned stores (MOVWs)
smallCopy :: ByteArray -> IO ByteArray
s... | sdiehl/ghc | testsuite/tests/codeGen/should_gen_asm/bytearray-memcpy-unroll.hs | bsd-3-clause | 552 | 0 | 17 | 117 | 138 | 74 | 64 | 12 | 1 |
module GuardsIn1 where
f :: [Int] -> Int
f g
| g == [1] = 42
| otherwise = head g | kmate/HaRe | old/testing/introCase/GuardsIn1.hs | bsd-3-clause | 94 | 0 | 9 | 33 | 49 | 25 | 24 | 5 | 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="fil-PH">
<title>Passive Scan Rules | ZAP Extension</title>
<maps>
<homeID>top</homeID>
... | ccgreen13/zap-extensions | src/org/zaproxy/zap/extension/pscanrules/resources/help_fil_PH/helpset_fil_PH.hs | apache-2.0 | 981 | 80 | 66 | 161 | 417 | 211 | 206 | -1 | -1 |
module Utility where
isDots :: String -> Bool
isDots s = (s == ".") || (s == "..")
isManaged :: FilePath -> Bool
isManaged s = (s /= ".towhead.db") && (not $ isDots s) && (s /= ".dat")
| wangell/towhead | Utility.hs | mit | 187 | 0 | 9 | 40 | 88 | 48 | 40 | 5 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module CNFSet (tests) where
import BooleanLaws
import NegableLaws
import SimplifyLaws
import BooleanModelLaws
import FreeBoolean
import Test.Tasty
import Test.QuickCheck
import Control.Applicative
import Data.Monoid
import Data.Function (on)
import Data.Algebra.Boolean.Negable ... | phadej/boolean-normal-forms | tests/CNFSet.hs | mit | 805 | 0 | 11 | 126 | 254 | 143 | 111 | 25 | 1 |
{-# LANGUAGE RecordWildCards #-}
-- import Control.Monad.State
import Data.Monoid
import Data.Maybe()
import Text.Read()
import System.Exit
type Point = Int
newtype Region = Region (Point, Point) deriving (Eq, Show)
instance Monoid Region where
mempty = Region (0, 0)
mappend (Region (begin, _)) (Region(_, en... | bollu/hask-lisp-interp | src/Main.hs | mit | 9,947 | 1 | 18 | 2,195 | 3,199 | 1,632 | 1,567 | 196 | 5 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.QuickTimePluginReplacement
(postEvent, getMovieSize, getTimedMetaData, getAccessLog,
getErrorLog, QuickTi... | ghcjs/jsaddle-dom | src/JSDOM/Generated/QuickTimePluginReplacement.hs | mit | 2,756 | 0 | 12 | 362 | 585 | 350 | 235 | 39 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module ReactHaskell.Handler where
import Application
import ReactHaskell.Persistence
import Snap.Core
import Snap.Extras.CoreUtils
import Snap.Extras.JSON
import Snap.Snaplet.Heist
import Snap.Snaplet.PostgresqlSimple
index :: AppHandler ()
index = render "index"
getTodos :: AppHa... | sestrella/react-haskell | src/ReactHaskell/Handler.hs | mit | 846 | 0 | 9 | 137 | 249 | 125 | 124 | 31 | 1 |
module Network.CryptoNote.Types where
import Network.CryptoNote.Crypto.Types (PublicKey, SecretKey)
import Data.Binary (Binary (..))
-- cryptonote_core/cryptonote_basic.h
data AccountPublicAddress = AccountPublicAddress {
spendPubKey :: PublicKey,
viewPubKey :: PublicKey
} deriving (Eq, Show)
data KeyPair = ... | nvmd/hs-cryptonote | src/Network/CryptoNote/Types.hs | mit | 774 | 0 | 8 | 131 | 189 | 115 | 74 | 22 | 1 |
{-# LANGUAGE RankNTypes, FlexibleInstances, FlexibleContexts, MultiWayIf #-}
{-# LANGUAGE LiberalTypeSynonyms, ImpredicativeTypes #-}
import Haste
import Haste.DOM
import Haste.Events
import Haste.Foreign hiding (get)
import Haste.Graphics.Canvas
import Haste.Graphics.AnimationFrame
import Control.Applicative
import Co... | myuon/hakoniwa | src/main.hs | mit | 14,889 | 0 | 32 | 4,337 | 6,743 | 3,428 | 3,315 | -1 | -1 |
{-# LANGUAGE ForeignFunctionInterface, JavaScriptFFI, UnliftedFFITypes,
GHCForeignImportPrim, DeriveDataTypeable, GHCForeignImportPrim #-}
module GHCJS.Foreign.Callback
( Callback
, OnBlocked(..)
, releaseCallback
-- * asynchronous callbacks
, asyncCallback
, asyncCallback1
, ... | ghcjs/ghcjs-base | GHCJS/Foreign/Callback.hs | mit | 7,041 | 21 | 16 | 1,792 | 1,222 | 638 | 584 | 83 | 1 |
module Timeline.Parser
( parseGraphs
) where
import Data.Text (Text)
import qualified Data.Text as T
import Text.Megaparsec
import Text.Megaparsec.Text
import Timeline.Parser.Aggregate
import Timeline.Parser.Graph
import Timeline.Parser.Internal
impor... | joshuaclayton/timeline | src/Timeline/Parser.hs | mit | 1,513 | 0 | 13 | 333 | 420 | 221 | 199 | 33 | 3 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.HTMLDivElement
(js_setAlign, setAlign, js_getAlign, getAlign, HTMLDivElement,
castToHTMLDivElement, gTypeHTMLDivElement)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/HTMLDivElement.hs | mit | 1,804 | 14 | 11 | 235 | 474 | 288 | 186 | 30 | 1 |
-----------------------------------------------------------------------------
-- $Id: HsPretty.hs,v 1.10 2001/12/17 03:38:54 bjpop Exp $
--
-- (c) The GHC Team, Noel Winstanley 1997-2000
--
-- Pretty printer for Haskell.
--
-----------------------------------------------------------------------------
module FrontEnd.... | m-alvarez/jhc | src/FrontEnd/HsPretty.hs | mit | 26,684 | 208 | 18 | 5,785 | 9,633 | 4,819 | 4,814 | -1 | -1 |
{-# htermination fmap :: Functor f => (a -> b) -> (f a -> f b) #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_fmap_1.hs | mit | 67 | 0 | 2 | 17 | 3 | 2 | 1 | 1 | 0 |
module Spelling (TrainingDict, nWords, correct) where
import qualified Data.ByteString.Char8 as B
import Data.Char (isAlpha, toLower)
import Data.List (foldl', maximumBy)
import qualified Data.Map.Strict as M
import qualified... | MarcoSero/Norvigs-Spelling-Corrector | src/Spelling.hs | mit | 2,555 | 0 | 13 | 685 | 938 | 510 | 428 | 53 | 2 |
module PPL2.Pretty.AProg where
import PPL2.Prelude
import PPL2.VM.Types (AProg, ACode, AInstr)
import PPL2.Pretty.Instr (prettyInstr, fillLeft)
import PPL2.Pretty.MProg (prettyData)
import PPL2.System.Types (MonadCompile)
-- ----------------------------------------
prettyAProg :: (Show v) => (ACode, [v]) -> Stri... | UweSchmidt/ppl2 | src/PPL2/Pretty/AProg.hs | mit | 849 | 0 | 8 | 181 | 241 | 142 | 99 | 29 | 1 |
module FullSubsetsSpec (spec) where
import Test.Hspec
import DecisionTrees.Utils
import qualified Data.Set as Set
spec :: Spec
spec = describe "DecisionTrees.Utils.fullSubsets" $
it "should return a set of possible set splittings" $ do
example $ fullSubsets (Set.fromList [1..2]) `shouldBe` Set.fr... | fehu/min-dat--decision-trees | test/FullSubsetsSpec.hs | mit | 1,928 | 0 | 14 | 622 | 723 | 384 | 339 | 29 | 1 |
module Control.Concurrent.Actor.Tests where
import Control.Concurrent.Actor hiding ( receive, spawnReceive )
import Control.Concurrent.Actor.Debug
-- -----------------------------------------------------------------------------
-- * @receive@ is non busy
testReceive1 :: IO ()
testReceive1 = do
act <- spawnReceive... | treep/hactors | Control/Concurrent/Actor/Tests.hs | mit | 1,141 | 0 | 14 | 208 | 216 | 119 | 97 | 21 | 2 |
module Main.Command.Help ( command ) where
import System.Environment ( getProgName )
import System.IO
import Text.Printf ( printf )
import Main.Command as Cmd
command :: [Cmd.Command] -> Cmd.Command
command cs = Cmd.Command (thisAction cs) "help" "Show usage ... | rjw57/cloudsync | cs/Main/Command/Help.hs | mit | 1,763 | 0 | 12 | 443 | 497 | 253 | 244 | 36 | 3 |
module Tokenize
( tokenizeExpr )
where
import Data.Char (isDigit, isSeparator)
type Tokens = [String]
operators :: String
operators = "+-*/()"
pushIntIfNecessary :: (Tokens, String) -> Tokens
pushIntIfNecessary (tokens, "") = tokens
pushIntIfNecessary (tokens, int) = int:tokens
traverseExpr :: (Tokens, String) -> ... | DanielBrookRoberge/learning-calculator | haskell/Tokenize.hs | mit | 731 | 0 | 10 | 119 | 281 | 158 | 123 | 19 | 1 |
import qualified SRC.Log as Log
main = undefined
-- logging boilerplate
filename = "Main.hs"
fatal :: Show a => String -> a -> b
fatal msg line = Log.reportFatal filename msg line
fixme, bug, err :: Show a => a -> b
fixme = fatal L.fixMe
bug = fatal L.bug
err = fatal L.err
| Fornost461/drafts-and-stuff | Haskell/samples/Template/SRC/Main.hs | cc0-1.0 | 280 | 6 | 7 | 60 | 129 | 60 | 69 | 9 | 1 |
module Main where
import System.Environment(getArgs)
import Control.Monad
import Data.Char (digitToInt)
type Aromatic = [(Int,Int)]
evalAromatic :: Aromatic -> Int
evalAromatic [] = 0
evalAromatic ((v1,b1):xs) =
let sign = case xs of
((_,b2):_) | b1 < b2 -> -1
... | cryptica/CodeEval | Challenges/150_RomanAndArabic/main.hs | gpl-3.0 | 949 | 0 | 15 | 373 | 336 | 177 | 159 | 29 | 7 |
module Portage.EMeta
( EMeta(..)
, findExistingMeta
) where
import Control.Monad
import Data.Char (isSpace)
import qualified Data.List as L
import System.Directory (doesDirectoryExist, getDirectoryContents)
import System.FilePath ((</>))
import Text.Printf
-- tries to extract value of variable in 'var="val"' f... | Heather/hackport | Portage/EMeta.hs | gpl-3.0 | 3,998 | 0 | 15 | 1,285 | 877 | 454 | 423 | 63 | 5 |
module Tests.GADTTyped where
import QHaskell.MyPrelude
import QHaskell.Expression.GADTTyped
import QHaskell.Variable.Scoped
import qualified QHaskell.Type.ADT as TA
import qualified QHaskell.Expression.ADTValue as V
import qualified QHaskell.Nat.ADT as NA
import QHaskell.Environment.Scoped
import QHaskell.Conversion
... | shayan-najd/QHaskell | Tests/GADTTyped.hs | gpl-3.0 | 1,272 | 0 | 18 | 325 | 549 | 295 | 254 | -1 | -1 |
module DoubleAuction.Init (
initDoubleAuction
) where
import DoubleAuction.Model
import DoubleAuction.Auctioneer
import DoubleAuction.Trader
import FRP.FrABS
import FRP.Yampa
import System.Random
import Control.Monad.Random
initDoubleAuction :: Int -> IO ([DAAgentDef], DAEnvironment)
initDoubleAuction n =
... | thalerjonathan/phd | coding/libraries/chimera/examples/ABS/DoubleAuction/Init.hs | gpl-3.0 | 1,897 | 0 | 14 | 560 | 461 | 251 | 210 | 51 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( getApplicationDev
, appMain
, develMain
, makeFoundation
, makeLogWare
-- * for DevelMain
, getApplicationRepl
, shutdownApp
-- * for GHCI
, handler
, db
) where
import Control.Monad.Logger (liftL... | cblp/tasknight-dashboard | frontend/Application.hs | gpl-3.0 | 6,975 | 0 | 13 | 1,786 | 1,076 | 583 | 493 | -1 | -1 |
{-
This file is part of the Haskell Term Rewriting Library.
The Haskell Term Rewriting Library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later... | mzini/termlib | Termlib/Term/Parser.hs | gpl-3.0 | 4,292 | 0 | 13 | 1,148 | 1,074 | 566 | 508 | 68 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-mirror/gen/Network/Google/Resource/Mirror/Timeline/Delete.hs | mpl-2.0 | 2,557 | 0 | 12 | 577 | 306 | 188 | 118 | 46 | 1 |
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
... | kim/kafka-protocol | src/Network/Kafka/Protocol/Offset.hs | mpl-2.0 | 1,970 | 0 | 7 | 372 | 339 | 207 | 132 | 51 | 1 |
{-# LANGUAGE Rank2Types, TypeOperators, FlexibleContexts, TypeFamilies
, TypeSynonymInstances, FlexibleInstances, UndecidableInstances
, MultiParamTypeClasses
#-}
{-# OPTIONS_GHC -Wall -fno-warn-orphans #-}
----------------------------------------------------------------------
-- |
-- Module ... | conal/shady-graphics | src/Shady/ParamSurf.hs | agpl-3.0 | 8,241 | 0 | 12 | 1,934 | 2,676 | 1,495 | 1,181 | 131 | 1 |
import System.Plugins
import API
src = "../Plugin.hs"
wrap = "../Wrapper.hs"
apipath = "../api"
main = do status <- make src ["-i"++apipath]
case status of
MakeSuccess _ _ -> f
MakeFailure e -> mapM_ putStrLn e
where f = do v <- pdynload "../Plugin.o" ["../api"] [... | Changaco/haskell-plugins | testsuite/pdynload/poly1/prog/Main.hs | lgpl-2.1 | 508 | 4 | 14 | 183 | 179 | 81 | 98 | 13 | 3 |
module BSDF (BSDF (Blinn, Lambertian), at, sample, add, scale, (&*), (&+)) where
import Vectors
import DifferentialGeometry
data BSDF =
Lambertian |
Blinn Float |
Scaled Spectrum BSDF |
Composite [BSDF]
at :: BSDF -> DifferentialGeometry -> Vec3 -> Vec3 -> Spectrum
at bsdf dg i o = locAt bsdf (worldToLoc i) ... | pstiasny/mgr | BSDF.hs | lgpl-3.0 | 2,127 | 0 | 17 | 722 | 1,004 | 524 | 480 | 56 | 4 |
module Numerical.SLEPc.TestMain where
import Numerical.SLEPc.Raw.PutGet
import Numerical.SLEPc.Raw.Types
t1' = withMatCreateSeqAIJVarNZPR cw 3 3 [1,1,1] $ \pm -> do
let m = petscMatrixMat pm
matNewNZallocErrorOff m
matSetup m
matSetValuesSafe pm [0,1,2] [0,1,2] (replicate 3 pi) InsertValues
matAssembly m
... | ocramz/slepc-hs | src/Numerical/SLEPc/TestMain.hs | lgpl-3.0 | 1,292 | 0 | 12 | 263 | 467 | 248 | 219 | 31 | 1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Haddock.Utils
-- Copyright : (c) The University of Glasgow 2001-2002,
-- Simon Marlow 2003-2006,
-- David Waern 2006-2009
-- License : BSD-like
--
-- M... | randen/haddock | haddock-api/src/Haddock/Utils.hs | bsd-2-clause | 18,236 | 0 | 22 | 4,046 | 4,567 | 2,440 | 2,127 | 290 | 5 |
-- |
-- Module : Text.Megaparsec.Char
-- Copyright : © 2015 Megaparsec contributors
-- © 2007 Paolo Martini
-- © 1999–2001 Daan Leijen
-- License : BSD3
--
-- Maintainer : Mark Karpov <markkarpov@opmbx.org>
-- Stability : experimental
-- Portability : portable
--
-- Com... | omefire/megaparsec | Text/Megaparsec/Char.hs | bsd-2-clause | 10,984 | 0 | 11 | 2,342 | 2,078 | 1,158 | 920 | -1 | -1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE BangPatterns, CPP, ForeignFunctionInterface,
ScopedTypeVariables #-}
-- |
-- Module : Criterion.Measurement
-- Copyright : (c) 2009-2014 Bryan O'Sullivan
--
-- License : BSD-style
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portability :... | iu-parfunc/criterion | Criterion/Measurement.hs | bsd-2-clause | 7,086 | 0 | 21 | 1,963 | 1,540 | 845 | 695 | 126 | 3 |
-- Vectorise a modules type and class declarations.
--
-- This produces new type constructors and family instances top be included in the module toplevel
-- as well as bindings for worker functions, dfuns, and the like.
module Vectorise.Type.Env (
vectTypeEnv,
) where
#include "HsVersions.h"
import Vectorise.En... | ilyasergey/GHC-XAppFix | compiler/vectorise/Vectorise/Type/Env.hs | bsd-3-clause | 20,722 | 0 | 19 | 6,473 | 2,507 | 1,352 | 1,155 | 194 | 2 |
-- these bindings were derived from the `lzma-enumerator` package
#include <stdio.h>
#include <string.h>
#include <bindings.dsl.h>
#include <lzma.h>
module LibLzma where
#strict_import
-- lzma_ret
#integral_t lzma_ret
#num LZMA_OK
#num LZMA_STREAM_END
#num LZMA_NO_CHECK
#num LZMA_UNSUPPORTED_CHECK
#num LZMA_GET_CH... | hvr/lzma-streams | src/foo.hs | bsd-3-clause | 2,542 | 11 | 10 | 353 | 336 | 188 | 148 | -1 | -1 |
{-# LANGUAGE CPP #-}
-- Module: Blaze.Text.Double
-- Copyright: (c) 2011 MailRank, Inc.
-- License: BSD3
-- Maintainer: Bryan O'Sullivan <bos@serpentine.com>
-- Stability: experimental
-- Portability: portable
--
-- Efficiently serialize a Double as a lazy 'L.ByteString'.
module Blaze.Text.Double
(
... | bos/blaze-textual | Blaze/Text/Double.hs | bsd-3-clause | 654 | 0 | 4 | 116 | 34 | 27 | 7 | 11 | 1 |
module Level
( fillVoid
, loadLevel
) where
import Data.Array.IArray
import Types
import Utils
chrToBlock :: Char -> Block
chrToBlock 'X' = Wall
chrToBlock _ = Empty
loadLevel :: [String] -> [(Char, Coords -> Actor ())] -> (Level, [Actor ()])
loadLevel input actorMap =
let level = fillVoid $ parseLeve... | bjornars/HaskellGame | src/Level.hs | bsd-3-clause | 2,677 | 0 | 13 | 698 | 1,112 | 599 | 513 | 49 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Y2016.Day22 (answer1, answer2) where
import Control.Monad
import Control.Monad.Loops as Loops
import GHC.Word
import Data.Functor
import Data.Array as Arr
import Data.Void
import qualified Data.Set as Set
import qualified Data.Map.Strict as Map
import Text.Megaparsec
import... | geekingfrog/advent-of-code | src/Y2016/Day22.hs | bsd-3-clause | 3,331 | 0 | 16 | 905 | 1,177 | 626 | 551 | 98 | 3 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}
-- | Con... | luigy/stack | src/Stack/Build/ConstructPlan.hs | bsd-3-clause | 28,264 | 0 | 31 | 10,413 | 6,739 | 3,384 | 3,355 | 593 | 11 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
module Acc.Lift where
import Data.Array.Accelerate
lift2A
:: (Arrays a, Arrays b)
=> (Acc a, Acc b)
-> Acc (a,b)
lift2A = lift
lift3A
:: (Arrays a, Arrays b, Arrays c)
=> (Acc a, Acc b, Acc c)
-> Acc (a... | cpdurham/accelerate-camera-sandbox | src/Acc/Lift.hs | bsd-3-clause | 3,250 | 0 | 15 | 982 | 2,114 | 1,122 | 992 | 127 | 1 |
{-# LANGUAGE ExtendedDefaultRules #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wall #-}
-- Metric structure
module Tower.Metric (
-- * Metric
BoundedField(..)
, infinity
, neginfinity
, Metric(..)
, Normed(..)
, Signed(..)
,... | tonyday567/tower | src/Tower/Metric.hs | bsd-3-clause | 3,780 | 0 | 10 | 923 | 1,438 | 786 | 652 | -1 | -1 |
module AERN2.Linear.Matrix.Type where
import qualified Prelude as P
import MixedTypesNumPrelude
import qualified Numeric.CollectErrors as CN
import AERN2.Linear.Vector.Type (Vector, (!))
import qualified AERN2.Linear.Vector.Type as V
import qualified Data.List as List
-- import Data.Maybe
-- import Debug.Trace
impor... | michalkonecny/aern2 | aern2-mfun/src/AERN2/Linear/Matrix/Type.hs | bsd-3-clause | 3,871 | 0 | 14 | 1,093 | 1,762 | 912 | 850 | -1 | -1 |
-- |
-- Module : Git.FastExport.Filter
-- Maintainer : zohar@kelrich.com
--
-- A collection of filters for git
module Git.FastExport.Filter where
import Git.FastExport.Types
import qualified Data.ByteString as B
import Data.List
import qualified Data.Trie as T
splitBranches :: [(Path, Branch)] -> CmdFilter
splitBranch... | lumimies/git-fastexport-filter | src/Git/FastExport/Filter.hs | bsd-3-clause | 1,080 | 37 | 11 | 191 | 397 | 234 | 163 | 22 | 3 |
{-|
This module provides a Template Haskell function for automatically generating
reified typeclass dictionaries for use with "Control.Monad.TestFixture".
These generated dictionaries can be used with functions like
'Control.Monad.TestFixture.unTestFixture' and
'Control.Monad.TestFixture.logTestFixture' to qu... | cjdev/test-fixture | src/Control/Monad/TestFixture/TH.hs | bsd-3-clause | 3,878 | 0 | 5 | 838 | 58 | 40 | 18 | 7 | 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 #-}
{-# LANGUAGE LambdaCase #-}
module Duckling.Quantity.P... | facebookincubator/duckling | Duckling/Quantity/PT/Rules.hs | bsd-3-clause | 2,436 | 0 | 19 | 541 | 665 | 403 | 262 | 63 | 2 |
{-# LANGUAGE CPP #-}
module Gidl.Backend.Haskell.Interface where
import Data.Monoid
import Data.List (intercalate, nub)
import Data.Char (toUpper)
import Gidl.Types hiding (typeName)
import Gidl.Interface
import Gidl.Schema
import Gidl.Backend.Haskell.Types
import Ivory.Artifact
#if MIN_VERSION_mainland_pretty(0,6,... | GaloisInc/gidl | src/Gidl/Backend/Haskell/Interface.hs | bsd-3-clause | 5,975 | 0 | 28 | 1,745 | 1,880 | 943 | 937 | 135 | 6 |
-- | Extra functions for optparse-applicative.
module Options.Applicative.Builder.Extra
(boolFlags
,boolFlagsNoDefault
,maybeBoolFlags
,enableDisableFlags
,enableDisableFlagsNoDefault
,extraHelpOption
,execExtraHelp
,textOption
,textArgument)
where
import Control.Monad (when)
import Options.Applic... | mathhun/stack | src/Options/Applicative/Builder/Extra.hs | bsd-3-clause | 4,788 | 0 | 21 | 1,243 | 1,161 | 604 | 557 | 84 | 3 |
{-# LANGUAGE PatternGuards #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Idris.Elab.Value(elabVal, elabValBind, elabDocTerms,
elabExec, elabREPL) where
import Idris.AbsSyntax
import Idris.ASTUtils
import Idris.DSL
import Idris.Error
import Idris.Delaborate
import Idris.Imports
impo... | bkoropoff/Idris-dev | src/Idris/Elab/Value.hs | bsd-3-clause | 4,932 | 0 | 19 | 1,354 | 1,505 | 797 | 708 | 104 | 4 |
module Problem29 where
import Data.List
main :: IO ()
main = print . length . nub $ [ a ^ b | a <- [2 .. 100], b <- [2 .. 100] ]
| adityagupta1089/Project-Euler-Haskell | src/problems/Problem29.hs | bsd-3-clause | 131 | 0 | 9 | 35 | 71 | 40 | 31 | 4 | 1 |
------------------------------------------------------------------------------
-- |
-- Module : Data.TokyoDystopia
-- Copyright : 8c6794b6 <8c6794b6@gmail.com>
-- License : BSD3
-- Maintainer : 8c6794b6
-- Stability : experimental
-- Portability : non-portable
--
-- Haskell binding for tokyodystopia full ... | 8c6794b6/tokyodystopia-haskell | Database/TokyoDystopia.hs | bsd-3-clause | 1,982 | 0 | 5 | 388 | 153 | 122 | 31 | 15 | 0 |
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Control.THEff
import Control.THEff.Writer
import Control.Monad(forM_)
import Data.Monoid
type IntAccum = Sum Int
mkEff "StrWriter" ''Writer ''String... | KolodeznyDiver/THEff | samples/SampleWriter.hs | bsd-3-clause | 708 | 0 | 14 | 207 | 203 | 105 | 98 | 21 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.