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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# OPTIONS_GHC -Wall #-}
module ElmFormat.Render.Box where
import Elm.Utils ((|>))
import Box
import ElmVersion (ElmVersion(..))
import AST.V0_16
import qualified AST.Declaration
import qualified AST.Expression
import qualified AST.Module
import qualified AST.Pattern
import qualified AST.Variable
import qualified Ch... | nukisman/elm-format-short | src/ElmFormat/Render/Box.hs | bsd-3-clause | 64,566 | 0 | 31 | 26,504 | 15,615 | 8,091 | 7,524 | 1,418 | 39 |
module Hugs.Storable where
import Hugs.Prelude
foreign import ccall unsafe "Storable_aux.h" readIntOffPtr :: Ptr Int -> Int -> IO Int
foreign import ccall unsafe "Storable_aux.h" readCharOffPtr :: Ptr Char -> Int -> IO Char
-- foreign import ccall unsafe "Storable_aux.h" readWideCharOffP... | OS2World/DEV-UTIL-HUGS | libraries/Hugs/Storable.hs | bsd-3-clause | 3,867 | 0 | 10 | 1,002 | 1,008 | 506 | 502 | 32 | 0 |
-- | A Compiler manages targets and dependencies between targets
--
-- The most distinguishing property of a 'Compiler' is that it is an Arrow. A
-- compiler of the type @Compiler a b@ is simply a compilation phase which takes
-- an @a@ as input, and produces a @b@ as output.
--
-- Compilers are chained using the '>>>'... | sol/hakyll | src/Hakyll/Core/Compiler.hs | bsd-3-clause | 14,153 | 0 | 15 | 3,503 | 2,460 | 1,345 | 1,115 | 195 | 4 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -funbox-strict-fields #-}
module Delorean.Duration (
Duration (..)
, durationToSeconds
, renderDuration
, parseDuration
, durationParser
) where
import Data.Attoparsec.Text
... | ambiata/delorean | src/Delorean/Duration.hs | bsd-3-clause | 1,516 | 0 | 12 | 347 | 475 | 254 | 221 | 58 | 1 |
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
-- |
-- Module : Foreign.OpenCL.Bindings.Internal.Finalizers
-- Copyright : (c) 2011, Martin Dybdal
-- License : BSD3
--
-- Maintainer : Martin Dybdal <dybber@dybber.dk>
-- Stability : experimental
-- Portability : non-portable (GHC extensions)
--
module Fo... | HIPERFIT/hopencl | Foreign/OpenCL/Bindings/Internal/Finalizers.hs | bsd-3-clause | 2,968 | 11 | 15 | 499 | 717 | 368 | 349 | -1 | -1 |
module Data.Functor.Algebra where
import Control.Monad.Free
class Functor f => Algebra f where
alg :: f a -> a
instance Algebra ((,) e) where
alg (_, a) = a
instance Algebra f => Algebra (Free f) where
alg (Pure a) = a
alg (Free f) = alg (alg f)
| jwiegley/functors | Data/Functor/Algebra.hs | bsd-3-clause | 266 | 0 | 8 | 68 | 130 | 67 | 63 | 9 | 0 |
module Nets.Util.QueueSuite (tests) where
import Test.Framework
import Test.Framework.Providers.HUnit
import qualified Test.HUnit.Base as HU
import Test.Framework.Providers.QuickCheck2
import qualified Nets.Util.Queue as Q
tests :: [Test]
tests =
[
testGroup "Queue suite"
[
testGro... | adelbertc/nets-hs | test/Nets/Util/QueueSuite.hs | bsd-3-clause | 814 | 0 | 10 | 165 | 203 | 115 | 88 | 20 | 1 |
module MinIR.Types ( Score
) where
import Numeric.Log
type Score = Log Double
| bgamari/minir | MinIR/Types.hs | bsd-3-clause | 99 | 0 | 5 | 34 | 25 | 15 | 10 | 3 | 0 |
module League.Actions
( module Actions ) where
import League.Actions.Champion as Actions
import League.Actions.Match as Actions
import League.Actions.StaticData as Actions
import League.Actions.Summoner as Actions
| intolerable/league-of-legends | src/League/Actions.hs | bsd-3-clause | 217 | 0 | 4 | 26 | 44 | 32 | 12 | 6 | 0 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TypeFamilies #-}
module BSP
( Process
, Step
-- run
-- , read -- TODO: change names to not conflict with prelude
, step
-- , peerId
-- ... | schernichkin/BSPM | bsp/src/BSP.hs | bsd-3-clause | 3,924 | 0 | 19 | 791 | 676 | 380 | 296 | 52 | 1 |
import qualified Data.Text as T
import Data.Binary
import Data.Hashable (Hashable)
import Data.List (foldl')
import Data.Text.Binary
import System.Environment (getArgs)
import Data.Function (on)
import MinIR.SequentialDependence as SD
import MinIR.Dictionary as D
import MinIR.Types
import Types
import NLP.Stemmer
mai... | bgamari/minir | tools/Query.hs | bsd-3-clause | 826 | 0 | 15 | 182 | 301 | 162 | 139 | 21 | 1 |
-- Compile this with 'ghc -o Game Game.hs' and run it with './Game'.
{-# LANGUAGE RecordWildCards #-}
import Graphics.Gloss.Game
import QuadTree
import Tiles
import Debug.Trace
import Control.Exception.Base (assert)
-- A sprite representing our character
slimeSprite :: Picture
slimeSprite = bmp "Slime.bmp"
grassSpri... | chm90/FunGame | Game.hs | bsd-3-clause | 2,585 | 0 | 17 | 537 | 818 | 449 | 369 | 37 | 1 |
{-# LANGUAGE CPP #-}
module Test.CloseFileHandles(main) where
import Test.Type
#ifdef mingw32_HOST_OS
main = testNone -- don't know how to do this on windows
#else
import Development.Shake
import Development.Shake.FilePath
import System.Posix.IO
import Control.Monad.Extra
import System.Exit
import System.IO
main ... | ndmitchell/shake | src/Test/CloseFileHandles.hs | bsd-3-clause | 2,491 | 0 | 4 | 731 | 26 | 18 | 8 | 51 | 1 |
-- | css 2.1 identifiers
module Language.Css.Build.Idents (
above,
absolute,
absoluteSize,
always,
armenian,
auto,
avoid,
azimuth,
background,
backgroundAttachment,
backgroundColor,
backgroundImage,
backgroundPosition,
backgroundRepeat,
baseline,
behind,
... | anton-k/language-css | src/Language/Css/Build/Idents.hs | bsd-3-clause | 25,628 | 0 | 6 | 5,622 | 7,109 | 3,855 | 3,254 | 889 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
-- {-# OPTIONS_GHC -cpp -DPiForallInstalled #-}
--------------------------------------------------------------------
-- |
-- Copyright : (c) Andreas Reuleaux 2015
-- License : BSD2
-- Maintainer: Andreas Reuleaux <rx@a-rx.info>
-- Stability : experime... | reuleaux/pire | tests/ParserTests/If.hs | bsd-3-clause | 3,839 | 0 | 19 | 1,041 | 722 | 389 | 333 | 34 | 1 |
import Test.HUnit (Assertion, (@=?), runTestTT, Test(..), Counts(..))
import System.Exit (ExitCode(..), exitWith)
import Robot (Bearing(..), Robot, mkRobot,
coordinates, simulate,
bearing, turnRight, turnLeft)
exitProperly :: IO Counts -> IO ()
exitProperly m = do
counts <- m
exitWith $... | pminten/xhaskell | robot-simulator/robot-simulator_test.hs | mit | 1,407 | 0 | 14 | 326 | 550 | 282 | 268 | 37 | 2 |
module Cipher where
import System.Console.CmdTheLine
import Control.Applicative
import Data.Char ( isUpper, isAlpha, isAlphaNum, isSpace
, toLower
)
import Data.List ( intersperse )
import System.IO
import System.Exit
infixr 2 <||>
-- Split a value between predicates and 'or' the re... | glutamate/cmdtheline | test/Cipher.hs | mit | 6,571 | 0 | 13 | 1,986 | 1,948 | 1,105 | 843 | 144 | 7 |
a :: Bool
(a, True) = (True, True)
| roberth/uu-helium | test/staticwarnings/Binding1.hs | gpl-3.0 | 36 | 0 | 5 | 9 | 24 | 14 | 10 | 2 | 1 |
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Main
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
module Main (main)... | olorin/amazonka | amazonka-importexport/test/Main.hs | mpl-2.0 | 549 | 0 | 8 | 103 | 76 | 47 | 29 | 9 | 1 |
{-|
Module : $Header$
Copyright : (c) 2014 Edward O'Callaghan
License : LGPL-2.1
Maintainer : eocallaghan@alterapraxis.com
Stability : provisional
Portability : portable
This module collects together libbladeRF high-level
actions and primitives into a common namespace.
-}
{-# OPTIONS_HAD... | adamwalker/hlibBladeRF | src/LibBladeRF.hs | lgpl-2.1 | 644 | 0 | 4 | 116 | 63 | 46 | 17 | 9 | 0 |
-- * Tagless Typed Interpreters, introduction
module Intro1 where
-- We would like to embed an (object) language whose expressions
-- look like
-- -(1 + 2)
-- * 8 + (- (1+2))
-- The expressions are built of integer literals, negation and addition.
-- The latter is one of our running example, please take note.... | mjhopkins/ttfi | src/haskell/Intro1.hs | apache-2.0 | 1,992 | 1 | 11 | 460 | 395 | 214 | 181 | 26 | 1 |
{-# OPTIONS_GHC -fglasgow-exts #-}
import qualified System.IO.UTF8 as UIO
import System.IO (stderr)
import Prelude hiding (readFile, writeFile, getContents)
import GramLab.Morfette.Utils
import qualified Data.Map as Map
import qualified Data.Set as Set
import qualified GramLab.Data.MultiSet as MSet
import Data.Maybe
im... | gchrupala/morfette | src/GramLab/Morfette/OldMain.hs | bsd-2-clause | 14,982 | 2 | 35 | 5,291 | 3,979 | 2,061 | 1,918 | 237 | 5 |
module Model where
import Model.Feed.Internal
import Model.Resource.Internal
import Data.ByteString (ByteString)
import Data.Text (Text)
import Data.Time (UTCTime)
import Data.Typeable (Typeable)
import Database.Persist.Quasi
import Prelude (Bool, Eq, Int, Ord)... | duplode/dohaskell | src/Model.hs | bsd-3-clause | 735 | 0 | 8 | 167 | 131 | 78 | 53 | -1 | -1 |
module Helper where
import Diagrams.Prelude
import Diagrams.Backend.SVG
import Text.Blaze.Internal
spike :: Trail R2
spike = fromOffsets . map r2 $ [(1,3), (1,-3)]
burst = mconcat . take 13 . iterate (rotateBy (-1/13)) $ spike
colors = cycle [aqua, orange, deeppink, blueviolet, crimson, darkgreen]
example :: Diagr... | ekmett/ghclive | prototypes/multimport/cache/Helper.hs | bsd-3-clause | 513 | 0 | 12 | 83 | 210 | 114 | 96 | 11 | 1 |
module UnitTests.Distribution.Utils.NubList
( tests
) where
import Data.Monoid
import Distribution.Utils.NubList
import Test.Framework
import Test.Framework.Providers.HUnit (testCase)
import Test.Framework.Providers.QuickCheck2
import Test.HUnit (Assertion, assertBool)
tests :: [Test]
tests =
[ testCase "... | plumlife/cabal | Cabal/tests/UnitTests/Distribution/Utils/NubList.hs | bsd-3-clause | 1,428 | 0 | 11 | 243 | 353 | 202 | 151 | 31 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK show-extensions #-}
-- |
-- Module : Yi.Keymap.Vim.Common
-- License : GPL-2
-- Maintainer : yi-devel@googlegroups.com
-- Stability : exper... | TOSPIO/yi | src/library/Yi/Keymap/Vim/Common.hs | gpl-2.0 | 6,378 | 0 | 12 | 1,777 | 1,351 | 788 | 563 | 177 | 1 |
module Language.Haskell.Refact.Utils.Synonyms where
import GHC
{-
This file has synonyms for commonly used AST parser types.
-}
type UnlocParsedHsBind = HsBindLR RdrName RdrName
type ParsedGRHSs = GRHSs RdrName (LHsExpr RdrName)
type ParsedMatchGroup = MatchGroup RdrName (LHsExpr RdrName)
type ParsedLMatch ... | RefactoringTools/HaRe | src/Language/Haskell/Refact/Utils/Synonyms.hs | bsd-3-clause | 535 | 0 | 7 | 106 | 119 | 67 | 52 | 10 | 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="pt-BR">
<title>SVN Digger Files</title>
<maps>
<homeID>svndigger</homeID>
<mapref locat... | thc202/zap-extensions | addOns/svndigger/src/main/javahelp/help_pt_BR/helpset_pt_BR.hs | apache-2.0 | 967 | 77 | 66 | 157 | 409 | 207 | 202 | -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>FuzzDB Files</title>
<maps>
<homeID>fuzzdb</homeID>
<mapref location="ma... | denniskniep/zap-extensions | addOns/fuzzdb/src/main/javahelp/help_tr_TR/helpset_tr_TR.hs | apache-2.0 | 960 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
#ifndef MIN_VERSION_base
#define MIN_VERSION_base(x,y,z) 0
#endif
module Data.Machine.Runner
( foldrT
, foldlT
, foldMapT
, foldT
, runT1
-- Re-exports
, runT
, runT_ ) where
import Data.Machine.Type
import Control.Monad (liftM)
#if !M... | bitemyapp/machines | src/Data/Machine/Runner.hs | bsd-3-clause | 2,089 | 0 | 14 | 583 | 578 | 300 | 278 | 40 | 3 |
module Case3 where
data T = C1 Int Int | C2 Int
f (C1 x y) = 56
caseIt x = case x of
42 -> 1 + f (C1 1 2)
where
f (C1 x y) = x + y
f x = 9
| kmate/HaRe | old/testing/removeCon/Case3.hs | bsd-3-clause | 217 | 0 | 12 | 123 | 99 | 51 | 48 | 7 | 2 |
module PfeBrowserMonad where
import Maybe(isJust)
import Monad(when)
import MT(lift)
import AbstractIO
import FudgetIOMonad1
import PfePlumbing
import PfeBrowserMenu(WindowCmd,ViewCmd,MenuCmd(..),WindowCmd(..))
import PfeBrowserGUI
import PNT(PNT)
import SimpleGraphs(Graph)
import PropParser(parse)
import PropLexer({... | forste/haReFork | tools/pfe/Browser/PfeBrowserMonad.hs | bsd-3-clause | 2,860 | 22 | 13 | 470 | 826 | 479 | 347 | 72 | 1 |
module CaesarCipher_Test ( main ) where
import CaesarCipher
main = do
putStrLn "The message \"Haskell is awesome\" encoded with a shift of 5 characters: "
putStrLn $ encode 5 "Haskell is awesome"
putStrLn "The message \"Mfxpjqq%nx%f|jxtrj\" decoded with a shift of 5 characters: "
putStrLn $ decode 5 "M... | kennyledet/Algorithm-Implementations | Caesar_Cipher/Haskell/warreee/CaesarCipher_test.hs | mit | 339 | 0 | 8 | 66 | 53 | 25 | 28 | 7 | 1 |
module B043.C where
| urbanslug/ghc | testsuite/tests/driver/B043/C.hs | bsd-3-clause | 20 | 0 | 3 | 3 | 6 | 4 | 2 | 1 | 0 |
{-# LANGUAGE GADTs #-}
{-# OPTIONS_GHC -Wall #-}
module W where
import T5424a
data D a where
C1 :: D X
C2 :: D Y
f :: D X -> Int
f C1 = 1
| wxwxwwxxx/ghc | testsuite/tests/gadt/T5424.hs | bsd-3-clause | 152 | 0 | 6 | 49 | 50 | 29 | 21 | 9 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module DiG.GitCmd where
import System.Process (createProcess, CreateProcess(..), StdStream(CreatePipe, UseHandle), proc, shell)
import System.IO (Handle)
import Data.ByteString.Char8 (ByteString, hGetContents, append, unpack)
(~~) :: ByteString -> ByteString -> ByteString
(~~) = ... | oforero/DiG | src/DiG/GitCmd.hs | mit | 1,603 | 0 | 13 | 432 | 527 | 279 | 248 | 31 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Lib
(
-- * Data Structures
Suite,
Doc,
System,
Module,
-- * Main function
suiteParser
) where
-- import Control.Applicative ((<$>), (<*>), (<*), (*>), (<|>), many, (<$))
import Control.Monad
import Data.Char ... | gargoris/SpiderBike | src/Lib.hs | mit | 5,494 | 0 | 12 | 1,978 | 1,125 | 613 | 512 | 129 | 1 |
-- This module defines the internal language syntax.
{-# LANGUAGE DeriveFunctor #-}
module Ast (
Type(..),
Term(..),
Command(..),
Prog(..)
) where
import Data.List (intercalate)
import Symtab (Id(..))
-------
-- Types
data Type =
TyBool
| TyNat
| TyArrow Type Type
deriving (Eq)
-------
-- Terms
... | bagnalla/PCF | src/Ast.hs | mit | 2,952 | 0 | 12 | 923 | 848 | 455 | 393 | 57 | 0 |
{-|
Module: Flaw.Audio
Description: Audio abstraction.
License: MIT
-}
{-# LANGUAGE LambdaCase, TypeFamilies #-}
module Flaw.Audio
( Device(..)
, SoundFormat(..)
, SoundSampleType(..)
, soundSampleSize
) where
import Control.Concurrent.STM
import qualified Data.ByteString as B
import Flaw.ByteStream
impor... | quyse/flaw | flaw-audio/Flaw/Audio.hs | mit | 2,095 | 0 | 13 | 417 | 461 | 257 | 204 | 45 | 5 |
module Main where
import Types
import Instances
import Usage
main :: IO ()
main = return ()
| mkloczko/derive-storable-plugin | test/ids/NewTypeParam/Main.hs | mit | 95 | 0 | 6 | 20 | 33 | 19 | 14 | 6 | 1 |
-- REMOVE THIS DECLARATION WHEN UPLOADING THE FILE TO www.codeeval.com!!!
module FizzBuzz where
import System.Environment (getArgs)
main :: IO ()
main = do
[file] <- getArgs
input <- readFile file
mapM_ (putStrLn . fizzBuzz) $ lines input
fizzBuzz :: String -> String
fizzBuzz line = toSpacedString . process... | RaphMad/CodeEval | src/FizzBuzz.hs | mit | 1,139 | 0 | 14 | 395 | 433 | 223 | 210 | 29 | 1 |
module FluxSyntax where
type Name = String
data Expr
= Float Double
| BinOp Op Expr Expr
| UnOp Op Expr
| Var String
| Call Name [Expr]
| Function Name [Expr] Expr
| Extern Name [Expr]
| If Expr Expr Expr
| For Name Expr Expr Expr Expr
| Let Name Expr Expr
| Flow Name Expr
... | chris-wood/flux | src/FluxSyntax.hs | mit | 450 | 0 | 7 | 153 | 159 | 92 | 67 | 22 | 0 |
module Config where
--------------------
-- Global Imports --
import Graphics.Rendering.OpenGL
import Linear.V2
----------
-- Code --
-- | The render width of the screen.
renderWidth :: Int
renderWidth = 640
-- | The render width of the screen in an OpenGL format.
glRenderWidth :: GLint
glRenderWidth = fromIntegral... | crockeo/netwire-vinyl | src/Config.hs | mit | 1,413 | 0 | 7 | 250 | 239 | 138 | 101 | 29 | 1 |
import Text.ParserCombinators.Parsec
import Data.Char
main = do {putStr "\nExpressao:";
e <- getLine;
case avaliarExpr e of
Left err -> putStr ((show err)++ "\n")
Right r -> putStr ((show r) ++ "\n")}
avaliarExpr e = parse expr "Erro:" e
ret v1 Nothing = v1
ret v1 (Just (op, v2)) = o... | AndressaUmetsu/PapaEhPop | parser/exprParsec.hs | mit | 1,711 | 35 | 16 | 645 | 728 | 371 | 357 | 52 | 2 |
{-# LANGUAGE CPP, NoImplicitPrelude, PackageImports #-}
module Data.Either.Compat (
module Base
) where
import "base-compat" Data.Either.Compat as Base
| haskell-compat/base-compat | base-compat-batteries/src/Data/Either/Compat.hs | mit | 155 | 0 | 4 | 21 | 23 | 17 | 6 | 4 | 0 |
module Functions.Product (productFunctionS) where
import Notes
import Functions.Application.Macro
import Functions.Basics.Macro
import Functions.Basics.Terms
import Functions.Product.Macro
import Functions.Product.Terms
productFunctionS :: Note
productFunc... | NorfairKing/the-notes | src/Functions/Product.hs | gpl-2.0 | 2,020 | 0 | 14 | 625 | 808 | 416 | 392 | 52 | 1 |
module E2ASM.Assembler.Parser
( parse
, parseDirective
, parseInstruction
, ParserState
, mkParserState
) where
import qualified Data.Map as Map
import qualified Data.Text as T
import qualified Data.Word as W
import qualified Text.Parsec as P
imp... | E2LP/e2asm | src/E2ASM/Assembler/Parser.hs | gpl-3.0 | 5,375 | 0 | 14 | 1,552 | 1,786 | 920 | 866 | 135 | 3 |
-- Leftist heap definition similar to that in PFDS Appendix A, p 197, but using
-- Maybe for operations that might fail.
{-# OPTIONS_GHC -XMultiParamTypeClasses #-}
{-# OPTIONS_GHC -XFlexibleInstances #-}
module LeftistHeap(
LeftistHeap(E, T), empty, isEmpty, insert, merge,
findMin, deleteMin, rank, makeT, sample... | fishbee/pfds-haskell | chapter3/LeftistHeap.hs | gpl-3.0 | 1,135 | 0 | 10 | 296 | 473 | 254 | 219 | 34 | 2 |
{-# LANGUAGE InstanceSigs #-}
class Monad m => MonadFix m where
mfix :: (a -> m a) -> m a
-- my solution is wrong? seems to have the same effect...
instance MonadFix [] where
mfix :: (a -> [a]) -> [a]
mfix f = ma
where
ma = f (head ma)
-- from prelude
-- instance MonadFix [] where
-- mfix :: (a -> ... | thalerjonathan/phd | coding/learning/haskell/typeclassopedia/MonadFix.hs | gpl-3.0 | 472 | 0 | 10 | 156 | 104 | 57 | 47 | 7 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-kms/gen/Network/AWS/KMS/EnableKeyRotation.hs | mpl-2.0 | 3,245 | 0 | 9 | 676 | 359 | 220 | 139 | 48 | 1 |
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE ScopedTypeVariables #-}
modul... | kim/kafka-protocol | src/Network/Kafka/Protocol/Request.hs | mpl-2.0 | 2,272 | 43 | 16 | 676 | 588 | 312 | 276 | 65 | 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/VPNGateways/SetLabels.hs | mpl-2.0 | 5,375 | 0 | 19 | 1,257 | 638 | 380 | 258 | 100 | 1 |
{-# LANGUAGE TemplateHaskell, OverloadedStrings #-}
module Model.Volume.SQL
( selectVolumeRow
-- , selectPermissionVolume
, selectVolume
, updateVolume
, insertVolume
-- for expanded queries
, setCreation
, makeVolume
, makePermInfo
) where
import Data.Maybe (fromMaybe)
import qualified Data.Text a... | databrary/databrary | src/Model/Volume/SQL.hs | agpl-3.0 | 3,923 | 0 | 18 | 925 | 821 | 452 | 369 | 89 | 1 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
--------------------------------------------------------------------------------
{-|
Module : Draw
Copyright : (c) Daan Leijen 2003
License : wxWindows
Maintainer : wxhaskell-devel@lists.sourceforge.net
Stability : provisional
Portability : p... | sherwoodwang/wxHaskell | wx/src/Graphics/UI/WX/Draw.hs | lgpl-2.1 | 7,371 | 0 | 14 | 1,616 | 1,958 | 1,022 | 936 | 115 | 3 |
import Control.Applicative
import Control.Monad
import Data.Maybe
import Data.Monoid
import System.Directory
import System.FilePath.Posix
import System.IO
import System.Posix.Files
import System.Process
main :: IO ()
main = do
... | ncaq/to-safe-name | src/Main.hs | unlicense | 2,907 | 0 | 14 | 854 | 964 | 493 | 471 | 81 | 3 |
module Lycopene.Database.HDBC.Query where
import Database.HDBC
import Lycopene.Core (Lycopene(..), ProjectF(..))
import Lycopene.Freer (foldFreer)
import Lycopene.Database.DataSource (DataSource)
import Lycopene.Database.Persist (Persist(..))
import Lycopene.... | utky/lycopene | src/Lycopene/Database/HDBC/Query.hs | apache-2.0 | 1,963 | 0 | 6 | 350 | 108 | 80 | 28 | 7 | 0 |
-- http://stackoverflow.com/questions/9732084/how-do-you-represent-a-graph-in-haskell
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
import Data.Reify
import Control.Applicative
import Data.Traversable
--Pointer-based graph representation
data PtrNode = PtrNode [PtrNode] deriving Show
--Label-based ... | egaburov/funstuff | Haskell/sharing/observable3.hs | apache-2.0 | 1,169 | 3 | 8 | 260 | 215 | 117 | 98 | 20 | 1 |
-- Copyright 2010 Google Inc.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to... | mzero/barley | src/Barley/Project.hs | apache-2.0 | 4,428 | 0 | 14 | 1,098 | 870 | 445 | 425 | 85 | 5 |
{-# LANGUAGE TemplateHaskell #-}
module Rest.Types
( Error(..)
) where
import Data.Aeson.TH
import Data.Text.Lazy
data Error = Error { errorStatus :: Int
, errorMessage :: Text
, errorException :: Maybe Text
}
deriving (Read, Show)
$(deriveJSON de... | jotrk/rest-service | src/Rest/Types.hs | bsd-2-clause | 342 | 0 | 9 | 111 | 83 | 49 | 34 | 10 | 0 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.ARB.GetProgramBinary
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portabl... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/ARB/GetProgramBinary.hs | bsd-3-clause | 899 | 0 | 4 | 103 | 64 | 50 | 14 | 10 | 0 |
module Input
( AppInput(inpClockTime)
, parseWinInput
, mousePos
, lbp
, lbpPos
, lbDown
, rbp
, rbpPos
, rbDown
, keyPress
, keyPressed
, quitEvent
, clockTimeInput
, module SDL.Input.Keyboard.Codes
) where
import Data.Maybe
import FRP.Y... | flomerz/yampa-uhr | src/Input.hs | bsd-3-clause | 4,385 | 0 | 14 | 1,170 | 1,130 | 625 | 505 | 89 | 5 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
module Image
( createImage
, latestImageByName
, launch
, terminate
) where
import Control.Arrow
import Control.Lens
import Control.Monad.Except
import Control.M... | lbodor/amazonia | src/Image.hs | bsd-3-clause | 4,432 | 0 | 18 | 1,160 | 1,303 | 649 | 654 | 98 | 4 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
module Bits (runBits, cmodule) where
import Ivory.Compile.C.CmdlineFrontend
import Ivory.Language hiding (setBit, clearBit, runBits)
import MonadLib.Monads (runState, sets)
runBits :: IO ()
runBits = runCompiler [cmodule] [] initialOpts {outDir = Nothing}
cm... | GaloisInc/ivory | ivory-examples/examples/Bits.hs | bsd-3-clause | 2,479 | 0 | 17 | 587 | 1,181 | 597 | 584 | 72 | 1 |
{-# LANGUAGE OverloadedStrings, StandaloneDeriving, DeriveDataTypeable #-}
{-# LANGUAGE CPP #-}
module Github.Private where
import Github.Data
import Data.Aeson
import Data.Attoparsec.ByteString.Lazy
import Data.Data
import Data.Monoid
import Control.Applicative
import Data.List
import Data.CaseInsensitive (mk)
import... | mavenraven/github | Github/Private.hs | bsd-3-clause | 7,028 | 0 | 23 | 2,023 | 1,936 | 1,013 | 923 | 122 | 4 |
{-# LANGUAGE PatternGuards #-}
module Idris.Elab.Record(elabRecord) where
import Idris.AbsSyntax
import Idris.ASTUtils
import Idris.DSL
import Idris.Error
import Idris.Delaborate
import Idris.Imports
import Idris.ElabTerm
import Idris.Coverage
import Idris.DataOpts
import Idris.Providers
import Idris.Primitives
import... | andyarvanitis/Idris-dev | src/Idris/Elab/Record.hs | bsd-3-clause | 9,510 | 3 | 25 | 3,502 | 3,214 | 1,630 | 1,584 | 184 | 27 |
-- | Definition of HTML content type.
module HiCkevInServant.API.Internal
( HTML
) where
import Network.HTTP.Media ((//), (/:))
import Servant.API (Accept(..))
-- | HTML content type.
data HTML
instance Accept HTML where
contentType _ = "text" // "html" /: ("charset", "utf-8")
| zchn/hi-ckev-in-servant | hi-ckev-in-servant-api/src/HiCkevInServant/API/Internal.hs | bsd-3-clause | 287 | 0 | 7 | 49 | 79 | 50 | 29 | -1 | -1 |
module Obsidian.GCDObsidian.Globs where
------------------------------------------------------------------------------
-- Aliases
type Name = String
| svenssonjoel/GCDObsidian | Obsidian/GCDObsidian/Globs.hs | bsd-3-clause | 153 | 0 | 4 | 14 | 15 | 11 | 4 | 2 | 0 |
{-# LANGUAGE RecordWildCards #-}
-- | read/write ImpulseTracker samples
module Codec.Tracker.IT.Sample (
SampleHeader (..)
, getSampleHeader
, putSampleHeader
) where
import Control.Monad
import Data.Binary
import Data.Binary.Get
import Data.Binary.Put
-- | I... | riottracker/modfile | src/Codec/Tracker/IT/Sample.hs | bsd-3-clause | 4,099 | 0 | 25 | 1,971 | 441 | 269 | 172 | 45 | 1 |
--
-- Finder.hs
--
module Finder where
findSame :: [String] -> [[String]]
findSame fs = map toPair fs
toPair :: String -> [String]
toPair f = [f, f]
| eijian/picfinder | src/Finder1.hs | bsd-3-clause | 152 | 0 | 7 | 31 | 64 | 38 | 26 | 5 | 1 |
-- The @FamInst@ type: family instance heads
{-# LANGUAGE CPP, GADTs #-}
module FamInst (
FamInstEnvs, tcGetFamInstEnvs,
checkFamInstConsistency, tcExtendLocalFamInstEnv,
tcLookupDataFamInst, tcLookupDataFamInst_maybe,
tcInstNewTyCon_maybe, tcTopNormaliseNewTypeTF_maybe,
newFam... | ezyang/ghc | compiler/typecheck/FamInst.hs | bsd-3-clause | 39,872 | 0 | 17 | 11,135 | 4,680 | 2,541 | 2,139 | -1 | -1 |
module Main where
import ABS
(n_div:x:main_ret:i:f:n:obj:reminder:res:the_end) = [0..]
main_ :: Method
main_ [] this wb k =
Assign n (Val (I 4000)) $
Assign x (Sync primality_test [n]) $
k
primality_test :: Method
primality_test [pn] this wb k =
Assign i (Val (I 1)) $
Assign n (Val (I pn)) $
While (ILT... | abstools/abs-haskell-formal | benchmarks/3_primality_test_parallel/progs/4000.hs | bsd-3-clause | 846 | 0 | 18 | 222 | 506 | 256 | 250 | 30 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Challenges.Set1 as S1
import Challenges.Set2 as S2
import Utils.Elmify ((|>))
import qualified Stats.Frequency as Frequency
--import qualified Data.ByteString as B
-- import qualified Data.ByteString.Lazy as BL
import qualified Data.ByteString as B
import T... | eelcoh/cryptochallenge | app/Main.hs | bsd-3-clause | 4,859 | 0 | 12 | 1,259 | 1,181 | 575 | 606 | 146 | 1 |
{-# LANGUAGE RankNTypes, GeneralizedNewtypeDeriving #-}
module Types where
import Data.Text (Text)
import System.Exit
import Control.Monad.IO.Class
import Control.Applicative
import System.Posix.Process.ByteString
import Data.ByteString.Char8 (ByteString)
data Command = Command Exp [Exp]
deriving (Read, ... | firefrorefiddle/hssh | src/Types.hs | bsd-3-clause | 967 | 0 | 7 | 291 | 263 | 150 | 113 | 28 | 1 |
module Main where
check :: Maybe (Int,Int,Int,Int) -> Char -> Maybe (Int,Int,Int,Int)
check Nothing c = Nothing
check (Just (r,g,y,b)) c
| 1 < (abs (nr - ng)) = Nothing
| 1 < (abs (ny - nb)) = Nothing
| otherwise = Just (nr, ng, ny, nb)
where (nr,ng,ny,nb) = case c of
'R' -> (r+... | everyevery/programming_study | hackerrank/functional/sequence-full-of-colors/sequence-full-of-colors.hs | mit | 1,036 | 0 | 20 | 466 | 486 | 264 | 222 | 23 | 4 |
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DataKinds, FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
... | yesodweb/persistent | persistent-mysql/test/CustomConstraintTest.hs | mit | 2,946 | 0 | 17 | 819 | 361 | 186 | 175 | 46 | 1 |
{-# LANGUAGE LambdaCase, FlexibleContexts #-}
module Commands.Plugins.Spiros.Edit.Run where
import Commands.Plugins.Spiros.Edit.Types
import Commands.Plugins.Spiros.Emacs
import Commands.Plugins.Spiros.Extra
import Commands.Backends.Workflow as W
rankMove :: Move -> Int
rankMove _m = 0
rankEdit :: Edit -... | sboosali/commands-spiros | config/Commands/Plugins/Spiros/Edit/Run.hs | gpl-2.0 | 5,004 | 0 | 11 | 1,170 | 1,156 | 560 | 596 | 98 | 19 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-ecs/gen/Network/AWS/ECS/DescribeTasks.hs | mpl-2.0 | 4,053 | 0 | 13 | 910 | 610 | 365 | 245 | 67 | 1 |
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE Rank2Types #-}
module Language.K3.Runtime.FileDataspace (
FileDataspace(..),
getFile, -- Should this really be exported? Used to pack dataspace
initDataDir,
generateCollectionFilename,
emptyFile,
init... | DaMSL/K3 | src/Language/K3/Runtime/FileDataspace.hs | apache-2.0 | 12,552 | 0 | 18 | 3,111 | 4,040 | 1,964 | 2,076 | 281 | 14 |
-- | The Console process has two main purposes. It is a telnet-like
-- interface with the user and it is our first simple logging device
-- for what happens inside the system.
{-# LANGUAGE ScopedTypeVariables #-}
module Process.Console
( start
)
where
import Control.Concurrent
import Control.Concurrent.STM... | beni55/combinatorrent | src/Process/Console.hs | bsd-2-clause | 2,785 | 0 | 18 | 952 | 653 | 331 | 322 | 66 | 4 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Extract Haskell values from running STG programs.
module Stg.Marshal.FromStg (
FromStg(..),
FromStgError(..),
) where
import Data.Bifunctor
import Stg.Language
import qualified Stg.Machin... | quchen/stg | src/Stg/Marshal/FromStg.hs | bsd-3-clause | 11,901 | 0 | 19 | 2,884 | 3,431 | 1,768 | 1,663 | 189 | 6 |
module Renderer (UIEvents(..), setup, shutdown, onlyEvery, fps, frameCounter,
onlyEveryN, module Graphics.UI.GLFW, rateLimitHz) where
import Control.Applicative
import Control.Arrow ((***))
import Control.Concurrent (threadDelay)
import Control.Concurrent.MVar
import Control.Monad (when)
import Control... | acowley/PcdViewer | src/Renderer.hs | bsd-3-clause | 5,763 | 0 | 15 | 2,155 | 1,547 | 801 | 746 | 98 | 2 |
{-@ LIQUID "--real" @-}
{-# LANGUAGE CPP #-}
#define DISCOUNT_PERCENTAGE 2
#define BOOK_THRESHOLD 2
module Books where
calculateDiscount' :: Customer -> Int -> Int
---------------------------------------------------------------------------------------
-- 1. Define: Types of customers
---------------------... | abakst/liquidhaskell | tests/neg/Books.hs | bsd-3-clause | 2,371 | 0 | 7 | 309 | 248 | 138 | 110 | 21 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.GL
-- Copyright : (c) Sven Panne 2002-2013
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portable
--
-- A Haskell bi... | IreneKnapp/direct-opengl | Graphics/Rendering/OpenGL/GL.hs | bsd-3-clause | 4,866 | 0 | 5 | 446 | 729 | 562 | 167 | 83 | 0 |
{-# LANGUAGE BangPatterns #-}
-- | This module defines a type for mutable, integer-valued counters.
-- Counters are non-negative, monotonically increasing values and can
-- be used to track e.g. the number of requests served since program
-- start. All operations on counters are thread-safe.
module System.Remote.Count... | fpco/ekg | System/Remote/Counter.hs | bsd-3-clause | 824 | 0 | 14 | 186 | 211 | 113 | 98 | 17 | 1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[PrelNames]{Definitions of prelude modules and names}
Nota Bene: all Names defined in here should come from the base package
- ModuleNames for prelude modules,
e.g. pREL_BASE_Name :: ModuleName
- Modules for prelude modules
e... | fmthoma/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | 86,446 | 0 | 10 | 20,048 | 13,256 | 7,549 | 5,707 | 1,303 | 2 |
{-# LANGUAGE GADTs #-}
module CmmSwitch (
SwitchTargets,
mkSwitchTargets,
switchTargetsCases, switchTargetsDefault, switchTargetsRange, switchTargetsSigned,
mapSwitchTargets, switchTargetsToTable, switchTargetsFallThrough,
switchTargetsToList, eqSwitchTargetWith,
SwitchPlan(..),
targ... | urbanslug/ghc | compiler/cmm/CmmSwitch.hs | bsd-3-clause | 16,040 | 0 | 15 | 3,366 | 3,001 | 1,680 | 1,321 | 156 | 5 |
module PatIn1 where
--Default parameters can be added to definition of functions and simple constants.
--In this example: add parameter 'x' to 'foo'
foo :: Int
foo = h + t where (h,t) = head $ zip [1..10] [3..15]
main :: Int
main = foo | mpickering/HaRe | old/testing/addOneParameter/PatIn1.hs | bsd-3-clause | 239 | 0 | 9 | 48 | 63 | 37 | 26 | 5 | 1 |
module Scope2 where
-- import qualified Control.Parallel.Strategies as T
import qualified Control.Parallel.Strategies as S
-- should fail, as there are two possible qualifiers...
f = let n1 = S.runEval (do n1' <- S.rpar n11
return n1')
in n1 + n22
where
n11 = f
... | RefactoringTools/HaRe | old/testing/evalAddEvalMon/Scope2.hs | bsd-3-clause | 336 | 0 | 15 | 113 | 73 | 40 | 33 | 7 | 1 |
{-# LANGUAGE TypeInType, ExistentialQuantification #-}
module T16221a where
data SameKind :: k -> k -> *
data T2 a = forall k (b :: k). MkT2 (SameKind a b) !Int
| sdiehl/ghc | testsuite/tests/polykinds/T16221a.hs | bsd-3-clause | 164 | 0 | 8 | 33 | 52 | 31 | 21 | -1 | -1 |
module Main where
import Data.Char
{-# NOINLINE f #-}
f :: Int -> String
f x = "NOT FIRED"
{-# NOINLINE neg #-}
neg :: Int -> Int
neg = negate
{-# RULES
"f" forall (c::Char->Int) (x::Char). f (c x) = "RULE FIRED"
#-}
main = do { print (f (ord 'a')) -- Rule should fire
; print (f (neg 1)) } ... | snoyberg/ghc | testsuite/tests/simplCore/should_run/simplrun008.hs | bsd-3-clause | 352 | 0 | 11 | 104 | 89 | 50 | 39 | 12 | 1 |
module Reverse where
-- Sym p q == x:a, y:a<p x> |- { v:a | v = x} <: a<q y>
{- rgo :: (Sym p q) => x:a -> [a<q x>]<q> -> [a<p x>]<p> -> [a]<q> @-}
{-@ rev :: forall <p :: a -> a -> Prop, q :: a -> a -> Prop, q1 :: a -> a -> Prop>.
{x::a, y::a<p x> |- {v:a|v=x} <: a<q y>}
x:a -> [a<p x>]<p> -> [a<q x>]<q> -... | ssaavedra/liquidhaskell | benchmarks/icfp15/todo/Reverse.hs | bsd-3-clause | 464 | 0 | 8 | 138 | 90 | 52 | 38 | 4 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude, ExistentialQuantification #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Exception
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries... | abakst/liquidhaskell | benchmarks/base-4.5.1.0/Control/Exception.hs | bsd-3-clause | 14,225 | 0 | 10 | 2,959 | 552 | 371 | 181 | 60 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Parser.Expression (
expression
) where
import Core
expression :: SpecWith ()
expression = describe "expr" $ do
-- define some shorthands to save some keystrokes
let parseExpr = parseOnly (fmap bareExpr $ expr >>= unSemiP)
let var = Fix . Variable
let float ... | djeik/goto | test/Parser/Expression.hs | mit | 8,371 | 0 | 21 | 2,928 | 2,985 | 1,442 | 1,543 | 177 | 1 |
{-# LANGUAGE OverloadedStrings #-}
---------------------------------------------------------------
--
-- Module: Quark.Buffer
-- Author: Stefan Peterson
-- License: MIT License
--
-- Maintainer: Stefan Peterson (stefan.j.peterson@gmail.com)
-- Stability: Stable
-- Portability: Portable
--
-- ---------... | sjpet/quark | src/Quark/Buffer.hs | mit | 17,803 | 0 | 15 | 6,271 | 5,536 | 2,971 | 2,565 | 403 | 10 |
module Systat.Module.DateTime (dateTime) where
import Systat.Module
dateTime :: Module
dateTime = Module {
name = "datetime"
, prefix = "🕐: "
, command = "date"
, args = ["+%d/%m %H:%M:%S"]
, parse = \x -> return (Neutral, x)
}
| mfaerevaag/systat | src/Systat/Module/DateTime.hs | mit | 244 | 0 | 9 | 52 | 76 | 48 | 28 | 9 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_HADD... | NicolasT/reedsolomon | src/Data/Vector/Generic/Sized.hs | mit | 5,002 | 0 | 15 | 1,237 | 1,177 | 668 | 509 | -1 | -1 |
module Source
(
Source,
create,
table
)
where
import Table (Table)
import qualified Table
data Source =
Source Table
deriving (Eq, Ord, Show)
create :: Table -> Source
create t = Source t
table :: Source -> Table
table (Source t) = t
| rcook/hqdsl | src/lib/Source.hs | mit | 249 | 0 | 7 | 58 | 94 | 53 | 41 | 14 | 1 |
nodes1 = [[3]
,[7, 4]
,[2, 4, 6]
,[8, 5, 9, 3]]
nodes2 = [[75]
,[95, 64]
,[17, 47, 82]
,[18, 35, 87, 10]
,[20, 04, 82, 47, 65]
,[19, 01, 23, 75, 03, 34]
,[88, 02, 77, 73, 07, 63, 67]
,[99, 65, 04, 28, 06, 16, 70, 92]
,[4... | dpieroux/euler | 0/0018.hs | mit | 1,045 | 0 | 10 | 395 | 599 | 379 | 220 | 29 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
-----------------------------------------------------------------------------
-- |
-- Module : Main
-- Copyright : (c) 2015, J... | jkozlowski/better-bot | app/Main.hs | mit | 7,805 | 14 | 20 | 2,828 | 1,824 | 979 | 845 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies ... | fpco/stackage-curator | src/Stackage/PackageDescription.hs | mit | 6,332 | 0 | 20 | 2,121 | 1,499 | 791 | 708 | 120 | 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.