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 RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Passman.Engine.Conversions where
import Control.Error.Safe (assertErr)
import Data.Bits (shift)
import Data.Foldable (all)
import Data.Semigroup ... | chwthewke/passman-hs | src/Passman/Engine/Conversions.hs | bsd-3-clause | 3,136 | 0 | 12 | 721 | 848 | 449 | 399 | 64 | 1 |
{-# LANGUAGE Rank2Types, TemplateHaskell, BangPatterns, MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances, UndecidableInstances, ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module : Numeric.AD.Mode.Reverse
-- Copyright : (c) Edwar... | yairchu/ad | src/Numeric/AD/Mode/Reverse.hs | bsd-3-clause | 8,302 | 0 | 14 | 1,675 | 1,953 | 1,050 | 903 | 78 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
-}
{-# LANGUAGE CPP, DeriveDataTypeable, ScopedTypeVariables #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-} -- Note [Pass sensitive types]
... | gridaphobe/ghc | compiler/hsSyn/HsExpr.hs | bsd-3-clause | 84,578 | 0 | 20 | 23,689 | 14,557 | 7,668 | 6,889 | 968 | 10 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module Data.Default.Aux (Default(..)) where
import Data.Default
import Foreign.Ptr (Ptr, FunPtr, IntPtr, WordPtr, nullPtr, nullFunPtr,
ptrToIntPtr, ptrToWordPtr)
import Data.Bits (Bits, zeroBits)
instance Default (Ptr a) wh... | michaeljklein/CPlug | src/Data/Default/Aux.hs | bsd-3-clause | 588 | 0 | 7 | 111 | 158 | 91 | 67 | 17 | 0 |
module ParserTest where
import Test.Hspec
import qualified Parser as Parser
testParser = hspec $ do
describe "Parser" $ do
it "1. consumes head of lexemes when head of lexemes is identical to lookahead" $ do
Parser.match "sTag" ["sTag", "eTag"] `shouldBe` ["eTag"]
it "2. consumes head... | chris-bacon/HTML-LaTeX-Compiler | tests/ParserTest.hs | bsd-3-clause | 496 | 0 | 16 | 116 | 122 | 68 | 54 | 9 | 1 |
{-
Copyright (c) 2014-2015, Johan Nordlander, Jonas Duregård, Michał Pałka,
Patrik Jansson and Josef Svenningsson
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Re... | josefs/autosar | oldARSim/AR.hs | bsd-3-clause | 10,018 | 0 | 16 | 3,405 | 2,662 | 1,411 | 1,251 | 173 | 2 |
module Signal.Wavelet.List2Test where
import Test.HUnit (Assertion)
import Signal.Wavelet.List2
import Signal.Wavelet.List.Common (inv)
import Test.ArbitraryInstances (DwtInputList(..))
import Test.Data.Wavelet as DW
import Test.Utils ((=~), (@=~?))
testDwt :: ([Double], [Double], [Doubl... | jstolarek/lattice-structure-hs | tests/Signal/Wavelet/List2Test.hs | bsd-3-clause | 779 | 0 | 8 | 142 | 298 | 181 | 117 | 20 | 1 |
-- | NLP.WordNet.Prims provides primitive operations over the word net database.
-- The general scheme of things is to call 'initializeWordNet' to get a 'WordNetEnv'.
-- Once you have this, you can start querying. A query usually looks like (suppose
-- we want "Dog" as a Noun:
--
-- 'getIndexString' on "Dog". This wi... | pikajude/WordNet-ghc74 | NLP/WordNet/Prims.hs | bsd-3-clause | 13,742 | 0 | 26 | 4,294 | 3,747 | 1,909 | 1,838 | 241 | 11 |
module Main where
import SDL hiding (Event)
import SDL.Video.Renderer (Rectangle(..), drawRect, fillRect)
import SDL.Vect (Point(..))
import qualified SDL.Event as SDLEvent
import Linear (V4(..), V2(..))
import qualified Data.Set as Set
import qualified Data.Map.Strict as Map
import Data.Maybe (mapMaybe, fromMaybe)... | SPY/netwire-sandbox | app/Main.hs | bsd-3-clause | 3,669 | 1 | 13 | 758 | 1,341 | 708 | 633 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, TupleSections, Arrows, RankNTypes, ScopedTypeVariables #-}
module FRP.Yampa.Canvas.Virtual (reactimateVirtualSFinContext) where
import FRP.Yampa
import Data.Time.Clock
import Data.IORef
import Control.Concurrent.STM
import Graphics.Blank hiding (Event)
import qualified Graphics.Blank ... | ku-fpg/protocols | FRP/Yampa/Canvas/Virtual.hs | bsd-3-clause | 2,283 | 0 | 18 | 696 | 499 | 252 | 247 | 42 | 4 |
module Network.Orchid.Format.Xml (fXml) where
import Text.XML.Light.Output
import Data.FileStore (FileStore)
import Network.Orchid.Core.Format
import Text.Document.Document
fXml :: WikiFormat
fXml = WikiFormat "xml" "text/xml" xml
xml :: FileStore -> FilePath -> FilePath -> String -> IO Output
xml _ _ _ src = retur... | sebastiaanvisser/orchid | src/Network/Orchid/Format/Xml.hs | bsd-3-clause | 391 | 0 | 9 | 63 | 125 | 70 | 55 | 12 | 1 |
{-# OPTIONS_GHC -fno-warn-partial-type-signatures #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GADTs #-}
module Haskell.Ide.Engine.BasePlugin where
import Control.Monad
import Data.Aeson
impor... | JPMoresmau/haskell-ide-engine | src/Haskell/Ide/Engine/BasePlugin.hs | bsd-3-clause | 5,320 | 0 | 25 | 1,364 | 1,242 | 669 | 573 | 95 | 5 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Route
import Nix
import Conf
import Control.Monad.Error ()
import Control.Monad.IO.Class (liftIO)
import Data.ByteString.Lazy.Char8 (pack)
import Data.Default (def)
import Data.List (isPrefixOf)
import Network.HTTP.Types
import Network.Wai
import Network.Wa... | rickynils/nixrbd | Main.hs | bsd-3-clause | 2,169 | 0 | 16 | 417 | 686 | 348 | 338 | 53 | 5 |
{-# LANGUAGE GeneralizedNewtypeDeriving, StandaloneDeriving, DeriveDataTypeable #-}
{-# OPTIONS_GHC -Wall -Werror -fno-warn-orphans -cpp #-}
{- |
Module : $Header$
Description : Working with Shrimp M4 abstract syntax.
Copyright : (c) Galois, Inc.
Working with Shrimp M4 abstract syntax.
-}
module SCD.M4.Util whe... | GaloisInc/sk-dev-platform | libs/SCD/src/SCD/M4/Util.hs | bsd-3-clause | 1,608 | 0 | 12 | 317 | 466 | 255 | 211 | 35 | 3 |
-- 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. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
------------------... | rfranek/duckling | Duckling/Ranking/Classifiers/CS.hs | bsd-3-clause | 825 | 0 | 6 | 105 | 66 | 47 | 19 | 8 | 1 |
{-# LANGUAGE DeriveGeneric #-}
module Day11 (part1, part2, test1, testStartState, part1Solution,part2Solution) where
import Control.Arrow (second)
import Data.Foldable
import Data.Graph.AStar
import Data.Hashable
import qualified Data.HashSet as H
import Data.Li... | z0isch/aoc2016 | src/Day11.hs | bsd-3-clause | 5,992 | 0 | 20 | 1,163 | 3,051 | 1,648 | 1,403 | 87 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE PartialTypeSignatures #-}
module Omniscient.Server.Core where
import Control.Monad.Reader
import Control.Monad.Logger
import Control.Monad.Except
import Database.Persist.Sql
import Servant
type Omn... | bheklilr/omniscient | src/Omniscient/Server/Core.hs | bsd-3-clause | 634 | 0 | 9 | 110 | 156 | 87 | 69 | -1 | -1 |
{- |
Module : Main
Description : Test the PuffyTools journal functions
Copyright : 2014, Peter Harpending
License : BSD3
Maintainer : Peter Harpending <pharpend2@gmail.com>
Stability : experimental
Portability : Linux
-}
module Main where
import Data.Char
import Data.List
imp... | pharpend/puffytools | test/Test.hs | bsd-3-clause | 939 | 0 | 10 | 275 | 106 | 60 | 46 | 16 | 1 |
module Test.QuickCheck.Arbitrary
(
-- * Arbitrary and CoArbitrary classes
Arbitrary(..)
, CoArbitrary(..)
-- ** Helper functions for implementing arbitrary
, arbitrarySizedIntegral -- :: Num a => Gen a
, arbitraryBoundedIntegral -- :: (Bounded a, Integral a) => Gen a
, arbitrarySizedBo... | AlexBaranosky/QuickCheck | Test/QuickCheck/Arbitrary.hs | bsd-3-clause | 16,724 | 0 | 19 | 4,338 | 4,767 | 2,579 | 2,188 | 345 | 4 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS -fno-warn-unused-imports #-}
{-# OPTIONS -fno-warn-unused-binds #-}
{-# OPTIONS_HADDOCK hide #-}
-- |
-- Module : Data.Array.Accelerate.Debug
-- Copyright : [2008..2014] Manuel M T Chakravarty, Gabrie... | kumasento/accelerate | Data/Array/Accelerate/Debug.hs | bsd-3-clause | 10,874 | 0 | 15 | 2,940 | 2,395 | 1,313 | 1,082 | -1 | -1 |
{-# LANGUAGE GADTs, RecordWildCards, ScopedTypeVariables, FlexibleContexts, FlexibleInstances, DeriveDataTypeable, MultiParamTypeClasses, UndecidableInstances #-}
-- | Declaration of exceptions types
module YaLedger.Exceptions
(throwP,
InternalError (..), NoSuchRate (..),
InsufficientFunds (..), ReconciliationE... | portnov/yaledger | YaLedger/Exceptions.hs | bsd-3-clause | 4,623 | 0 | 15 | 878 | 1,156 | 597 | 559 | 115 | 1 |
module Data.TrieMap.WordMap.Tests where
import Data.TrieMap.WordMap ()
import Data.Word
import qualified Data.TrieMap.TrieKey.Tests as TrieKeyTests
import Test.QuickCheck
tests :: Property
tests = TrieKeyTests.tests "Data.TrieMap.WordMap" (0 :: Word) | lowasser/TrieMap | Data/TrieMap/WordMap/Tests.hs | bsd-3-clause | 254 | 0 | 6 | 28 | 60 | 39 | 21 | 7 | 1 |
{-# LANGUAGE CPP, DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.Py.Token
-- Copyright : (c) 2009 Bernie Pope
-- License : BSD-style
-- Maintainer : bjpop@csse.unimelb.edu.au
-- Stability : experimental
-- Portability : ghc
--... | codeq/language-py | src/Language/Py/Token.hs | bsd-3-clause | 18,123 | 0 | 12 | 5,559 | 3,683 | 2,026 | 1,657 | 553 | 95 |
{-# OPTIONS_HADDOCK hide, prune #-}
module Import.BootstrapUtil where
import Import
bootstrapSelectFieldList :: (Eq a, RenderMessage site FormMessage)
=> [(Text, a)] -> Field (HandlerT site IO) a
bootstrapSelectFieldList opts =
Field {
fieldParse = parse
, fieldView = viewF... | achirkin/qua-kit | apps/hs/qua-server/src/Import/BootstrapUtil.hs | mit | 1,325 | 0 | 14 | 405 | 264 | 146 | 118 | -1 | -1 |
--
-- Copyright (c) 2014 Citrix Systems, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This progra... | jean-edouard/manager | xenmgr/Vm/Config.hs | gpl-2.0 | 35,446 | 0 | 26 | 10,971 | 7,869 | 4,142 | 3,727 | 640 | 12 |
module HyLoRes.Core.SMP.Worker(
Worker, WorkerId, workerIdToInt,
WorkerChans(..),
runWorker,
param, params, channels, channel, workerId,
cycleCount, incCycleCount,
onClauseSet, onClauseSet_, fromClauseSet, onClausesIndex_,
getDirective, unsatDetected, postProcessNew
)
where
import Pr... | nevrenato/HyLoRes_Source | src/HyLoRes/Core/SMP/Worker.hs | gpl-2.0 | 11,625 | 1 | 23 | 4,231 | 2,926 | 1,550 | 1,376 | 214 | 3 |
module ExprDoLastNotExpr2 where
main = do let x = 0 | roberth/uu-helium | test/staticerrors/ExprDoLastNotExpr2.hs | gpl-3.0 | 52 | 0 | 9 | 10 | 18 | 10 | 8 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
-- |Template Haskell preprocessing
module CO4.Frontend.THPreprocess
( preprocessDecs, noSignatureExpression, noSignaturePattern, noSignatureDeclarations)
where
import Control.Monad (liftM)
import Data.List (foldl')
import qualified Data.Map as M
import D... | apunktbau/co4 | src/CO4/Frontend/THPreprocess.hs | gpl-3.0 | 8,105 | 0 | 17 | 2,106 | 2,604 | 1,309 | 1,295 | 167 | 6 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
module CO4.Algorithms.HigherOrderInstantiation
(hoInstantiation)
where
import Control.Monad.Reader
import Control.Monad.State.Strict hiding (State)
import qualified Data.Map as M
import Data.List (nub,partition,(\\)... | apunktbau/co4 | src/CO4/Algorithms/HigherOrderInstantiation.hs | gpl-3.0 | 6,669 | 0 | 23 | 1,817 | 1,886 | 992 | 894 | 120 | 3 |
<?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="fr-FR">
<title>Plug-n-Hack | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref... | veggiespam/zap-extensions | addOns/plugnhack/src/main/javahelp/org/zaproxy/zap/extension/plugnhack/resources/help_fr_FR/helpset_fr_FR.hs | apache-2.0 | 978 | 80 | 68 | 159 | 421 | 213 | 208 | -1 | -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="tr-TR">
<title>SOAP Tarayıcısı | ZAP Uzantısı</title>
<maps>
<homeID>top</homeID>
<map... | veggiespam/zap-extensions | addOns/soap/src/main/javahelp/org/zaproxy/zap/extension/soap/resources/help_tr_TR/helpset_tr_TR.hs | apache-2.0 | 983 | 80 | 66 | 160 | 428 | 216 | 212 | -1 | -1 |
module Propellor.Property.OS (
cleanInstallOnce,
Confirmation(..),
preserveNetwork,
preserveResolvConf,
preserveRootSshAuthorized,
oldOSRemoved,
) where
import Propellor
import qualified Propellor.Property.Debootstrap as Debootstrap
import qualified Propellor.Property.Ssh as Ssh
import qualified Propellor.Proper... | shosti/propellor | src/Propellor/Property/OS.hs | bsd-2-clause | 8,501 | 79 | 20 | 1,583 | 1,637 | 881 | 756 | 126 | 3 |
-- |
-- Module : Data.Packer.Unsafe
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : unknown
--
-- Access to lower primitive that allow to use Packing and Unpacking,
-- on mmap type of memory. Potentially unsafe, as it can't check if
-- ... | erikd/hs-packer | Data/Packer/Unsafe.hs | bsd-2-clause | 2,120 | 0 | 13 | 542 | 345 | 193 | 152 | 29 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, RankNTypes
, MagicHash
, UnboxedTuples
, ScopedTypeVariables
#-}
{-# OPTIONS_GHC -Wno-deprecations #-}
-- kludge for the Control.Concurrent.QSem, Control.Concurrent.QSemN
-- and Control.Concurrent.SampleVar imports.
--------... | rahulmutt/ghcvm | libraries/base/Control/Concurrent.hs | bsd-3-clause | 22,020 | 91 | 12 | 4,957 | 1,230 | 724 | 506 | -1 | -1 |
{-# LANGUAGE ForeignFunctionInterface, EmptyDataDecls, ScopedTypeVariables, DeriveDataTypeable, GADTs #-}
module CommonFFI where
import Prelude hiding (catch)
import qualified Data.ByteString as S
import qualified Data.ByteString.Unsafe as S
import qualified Data.ByteString.Lazy as L
import Foreign.Marshal.Utils
impo... | diflying/logitext | CommonFFI.hs | bsd-3-clause | 2,463 | 0 | 14 | 513 | 491 | 271 | 220 | -1 | -1 |
{- |
Module : $Header$
Description : Import data generated by hol2hets into a DG
Copyright : (c) Jonathan von Schroeder, DFKI GmbH 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : jonathan.von_schroeder@dfki.de
Stability : experimental
Portability : portable
-}
module Isabelle.Isa2DG... | nevrenato/HetsAlloy | Isabelle/Isa2DG.hs | gpl-2.0 | 5,569 | 0 | 25 | 1,739 | 1,720 | 885 | 835 | 127 | 12 |
-- Set up the data structures provided by 'Vectorise.Builtins'.
module Vectorise.Builtins.Initialise (
-- * Initialisation
initBuiltins, initBuiltinVars
) where
import GhcPrelude
import Vectorise.Builtins.Base
import BasicTypes
import TysPrim
import DsMonad
import TysWiredIn
import DataCon
import TyCon
import C... | shlevy/ghc | compiler/vectorise/Vectorise/Builtins/Initialise.hs | bsd-3-clause | 10,351 | 1 | 17 | 3,306 | 2,269 | 1,204 | 1,065 | 164 | 2 |
{-# language OverloadedStrings #-}
{-# language PackageImports #-}
module Main where
--------------------------------------------------------------------------------
-- Imports
--------------------------------------------------------------------------------
import "base" System.Environment ( getArgs )
import "base" ... | ngzax/urbit | pkg/hs/terminal-progress-bar/test/test.hs | mit | 4,236 | 0 | 16 | 1,021 | 1,207 | 620 | 587 | 73 | 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="ru-RU">
<title>Интерфейсный сканер | Расширение ZAP </title>
<maps>
<homeID>top</homeID>
... | thc202/zap-extensions | addOns/frontendscanner/src/main/javahelp/org/zaproxy/zap/extension/frontendscanner/resources/help_ru_RU/helpset_ru_RU.hs | apache-2.0 | 1,042 | 78 | 66 | 160 | 519 | 260 | 259 | -1 | -1 |
{- | The public face of Template Haskell
For other documentation, refer to:
<http://www.haskell.org/haskellwiki/Template_Haskell>
-}
module Language.Haskell.TH(
-- * The monad and its operations
Q,
runQ,
-- ** Administration: errors, locations and IO
reportError, -... | AlexanderPankiv/ghc | libraries/template-haskell/Language/Haskell/TH.hs | bsd-3-clause | 5,474 | 0 | 5 | 1,564 | 1,056 | 739 | 317 | 87 | 0 |
<?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="id-ID">
<title>Kembali</title>
<maps>
<homeID>top</homeID>
<mapref location="map.jhm"/>... | thc202/zap-extensions | addOns/revisit/src/main/javahelp/org/zaproxy/zap/extension/revisit/resources/help_id_ID/helpset_id_ID.hs | apache-2.0 | 951 | 77 | 66 | 155 | 404 | 205 | 199 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE NondecreasingIndentation #-}
{-# LANGUAGE PatternGuards #-}
import Test.Cabal.Workdir
import Test.Cabal.Script
import Test.Cabal.Server
import Test.Cabal.Monad
import Distribution.Verbosity (normal, verbose, Verbosity)
import Distribution.Simple.Configure (getP... | mydaum/cabal | cabal-testsuite/main/cabal-tests.hs | bsd-3-clause | 12,985 | 0 | 40 | 5,513 | 2,435 | 1,203 | 1,232 | 218 | 10 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE NondecreasingIndentation #-}
-- | A GHC run-server, which supports running multiple GHC scripts
-- without having to restart from scratch.
module Test.Cabal.Server (
Server,
serverProcessId,
ServerLogMsg(..),
ServerLogMsgType(..),
... | mydaum/cabal | cabal-testsuite/Test/Cabal/Server.hs | bsd-3-clause | 17,705 | 0 | 25 | 4,781 | 3,193 | 1,651 | 1,542 | 245 | 5 |
{-
Type name: qualified names for register types
Part of Mackerel: a strawman device definition DSL for Barrelfish
Copyright (c) 2011, ETH Zurich.
All rights reserved.
This file is distributed under the terms in the attached LICENSE file.
If you do not find this file, copies can be found by writ... | daleooo/barrelfish | tools/mackerel/TypeName.hs | mit | 1,384 | 0 | 9 | 293 | 304 | 158 | 146 | 23 | 1 |
{-
In order to test Hackage, we need to be able to send check for confirmation
emails. In this module we provide a simple interface to do that.
Currently we use mailinator, but the API is designed to be agnostic to the
specific mail service used.
-}
module MailUtils (
Email(..)
, testEmailAddress
, ch... | ocharles/hackage-server | tests/MailUtils.hs | bsd-3-clause | 2,821 | 0 | 17 | 717 | 744 | 383 | 361 | 62 | 2 |
module GenUtils (
trace,
assocMaybe, assocMaybeErr,
arrElem,
arrCond,
memoise,
Maybe(..),
MaybeErr(..),
mapMaybe,
mapMaybeFail,
maybeToBool,
maybeToObj,
maybeMap,
joinMaybe,
mkClosure,
foldb,
mapAccumL,
... | ezyang/ghc | testsuite/tests/programs/andy_cherry/GenUtils.hs | bsd-3-clause | 6,771 | 0 | 17 | 2,313 | 2,740 | 1,465 | 1,275 | 149 | 3 |
{-# LANGUAGE RecordWildCards #-}
module T9436 where
data T = T { x :: Int }
f :: T -> Int
f (T' { .. }) = x + 1
| ezyang/ghc | testsuite/tests/rename/should_fail/T9436.hs | bsd-3-clause | 115 | 0 | 8 | 33 | 50 | 29 | 21 | 5 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE Strict #-}
-- | The most primitive ("core") aspects of the AST. Split out of
-- "Futhark.IR.Syntax" in order for
-- "Futhark.IR.Rep" to use these definitions... | HIPERFIT/futhark | src/Futhark/IR/Syntax/Core.hs | isc | 15,736 | 0 | 17 | 3,480 | 3,915 | 2,120 | 1,795 | 327 | 4 |
module WykopStream (
indexStream
, module WykopTypes
) where
import WykopTypes
import WykopUtils
indexStream :: Keys -> Maybe Int -> IO (Maybe [Entry])
indexStream k page = get k [] (mPageToGet page) "stream/index"
| mikusp/hwykop | WykopStream.hs | mit | 231 | 0 | 10 | 49 | 74 | 40 | 34 | 7 | 1 |
{-# htermination minFM :: FiniteMap Int b -> Maybe Int #-}
import FiniteMap
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/FiniteMap_minFM_5.hs | mit | 76 | 0 | 3 | 13 | 5 | 3 | 2 | 1 | 0 |
module Problem6 where
main :: IO ()
main = print $ squareSums [1..100] - sumSquares [1..100]
squareSums :: Integral n => [n] -> n
squareSums xs = (sum xs) ^ 2
sumSquares :: Integral n => [n] -> n
sumSquares xs = sum $ map (^2) xs
| DevJac/haskell-project-euler | src/Problem6.hs | mit | 236 | 0 | 8 | 53 | 120 | 63 | 57 | 7 | 1 |
module Robot
( Bearing(East,North,South,West)
, bearing
, coordinates
, mkRobot
, move
) where
data Bearing = North
| East
| South
| West
deriving (Eq, Show)
data Robot = Dummy
bearing :: Robot -> Bearing
bearing robot = error "You need to i... | exercism/xhaskell | exercises/practice/robot-simulator/src/Robot.hs | mit | 687 | 0 | 7 | 181 | 169 | 97 | 72 | 22 | 1 |
-- Экспортирование
-- http://www.haskell.org/onlinereport/haskell2010/haskellch5.html#x11-1000005.2
module Chapter5.Section52 where
-- exports → ( export1 , … , exportn [ , ] ) (n ≥ 0)
--
-- export → qvar
-- | qtycon [(..) | ( cname1 , … , cnamen )] (n ≥ 0)
-- | qtycls [(..) | ( var1 , … , varn )] ... | mrLSD/HaskellTutorials | src/Chapter5/Section52.hs | mit | 539 | 0 | 5 | 109 | 27 | 21 | 6 | 2 | 0 |
{-# LANGUAGE RebindableSyntax, OverloadedStrings, CPP, TypeOperators #-}
module Cochon.View where
import Prelude hiding ((>>), return)
import qualified Data.Foldable as Foldable
import Data.Monoid
import Data.String
import Data.Text (Text)
import qualified Data.Text as T
import Data.Void
import Lens.Family2
import ... | kwangkim/pigment | src-web/hs/Cochon/View.hs | mit | 5,329 | 0 | 17 | 1,209 | 1,440 | 759 | 681 | 114 | 3 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.SVGMaskElement
(js_getMaskUnits, getMaskUnits, js_getMaskContentUnits,
getMaskContentUnits, js_getX, getX, js_getY, getY, js_getWidth,
getWidth, js_getHeight, getHeight, SVGMaskElement,
... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/SVGMaskElement.hs | mit | 3,686 | 36 | 11 | 526 | 847 | 483 | 364 | 59 | 1 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.Storage
(key, key_, keyUnsafe, keyUnchecked, getItem, getItem_,
getItemUnsafe, getItemUnchecked, setItem,... | ghcjs/jsaddle-dom | src/JSDOM/Generated/Storage.hs | mit | 4,607 | 0 | 14 | 776 | 1,190 | 663 | 527 | -1 | -1 |
{-# LANGUAGE LambdaCase #-}
module Control.Monad.Evented where
import Control.Monad.IO.Class
import Control.Monad.Trans.Class
newtype EventT m b = EventT { runEventT :: m (Either b (EventT m b)) }
--------------------------------------------------------------------------------
-- Constructors
----... | schell/odin | src/Control/Monad/Evented.hs | mit | 2,453 | 0 | 12 | 544 | 826 | 412 | 414 | 47 | 4 |
{-# LANGUAGE
Rank2Types,
TypeFamilies
#-}
module TestInference where
import Data.AEq
import Numeric.Log
import Control.Monad.Bayes.Class
import Control.Monad.Bayes.Enumerator
import Control.Monad.Bayes.Sampler
import Control.Monad.Bayes.Population
import Control.Monad.Bayes.Inference.SMC
import Sprinkler
sprin... | adscib/monad-bayes | test/TestInference.hs | mit | 1,082 | 0 | 11 | 156 | 261 | 142 | 119 | 25 | 1 |
-- | Reexports all @Manager@ utilities.
module Control.TimeWarp.Manager
( module Control.TimeWarp.Manager.Job
) where
import Control.TimeWarp.Manager.Job
| serokell/time-warp | src/Control/TimeWarp/Manager.hs | mit | 180 | 0 | 5 | 41 | 25 | 18 | 7 | 3 | 0 |
{-# LANGUAGE OverloadedStrings #-}
import Data.List
import System.CPUTime
notWhole :: Double -> Bool
notWhole x = fromIntegral (round x) /= x
cat :: Double -> Double -> Double
cat l m | m < 0 = 3.1
| l == 0 = 3.1
| notWhole l = 3.1
| notWhole m = 3.1
| otherwise = read ... | dschalk/score3 | analysis_A.hs | mit | 6,109 | 0 | 13 | 2,726 | 2,973 | 1,527 | 1,446 | 122 | 1 |
--------------------------------------------------------------------
-- File Name: xmonad.hs
-- Purpose: Configure the Xmonad tiled window manager
-- Creation Date: Sat Jul 07 07:13:31 CDT 2016
-- Last Modified: Sun Jan 22 17:21:02 CST 2017
-- Created By: Ivan Guerra <Ivan.E.Guerra-1@ou.edu>
-----------------... | ivan-guerra/config_files | xmonad.hs | mit | 3,086 | 0 | 15 | 917 | 464 | 284 | 180 | 36 | 1 |
import System.IO
import Data.List
import Debug.Trace
enumerate = zip [0..]
discatenate :: [a] -> [[a]]
discatenate xs = map (\a -> [a]) xs
format :: (Int, Int) -> String
format (i, n) = "Case #" ++ (show (i + 1)) ++ ": " ++ (show n)
rsort :: (Ord a) => [a] -> [a]
rsort = reverse . sort
split :: [Int] -> Int -> [In... | davidrusu/Google-Code-Jam | 2015/qualifiers/B/brute.hs | mit | 1,663 | 0 | 15 | 450 | 843 | 463 | 380 | 43 | 2 |
--matchTypes.hs
module MatchTypes where
import Data.List (sort)
i :: Num a => a
i = 1
f :: RealFrac a => a
f = 1.0
freud :: Ord a => a -> a
freud x = x
freud' :: Int -> Int
freud' x = x
myX = 1 :: Int
sigmund :: Int -> Int
sigmund x = myX
sigmund' :: Int -> Int
sigmund' x = myX
jung :: [Int] -> Int
jung xs = ... | deciduously/Haskell-First-Principles-Exercises | 2-Defining and combining/6-Typeclasses/code/matchTypes.hs | mit | 491 | 0 | 7 | 125 | 246 | 132 | 114 | 23 | 1 |
{-|
Module : IREvaluator
Description : EBNF IR evaluation
Copyright : (c) chop-lang, 2015
License : MIT
Maintainer : carterhinsley@gmail.com
-}
module IREvaluator
( PTerminal
, PToken(..)
, PAST
, evaluate
, createEvaluator
) where
import Data.Text (Text(..))
import IRGenerator ( IRTerminal(..)
... | chop-lang/parsebnf | src/IREvaluator.hs | mit | 1,309 | 0 | 6 | 358 | 210 | 135 | 75 | 27 | 0 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module Main where
import Action
import Control.Applicative
import Control.Concurrent
import Control.Lens
import Control.Monad
import Control.Monad.IO.Class
import Control.Monad.State
import ... | mplamann/magic-spieler | src/SnapServer.hs | mit | 14,387 | 0 | 21 | 4,216 | 3,758 | 1,832 | 1,926 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE NoImplicitPrelude #-}
module Rx.Disposable
( emptyDisposable
, dispose
, disposeCount
, disposeErrorCount
, newDisposable
, ... | roman/Haskell-Reactive-Extensions | rx-disposable/src/Rx/Disposable.hs | mit | 7,151 | 0 | 24 | 1,571 | 1,660 | 865 | 795 | 170 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.AudioDestinationNode
(js_getMaxChannelCount, getMaxChannelCount, AudioDestinationNode,
castToAudioDestinationNode, gTypeAudioDestinationNode)
where
import Prelude ((.), (==), (>>=), return, I... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/AudioDestinationNode.hs | mit | 1,460 | 6 | 9 | 152 | 358 | 228 | 130 | 23 | 1 |
module Language.Binal.Util.TyKind where
import Control.Monad.State
import qualified Data.List as List
import qualified Data.HashMap.Strict as HashMap
import Language.Binal.Types
import qualified Language.Binal.Util.Gen as Gen
freeVariables :: TyKind -> [Variable]
freeVariables (VarTy i) = [i]
free... | pasberth/binal1 | Language/Binal/Util/TyKind.hs | mit | 5,038 | 36 | 20 | 1,205 | 2,234 | 1,121 | 1,113 | 125 | 7 |
{-# LANGUAGE RecordWildCards #-}
module Game.Graphics.Font
( FontText(..)
, Font, loadFont
, drawFontText
) where
import Graphics.Rendering.FTGL
import Game.Graphics.AffineTransform (AffineTransform, withTransformRasterGl)
data FontText = FontText
{ getFont :: Font
, getS... | caryoscelus/graphics | src/Game/Graphics/Font.hs | mit | 625 | 0 | 8 | 147 | 149 | 82 | 67 | 18 | 1 |
{-# LANGUAGE BangPatterns, ConstraintKinds, FlexibleContexts,
GeneralizedNewtypeDeriving, MultiParamTypeClasses,
StandaloneDeriving, TupleSections #-}
{- |
Module : Data.Graph.Unordered.Algorithms.Clustering
Description : Graph partitioning
Copyright : (c) Ivan Lazar Miljenovi... | ivan-m/unordered-graphs | src/Data/Graph/Unordered/Algorithms/Clustering.hs | mit | 8,702 | 0 | 17 | 2,685 | 3,031 | 1,611 | 1,420 | 141 | 1 |
-- | Exercises for chapter 3.
module Chapter03 (
xs0, xs1, xs2, xs3, t0, t1, twice, palindrome, double, pair, swap, second
) where
-- * Exercise 1
xs0 :: [Int]
xs0 = [0, 1]
-- Define the values below and give them types.
-- | TODO: define as @['a','b','c']@
xs1 = undefined
-- | TODO: define as @('a','b','c')@... | EindhovenHaskellMeetup/meetup | courses/programming-in-haskell/pih-exercises/src/Chapter03.hs | mit | 1,312 | 0 | 6 | 266 | 173 | 114 | 59 | 15 | 1 |
module CFDI.Types.ProductDescription where
import CFDI.Chainable
import CFDI.Types.Type
import Data.Text (Text, pack, unpack)
import Text.Regex (mkRegex)
import Text.Regex.Posix (matchTest)
newtype ProductDescription = ProductDescription Text deriving (Eq, Show)
instance Chainable ProductDescription whe... | yusent/cfdis | src/CFDI/Types/ProductDescription.hs | mit | 667 | 0 | 9 | 112 | 177 | 94 | 83 | 15 | 0 |
{-# LANGUAGE PackageImports, RecordWildCards #-}
module GameState where
import "GLFW-b" Graphics.UI.GLFW as GLFW
import Graphics.Gloss.Rendering
import Graphics.Gloss.Data.Color
import Graphics.Gloss.Data.Picture
import Control.Applicative
import qualified Data.List as L
import Math.Geometry.Grid.Hexagonal
import Mat... | joom/civ | src/GameState.hs | mit | 5,819 | 0 | 15 | 1,755 | 1,441 | 793 | 648 | 123 | 7 |
{-# LANGUAGE TypeOperators #-}
module AtomIndex where
import qualified Data.IntMap as IM
import qualified Data.Map as M
import Data.Functor
import Data.Strict.Tuple
import Types
import Arches
import Indices
type AtomIndex = (M.Map Atom Int :!: IM.IntMap (IM.IntMap (IM.IntMap Int)) :!: IM.IntMap Atom :!: Counter)
m... | nomeata/sat-britney | AtomIndex.hs | gpl-2.0 | 3,654 | 0 | 16 | 1,305 | 1,555 | 817 | 738 | 76 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE Der... | tamarin-prover/tamarin-prover | lib/theory/src/Theory/Model/Formula.hs | gpl-3.0 | 13,502 | 0 | 18 | 3,850 | 3,773 | 1,979 | 1,794 | 237 | 11 |
import Data.List
replaceChars :: Char -> Char -> Char -> Char
replaceChars whatC withC c = if c == whatC then withC else c
interestFields :: [String] -> [Int] -> [String]
interestFields s takeWhat = undefined
isR200 :: [String] -> Bool
isR200 s = (head s) == "R200"
processLine :: String -> String
proces... | graninas/Haskell-Algorithms | Materials/Haskell в реальном мире - Статья/parser 0.2.hs | gpl-3.0 | 666 | 0 | 11 | 143 | 264 | 138 | 126 | 16 | 2 |
module Main where
import Control.Parallel.Strategies
--import Y2015.R1A.A (solve, parse)
import Y2015.R1A.B (solve, parse)
-- import Y2015.R1A.C (solve, parse)
main :: IO ()
main = getContents >>=
putStr . unlines . showSolutions . parMap rdeepseq (show . solve) . parse . tail . lines
showSolutions :: [String... | joranvar/GoogleCodeJam | Main.hs | gpl-3.0 | 411 | 0 | 11 | 75 | 137 | 78 | 59 | 8 | 1 |
module Main where
import Control.Applicative
import Control.Arrow
import Data.List (splitAt, find)
import Data.Monoid ((<>))
import System.Random(randomRIO)
import Data.Function (on, (&))
-- | Define the main data structure
data Suit = Spade | Heart | Club | Diamond deriving (Eq, Ord, Enum, Show)
data Pip = Ace | Tw... | suzumiyasmith/KDJL | KDJL.hs | gpl-3.0 | 3,413 | 0 | 16 | 805 | 1,278 | 713 | 565 | 62 | 2 |
module Model where
import ClassyPrelude.Yesod
import Database.Persist.Quasi
import Yesod.Auth.HashDB (HashDBUser(..))
-- You can define all of your database entities in the entities file.
-- You can find more information on persistent and how to declare entities
-- at:
-- http://www.yesodweb.com/book/persistent/
shar... | Drezil/neat | Model.hs | gpl-3.0 | 549 | 0 | 8 | 81 | 97 | 55 | 42 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-games/gen/Network/Google/Resource/Games/Rooms/Get.hs | mpl-2.0 | 3,302 | 0 | 14 | 824 | 484 | 285 | 199 | 71 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/SendCapture.hs | mpl-2.0 | 7,181 | 0 | 23 | 1,684 | 958 | 558 | 400 | 152 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-games-configuration/gen/Network/Google/Resource/GamesConfiguration/AchievementConfigurations/Update.hs | mpl-2.0 | 5,738 | 0 | 18 | 1,285 | 782 | 455 | 327 | 119 | 1 |
func = ($)
where
{-# INLINE ($) #-}
($) = id
| lspitzner/brittany | data/Test40.hs | agpl-3.0 | 50 | 0 | 4 | 16 | 19 | 12 | 7 | 3 | 1 |
{- |
Module : $Header$
Description : The tempuhs server executable
Copyright : (c) plaimi 2014
License : AGPL-3
Maintainer : tempuhs@plaimi.net
-} module Main where
import Tempuhs.Server.CLI
(
cli,
)
main :: IO ()
-- | 'main' starts the server with options from the command line.
main = cli
| plaimi/tempuhs-server | src-exec/Main.hs | agpl-3.0 | 317 | 0 | 6 | 76 | 33 | 21 | 12 | 6 | 1 |
-- These are the tests for our api. The only real interesting part is the
-- 'main' function, were we specific that the test database is different
-- from the production database.
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# ... | cdepillabout/testing-code-that-accesses-db-in-haskell | with-db/testing-db/test/Test.hs | apache-2.0 | 4,579 | 0 | 17 | 1,069 | 843 | 463 | 380 | 73 | 1 |
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-
Copyright 2020 The CodeWorld Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this f... | google/codeworld | codeworld-base/src/Internal/Color.hs | apache-2.0 | 7,724 | 0 | 12 | 1,613 | 1,446 | 834 | 612 | 108 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
-- |Collections which support efficient bulk insertion.
module Data.Collections.BulkInsertable where
import qualified Data.Set as S
-- |The class of data structures to which can be appended.
class BulkInsertable a b where
bulkInsert :: a -> b -> b
instance Ord a => BulkInse... | jtapolczai/Hephaestos | Data/Collections/BulkInsertable.hs | apache-2.0 | 541 | 0 | 8 | 99 | 156 | 86 | 70 | 11 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
#include "version-compatibility-macros.h"
-- | Common symbols composed out of the ASCII subset of Unicode. For non-ASCII
-- symbols, see "Prettyprinter.Symbols.Unicode".
module Prettyprinter.Symbols.Ascii where
import Prettyprinter.Internal
-... | quchen/prettyprinter | prettyprinter/src/Prettyprinter/Symbols/Ascii.hs | bsd-2-clause | 2,232 | 0 | 6 | 508 | 531 | 299 | 232 | 54 | 1 |
{- This module is used to preprocess the AST before we
- actually use it -}
module DuckTest.AST.Preprocess (preprocess) where
import DuckTest.Internal.Common
import DuckTest.AST.Util
import DuckTest.AST.BinaryOperators
import qualified Data.Map as Map
dunderFunctions :: Map String String
dunderFunctions = Map.from... | jrahm/DuckTest | src/DuckTest/AST/Preprocess.hs | bsd-2-clause | 1,593 | 0 | 14 | 487 | 486 | 255 | 231 | 27 | 6 |
module Kis
( KisRequest(..)
, KisConfig(..)
, KisClient
, Kis(..)
, KisException(..)
, KisClock(..)
, KisRead(..)
, KisWrite(..)
, NotificationHandler(..)
, SqliteBackendType(..)
, constClock
, realTimeClock
, runClient
, runSingleClientSqlite
, runKis
, w... | lslah/kis-proto | src/Kis.hs | bsd-3-clause | 983 | 0 | 14 | 228 | 265 | 157 | 108 | 34 | 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.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
module Duckling.AmountOfMon... | facebookincubator/duckling | Duckling/AmountOfMoney/EN/TT/Rules.hs | bsd-3-clause | 1,819 | 0 | 17 | 390 | 452 | 264 | 188 | 51 | 2 |
-- |
-- Module: Control.Wire.Event
-- Copyright: (c) 2013 Ertugrul Soeylemez
-- License: BSD3
-- Maintainer: Ertugrul Soeylemez <es@ertes.de>
module Control.Wire.Event
( -- * Events
Event,
-- * Time-based
at,
never,
now,
periodic,
periodicList,
-- * Signal ... | Teaspot-Studio/netwire | Control/Wire/Event.hs | bsd-3-clause | 7,886 | 0 | 17 | 2,306 | 2,538 | 1,385 | 1,153 | 159 | 4 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE Rank2Types #-}
-----------------... | andrewthad/vinyl-vectors | src/Data/Vector/Vinyl/Default/Empty/Monomorphic.hs | bsd-3-clause | 48,286 | 0 | 13 | 10,516 | 11,257 | 6,037 | 5,220 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
module Main
where
import Control.Arrow as A
import GalFld.GalFld
import GalFld.More.SpecialPolys
{-import System.Random-}
import Data.List
import Debug.Trace
import Data.Maybe
import GalFld.Core.Polynomials.FFTTuple
{-import GalFld.Core.Polynomials.Conway-}
{---------------------------... | maximilianhuber/softwareProjekt | profiling/AlgProfiling.hs | bsd-3-clause | 5,861 | 0 | 22 | 1,630 | 1,569 | 934 | 635 | 66 | 1 |
module Internal.X86.Default where
import Foreign
import Foreign.C.Types
import Data.List (dropWhileEnd)
import Hapstone.Internal.Util
import Hapstone.Internal.X86
import Test.QuickCheck
import Test.QuickCheck.Instances
-- generators for our datatypes
instance Arbitrary X86Reg where
arbitrary = elements [minBo... | ibabushkin/hapstone | test/Internal/X86/Default.hs | bsd-3-clause | 1,915 | 0 | 20 | 419 | 517 | 278 | 239 | 45 | 0 |
{-# language CPP #-}
{-# language MultiParamTypeClasses #-}
#if __GLASGOW_HASKELL__ >= 800
{-# options_ghc -Wno-redundant-constraints #-}
#endif
module OpenCV.Internal.ImgProc.MiscImgTransform.ColorCodes where
import "base" Data.Int ( Int32 )
import "base" Data.Proxy ( Proxy(..) )
import "base" Data.Word
import "bas... | Cortlandd/haskell-opencv | src/OpenCV/Internal/ImgProc/MiscImgTransform/ColorCodes.hs | bsd-3-clause | 43,738 | 0 | 9 | 10,008 | 13,079 | 6,665 | 6,414 | -1 | -1 |
import Control.Monad
import Data.MessagePack
{-
main = do
sb <- newSimpleBuffer
pc <- newPacker sb
pack pc [(1,2),(2,3),(3::Int,4::Int)]
pack pc [4,5,6::Int]
pack pc "hoge"
bs <- simpleBufferData sb
print bs
up <- newUnpacker defaultInitialBufferSize
unpackerFeed up bs
let f = do
... | tanakh/hsmsgpack | test/Test.hs | bsd-3-clause | 587 | 0 | 11 | 176 | 100 | 55 | 45 | 7 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
module Ast.Error.Common (
module X
) where
import Ast.Error.Common.Kind as X
import Ast.Error.Common.Type as X
| dalaing/type-systems | src/Ast/Error/Common.hs | bsd-3-clause | 271 | 0 | 4 | 51 | 32 | 24 | 8 | 4 | 0 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE EmptyCase #-}
module Language.BCoPL.TypeLevel.MetaTheory.CompareNat where
import Language.BCoPL.TypeLevel.Peano
import Language.BCoPL.TypeLevel.CompareNat
-- | 定理 2.11 (CompareNat1: 0 < 1+a)
zeroLtSucc1 :: Nat' n -> LessThan1 Z... | nobsun/hs-bcopl | src/Language/BCoPL/TypeLevel/MetaTheory/CompareNat.hs | bsd-3-clause | 3,794 | 0 | 15 | 1,041 | 1,587 | 762 | 825 | 77 | 3 |
module Web.Plurk.Types ( Return (..)
, Message (..)
, User (..)
, Privacy (..)
, Gender (..)
, Relationship (..)
, Qualifier (..)
, ReadStat (..)
... | crabtw/hsplurk | Web/Plurk/Types.hs | bsd-3-clause | 15,627 | 0 | 14 | 6,558 | 3,641 | 2,052 | 1,589 | 360 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.