code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Lambia.Combi () where
import Prelude hiding (lookup)
import Lambia.Types hiding (simple,apply)
import qualified Lambia.Types as T (simple,apply)
simple :: Int -> Combi -> (Bool, Combi)
simple n l = s l n where
s :: Combi -> Int -> (Bool, Combi)
s e 0
| size e == size l = (True,e)
| size e < size l... | phi16/Lambia | src/Lambia/Combi.hs | gpl-3.0 | 1,201 | 0 | 12 | 342 | 785 | 417 | 368 | 38 | 4 |
module Fp05LamTest where
-- êîìïàêòíî çàïèñàííûå ïåðåìåííûå
[a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z] =
map (Var . (:[])) "abcdefghijklmnopqrstuvwxyz"
-- àïïëèêàöèÿ äâóõ àðãóìåíòîâ
app2 f x y = f :@ x :@ y
-- àïïëèêàöèÿ òð¸õ àðãóìåíòîâ
app3 f x y z = f :@ x :@ y :@ z
-- êîìáèíàòîðû
cI ... | ItsLastDay/academic_university_2016-2018 | subjects/Haskell/5/Fp05LamTest.hs | gpl-3.0 | 3,942 | 0 | 23 | 1,225 | 2,471 | 1,264 | 1,207 | 73 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/RegionBackendServices/Patch.hs | mpl-2.0 | 4,937 | 0 | 17 | 1,108 | 549 | 328 | 221 | 88 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | olorin/amazonka | amazonka-s3/gen/Network/AWS/S3/GetBucketLifecycleConfiguration.hs | mpl-2.0 | 4,357 | 0 | 14 | 822 | 544 | 325 | 219 | 69 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/PublicAdvertisedPrefixes/List.hs | mpl-2.0 | 7,509 | 0 | 19 | 1,580 | 756 | 452 | 304 | 112 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/TargetGrpcProxies/Get.hs | mpl-2.0 | 3,591 | 0 | 15 | 792 | 391 | 235 | 156 | 67 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/Instances/DeleteAccessConfig.hs | mpl-2.0 | 5,983 | 0 | 20 | 1,349 | 718 | 424 | 294 | 111 | 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/List.hs | mpl-2.0 | 3,885 | 0 | 15 | 951 | 589 | 343 | 246 | 82 | 1 |
module GLuaFixer.BadSequenceFinder (sequenceWarnings, checkFromString) where
import GLua.AG.Token
import GLua.PSParser
import GLuaFixer.LintMessage
import GLuaFixer.LintSettings
import Text.Parsec
import qualified GLua.PSLexer as PSL
-- | Satisfy for normal tokens
pTSatisfy :: (Token -> Bool) -> AParser MToken
pTSat... | FPtje/GLuaFixer | src/GLuaFixer/BadSequenceFinder.hs | lgpl-2.1 | 15,750 | 0 | 72 | 6,084 | 2,725 | 1,282 | 1,443 | 219 | 2 |
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances #-}
-- |
-- Module : Data.Extra
-- Copyright : (c) Alexandru Scvortov 2009
-- License : LGPL (see LICENSE file)
-- Maintainer : scvalex@gmail.com
--
module Data.Extra
( merge
, randint
, randdigit
, takeRando... | scvalex/ltorrent | Data/Extra.hs | lgpl-3.0 | 3,526 | 0 | 16 | 1,232 | 1,208 | 659 | 549 | 74 | 4 |
-- | Net module, defining functions to work on a neural network, which is a
-- list of list of neurons
module AI.HNN.Net where
import AI.HNN.Layer
import AI.HNN.Neuron
import Control.Arrow
import Data.List as L
import Data.Vector as V
check :: [[Neuron]] -> Bool
check nss = let l = Prelude.length nss in l > 1 && l... | alpmestan/HNN-0.1 | AI/HNN/Net.hs | lgpl-3.0 | 4,053 | 0 | 19 | 888 | 1,230 | 674 | 556 | 52 | 1 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
import Control.Applicative ((<$>))
import Data.Default (def)
import System.Environment
import Text.HTML.Scalpel
import qualified Network.HTTP.Client as HTTP
import qualified Network.HTTP.Client.TLS as HTTP
import qualified Network.HTTP.Types.Header as... | fimad/scalpel | examples/custom-user-agent/Main.hs | apache-2.0 | 1,314 | 0 | 15 | 250 | 303 | 167 | 136 | 28 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE ParallelListComp #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}
module Language.K3.Codegen.CPP.Collections where
import Data.Char
import Data.List (elemIndex, find, intercalate, partition, sort, isInfixOf)
import Language.K3.Core.Annotation
import Language.K... | DaMSL/K3 | src/Language/K3/Codegen/CPP/Collections.hs | apache-2.0 | 28,018 | 7 | 34 | 11,137 | 8,273 | 4,197 | 4,076 | 372 | 11 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QChildEvent.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 n... | uduki/hsQt | Qtc/Core/QChildEvent.hs | bsd-2-clause | 3,159 | 0 | 13 | 532 | 896 | 467 | 429 | -1 | -1 |
perm [] = []
perm (a : b : xs) = b : a : (perm xs)
tst = getLine >>= (putStrLn . perm)
main = do
tstr <- getLine
mapM_ (const tst) [1 .. (read tstr)]
| pbl64k/HackerRank-Contests | 2014-03-21-FP/StringOPermute/sop.accepted.hs | bsd-2-clause | 161 | 0 | 10 | 48 | 100 | 51 | 49 | 6 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Common(
thingFixer,
listingFixer,
fieldFixer,
accountFixer,
linkFixer,
commentFixer,
moreChildrenFixer,
userAgent,
addUAString,
resultToEither,
eitherToException) where
import Control.Exception
import Data.Aeson
... | MarkJr94/sleuth | Common.hs | bsd-3-clause | 2,130 | 0 | 13 | 454 | 525 | 285 | 240 | 58 | 3 |
{-# LANGUAGE PatternGuards #-}
-- This is a quick hack for uploading build reports to Hackage.
module Distribution.Client.BuildReports.Upload
( BuildLog
, BuildReportId
, uploadReports
, postBuildReport
, putBuildLog
) where
import Network.Browser
( BrowserAction, request, setAllowRed... | yihuang/cabal-install | Distribution/Client/BuildReports/Upload.hs | bsd-3-clause | 2,741 | 0 | 18 | 726 | 714 | 391 | 323 | 62 | 2 |
module Win32Path
( beginPath, closeFigure, endPath, fillPath, flattenPath
, pathToRegion, strokeAndFillPath, strokePath, widenPath
) where
import StdDIS
import GDITypes
import Win32Types
----------------------------------------------------------------
-- Paths
-----------------------------------------------------... | OS2World/DEV-UTIL-HUGS | libraries/win32/Win32Path.hs | bsd-3-clause | 3,334 | 39 | 13 | 499 | 1,010 | 558 | 452 | -1 | -1 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, GADTs, RankNTypes #-}
module UI.PadKontrol (PadKontrol, runPadKontrol, module UI.PadKontrol.Types, module Control.Monad.IO.Class) where
import qualified System.MIDI as MIDI
import UI.PadKontrol.Types
import Control.Applicative
import Control.Monad.Operational.Mini
... | fumieval/padKONTROL | UI/PadKontrol.hs | bsd-3-clause | 4,573 | 5 | 18 | 1,145 | 1,982 | 1,062 | 920 | 85 | 15 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- Determine which packages are already installed
module Stack.Build.Installed
( InstalledMap
, Installed (..)
, ... | martin-kolinek/stack | src/Stack/Build/Installed.hs | bsd-3-clause | 12,424 | 0 | 19 | 3,755 | 2,528 | 1,324 | 1,204 | 239 | 7 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
-- | Report page view.
module HL.V.Report where
import HL.V
import HL.V.Template
-- | Report view.
reportV :: Int -> FilePath -> Html -> FromBlaze App
reportV year _ inner =
template
[DocumentationR
,ReportHomeR year]
"Report"
(... | chrisdone/hl | src/HL/V/Report.hs | bsd-3-clause | 386 | 0 | 12 | 100 | 93 | 52 | 41 | 15 | 1 |
module Problem6Tests
( problem6Tests
) where
import Test.HUnit
import Problem6
testSumSquareDifference :: Test
testSumSquareDifference = TestCase $ do
assertEqual "(solutoin 1) difference for sums of sequences up to 10" 2640 (sumSquareDifference 10)
assertEqual "(solutoin 2) difference for sums of sequence... | candidtim/euler | test/Problem6Tests.hs | bsd-3-clause | 416 | 0 | 10 | 65 | 74 | 39 | 35 | 9 | 1 |
-- | Keeps some general functions, not related to compilers
module Toy.Util
( module M
, (>:)
) where
import Toy.Util.Bits as M
import Toy.Util.Error as M
import Toy.Util.Instances as M ()
import Toy.Util.Parsable as M
-- | Convenient alias for c... | Martoon-00/toy-compiler | src/Toy/Util.hs | bsd-3-clause | 384 | 0 | 7 | 131 | 90 | 63 | 27 | 10 | 1 |
{-
(c) The AQUA Project, Glasgow University, 1993-1998
\section[SimplUtils]{The simplifier utilities}
-}
{-# LANGUAGE CPP #-}
module SimplUtils (
-- Rebuilding
mkLam, mkCase, prepareAlts, tryEtaExpandRhs,
-- Inlining,
preInlineUnconditionally, postInlineUnconditionally,
activ... | sdiehl/ghc | compiler/simplCore/SimplUtils.hs | bsd-3-clause | 94,895 | 0 | 20 | 28,907 | 9,672 | 5,204 | 4,468 | -1 | -1 |
import qualified Spec.B.Build
import Test.Hspec
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "Spec.B.Build" Spec.B.Build.spec
| strager/b | test/Spec.hs | bsd-3-clause | 145 | 0 | 6 | 24 | 50 | 28 | 22 | 6 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE GADTs #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.IndexUtils
-- Copyright : (c) Duncan Coutts 2008
-- License : BSD-like
--
-- Maintai... | edsko/cabal | cabal-install/Distribution/Client/IndexUtils.hs | bsd-3-clause | 25,773 | 0 | 22 | 6,359 | 5,460 | 2,849 | 2,611 | 424 | 11 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{- | __Operator Client API__
The functions in this module correspond to
the [Consul Operator API](https://www.consul.io/api/operator).
This module is a WIP, feel free to contrib... | alphaHeavy/consul-haskell | src/Network/Consul/Client/Operator.hs | bsd-3-clause | 511 | 0 | 3 | 72 | 19 | 15 | 4 | 7 | 0 |
module Main where
import Test.Framework as TF (defaultMain, testGroup, Test)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Control.Monad.MissingM
import Data.Maybe (listToMaybe)
import Data.Functor.Identity
main :: IO ()
main = defaultMain tests
tests :: [TF.Test]
tests = [
testGroup "The" [... | techtangents/missingm | tests/Main.hs | bsd-3-clause | 1,007 | 0 | 13 | 183 | 343 | 183 | 160 | 23 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MonadComprehensions #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE ViewPatterns #-}
module Queries.SIGMOD.Nested
( nationCount
, allRegionsNations
, shippingDelay
, ... | ulricha/dsh-example-queries | Queries/SIGMOD/Nested.hs | bsd-3-clause | 3,159 | 0 | 15 | 746 | 831 | 433 | 398 | 58 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Database.DSH.Backend.Sql.Common
( SqlVector(..)
, SqlCode(..)
, generateSqlShape
) where
import Data.Maybe
import qualified Database.Algebra.Dag as D
import qualified Database.Algebra.Table.Lang as TA
import Database.DSH.Comm... | ulricha/dsh-sql | src/Database/DSH/Backend/Sql/Common.hs | bsd-3-clause | 1,596 | 0 | 12 | 394 | 282 | 162 | 120 | 20 | 1 |
module QuestionTwo where
| rossng/COMS22201-lab2 | src/QuestionTwo.hs | bsd-3-clause | 25 | 0 | 2 | 3 | 4 | 3 | 1 | 1 | 0 |
{-# LANGUAGE TemplateHaskell, CPP #-}
{-# OPTIONS_GHC -w #-}
-----------------------------------------------------------------------------
-- |
-- Module : Generics.Instant.TH
-- Copyright : (c) 2011 Universiteit Utrecht
-- License : BSD3
--
-- Maintainer : generics@haskell.org
-- Stability ... | dreixel/instant-generics | src/Generics/Instant/TH.hs | bsd-3-clause | 23,771 | 0 | 22 | 7,277 | 8,732 | 4,566 | 4,166 | 422 | 13 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE FunctionalDependencies #-}
module Symengine.NumberTheory(
Symengine.NumberTheory.gcd,
Symengine.NumberTheory.lcm,
gcd_extended,
next_prime,
Symengine.NumberTheory.mod,
quotient,
quotient_and_mod,
mod_f,
quotient_f,
quotien... | bollu/symengine.hs-1 | src/Symengine/NumberTheory.hs | mit | 6,259 | 0 | 14 | 1,136 | 1,542 | 787 | 755 | 142 | 1 |
{-# LANGUAGE TypeOperators, MultiParamTypeClasses, DeriveGeneric, OverloadedStrings #-}
import Control.Exception
import qualified Data.ByteString as S
import Data.Int
import Data.Maybe
import Database.PostgreSQL.ORM.Association
import Database.PostgreSQL.ORM.CreateTable
import Database.PostgreSQL.ORM.Model
import Data... | charles-cooper/postgresql-orm | examples.hs | gpl-3.0 | 5,083 | 0 | 13 | 1,122 | 1,250 | 683 | 567 | 153 | 1 |
{-# LANGUAGE RecordWildCards #-}
module Hans.Nat.Forward ( tryForwardUdp, tryForwardTcp ) where
import Hans.Addr.Types (Addr)
import Hans.Lens (view)
import Hans.Network (lookupRoute,RouteInfo(..))
import Hans.Tcp.Packet (TcpHeader(..),tcpSyn)
import Hans.Types
import Hans.Udp.Packet (UdpHeader(..))
-- TCP --------... | GaloisInc/HaNS | src/Hans/Nat/Forward.hs | bsd-3-clause | 4,376 | 0 | 30 | 1,534 | 972 | 495 | 477 | 77 | 4 |
module Tholos.App.Config where
import Control.Monad.Error.Class (MonadError)
import Control.Monad.IO.Class (MonadIO)
import Database.PostgreSQL.Simple (ConnectInfo (..), Connection,
close, connect)
import System.Environment ... | charlescrain/tholos | src/Tholos/App/Config.hs | bsd-3-clause | 702 | 0 | 9 | 210 | 167 | 97 | 70 | 17 | 1 |
{-# LANGUAGE CPP, NondecreasingIndentation #-}
{-# OPTIONS_GHC -fno-cse #-}
--
-- (c) The University of Glasgow 2002-2006
--
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
-- | The dynamic linker for GHCi.
--
-- This module deals with the top-level issues of dynamic linking,
-- calling the object-code lin... | siddhanathan/ghc | compiler/ghci/Linker.hs | bsd-3-clause | 53,535 | 9 | 25 | 16,592 | 9,313 | 4,806 | 4,507 | -1 | -1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Matching guarded right-hand-sides (GRHSs)
-}
{-# LANGUAGE CPP #-}
module Eta.DeSugar.DsGRHSs ( dsGuarded, dsGRHSs, dsGRHS, isTrueLHsExpr ) where
import {-# SOURCE #-} Eta.DeSugar.DsExpr ( dsLExpr, dsLocalBinds )
import ... | rahulmutt/ghcvm | compiler/Eta/DeSugar/DsGRHSs.hs | bsd-3-clause | 6,225 | 0 | 15 | 1,662 | 1,235 | 630 | 605 | -1 | -1 |
module Dotnet.System.UInt32 where
import Dotnet
import qualified Dotnet.System.ValueType
data UInt32_ a
type UInt32 a = Dotnet.System.ValueType.ValueType (UInt32_ a)
| alekar/hugs | dotnet/lib/Dotnet/System/UInt32.hs | bsd-3-clause | 168 | 0 | 7 | 20 | 41 | 27 | 14 | -1 | -1 |
-- Time-stamp: <2010-03-31 20:47:48 cklin>
module Monad where
import Control.Monad (liftM, mapM_, when)
import Data.Maybe (isJust)
import Types
import Common
type EndoTi a = a -> Ti a
--------- Type inference monad and its combinators
-- Type inference state consists of a sequence number for generating
-- fresh m... | cartazio/omega | vendor/algorithm-p/Monad.hs | bsd-3-clause | 3,625 | 0 | 14 | 880 | 1,270 | 679 | 591 | 72 | 3 |
module LiftToToplevel.PatBindIn4 where
-- Issue https://github.com/RefactoringTools/HaRe/issues/42
-- liftToTopLevel of a should fail.
-- Alternatively, it should result in something like
{-
f x = a x
a x = fst (x, x)
b x = snd (x, x)
-}
f x = let (a, b) = (x, x) in a
| RefactoringTools/HaRe | test/testdata/LiftToToplevel/PatBindIn4.hs | bsd-3-clause | 271 | 0 | 9 | 52 | 42 | 25 | 17 | 2 | 1 |
module Distribution.Solver.Types.Variable where
import Distribution.Solver.Types.OptionalStanza
import Distribution.PackageDescription (FlagName)
-- | Variables used by the dependency solver. This type is similar to the
-- internal 'Var' type, except that flags and stanzas are associated with
-- package names instea... | themoritz/cabal | cabal-install/Distribution/Solver/Types/Variable.hs | bsd-3-clause | 463 | 0 | 6 | 71 | 63 | 40 | 23 | 8 | 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="sq-AL">
<title>Simple Example Add-On</title>
<maps>
<homeID>top</homeID>
<mapref locati... | thc202/zap-extensions | addOns/simpleexample/src/main/javahelp/org/zaproxy/addon/simpleexample/resources/help_sq_AL/helpset_sq_AL.hs | apache-2.0 | 966 | 77 | 67 | 157 | 413 | 209 | 204 | -1 | -1 |
-- | Combinators for constructing properties.
{-# LANGUAGE CPP #-}
#ifndef NO_SAFE_HASKELL
{-# LANGUAGE Safe #-}
#endif
module Test.QuickCheck.Property where
--------------------------------------------------------------------------
-- imports
import Test.QuickCheck.Gen
import Test.QuickCheck.Gen.Unsafe
import Test.Q... | Warbo/quickcheck | Test/QuickCheck/Property.hs | bsd-3-clause | 20,286 | 0 | 27 | 4,864 | 4,871 | 2,563 | 2,308 | 312 | 11 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
@Uniques@ are used to distinguish entities in the compiler (@Ids@,
@Classes@, etc.) from each other. Thus, @Uniques@ are the basic
comparison key in the compiler.
If there is any single operation that needs to be fast, i... | green-haskell/ghc | compiler/basicTypes/Unique.hs | bsd-3-clause | 12,380 | 0 | 24 | 3,323 | 2,055 | 1,109 | 946 | 154 | 3 |
-- Character classification
{-# LANGUAGE CPP #-}
module Ctype
( is_ident -- Char# -> Bool
, is_symbol -- Char# -> Bool
, is_any -- Char# -> Bool
, is_space -- Char# -> Bool
, is_lower -- Char# -> Bool
, is_upper -- Char# -> Bool
, is... | urbanslug/ghc | compiler/parser/Ctype.hs | bsd-3-clause | 8,072 | 0 | 11 | 3,498 | 2,145 | 1,175 | 970 | 189 | 129 |
module T10495 where
import Data.Coerce
foo = coerce
| urbanslug/ghc | testsuite/tests/typecheck/should_fail/T10495.hs | bsd-3-clause | 54 | 0 | 4 | 10 | 14 | 9 | 5 | 3 | 1 |
{-
From: Jon Hill <hilly@dcs.qmw.ac.uk@jess.gla.ac.uk@pp.dcs.glasgow.ac.uk>
To: glasgow-haskell-bugs
Subject: Unfriendly error message
Date: Thu, 25 Jun 1992 09:22:55 +0100
Hello again,
I came across a rather nasty error message when I gave a function an
incorrect type signature (the context is wrong). I can remember... | ryantm/ghc | testsuite/tests/typecheck/should_fail/tcfail034.hs | bsd-3-clause | 1,111 | 0 | 7 | 199 | 51 | 30 | 21 | 3 | 1 |
module Commands where
import Control.Monad
import Expense
type Cmd = Expenses -> IO Expenses
execIOCmds :: Expenses -> [Cmd] -> IO Expenses
execIOCmds = foldM (\a f -> f a)
displayExpenses :: Expenses -> IO Expenses
displayExpenses exps = mapM_ print exps >> return exps
selectPerson :: String -... | fredmorcos/attic | projects/pet/archive/pet_haskell_old_2/Commands.hs | isc | 411 | 0 | 10 | 92 | 147 | 76 | 71 | 10 | 1 |
{-# LANGUAGE CPP #-}
module Application (liquidityCheck) where
import Prelude (show, (.))
import BasicPrelude hiding (show, (.))
import Network.Wai (Request(..), Application)
import Network.HTTP.Types (ok200, badRequest400)
import Network.Wai.Util (stringHeaders, textBuilder)
import Text.Blaze.Html (Html)
import Netwo... | singpolyma/localripple | Application.hs | isc | 3,477 | 0 | 17 | 530 | 1,337 | 730 | 607 | 73 | 5 |
module Y2016.M07.D07.Solution where
import Data.SymbolTable
import Data.SymbolTable.Decompiler
import Y2016.M07.D06.PrideAndPrejudice
import Y2016.M07.D06.Solution
{--
Pride and Prejudice and ... Dracula? Anyone? No?
So, now that we have Pride and Prejudice encoded (see above), let's use it
to encode another work.
... | geophf/1HaskellADay | exercises/HAD/Y2016/M07/D07/Solution.hs | mit | 1,591 | 0 | 10 | 223 | 158 | 88 | 70 | 12 | 1 |
module Network.Transport.IVC (
module Network.Transport.IVC,
module Network.Transport.IVC.Util
) where
-- export everything for testing
import Network.Transport
import Network.Transport.IVC.Util
import Data.Word (Word32)
import Data.List (intercalate)
import qualified Data.Map.Strict as M(Map, empty, lookup, inse... | hackern/network-transport-ivc | src/Network/Transport/IVC.hs | mit | 6,584 | 0 | 23 | 1,633 | 1,826 | 929 | 897 | 139 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.Node
(js_insertBefore, insertBefore, js_replaceChild, replaceChild,
js_removeChild, removeChild, js_appendChild, appendChild,
js_hasChildNodes, hasChildNodes, js_cloneNode, cloneNode,
... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/Node.hs | mit | 19,501 | 242 | 13 | 3,796 | 4,687 | 2,468 | 2,219 | 338 | 1 |
module ProjectEuler.Problem005 (solve) where
import Data.Numbers.Primes
solve :: Integer -> Integer
solve n
= product
$ concatMap (\y -> maximum $ (map . filter) (== y) xs) ys
where
xs = map primeFactors [2..n]
ys = takeWhile (< n) primes
| hachibu/project-euler | src/ProjectEuler/Problem005.hs | mit | 256 | 0 | 12 | 57 | 102 | 57 | 45 | 8 | 1 |
import Data.List
import System.IO
import System.Directory
import System.Environment
type Arguments = [String]
type Action = Arguments -> IO ()
type Command = String
dispatch :: [(Command, Action)]
dispatch = [ ("add", add)
, ("remove", remove)
, ("view", view)
, ("bump", bump)
... | RAFIRAF/HASKELL | IO/todo2.hs | mit | 1,728 | 0 | 15 | 382 | 608 | 303 | 305 | 53 | 2 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
-- | Use an email address as an identifier via Google's OpenID login system.
--
-- This backend will not use the OpenID identifier at all. It only uses OpenID
-- as a login system. By using this plugin, you are trusting Google to valid... | piyush-kurur/yesod | yesod-auth/Yesod/Auth/GoogleEmail.hs | mit | 3,859 | 0 | 18 | 1,031 | 802 | 428 | 374 | -1 | -1 |
module MppException where
-- Exception monad.
-- Ok a : a is a (partially or wholely complete) AST.
-- Except e : e is a string that records the location and source of
-- a parse error.
data E a = Ok a | Except String
bindE :: E a -> (a -> E b) -> E b
m `bindE` k =
case m of
Ok a -> k a... | JamesSullivan1/Mpp | src/MppException.hs | mit | 994 | 0 | 9 | 257 | 407 | 206 | 201 | 26 | 2 |
module GHCJS.DOM.PositionError (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/PositionError.hs | mit | 43 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.XSLTProcessor
(js_newXSLTProcessor, newXSLTProcessor, js_importStylesheet,
importStylesheet, js_transformToFragment, transformToFragment,
js_transformToDocument, transformToDocument, js_setP... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/XSLTProcessor.hs | mit | 6,237 | 74 | 13 | 1,158 | 1,291 | 713 | 578 | 103 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationreferencedatasource-mappingparameters.html
module Stratosphere.ResourceProperties... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/KinesisAnalyticsApplicationReferenceDataSourceMappingParameters.hs | mit | 3,722 | 0 | 12 | 207 | 255 | 150 | 105 | 29 | 1 |
module Knapp.Conduit
(split,
toLeft,
toRight,
sideStream,
byCharacter)
where
import Control.Monad
import Control.Monad.Trans
import Data.Conduit
import Data.Conduit.Internal
import qualified Data.Conduit.List as C
import Data.Text (Text)
import qualified Data.Text as T
split
:: (Monad m) => Sink a ... | IreneKnapp/Eyeshadow | knapp.hs/Haskell/Knapp/Conduit.hs | mit | 3,061 | 0 | 22 | 892 | 1,309 | 644 | 665 | 71 | 6 |
module Faun.Parser.Numbers
( parseDouble
, getDouble
) where
import Text.Parsec
import Text.Parsec.String (Parser)
import Faun.Parser.Core
import qualified Text.Parsec.Token as Tok
parseDouble :: String -> Either ParseError Double
parseDouble = parse (contents getDouble) "<stdin>"
getDouble, ndouble, pdouble, int ::... | PhDP/Sphinx-AI | Faun/Parser/Numbers.hs | mit | 573 | 0 | 9 | 101 | 193 | 102 | 91 | 21 | 1 |
{- TextureFonts.hs; Mun Hon Cheong (mhch295@cse.unsw.edu.au) 2005
This module handles the fonts and crosshairs of the game
--credits go to NeHe tutorials for their texturefonts tutorial
-}
module TextureFonts where
import Graphics.UI.GLUT
import Textures
import Data.Char
import Data.HashTable.IO as H hiding (mapM_... | pushkinma/frag | src/TextureFonts.hs | gpl-2.0 | 4,885 | 0 | 16 | 1,121 | 1,737 | 864 | 873 | 110 | 1 |
{- ============================================================================
| Copyright 2010 Matthew D. Steele <mdsteele@alum.mit.edu> |
| |
| This file is part of Pylos. |
... | mdsteele/pylos | src/Pylos/Views/Board.hs | gpl-3.0 | 11,925 | 21 | 24 | 4,188 | 3,293 | 1,654 | 1,639 | 218 | 22 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid 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 3 of the Lice... | karamellpelle/grid | source/Game/Run.hs | gpl-3.0 | 943 | 0 | 5 | 172 | 66 | 51 | 15 | 8 | 0 |
module Main where
-- These import are coppied from simormar's test-async.hs and
-- twittner's ZMQ3 Properties.hs. I have to find out which
-- ones I actually need.
import Test.QuickCheck
import Test.Framework (defaultMain, testGroup)
import Test.Framework.Providers.QuickCheck2
import Control.Monad
import Prelude as P... | imalsogreg/scrollbuffer | tests/test.hs | gpl-3.0 | 3,385 | 0 | 14 | 780 | 992 | 517 | 475 | -1 | -1 |
module ASTtoQuery where
--import QueryParser
import Control.Applicative ((<$>))
import Data.Char (toUpper)
import Data.List
import Data.Function
import QueryAST
import Maybe (isJust)
import Printers
import Stats
import System.FilePath
import Text.Regex
import qualified Data.Map as D
-- * Queries after AST processing... | bspaans/EditTimeReport | src/ASTtoQuery.hs | gpl-3.0 | 7,082 | 0 | 12 | 1,784 | 2,683 | 1,406 | 1,277 | 130 | 3 |
class X a where
f :: a -> Int
instance Num a => X (Maybe a) where
f Nothing = 7
f (Just x) = f x
main = f (Just 3) | Helium4Haskell/helium | test/typeClasses/ClassInstaneError10.hs | gpl-3.0 | 128 | 0 | 8 | 45 | 79 | 38 | 41 | 6 | 1 |
{-# LANGUAGE RecordWildCards, GADTs #-}
import Codec.Compression.GZip
{- import Control.Monad
import qualified Data.ByteString.Lazy.Char8 as LB
import Data.Maybe
import qualified Data.Text.Lazy as T
import Data.Text.Lazy.Builder
import Data.Text.Format
import ... | wavewave/lhc-analysis-collection | exe/ATLASMultiLeptonJetMETAnalysis.hs | gpl-3.0 | 10,655 | 0 | 9 | 1,177 | 997 | 651 | 346 | 136 | 1 |
module GtkBlast.GtkUtils
(windowPopup
,windowToggle
,onFileChooserEntryButton
,tvarCheck
,tvarSpinCheck
,editorWidget, Apply(..), Ok(..), Cancel(..), Spawn(..)
,postAsyncWhenPathModified, CloseWatcher, closeWatcher
) where
import Import hiding (on)
import Graphics.UI.Gtk
import Control... | exbb2/BlastItWithPiss | src/GtkBlast/GtkUtils.hs | gpl-3.0 | 5,383 | 0 | 22 | 1,596 | 1,596 | 767 | 829 | 130 | 5 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.CloudAsset
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozilla P... | brendanhay/gogol | gogol-cloudasset/gen/Network/Google/CloudAsset.hs | mpl-2.0 | 12,316 | 0 | 5 | 2,196 | 943 | 664 | 279 | 263 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-ec2/gen/Network/AWS/EC2/DescribeInstanceStatus.hs | mpl-2.0 | 9,894 | 0 | 11 | 1,897 | 987 | 607 | 380 | 96 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-servicemanagement/gen/Network/Google/Resource/ServiceManagement/Services/Enable.hs | mpl-2.0 | 5,306 | 0 | 17 | 1,220 | 788 | 461 | 327 | 114 | 1 |
{-# LANGUAGE OverloadedStrings, RecordWildCards, TupleSections #-}
module Resources where
import Blaze.ByteString.Builder
import Control.Concurrent.STM.TMVar
import Control.Concurrent.STM.TVar
import Control.Monad.STM
import qualified Data.ByteString.Char8 as BS
import qualified Data.ByteString.Lazy.Char8 as BL
import... | koodilehto/kryptoradio | encoder/Resources.hs | agpl-3.0 | 3,269 | 0 | 12 | 865 | 732 | 401 | 331 | 67 | 2 |
{-# LANGUAGE FlexibleInstances, FlexibleContexts, TypeFamilies,
MultiParamTypeClasses, OverlappingInstances, IncoherentInstances #-}
module HEP.Jet.FastJet.Class.TObject.Cast where
import Foreign.Ptr
import Foreign.ForeignPtr
import HEP.Jet.FastJet.TypeCast
import System.IO.Unsafe
import HEP.Jet.FastJ... | wavewave/HFastJet | oldsrc/HEP/Jet/FastJet/Class/TObject/Cast.hs | lgpl-2.1 | 790 | 0 | 8 | 103 | 159 | 94 | 65 | 15 | 0 |
module Game.Board.Run
(CommFuncs(..), Connector, Dealer, GameM,
runGame)
where
import qualified Data.Map as M
import Control.Monad.State
import Control.Monad.Reader
import Control.Monad.Random
import Game.Board.Internal.Types
-- ugly =(
-- this is very bad
runGame ::
Connector sh pl pr ->
Dealer s sh pl ->
... | benzrf/board | src/Game/Board/Run.hs | lgpl-3.0 | 1,331 | 0 | 16 | 382 | 535 | 277 | 258 | 41 | 3 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE... | haroldcarr/learn-haskell-coq-ml-etc | haskell/topic/program-structure/2019-01-hc-example-based-on-adjointio-raft/src/XMonad.hs | unlicense | 4,345 | 3 | 15 | 906 | 1,011 | 548 | 463 | 79 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-|
Contains utilities for manipulating the core K3 d... | yliu120/K3 | src/Language/K3/Core/Utils.hs | apache-2.0 | 48,409 | 0 | 22 | 12,451 | 16,672 | 8,467 | 8,205 | 736 | 18 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
module HERMIT.Kernel
( -- * The HERMIT Kernel
AST
, firstAST
, ASTMap
, Kernel... | beni55/hermit | src/HERMIT/Kernel.hs | bsd-2-clause | 9,634 | 0 | 31 | 3,696 | 2,698 | 1,394 | 1,304 | 174 | 7 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QIODevice_h.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 n... | keera-studios/hsQt | Qtc/Core/QIODevice_h.hs | bsd-2-clause | 41,241 | 0 | 18 | 9,678 | 13,807 | 6,602 | 7,205 | -1 | -1 |
{-# LANGUAGE
MultiParamTypeClasses
, TemplateHaskell
, ScopedTypeVariables
, FlexibleInstances
, FlexibleContexts
, UndecidableInstances
, GeneralizedNewtypeDeriving
, GADTs
#-}
module Spire.Expression.Types where
import Data.Monoid
import Unbound.LocallyNameless
import Spire.Canonical.Types
import... | spire/spire | src/Spire/Expression/Types.hs | bsd-3-clause | 1,571 | 0 | 9 | 289 | 315 | 184 | 131 | 45 | 1 |
module RandomStream where
import RandomValue
data RStream a b = Out (RStream a b) b | In (a -> RStream a b)
instance Functor (RStream a) where
fmap f (Out rs b) = Out (fmap f rs) (f b)
fmap f (In g) = In $ \a -> fmap f (g a)
getOne :: RStream a b -> RValue a (RStream a b, b)
getOne (Out rs b) = Done (r... | cullina/Extractor | src/RandomStream.hs | bsd-3-clause | 1,094 | 0 | 11 | 320 | 647 | 325 | 322 | 24 | 2 |
module Control.Lens.Create ( create, Default(..), ASetter ) where
import Control.Lens.Setter ( ASetter, set )
import Data.Default.Class ( Default(..) )
-- | A convenient helper function for using Lenses as constructors.
create :: Default s => ASetter s t a b -> b -> t
create f x = set f x def
| gridaphobe/cabal2nix | lens-construction-helper/src/Control/Lens/Create.hs | bsd-3-clause | 297 | 0 | 7 | 55 | 98 | 57 | 41 | 5 | 1 |
module Crypto.Blockchain.Message where
import qualified Crypto.Blockchain.Block as Blockchain
import Data.Binary (Binary)
import GHC.Generics (Generic)
data Message a =
Tx a
| Block (Blockchain.Block a)
| Ping
deriving (Show, Generic)
instance Binary a => Binary (Message a)
deri... | cloudhead/cryptocurrency | src/Crypto/Blockchain/Message.hs | bsd-3-clause | 358 | 0 | 9 | 86 | 114 | 64 | 50 | -1 | -1 |
module Chapter5 where
-- Multiple choice
-- 1. c
-- 2. a
-- 3. b
-- 4. c
-- Determine the type
-- 1.
-- a) Num a => a
-- b) Num a => (a, [Char])
-- c) (Integer, [Char])
-- d) Bool
-- e) Int
-- f) Bool
-- 2. Num a => a
-- 3. Num a => a -> a
-- 4. Fractional a => a
-- 5. [Char]
-- Does it compile
-- 1. no. bigNum = (^... | taojang/haskell-programming-book-exercise | src/ch05/chapter5.hs | bsd-3-clause | 1,399 | 0 | 9 | 416 | 476 | 289 | 187 | -1 | -1 |
module Main where
import Diagrams.Backend.Rasterific (renderRasterific, Rasterific)
import Diagrams.Prelude (
P2, p2, r2,
fc, red, lw, none, center,
mkWidth, Diagram, mconcat,
strokeLoop, glueLine, lineFromSegments, straight,
arrowV, arrowAt', arrowHead, spike,
hcat, vcat, hcat', pad, catMethod, CatMethod... | phischu/geometric-algebra | examples/BivectorDiagrams.hs | bsd-3-clause | 2,437 | 0 | 15 | 465 | 991 | 524 | 467 | 57 | 1 |
{-#
LANGUAGE
RecordWildCards
#-}
module ParserCreator where
import Data.Char
import Data.List
import GrammarParser
createHaskellParser::Grammar->String
createHaskellParser g =
"module Parser where\n\nimport Text.Parsec\nimport Data.Ix\n\n"
++ "wrap x y = \"<\" ++ x ++ \">\" ++ y ++ \"</\" ++ x ++ \">\"\n"... | jamshidh/antlrToH | src/ParserCreator.hs | bsd-3-clause | 1,984 | 0 | 17 | 305 | 583 | 284 | 299 | 34 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, ConstraintKinds, PatternGuards #-}
{-# OPTIONS_GHC -O0 #-}
module Idris.Parser(module Idris.Parser,
module Idris.ParseExpr,
module Idris.ParseData,
module Idris.ParseHelpers,
module Idris.ParseOps) w... | DanielWaterworth/Idris-dev | src/Idris/Parser.hs | bsd-3-clause | 46,800 | 438 | 23 | 19,574 | 9,522 | 5,153 | 4,369 | 830 | 12 |
module IdMT where
import MT
import Control_Monad_Fix
import Monad(liftM)
newtype With_ m a = I { removeId :: m a }
instance MT With_ where
lift = I
instance Monad m => Monad (With_ m) where
return = lift . return
I m >>= f = I (m >>= removeId . f)
instance Monad m => Fun... | forste/haReFork | tools/base/lib/Monads/IdMT.hs | bsd-3-clause | 1,274 | 0 | 12 | 438 | 520 | 262 | 258 | -1 | -1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveDataTypeable #-}
{- |
Module : $Header$
Description : Abstract syntax for SELinux policies
Copyright : (c) Galois, Inc.
License : see the file LICENSE
Maintainer : Joe Hurd
Stability : provisional
Portability : portable
Abstract syntax for SELinux po... | GaloisInc/sk-dev-platform | libs/SCD/src/SCD/SELinux/Syntax.hs | bsd-3-clause | 11,557 | 0 | 12 | 2,508 | 3,826 | 2,132 | 1,694 | 302 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
-----------------------------------------------------------------------------
-- |
-- Module : Geometry.CubicSpline
-- Copyright : (c) 2011-2017 diagrams team (see LICENSE)
-- License : BSD... | cchalmers/geometry | src/Geometry/CubicSpline.hs | bsd-3-clause | 5,323 | 0 | 11 | 1,071 | 783 | 444 | 339 | 71 | 1 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell #-}
module Text.Blaze.Amf.Elements where
import Text.Blaze.Amf.Template
import Text.Blaze.Internal
import Language.Haskell.TH
import Text.Blaze.Amf.Attributes
import Data.Monoid
$(elements ["x","y","z"])
$(elements ["nx","ny","nz"])
$(elements ["r","g","b","a"])
$(eleme... | matthewSorensen/blaze-amf | src/Text/Blaze/Amf/Elements.hs | bsd-3-clause | 899 | 0 | 9 | 83 | 354 | 197 | 157 | 23 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE PolyKinds #-}
module Math.Monad.Atkey
( At(..)
, Atkey
, Coat(..)
, Coatkey
) where
import Data.Type.Equality
import Math.Category
import Math.Functor
import Prelude (($))
data At a i j where
At :: a -> At a i ... | ekmett/categories | src/Math/Monad/Atkey.hs | bsd-3-clause | 1,183 | 0 | 12 | 313 | 589 | 335 | 254 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
module FPNLA.Operations.BLAS.Strategies.GEMM.Accelerate.DefPar () where
import FPNLA.Matrix.Instances.AccMatrix (AccMatrix (..),
... | mauroblanco/fpnla-examples | src/FPNLA/Operations/BLAS/Strategies/GEMM/Accelerate/DefPar.hs | bsd-3-clause | 3,424 | 0 | 14 | 1,607 | 665 | 369 | 296 | 42 | 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.Volume.HR.R... | facebookincubator/duckling | Duckling/Volume/HR/Rules.hs | bsd-3-clause | 1,928 | 0 | 19 | 490 | 483 | 291 | 192 | 49 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes ... | sergv/tags-server | src/Haskell/Language/LexerSimple/Types.hs | bsd-3-clause | 19,337 | 0 | 32 | 5,072 | 5,489 | 2,907 | 2,582 | 481 | 32 |
module Generate.JavaScript.BuiltIn where
import qualified Language.ECMAScript3.Syntax as JS
import Generate.JavaScript.Helpers
import qualified Reporting.Region as R
utils :: String -> [JS.Expression ()] -> JS.Expression ()
utils func args =
obj ["_utils", func] `call` args
-- LITERALS
character :: Char -> JS.... | Axure/elm-compiler | src/Generate/JavaScript/BuiltIn.hs | bsd-3-clause | 1,961 | 0 | 10 | 405 | 775 | 397 | 378 | 48 | 2 |
{-# LANGUAGE QuasiQuotes #-}
module Output.Player where
import Control.Lens
import NewTTRS.Law
import Text.Hamlet
import qualified Data.Map as Map
import Event
import Output.Formatting
import Output.Common
import DataStore
import Player
import Snap.Snaplet.SqliteSimple
playerPage :: (Functor m, HasSqlite m) => Play... | glguy/tt-ratings | Output/Player.hs | bsd-3-clause | 1,485 | 0 | 12 | 375 | 161 | 87 | 74 | 19 | 1 |
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE RecordWildCards #-}
import Control.Monad
import Control.Monad.IO.Class
import Data.List
import qualified Data.Map as Map
import Text.Groom
import Text.PrettyPrint.ANSI.Leijen
import Language.Haskell.Exts.Pretty (prettyPrint)
import System.Directory
import System.Environmen... | Shimuuar/protobuf | protobuf-grammar/driver.hs | bsd-3-clause | 3,458 | 0 | 17 | 850 | 1,053 | 544 | 509 | 91 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module OpenRTB.Types.Enum.ExpandableDirectionSpec where
import Control.Applicative
import Data.Aeson
import Data.Aeson.TH
import Test.Hspec
import Test.QuickCheck
import Test.Instances
import OpenRTB.Types.Enum.ExpandableDirection as ED
data Mock = ... | ankhers/openRTB-hs | spec/OpenRTB/Types/Enum/ExpandableDirectionSpec.hs | bsd-3-clause | 694 | 0 | 18 | 113 | 197 | 108 | 89 | 21 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.