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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-
******************************************************************************
* JSHOP *
* *
* Module: AST *
*... | nbrunt/JSHOP | src/old/ver2/AST.hs | mit | 13,397 | 20 | 8 | 4,720 | 1,190 | 724 | 466 | 190 | 0 |
module Temp where
import Data.List
fy x = ix^2 + ix
where ix = floor x
pascalTri x = x:pascalTri ([1] ++ m ++ [1])
where
m = zipWith (+) (init x) (tail x)
-- 1.a
null' [] = True
null' _ = False
--pembatas
take' n (x:xs)
| n == 0 = []
| n > 0 = [x] ++ take' (n-1) xs
take' _ [] = []
takeDropWhile f c... | skadinyo/conc | haskell/temp.hs | epl-1.0 | 908 | 0 | 12 | 283 | 620 | 319 | 301 | 31 | 2 |
-- Copyright 2013 Gushcha Anton
-- This file is part of PowerCom.
--
-- PowerCom 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 License, or
-- (at your option) any later... | NCrashed/PowerCom | src/powercom/Channel/Frame.hs | gpl-3.0 | 6,323 | 0 | 15 | 2,670 | 1,176 | 618 | 558 | 101 | 8 |
{-# LANGUAGE ScopedTypeVariables, NoMonomorphismRestriction, RecordWildCards #-}
module Main where
import Control.Applicative
import Control.Monad
import Control.Monad.Error
import Control.Monad.Reader
import Control.Monad.State
import Data.Conduit
import... | wavewave/lhc-analysis-collection | exe/2013-06-27-XQLD-2sq-oo.hs | gpl-3.0 | 5,789 | 0 | 20 | 1,710 | 1,556 | 883 | 673 | 136 | 3 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Database where
import Database.Persist.TH
import Data.Text (Text)
import Data.... | steffenomak/file-indexer | src/Database.hs | gpl-3.0 | 894 | 0 | 9 | 220 | 93 | 59 | 34 | 14 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveFunctor #-}
-- |Module permettant de faire la gestions des closures
module Closure where
import LambdaCalculus
import Data.List
import Text.PrettyPrint.ANSI.Leijen hiding ((<$>))
newtype Environment a = Environment [Variable a] deriving (Show, Monoid, Func... | bruno-cadorette/Baeta-Compiler | src/Closure.hs | gpl-3.0 | 2,324 | 0 | 11 | 487 | 866 | 439 | 427 | 38 | 2 |
----------------------------------------------------------------------------------
-- |
-- Module : Tct.Method.Bounds.Violations.Find
-- Copyright : (c) Martin Avanzini <martin.avanzini@uibk.ac.at>,
-- Georg Moser <georg.moser@uibk.ac.at>,
-- Andreas Schnabl <andreas.schnabl@uib... | mzini/TcT | source/Tct/Method/Bounds/Violations/Find.hs | gpl-3.0 | 6,279 | 0 | 17 | 2,130 | 1,932 | 1,007 | 925 | 75 | 13 |
-- Too slow. Turns out there's too much overhead when compiling this to
-- JavaScript with Haste.
import Control.Concurrent.MVar
import Control.Applicative
import Control.Monad
import Data.Functor
import Data.List
import Data.Ord
import Haste
import Haste.Ajax
import Haste.Graphics.Canvas
sz = 4; lim = sz * 28
zLayer... | blynn/morans | tooslow.hs | gpl-3.0 | 2,436 | 0 | 18 | 623 | 1,160 | 604 | 556 | 58 | 2 |
-- Run-length encoding of a list. Use the result of problem P09 to implement the
-- so-called run-length encoding data compression method. Consecutive duplicates
-- of elements are encoded as lists (N E) where N is the number of duplicates of
-- the element E.
----- From Ex09
pack :: (Eq a) => [a] -> [[a]]
computeTai... | dannywillems/99-problems | haskell/p10.hs | gpl-3.0 | 760 | 0 | 10 | 221 | 287 | 160 | 127 | 11 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Test.Gophermap (gophermapTests) where
import Control.Monad (forM_)
import Data.Attoparsec.ByteString (parseOnly)
import qualified Data.ByteString as B
import Data.Either
import Network.Gopher (GopherFileType (..))
import Network.Gopher.Util (stripNewline)
import Network.Gopher... | sternenseemann/spacecookie | test/Test/Gophermap.hs | gpl-3.0 | 4,425 | 0 | 16 | 814 | 989 | 517 | 472 | 81 | 1 |
{-# LANGUAGE Arrows #-}
module FRP.Chimera.Misc.YampaSeqTest where
import Data.Maybe
import Debug.Trace
import FRP.Yampa
import FRP.Yampa.InternalCore
import FRP.Chimera.Simulation.SeqIteration
import FRP.Chimera.Simulation.ParIteration
type TestInput = Int
type TestOutput = Double
testRunSF :: IO ()
testRunS... | thalerjonathan/phd | coding/papers/FrABS/Haskell/YampaTests/YampaSeqTest.hs | gpl-3.0 | 3,790 | 1 | 15 | 754 | 957 | 512 | 445 | 71 | 2 |
module Bluesnap.Test.Parser where
import Test.Tasty.HUnit
import Bluesnap.API.Parser
import Bluesnap.API.Response as Response
import Bluesnap.API.Request as Request
testXMLParser p fname = do
content <- readFile fname
let result = parse p content
case result of
Left err -> assertFailure err
Right _ -> r... | andorp/hs-bluesnap | test/Bluesnap/Test/Parser.hs | gpl-3.0 | 2,289 | 0 | 11 | 185 | 372 | 189 | 183 | 38 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-spanner/gen/Network/Google/Resource/Spanner/Projects/Instances/BackupOperations/List.hs | mpl-2.0 | 9,801 | 0 | 19 | 1,924 | 1,008 | 601 | 407 | 143 | 1 |
-- | Qualification Round Africa 2010 B
-- https://code.google.com/codejam/contest/351101/dashboard#s=p1
module ReverseWords where
-- constant imports
import Text.ParserCombinators.Parsec
import Text.Parsec
import Control.Exception (bracket)
import System.IO (openFile, hClose, hGetContents, hPutStrLn, IOMode(ReadMode),... | dirkz/google-code-jam-haskell | practice/src/ReverseWords.hs | mpl-2.0 | 2,052 | 0 | 14 | 428 | 599 | 317 | 282 | 50 | 2 |
module Main where
import GitHub.Hook
import Data.Aeson (decode)
import Data.ByteString.Lazy.Char8 (pack)
import Data.Maybe
import System.Exit
import System.Directory
parsePayload :: FilePath -> IO Bool
parsePayload "." = return True
parsePayload ".." = return True
parsePayload file = do
contents <- readFile $... | wereHamster/haskell-github-hook | tests/Tests.hs | unlicense | 722 | 0 | 13 | 157 | 223 | 112 | 111 | 22 | 2 |
module Chapter17 where
import Data.List (elemIndex)
added :: Maybe Integer
added = (+3) <$> (lookup 3 $ zip [1, 2, 3] [4, 5, 6])
y :: Maybe Integer
y = lookup 3 $ zip [1, 2, 3] [4, 5, 6]
z :: Maybe Integer
z = lookup 2 $ zip [1, 2, 3] [4, 5, 6]
tupled :: Maybe (Integer, Integer)
tupled = (,) <$> y <*> z
x' :: May... | prt2121/haskell-practice | ch6-11-17-25/src/Chapter17.hs | apache-2.0 | 689 | 0 | 9 | 176 | 398 | 222 | 176 | 26 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Kernel.GPU.Hogbom ( cleanPrepare, cleanKernel ) where
import Control.Monad
import Data.Word
import Foreign.Marshal.Alloc
import Foreign.Storable ( sizeOf, peek )
import Foreign.C.Types
import Data
import Kernel.GPU.Common as CUDA
import Vector
type Peak = (Int, Int, Doubl... | SKA-ScienceDataProcessor/RC | MS4/dna-programs/Kernel/GPU/Hogbom.hs | apache-2.0 | 4,411 | 0 | 20 | 1,102 | 1,293 | 668 | 625 | 82 | 3 |
module Main where
import Network.Libre.TLS.FFI.Internal
main = putStrLn "hello"
| cartazio/libressl-hs | tests/hunit.hs | bsd-2-clause | 81 | 0 | 5 | 10 | 20 | 13 | 7 | 3 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QMatrix.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:31
Warning : this file is machine generated - do not m... | uduki/hsQt | Qtc/Core/QMatrix.hs | bsd-2-clause | 13,057 | 0 | 17 | 2,346 | 4,631 | 2,362 | 2,269 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
module NLP.Nerf2.Delta.Ref
( delta
, delta'
) where
import Data.List (foldl')
import NLP.Nerf2.Types
import NLP.Nerf2.Forest.Set
import NLP.Nerf2.Forest.Phi
import qualified NLP.Nerf2.Env as Env
delta :: Env.InSent e => e -> N -> Pos -> LogReal
delta env x i = sumForests env $ fores... | kawu/nerf-proto | src/NLP/Nerf2/Delta/Ref.hs | bsd-2-clause | 548 | 0 | 8 | 100 | 213 | 116 | 97 | 15 | 1 |
{-# LANGUAGE DataKinds,UnboxedTuples,MagicHash,TemplateHaskell,RankNTypes,TupleSections #-}
module HLearn.Data.SpaceTree.Algorithms.NearestNeighbor
(
-- * data types
Neighbor (..)
, ValidNeighbor (..)
, NeighborList (..)
, nlSingleton
, getknnL
, nlMaxDist
, Param_k
, _k
... | ehlemur/HLearn | src/HLearn/Data/SpaceTree/Algorithms/NearestNeighbor.hs | bsd-3-clause | 13,421 | 0 | 17 | 3,820 | 3,487 | 1,806 | 1,681 | -1 | -1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ExistentialQuantification #-}
module TestModule where
-- Product
data MyProd = MyProd Bool Int
type MyProdAlias = MyProd
-- Strict product
data MyStrict = MyStrict !Bool !Int
-- Polymorphic
data MyPoly a = MyPoly a
type MyPolyAlias = MyPoly Int
-- R... | norm2782/DGG | examples/testmodule.hs | bsd-3-clause | 1,083 | 0 | 10 | 265 | 389 | 220 | 169 | 30 | 0 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE IncoherentInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeSy... | UCSD-PL/RefScript | src/Language/Rsc/Pretty/Types.hs | bsd-3-clause | 7,069 | 0 | 17 | 2,228 | 3,082 | 1,504 | 1,578 | 158 | 1 |
{-|
Module : Control.Lens.Extra
Description : Extra utility functions for working with lenses.
Copyright : (c) Henry J. Wylde, 2016
License : BSD3
Maintainer : public@hjwylde.com
Extra utility functions for working with lenses.
-}
{-# LANGUAGE Rank2Types #-}
module Control.Lens.Extra (
module Contro... | hjwylde/werewolf | src/Control/Lens/Extra.hs | bsd-3-clause | 1,491 | 0 | 8 | 314 | 255 | 145 | 110 | 18 | 1 |
module ETCS.SDM.Intern where
import Control.Lens hiding ((*~), _2)
import ETCS.SDM.Helper
import ETCS.SDM.Types
import Numeric.Units.Dimensional.TF.Prelude
import Prelude ()
validConvertion :: (HasConvertingBreaki... | open-etcs/openetcs-sdm | src/ETCS/SDM/Intern.hs | bsd-3-clause | 6,268 | 0 | 21 | 1,785 | 2,656 | 1,384 | 1,272 | 140 | 3 |
{- Data/Singletons/Util.hs
(c) Richard Eisenberg 2012
eir@cis.upenn.edu
This file contains helper functions internal to the singletons package.
Users of the package should not need to consult this file.
-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Data.Singletons.Util where
import Language.Haskell.TH
i... | jonsterling/singletons | Data/Singletons/Util.hs | bsd-3-clause | 5,340 | 0 | 14 | 1,100 | 1,400 | 744 | 656 | 97 | 5 |
module Data.Minecraft.Snapshot15w40b
( module Data.Minecraft.Snapshot15w40b.Protocol
, module Data.Minecraft.Snapshot15w40b.Version
) where
import Data.Minecraft.Snapshot15w40b.Protocol
import Data.Minecraft.Snapshot15w40b.Version
| oldmanmike/hs-minecraft-protocol | src/Data/Minecraft/Snapshot15w40b.hs | bsd-3-clause | 238 | 0 | 5 | 21 | 39 | 28 | 11 | 5 | 0 |
{-# LANGUAGE CPP, GeneralizedNewtypeDeriving, FlexibleInstances, MultiParamTypeClasses, UndecidableInstances, TypeFamilies, DeriveDataTypeable #-}
module Web.Scotty.Internal.Types where
import Blaze.ByteString.Builder (Builder)
import Control.Applicative
import qualified Control.Exception as E
imp... | beni55/scotty | Web/Scotty/Internal/Types.hs | bsd-3-clause | 7,087 | 0 | 16 | 2,082 | 1,755 | 980 | 775 | 120 | 1 |
-----------------------------------------------------------------------------
--
-- Machine-dependent assembly language
--
-- (c) The University of Glasgow 1993-2004
--
-----------------------------------------------------------------------------
{-# OPTIONS -fno-warn-tabs #-}
-- The above warning supression flag is a... | nomeata/ghc | compiler/nativeGen/SPARC/Instr.hs | bsd-3-clause | 15,521 | 447 | 15 | 4,353 | 4,968 | 2,612 | 2,356 | 298 | 39 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Jenkins where
import Control.Lens hiding (deep) -- lens
import Control.Monad.IO.Class
import Control.Monad.Trans.Control
import Data.Aeson.Lens -- lens-aeson
import Data.Map (empty)
i... | wayofthepie/riverd | src/lib/Jenkins.hs | bsd-3-clause | 3,688 | 0 | 5 | 987 | 111 | 77 | 34 | 15 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : A
-- Copyright : (c) 2008 - 2010 Universiteit Utrecht
-- License : BSD3
--
-- Maintainer : generics@haskell.org
--
-- An example type representation.
-----------------------------------------------------------... | spl/emgm | tests/A.hs | bsd-3-clause | 5,933 | 6 | 20 | 1,574 | 2,584 | 1,346 | 1,238 | 131 | 7 |
{-# OPTIONS -fno-warn-unused-imports #-}
#include "HsConfigure.h"
-- #hide
module Data.Time.Calendar.Days
(
-- * Days
Day(..),addDays,diffDays
) where
import Control.DeepSeq
import Data.Ix
import Data.Typeable
#if LANGUAGE_Rank2Types
import Data.Data
#endif
-- | The Modified Julian Day is a standard count of ... | bergmark/time | lib/Data/Time/Calendar/Days.hs | bsd-3-clause | 2,031 | 0 | 9 | 325 | 566 | 300 | 266 | 28 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
module HW05 where
import Data.ByteString.Lazy (ByteString)
import Data.Map.Strict (Map)
import System.Environment (getArgs)
import Data.Word8 (Word8)
import Data.List
import Data.Ord
import Data.Maybe
import qualified Data.ByteString.Lazy a... | ImsungChoi/haskell-test | src/HW05.hs | bsd-3-clause | 4,930 | 0 | 20 | 1,431 | 1,702 | 881 | 821 | 98 | 5 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DeriveFunctor #-}
module FreshNames where
import Prelude hiding ((<))
newtype PolyFreshNames a = FreshNames { unFreshNames :: a }
deriving (Show, Eq, Ord, Functor)
type FreshNames = PolyFreshNames In... | kajigor/uKanren_transformations | src/FreshNames.hs | bsd-3-clause | 723 | 0 | 11 | 151 | 226 | 123 | 103 | 18 | 0 |
-- |
-- Module : Database.Monarch
-- Copyright : 2013 Noriyuki OHKAWA
-- License : BSD3
--
-- Maintainer : n.ohkawa@gmail.com
-- Stability : experimental
-- Portability : unknown
--
-- Provide TokyoTyrant monadic access interface.
--
module Database.Monarch
(
Monarch, MonarchT
, Connection, ... | notogawa/monarch | src/Database/Monarch.hs | bsd-3-clause | 617 | 0 | 5 | 132 | 102 | 73 | 29 | 13 | 0 |
{-# LANGUAGE TemplateHaskell #-}
-- | Generate AST types, functions and instances for tuples.
module Database.DSH.Frontend.TupleTypes
( -- * Generate tuple types, functions and instances
mkQAInstances
, mkTAInstances
, mkTupleConstructors
, mkTupleAccessors
, mkTupElemType
, mkTupElemCom... | ulricha/dsh | src/Database/DSH/Frontend/TupleTypes.hs | bsd-3-clause | 20,752 | 0 | 17 | 5,380 | 5,178 | 2,664 | 2,514 | 291 | 1 |
import Control.Monad.Logger
import Data.ByteString.Char8 (pack)
import Meadowstalk.Application
import Network.Wai.Handler.Warp
import System.Environment
-------------------------------------------------------------------------------
main :: IO ()
main = do
port <- read <$> getEnv "PORT"
connstr <- pack <$> get... | HalfWayMan/meadowstalk | src/Main.hs | bsd-3-clause | 415 | 1 | 9 | 57 | 108 | 54 | 54 | 11 | 1 |
{-|
Most data types are defined here to avoid import cycles.
Here is an overview of the hledger data model:
> Journal -- a journal is read from one or more data files. It contains..
> [Transaction] -- journal transactions (aka entries), which have date, cleared status, code, description an... | simonmichael/hledger | hledger-lib/Hledger/Data/Types.hs | gpl-3.0 | 29,659 | 0 | 22 | 7,517 | 3,911 | 2,315 | 1,596 | 380 | 7 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-autoscaling/gen/Network/AWS/AutoScaling/CreateOrUpdateTags.hs | mpl-2.0 | 3,835 | 0 | 10 | 724 | 385 | 241 | 144 | 51 | 1 |
module HN.Optimizer.FormalArgumentsDeleter (runB) where
import Compiler.Hoopl hiding ((<*>))
import Safe.Exact
import HN.Intermediate
import HN.Optimizer.Node
import HN.Optimizer.Pass
import HN.Optimizer.ExpressionRewriter
import HN.Optimizer.ArgumentValues (ArgFact)
import HN.Optimizer.Utils
rewriteB :: DefinitionN... | kayuri/HNC | HN/Optimizer/FormalArgumentsDeleter.hs | lgpl-3.0 | 1,125 | 5 | 17 | 177 | 371 | 198 | 173 | 29 | 2 |
module System.Console.Haskeline.Prefs(
Prefs(..),
defaultPrefs,
readPrefs,
CompletionType(..),
BellStyle(..),
EditMode(..),
HistoryDuplicates(..),
... | judah/haskeline | System/Console/Haskeline/Prefs.hs | bsd-3-clause | 5,774 | 0 | 15 | 1,979 | 1,295 | 730 | 565 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
module Stencil2 where
import Control.Monad
import Control.Exception
import System.Random.MWC
import Data.Array.Unboxed hiding (Array)
import Data.Array.Accelerate hiding (round, min, max, fromIntegral)
import qualified Data.Array.IArray as IArray
stencil2D2 :: Fl... | wilbowma/accelerate | accelerate-examples/tests/primitives/Stencil2.hs | bsd-3-clause | 2,440 | 0 | 18 | 858 | 1,227 | 665 | 562 | 48 | 1 |
-- -----------------------------------------------------------------------------
--
-- CharSet.hs, part of Alex
--
-- (c) Chris Dornan 1995-2000, Simon Marlow 2003
--
-- An abstract CharSet type for Alex. To begin with we'll use Alex's
-- original definition of sets as functions, then later will
-- transition to some... | beni55/alex | src/CharSet.hs | bsd-3-clause | 5,261 | 0 | 15 | 1,183 | 1,610 | 847 | 763 | 120 | 7 |
{-# OPTIONS_GHC -fno-implicit-prelude -#include "HsBase.h" #-}
#undef DEBUG_DUMP
-----------------------------------------------------------------------------
-- |
-- Module : GHC.IO
-- Copyright : (c) The University of Glasgow, 1992-2001
-- License : see libraries/base/LICENSE
--
-- Maintainer : lib... | FranklinChen/hugs98-plus-Sep2006 | packages/base/GHC/IO.hs | bsd-3-clause | 31,744 | 362 | 28 | 7,309 | 7,180 | 3,814 | 3,366 | -1 | -1 |
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RankNTypes #-}
module Diagrams.Backend.OpenGL.TwoD.Attributes
( GLRenderM, GLRenderState (..), withStyleState , initialGLRenderState)
where
-- General Haskell
import Control.Mo... | bergey/diagrams-opengl | src/Diagrams/Backend/OpenGL/TwoD/Attributes.hs | bsd-3-clause | 3,142 | 0 | 11 | 942 | 655 | 367 | 288 | 64 | 2 |
{-# Language RankNTypes, ViewPatterns, PatternSynonyms, TypeOperators, ScopedTypeVariables,
KindSignatures, PolyKinds, DataKinds, TypeFamilies, TypeInType, GADTs #-}
module T14552 where
import Data.Kind
import Data.Proxy
data family Sing a
type a --> b = (a, b) -> Type
type family F (f::a --> b) (x::a... | shlevy/ghc | testsuite/tests/patsyn/should_fail/T14552.hs | bsd-3-clause | 1,019 | 0 | 12 | 316 | 208 | 120 | 88 | -1 | -1 |
data Accessor t a = Accessor {
getVal :: t -> a,
setVal :: t -> a -> t
}
data Foo = Foo { p1score_ :: Bar, p2score_ :: Int } deriving Show
data Bar = Bar { bscore_ :: Int, bcheat_ :: Bool } deriving Show
accessor a b = Accessor (\x -> a x) (\x v -> b x v)
p1score = accessor p1score_ (\x v ->... | gcfavorites/hiccup | attic/Accessor.hs | lgpl-2.1 | 905 | 0 | 12 | 249 | 467 | 257 | 210 | 22 | 1 |
module FFI
(module Fay.FFI)
where
import Fay.FFI
| fpco/fay-base | src/FFI.hs | bsd-3-clause | 54 | 0 | 5 | 12 | 17 | 11 | 6 | 3 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Test suite for GHCi like applications including both GHCi and Intero.
module Stack.GhciSpec where
import qualified Data.ByteString.Lazy as LBS
import qualified Data.Map as M
import qualified Data.Set as S
import ... | AndreasPK/stack | src/test/Stack/GhciSpec.hs | bsd-3-clause | 8,765 | 0 | 25 | 2,097 | 1,657 | 965 | 692 | 187 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-
Created : 2015 Aug 26 (Wed) 11:56:37 by Harold Carr.
Last Modified : 2015 Sep 12 (Sat) 11:39:39 by Harold Carr.
-}
module Msg where
import Data.Aeson (FromJSON, ToJSON)
import GHC.Generics
type Name = String
type Msg... | splodingsocks/utah-haskell | infrastructure/src/Msg.hs | apache-2.0 | 464 | 0 | 8 | 112 | 89 | 54 | 35 | 10 | 0 |
{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE PolyKinds, ExplicitForAll #-}
module SAKS_015 where
import Data.Kind (Type)
type T :: forall k -> k -> Type
data T (k :: Type) (a :: k)
| sdiehl/ghc | testsuite/tests/saks/should_compile/saks015.hs | bsd-3-clause | 194 | 0 | 6 | 35 | 48 | 32 | 16 | -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="pt-BR">
<title>All In One Notes Add-On</title>
<maps>
<homeID>top</homeID>
<mapref loca... | thc202/zap-extensions | addOns/allinonenotes/src/main/javahelp/org/zaproxy/zap/extension/allinonenotes/resources/help_pt_BR/helpset_pt_BR.hs | apache-2.0 | 968 | 77 | 67 | 159 | 417 | 211 | 206 | -1 | -1 |
{-# OPTIONS -fno-warn-redundant-constraints #-}
{-# LANGUAGE TypeFamilies, GeneralizedNewtypeDeriving, StandaloneDeriving, FlexibleInstances #-}
-- Test #2856
module T2856 where
import Data.Ratio
----------------------
class C a where
data D a
instance C Bool where
newtype D Bool = DInt Int deriving (Eq, S... | sdiehl/ghc | testsuite/tests/deriving/should_compile/T2856.hs | bsd-3-clause | 761 | 0 | 8 | 143 | 226 | 125 | 101 | 15 | 0 |
module WhereIn7 where
--A definition can be demoted to the local 'where' binding of a friend declaration,
--if it is only used by this friend declaration.
--Demoting a definition narrows down the scope of the definition.
--In this example, demote the top level 'sq' to 'sumSquares'
--This example also aims to test the... | kmate/HaRe | test/testdata/Demote/WhereIn7.hs | bsd-3-clause | 472 | 0 | 6 | 103 | 79 | 44 | 35 | 7 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeFamilies #-}
module Distribution.Types.ComponentLocalBuildInfo (
ComponentLocalBuildInfo(..),
componentIsIndefinite,
maybeComponentInstantiatedWith,
) where
import Prelude ()
import Distribution.Compat.Prelude
import Distribution.ModuleName
import Distribution.... | mydaum/cabal | Cabal/Distribution/Types/ComponentLocalBuildInfo.hs | bsd-3-clause | 5,430 | 0 | 10 | 934 | 670 | 438 | 232 | 78 | 1 |
{-# LANGUAGE CPP #-}
#include "MachDeps.h"
module Main where
import Data.Bits
#if WORD_SIZE_IN_BITS != 64 && WORD_SIZE_IN_BITS != 32
# error unsupported WORD_SIZE_IN_BITS config
#endif
-- a negative integer the size of GMP_LIMB_BITS*2
negativeBigInteger :: Integer
negativeBigInteger = 1 - (1 `shiftL` (64 * 2))
ma... | ezyang/ghc | testsuite/tests/numeric/should_run/T12136.hs | bsd-3-clause | 406 | 0 | 9 | 72 | 64 | 41 | 23 | -1 | -1 |
module Geometry.SpatialHash where
import Algebra.Vector as V
import Data.List as List
import Data.List.Extensions as ListExt
import Data.Map as Map
import Data.Ratio as Ratio
import Data.Ratio.Extensions as RatioExt
import Data.Tuple.Extensions as TupleExt
import Geometry.AABB as AABB
type SpatialHash a = (Map Vector ... | stevedonnelly/haskell | code/Geometry/SpatialHash.hs | mit | 1,967 | 0 | 16 | 313 | 656 | 362 | 294 | 42 | 1 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Warning! This module is considered internal and may have breaking changes
module Routes.TH.Types
( -- * Data types
Resource (..)
, ResourceTree (..)
, Piece (..)
, Dispatch (..)
, CheckOverlap
, FlatResource (..)
--... | ajnsit/snap-routes | src/Routes/TH/Types.hs | mit | 3,114 | 0 | 13 | 746 | 999 | 550 | 449 | 76 | 2 |
module Lambency.Shader.Var where
--------------------------------------------------------------------------------
import Lambency.Shader.Base
import Linear
--------------------------------------------------------------------------------
matrix2Ty :: ShaderVarTy (M22 Float)
matrix2Ty = ShaderVarTy Matrix2Ty
matrix3T... | Mokosha/Lambency | lib/Lambency/Shader/Var.hs | mit | 1,299 | 0 | 7 | 155 | 312 | 160 | 152 | 33 | 1 |
module Physie.List(
maximumByNeighbors
, boolToList
) where
import Control.Lens (view, _2)
import Data.Function (on)
import Data.List (maximumBy)
maximumByNeighbors :: Ord a => (a -> a -> Ordering) -> [a] -> (a,a,a)
maximumByNeighbors f ls = let cls = cycle ls
... | pmiddend/physie | src/Physie/List.hs | mit | 469 | 0 | 13 | 144 | 199 | 108 | 91 | 11 | 1 |
import Utils
nNumbers nDig = 9 * 10^(nDig-1)
lens = map nNumbers [1..]
relativeShifts = zipWith (*) lens [1..]
absoluteShifts = zip [1..] $ scanl (+) 0 relativeShifts
nthDigit n = digit
--nthDigit n = (nDigits, shift, numberShift, nAsDigits, digitShift, digit)
where (nDigits, shift) = last $ takeWhile (\(a... | arekfu/project_euler | p0040/p0040.hs | mit | 696 | 0 | 12 | 173 | 264 | 148 | 116 | 13 | 1 |
{-# LANGUAGE RankNTypes #-}
{- |
Module : Orville.PostgreSQL.Connection
Copyright : Flipstone Technology Partners 2016-2021
License : MIT
-}
module Orville.PostgreSQL.Connection
( Connection,
Pool,
ConnectionUsedAfterCloseError,
ConnectionError,
SqlExecutionError (..),
NoticeReporting (Enabl... | flipstone/orville | orville-postgresql-libpq/src/Orville/PostgreSQL/Connection.hs | mit | 11,198 | 0 | 18 | 2,243 | 1,687 | 862 | 825 | 194 | 10 |
{-
Copyright (c) 2008, 2013
Russell O'Connor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | haasn/colour | Data/Colour/SDTV625.hs | mit | 3,037 | 0 | 11 | 559 | 478 | 264 | 214 | 29 | 1 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
-- | This module creates a class for automating the construction and
-- destruction of JSON objects
module JSON where
import Haste
import Haste.Graphics.Canvas
import Haste.JSON
import Prelude hiding (head, tail, init, last, read, (!!))
import ... | rprospero/PhotoAlign | JSON.hs | mit | 1,880 | 0 | 10 | 434 | 406 | 226 | 180 | 32 | 1 |
-- Double all integers in a list.
module Double where
double :: [Integer] -> [Integer]
double [] = []
double (integer : remainingIntegers)
= (2 * integer) : double remainingIntegers
{- GHCi>
double []
double [1]
double [1, 1]
-}
-- []
-- [2]
-- [2, 2]
| pascal-knodel/haskell-craft | Examples/· Recursion/· Primitive Recursion/Lists/Double.hs | mit | 266 | 0 | 7 | 61 | 65 | 38 | 27 | 5 | 1 |
-- | Understanding the article about profunctor
-- source: https://www.fpcomplete.com/user/liyang/profunctors
module Profunctors where
-- import Data.Functor
-- class Functor f where
-- fmap :: (a -> b) -> f a -> f b
-- import Data.Functor.Contravariant
class Contravariant f where
contramap :: (b -> a... | ardumont/haskell-lab | src/Profunctors.hs | gpl-2.0 | 659 | 0 | 9 | 132 | 159 | 89 | 70 | 10 | 1 |
module Logic.FirstOrderLogic where
import Notes
import qualified Prelude as P (map)
import Functions.Application.Macro
import Sets.Basics.Terms
import Logic.AbstractLogic.Macro
import Logic.AbstractLogic.Terms
import Logic.Prop... | NorfairKing/the-notes | src/Logic/FirstOrderLogic.hs | gpl-2.0 | 17,782 | 15 | 28 | 5,142 | 4,301 | 2,124 | 2,177 | 341 | 1 |
{- |
Module : $Header$
Description : Interface to the Vampire theorem prover via MathServe.
Copyright : (c) Rene Wagner, Klaus Luettich, Rainer Grabbe,
Uni Bremen 2005-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Po... | nevrenato/HetsAlloy | SoftFOL/ProveVampire.hs | gpl-2.0 | 5,647 | 0 | 18 | 1,373 | 777 | 427 | 350 | 80 | 1 |
module PigLatin (plugin) where
-- This plugin converts a page to pig latin if the 'language' metadata
-- field is set to 'pig latin'. This demonstrates how to get access to
-- metadata in a plugin.
import Network.Gitit.Interface
import Data.Char (toLower, toUpper, isLower, isUpper, isLetter)
plugin :: Plugin
plugin ... | tphyahoo/gititpt | plugins/PigLatin.hs | gpl-2.0 | 973 | 0 | 16 | 208 | 364 | 184 | 180 | 22 | 2 |
{-|
Module : Config
Description : Functions for handling Config files
Copyright : (c) Jason Mittertreiner, 2015
License : GPL-3
Maintainer : jmittert@uwaterloo.ca
Stability : experimental
Portability : Unix
This module contains various functions for reading and handling config files
-}
mod... | jmittert/shush | src/Config.hs | gpl-3.0 | 1,960 | 0 | 15 | 433 | 445 | 237 | 208 | 36 | 2 |
module Main where
import Prelude hiding (Left, Right)
import Control.Monad
import Data.List
import Data.Tree
import System.Directory
import System.Environment
import System.Exit
import System.IO
import Data.Board
imp... | NobbZ/pathfinder | Main.hs | gpl-3.0 | 3,742 | 0 | 15 | 1,380 | 1,551 | 799 | 752 | 75 | 4 |
module Language.Dockerfile.Parser where
import Control.Monad (void)
import Data.ByteString.Char8 (pack)
import Data.String
import Text.Parsec hiding (label)
import Text.Parsec.String (Parser)
import qualified Text.Pa... | beijaflor-io/haskell-language-dockerfile | src/Language/Dockerfile/Parser.hs | gpl-3.0 | 5,563 | 0 | 22 | 1,316 | 1,761 | 822 | 939 | 201 | 1 |
area d = pi * (r * r)
where r = d / 2
| dkensinger/haskell | haskellbook/test.hs | gpl-3.0 | 41 | 0 | 7 | 17 | 31 | 16 | 15 | 2 | 1 |
{-
Âîñïîëüçîâàâøèñü ôóíêöèÿìè map è concatMap, îïðåäåëèòå ôóíêöèþ perms, êîòîðàÿ âîçâðàùàåò âñå ïåðåñòàíîâêè, êîòîðûå ìîæíî ïîëó÷èòü èç äàííîãî ñïèñêà, â ëþáîì ïîðÿäêå.
GHCi> perms [1,2,3]
[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
Ñ÷èòàéòå, ÷òî âñå ýëåìåíòû â ñïèñêå óíèêàëüíû, è ÷òî äëÿ ïóñòîãî ñïèñêà èìååòñÿ... | devtype-blogspot-com/Haskell-Examples | Perms/Demo.hs | gpl-3.0 | 604 | 0 | 10 | 105 | 142 | 78 | 64 | 6 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
module Data.FNLP.Common
( Corpus
, corpus
, UBlock
, ublock
, UBlocks (uBlockList)
, TriGram
, trigram
, TriGrams (triGramList)
) where
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Set as S
import Data.CharSet.Unicode.Block (Block(... | RoboNickBot/fnlp | src/Data/FNLP/Common.hs | gpl-3.0 | 2,675 | 0 | 14 | 621 | 788 | 430 | 358 | 73 | 2 |
{-# OPTIONS -cpp #-}
module MD5Compare (plugin) where
import Data.ByteString.Lazy as BSL
import Data.ByteString as BS
import Crypto.Hash.MD5
import System.IO
import PluginAPI
import Control.Monad
import Data.Dynamic
import Strings as S
plugin = PluginI {
magic = None,
pluginName = "MD5 Compare",
getFileR... | glueckself/mhaskell-ss14 | MD5ComparePlugin.hs | gpl-3.0 | 665 | 0 | 10 | 116 | 204 | 117 | 87 | 21 | 1 |
{-# LANGUAGE ExistentialQuantification, TemplateHaskell, TypeSynonymInstances, FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module HEphem.Data where
import Data.Angle
import Test.QuickCheck
import Data.Vector.V3
import Control.Lens hiding (ele... | slspeek/hephem | src/HEphem/Data.hs | gpl-3.0 | 5,980 | 0 | 15 | 1,792 | 2,503 | 1,301 | 1,202 | 160 | 5 |
{-# LANGUAGE CPP #-}
{-|
Module : CmdArgs
Description : Command line options of the voogie executable.
Copyright : (c) Evgenii Kotelnikov, 2019
License : GPL-3
Maintainer : evgeny.kotelnikov@gmail.com
Stability : provisional
-}
module CmdArgs (
Action(..),
CmdArgs(..),
cmdArgsParserInfo
) wh... | aztek/voogie | src/Voogie/Executable/CmdArgs.hs | gpl-3.0 | 2,512 | 0 | 15 | 643 | 574 | 329 | 245 | 64 | 1 |
{-
mtlstats
Copyright (C) 1984, 1985, 2019, 2020, 2021 Rhéal Lamothe
<rheal.lamothe@gmail.com>
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 3 of the License, or (at
your option) an... | mtlstats/mtlstats | test/FormatSpec.hs | gpl-3.0 | 5,835 | 0 | 17 | 1,684 | 1,471 | 787 | 684 | 163 | 1 |
module Language.Untyped.Lexer
(
reserved
, parens
, dot
, identifier
) where
import Data.Functor.Identity
import Text.Parsec
import qualified Text.Parsec.Token as T
languageDef
= T.LanguageDef { T.commentStart = ""
, T.commentEnd = ""
, T.c... | juanbono/tapl-haskell | untyped/src/Language/Untyped/Lexer.hs | gpl-3.0 | 1,109 | 0 | 7 | 378 | 214 | 129 | 85 | 27 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-admin-directory/gen/Network/Google/Resource/Directory/Roles/Update.hs | mpl-2.0 | 3,266 | 0 | 16 | 809 | 465 | 277 | 188 | 71 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Chrononaut.Schema (
-- * Queries
tableExists
, createTable
, getRevision
, setRevision
-- -- * Load/Run Files
-- , runFile
) where
import Chrononaut.Types
import Control.Monad
import Control.Monad.CatchIO
import Data.Int
import Data.Maybe
im... | brendanhay/chrononaut | src/Chrononaut/Schema.hs | mpl-2.0 | 1,794 | 0 | 12 | 434 | 548 | 288 | 260 | 40 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/CreateVolume.hs | mpl-2.0 | 13,576 | 0 | 31 | 3,165 | 1,774 | 1,065 | 709 | 171 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-servicenetworking/gen/Network/Google/Resource/ServiceNetworking/Services/DisableVPCServiceControls.hs | mpl-2.0 | 5,996 | 0 | 16 | 1,250 | 782 | 457 | 325 | 119 | 1 |
-- gold 28 -> (5, 23)
-- goldbach conjecture that all n > 2 is n = p + q for prime p, q; even n
module Pr40 (gold) where
import Pr31
import Pr35
import Text.Printf
gold :: Int -> (Int, Int)
gold n =
if not (n `mod` 2 == 0) then
error (printf "%d not even" n)
else
let
ps = takeWhile... | ekalosak/haskell-practice | Pr40.hs | lgpl-3.0 | 540 | 0 | 15 | 183 | 157 | 90 | 67 | 13 | 2 |
module Identity where
import Test.QuickCheck
import Test.QuickCheck.Checkers
import Test.QuickCheck.Classes
newtype Identity a = Identity a
deriving (Eq, Ord, Show)
instance Functor Identity where
fmap f (Identity a) = Identity (f a)
instance Applicative Identity where
pure = Identity
(Identity f) <*> (Iden... | thewoolleyman/haskellbook | 18/07/haskell-club/Identity.hs | unlicense | 756 | 0 | 11 | 155 | 287 | 147 | 140 | 25 | 1 |
-- Core.hs: The core λ calculus of simpl.
-- Copyright 2014 Jack Pugmire
--
-- 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... | jepugs/simpl | Simpl/Core.hs | apache-2.0 | 1,932 | 0 | 12 | 566 | 502 | 274 | 228 | 36 | 1 |
{- |
Module : Bio.Motions.Utils.Geometry
Description : Utility geometry functions.
License : Apache
Stability : experimental
Portability : unportable
-}
{-# LANGUAGE RecordWildCards #-}
module Bio.Motions.Utils.Geometry where
import Control.Monad
import Control.Applicative
import Data.Maybe
import Linear
t... | Motions/motions | src/Bio/Motions/Utils/Geometry.hs | apache-2.0 | 6,405 | 0 | 24 | 1,768 | 1,746 | 953 | 793 | 116 | 3 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( makeApplication
, getApplicationDev
, makeFoundation
) where
import Import
import Settings
import Yesod.Auth
import Yesod.Default.Config
import Yesod.Default.Main
import Yesod.Default.Handlers
import Network.Wai.Middleware.RequestLogger (logStd... | svdberg/yesod-milk | Application.hs | bsd-2-clause | 3,427 | 0 | 12 | 602 | 646 | 360 | 286 | -1 | -1 |
module Main where
import System.Console.CmdArgs
import Network.HTTP.Neon.ProgType
import Network.HTTP.Neon.Command
main :: IO ()
main = do
putStrLn "hneon"
param <- cmdArgs mode
commandLineProcess param | wavewave/hneon | exe/hneon.hs | bsd-2-clause | 214 | 0 | 8 | 35 | 61 | 33 | 28 | 9 | 1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
{-# OPTIONS_GHC -fno-warn-implicit-prelude #-}
module Paths_ChatServer (
version,
getBinDir, getLibDir, getDynLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
i... | mcdonndi/ChatServer | dist/dist-sandbox-a117d482/build/ChatServer/autogen/Paths_ChatServer.hs | bsd-3-clause | 2,170 | 0 | 10 | 239 | 410 | 238 | 172 | 33 | 1 |
{-# Language OverloadedStrings #-}
--------------------------------------------------------------------
-- |
-- Module : Utils.Katt.Upload
--
-- Upload submodule providing submissions of solutions and parsing of results.
--
-- A submission is done by including all recursively found files and filtering
-- using a file ... | davnils/katt | katt-lib/src/Utils/Katt/Upload.hs | bsd-3-clause | 9,827 | 0 | 18 | 2,110 | 1,985 | 1,047 | 938 | 164 | 9 |
module IOFunc
( ioPrimitives
) where
import Control.Applicative ((<$>))
import Control.Monad.Trans
import Env (bindVars)
import Eval (apply, eval)
import Lib (liftThrows)
import Parser (readE... | cheng81/schemish | src/IOFunc.hs | bsd-3-clause | 2,435 | 0 | 9 | 657 | 824 | 442 | 382 | 50 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Polycephaly.TH (
units
) where
import Test.Tasty
import Test.Tasty.HUnit
import Language.Haskell.TH
import Language.Haskell.TH.Alpha ( areExpAEq )
import Language.Haskell.Polycephaly.TH
units = units_mkFlagDC
units_mkFlagDC =
... | jkarni/polycephalous-instances | tests/Polycephaly/TH.hs | bsd-3-clause | 676 | 0 | 13 | 186 | 138 | 77 | 61 | 15 | 1 |
{-------------------------------------------------------------------------------
MorphGrammar.Hofm.Transf.TTransf
Transformation function represented as a tree of replacement operators
Jan Snajder <jan.snajder@fer.hr>
(c) 2009 TakeLab
University of Zagreb
Faculty of Electrical Engineering and Computing
--------... | jsnajder/hofm | src/MorphGrammar/Hofm/Transf/TTransf.hs | bsd-3-clause | 3,477 | 0 | 13 | 849 | 997 | 525 | 472 | 70 | 7 |
-----------------------------------------------------------
-- |
-- Module : Database.HaskellDB.Sql.Print
-- Copyright : Daan Leijen (c) 1999, daan@cs.uu.nl
-- HWT Group (c) 2003, haskelldb-users@lists.sourceforge.net
-- License : BSD-style
--
-- Maintainer : haskelldb-users@lists.source... | m4dc4p/haskelldb | src/Database/HaskellDB/Sql/Print.hs | bsd-3-clause | 6,411 | 6 | 14 | 1,833 | 2,014 | 1,012 | 1,002 | 119 | 14 |
module Generator (
generateSource
) where
import Control.Monad hiding (join)
import Control.Monad.State hiding (join)
import Data.Char
import Data.List
import qualified Data.Map as M
import qualified Data.Set as S
import Data.String.Utils
import Data.Tuple
import Module
import Parser
import Registry
import Text.Pri... | polarina/opengl-wrangler | gen/Generator.hs | bsd-3-clause | 18,888 | 378 | 28 | 4,018 | 6,288 | 3,276 | 3,012 | 495 | 40 |
{-# LANGUAGE NoImplicitPrelude #-}
module Protocol.ROC.PointTypes.PointType12 where
import Data.Binary.Get (getWord8,Get)
import Data.Word (Word8)
import Prelude (($),
return,
Bool,
Eq,
R... | plow-technologies/roc-translator | src/Protocol/ROC/PointTypes/PointType12.hs | bsd-3-clause | 2,116 | 0 | 9 | 740 | 362 | 205 | 157 | 71 | 1 |
module Main where
import System.Environment (getArgs)
import Network.Factual.API
import Data.Factual.Query.SchemaQuery
import Data.Factual.Response
main :: IO()
main = do
args <- getArgs
let oauthKey = head args
let oauthSecret = last args
let options = Options { token = generateToken oauthKey oauthSecret, ti... | rudyl313/factual-haskell-driver | examples/SchemaExample.hs | bsd-3-clause | 549 | 0 | 12 | 98 | 185 | 92 | 93 | 16 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Config (Config(..), ConfigReader(..), Domain, get) where
import System.Environment as Sys
import Control.Monad.IO.Class
(MonadIO)
import Control.Monad.Reader
(MonadReader, ReaderT)
type Domain
... | svanderbleek/media-server | src/Config.hs | bsd-3-clause | 660 | 0 | 9 | 124 | 173 | 105 | 68 | 24 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.