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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
-- hello.hs my hola mundo
main = do
--let é necesario para declarar variables en ambitos locais pertencentes a funcions
let x = "adios mundo"
print ("hola mundo " ++ x)
| jmlb23/haskell | ch00/hello.hs | gpl-3.0 | 174 | 0 | 9 | 35 | 30 | 15 | 15 | 3 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module Model where
import ClassyPrelude.Yesod
import Database.Persist.Quasi
import Text.Markdown (Markdown)
import Yesod.Text.Markdown()
-- You can define all of your database entities in the entities file.
-- You can find more information on persistent and how to declare entities... | garry-cairns/ILikeWhenItWorks | ILikeWhenItWorks/Model.hs | gpl-3.0 | 581 | 0 | 8 | 84 | 92 | 55 | 37 | -1 | -1 |
import XMonad
import Data.Monoid
import System.Exit
import XMonad.Config.Azerty
import XMonad.Hooks.DynamicLog
import XMonad.Layout.Grid
import XMonad.Layout.Roledex
import qualified XMonad.StackSet as W
import qualified Data.Map as M
myTerminal = "urxvt"
myFocusFollowsMouse :: Bool
myFocusFollowsMouse = Fal... | wlaaraki/dotfiles | xmonad/xmonad.hs | gpl-3.0 | 4,357 | 2 | 14 | 1,594 | 1,299 | 755 | 544 | 91 | 6 |
-- 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/MEnv/IOS/Init.hs | gpl-3.0 | 3,466 | 0 | 11 | 1,042 | 667 | 362 | 305 | 67 | 5 |
module Main where
import Parser
main :: IO ()
main = do
seminar <- leseSeminar "jena/"
print seminar
| turion/hasched | Main.hs | gpl-3.0 | 108 | 0 | 8 | 25 | 38 | 19 | 19 | 6 | 1 |
{-# LANGUAGE Safe, NoMonomorphismRestriction #-}
module Text.ParserCombinators.MyParser.Exercises.N0.Lexer where
import MonadLib
import Control.Applicative
import Data.Functor.Identity
import Data.Char
import Data.Maybe
import Data.Either
import Text.ParserCombinators.MyParser
data N0 = VAR String | NUM In... | tapuu/MyParser | Text/ParserCombinators/MyParser/Exercises/N0/Lexer.hs | gpl-3.0 | 1,702 | 52 | 13 | 432 | 706 | 372 | 334 | 56 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-mirror/gen/Network/Google/Resource/Mirror/Timeline/Attachments/Insert.hs | mpl-2.0 | 3,919 | 0 | 23 | 1,027 | 492 | 279 | 213 | 73 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.BigQueryDataTransfer.Types.Sum
-- Copyright : (c) 2015... | brendanhay/gogol | gogol-bigquerydatatransfer/gen/Network/Google/BigQueryDataTransfer/Types/Sum.hs | mpl-2.0 | 21,658 | 0 | 11 | 4,708 | 2,943 | 1,580 | 1,363 | 353 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dialogflow/gen/Network/Google/Resource/DialogFlow/Projects/Agent/Sessions/Contexts/Create.hs | mpl-2.0 | 6,034 | 0 | 17 | 1,343 | 787 | 461 | 326 | 121 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Main
-- Copyright :
-- License : AllRightsReserved
--
-- Maintainer :
-- Stability :
-- Portability :
--
-- |
--
-----------------------------------------------------------------------------
... | MathiasGarnier/RandomProject | Haskell/Apprentissage/src/Main.hs | apache-2.0 | 729 | 0 | 7 | 164 | 73 | 48 | 25 | 6 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Lst.Domain where
import Text.Parsec.Char (char)
import Text.Parsec.Combinator (sepBy)
import ClassyPrelude
import Modifications
import Common
type DomainSpell = (String, Int, String)
data DomainDefinition = DomainDescription String
| DomainSpellLevel ... | gamelost/pcgen-rules | src/Lst/Domain.hs | apache-2.0 | 1,177 | 0 | 11 | 265 | 266 | 143 | 123 | 32 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Kubernetes.V1.ComponentStatusList where
import GHC.Generics
import Data.Text
import Kubernetes.Unversioned.ListMeta
import Kubernetes.V1.Compon... | minhdoboi/deprecated-openshift-haskell-api | kubernetes/lib/Kubernetes/V1/ComponentStatusList.hs | apache-2.0 | 1,441 | 0 | 9 | 191 | 125 | 77 | 48 | 19 | 0 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QStyleOptionTabWidgetFrame.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:35
Warning : this file is machine g... | keera-studios/hsQt | Qtc/Enums/Gui/QStyleOptionTabWidgetFrame.hs | bsd-2-clause | 4,488 | 0 | 18 | 921 | 1,080 | 532 | 548 | 90 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Desugaring exporessions.
-}
{-# LANGUAGE CPP #-}
module DsExpr ( dsExpr, dsLExpr, dsLocalBinds, dsValBinds, dsLit ) where
#include "HsVersions.h"
import Match
import MatchLit
import DsBinds
import DsGRHSs
import DsList... | gcampax/ghc | compiler/deSugar/DsExpr.hs | bsd-3-clause | 38,169 | 48 | 25 | 11,444 | 7,900 | 4,030 | 3,870 | -1 | -1 |
{-# LANGUAGE PatternGuards #-}
-----------------------------------------------------------------------------
-- |
-- Module : Text.CSL.Pickle
-- Copyright : (c) Uwe Schmidt Andrea Rossato
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Andrea Rossato <andrea.rossato@unitn.it>
-- Stability : u... | singingwolfboy/citeproc-hs | src/Text/CSL/Pickle.hs | bsd-3-clause | 11,718 | 135 | 22 | 3,719 | 4,927 | 2,575 | 2,352 | 286 | 4 |
{-# LANGUAGE DeriveDataTypeable #-}
module Data.Minc.Types where
import Control.Exception
import Data.Typeable
import System.IO (IOMode (..))
data MincType = Minc_Byte -- ^ 8-bit signed integer
| Minc_Short -- ^ 16-bit signed integer
| Minc_Int -- ^ 32-bit si... | carlohamalainen/hminc | Data/Minc/Types.hs | bsd-3-clause | 9,561 | 0 | 11 | 3,382 | 1,380 | 753 | 627 | 193 | 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 OverloadedStrings #-}
module Duckling.Duration.HU.Corpus
( corpus ) where
import Data.String
impo... | facebookincubator/duckling | Duckling/Duration/HU/Corpus.hs | bsd-3-clause | 1,913 | 0 | 9 | 703 | 360 | 208 | 152 | 49 | 1 |
module Tut.Imports (module X) where
import Control.Arrow as X
import Data.Map as X ( Map )
import Data.Text as X ( Text )
import Control.Monad.Except as X
import Control.Monad.Reader as X
import Control.Monad.Writer ... | aaronvargo/htut | src/Tut/Imports.hs | bsd-3-clause | 550 | 0 | 5 | 232 | 105 | 75 | 30 | 12 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ViewPatterns #-}
-- | A module for actually drawing mazes built from grids. It uses
-- Cairo, which is a canvas-like drawing library based on GtK.
module Draw where
import Control.Applicat... | proc0/inductive-mazes | src/Draw.hs | bsd-3-clause | 2,701 | 0 | 15 | 770 | 631 | 351 | 280 | 45 | 2 |
module MaybeResult
( MaybeRes(..)
, getResult
, getError
, isError
, isOK
) where
data MaybeRes a = JustRes a | Error String
getResult :: MaybeRes a -> a
getResult (JustRes x) = x
getResult e = error
("Remember about using 'isError'. The error was: " ++ (getError e))
isError :: M... | kanes115/Regressions | src/MaybeResult.hs | bsd-3-clause | 985 | 0 | 9 | 319 | 372 | 188 | 184 | 32 | 1 |
{-# OPTIONS -Wall -fwarn-tabs -fno-warn-type-defaults #-}
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable, DeriveGeneric #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
import Control.Distributed.Process.Backend.SimpleLocalnet
import Control.Distributed.Process.Node as Node hiding (newLocalNo... | weihu816/Adagio | app/Node.hs | bsd-3-clause | 646 | 0 | 11 | 85 | 128 | 72 | 56 | 14 | 1 |
-- | Paragon Parser. Symbols and separators.
module Language.Java.Paragon.Parser.Symbols where
import Text.ParserCombinators.Parsec
import Language.Java.Paragon.Lexer
import Language.Java.Paragon.Parser.Helpers
parens :: P a -> P a
parens = between openParen closeParen
openParen :: P ()
openParen = tok OpenParen <?... | bvdelft/paragon | src/Language/Java/Paragon/Parser/Symbols.hs | bsd-3-clause | 858 | 0 | 6 | 153 | 306 | 155 | 151 | 26 | 1 |
module BivarInterpolNewton where
import qualified Data.Matrix as Mx
import qualified Data.Vector as Vec
import Library
-- z = f(x, y)
-- h₁ = 𝚫x = const, h₂ = 𝚫y = const
-- 𝚫ₓzᵢⱼ = z_(i+1, j) - zᵢⱼ
-- 𝚫ᵧzᵢⱼ = z_(i, j+1) - zᵢⱼ
-- 𝚫²ₓₓzᵢⱼ = z_(i+2, j) - 2z_(i+1, j) + zᵢⱼ
-- 𝚫²ᵧᵧzᵢⱼ = z_(i, j... | hrsrashid/nummet | lib/BivarInterpolNewton.hs | bsd-3-clause | 2,580 | 0 | 21 | 864 | 1,101 | 614 | 487 | 54 | 1 |
module Lib2 where
import Control.Applicative
import Control.Monad.State
import System.Environment
import System.IO
import Lib
data Option = OptionIo {
inPath :: String,
outPath :: String
}
| OptionStdout {
inPath :: String
}
| OptionT {
tPath :: String,
outPath :: String
}... | mengcz13/haskell_project | src/Lib2.hs | bsd-3-clause | 2,660 | 0 | 14 | 836 | 896 | 430 | 466 | 96 | 2 |
module Lib where
someFunc :: IO ()
someFunc = putStrLn "someFunc"
problemOne :: [a] -> Maybe a
problemOne [] = Nothing
problemOne (x:[]) = Just x
problemOne (x:xs) = problemOne xs
problemTwo :: [a] -> Maybe a
problemTwo [] = Nothing
problemTwo [x] = Nothing
problemTwo (x:y:[]) = Just x
problemTwo (x:x... | EFulmer/haskell-ninety-nine | src/Lib.hs | bsd-3-clause | 2,032 | 0 | 11 | 484 | 989 | 519 | 470 | 54 | 3 |
{- Little endian byte string parser
-}
module Network.OpenFlow.Parser.Word where
import Control.Applicative
import Data.Attoparsec.ByteString
import Data.Bits
import Data.Word
-- |
-- >>> parseTest anyWord16 (pack [0x01, 0x02])
-- Done "" 18
anyWord16 :: Parser Word16
anyWord16... | utky/openflow | src/Network/OpenFlow/Parser/Word.hs | bsd-3-clause | 565 | 0 | 9 | 135 | 139 | 71 | 68 | 15 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module SatO.Karma.Graph (karmaGraph) where
import Data.Bifunctor (second)
import Control.Monad.Trans.State.Strict (State, get, put, runState)
import Data.Time (NominalDiffTime, UTCTime, diffUTCTime)
import Numeric.GSL.ODE (odeSolve)
import Numeric.LinearAlgebra.Data (lin... | osakunta/karma | src/SatO/Karma/Graph.hs | bsd-3-clause | 1,947 | 6 | 19 | 517 | 778 | 424 | 354 | 47 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
module Fragment.Case.Ast (
module X
) where
import Fragment.Case.Ast.Error as X
import Fragment.Case.Ast.Warning as X
import Fragment.Case.Ast.Term as X
| dalaing/type-systems | src/Fragment/Case/Ast.hs | bsd-3-clause | 313 | 0 | 4 | 55 | 41 | 31 | 10 | 5 | 0 |
module Test.Simulator.TestCommon where
import Andromeda.Assets.SpaceshipSample
import Andromeda.Simulator
makeRunningSimulation = do
simModel <- compileSimModel networkDef
pipe <- createPipe :: IO SimulatorPipe
simHandle <- startSimulation pipe process simModel
return (pipe, simHandle)
simulateSingleReq req ... | graninas/Andromeda | trash/TestCommon.hs | bsd-3-clause | 620 | 0 | 8 | 87 | 160 | 78 | 82 | 16 | 1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.StdinReader
-- Copyright : (c) Spencer Janssen
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Spencer Janssen <spencerjanssen@gmail.com>
-- Stability : unstable
-- Por... | neglectedvalue/xmobar-freebsd | Plugins/XMonadLog.hs | bsd-3-clause | 1,890 | 0 | 19 | 497 | 391 | 208 | 183 | 34 | 1 |
-- | To learn more about pipes-group and how to use these functions with it, check out the in
-- depth tutorial at <http://hackage.haskell.org/package/pipes-group/docs/Pipes-Group-Tutorial.html>
module Pipes.Break.Text (
-- * Group Producers By A Delimiter
-- | Break any producer up into groups with the delimite... | mindreader/pipes-break | src/Pipes/Break/Text.hs | bsd-3-clause | 4,353 | 0 | 11 | 827 | 653 | 375 | 278 | 26 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
module Database.InfluxDB.Simple.Classy.Types.Precision
( Precision (..)
, AsPrecision (..)
, defaultPrecision
) where
import Control.Lens (Iso', Prism', ... | mankyKitty/classy-influxdb-simple | src/Database/InfluxDB/Simple/Classy/Types/Precision.hs | bsd-3-clause | 1,766 | 0 | 11 | 514 | 427 | 236 | 191 | 52 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GHCForeignImportPrim #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE UnliftedFFITypes #-}
module GHC.V... | alphaHeavy/vacuum-tube | GHC/VacuumTube/Limbo.hs | bsd-3-clause | 7,131 | 0 | 19 | 1,428 | 2,641 | 1,334 | 1,307 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses #-}
module Lexer.Types where
import Protolude
import qualified Data.Text as T
import Common.ParserT
import Common.Stream
instance Stream Text Char where
read = T.uncons
type Lexer = ParserT Text Identity
execLexer :: Lexer a -> Text -> Either ParserError a
e... | noraesae/monkey-hs | lib/Lexer/Types.hs | bsd-3-clause | 361 | 0 | 7 | 75 | 90 | 52 | 38 | 11 | 1 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, TemplateHaskell, QuasiQuotes #-}
module UntypedTests where
import Test.Framework (defaultMain, testGroup, defaultMainWithArgs)
import Test.Framework.Providers.HUnit
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Test.QuickCheck
import Test.HUnit
i... | jfischoff/LambdaPrettyQuote | tests/UntypedTests.hs | bsd-3-clause | 6,153 | 0 | 12 | 1,647 | 1,697 | 943 | 754 | 154 | 2 |
module CodeGeneration.JavascriptCode where
import qualified Tree.TemplateExpression as TE
data JavascriptCode = JavascriptCode {
-- | Write the JS code for an anonymous function
writeFunction :: [String] -> String -> String,
-- | Check if a word is reserved in JS
isReserved :: String -> Bool,
... | sergioifg94/Hendoman | src/CodeGeneration/JavascriptCode.hs | bsd-3-clause | 402 | 0 | 10 | 93 | 65 | 41 | 24 | 6 | 0 |
module SyntaxRec(module SyntaxRec,module HasBaseStruct,module Recursive,module HsConstants) where
import Maybe(fromMaybe)
import SrcLoc1
import BaseSyntax
import HasBaseStruct
import SpecialNames
import Recursive
import HsConstants(main_mod,main_name,mod_Prelude,is_unit_tycon_name)
import Data.Generics
-- Tie the rec... | forste/haReFork | tools/base/syntax/SyntaxRec.hs | bsd-3-clause | 4,249 | 13 | 17 | 1,007 | 1,429 | 768 | 661 | -1 | -1 |
-- |
-- Experimental combinators, that may become part of the main distribution, if
-- they turn out to be useful for a wider audience.
module Test.Hspec.Expectations.Contrib (
module Test.Hspec.Expectations
-- * Predicates
-- | (useful in combination with `shouldSatisfy`)
, isLeft
, isRight
) where
import Test.Hs... | adinapoli/hspec-expectations | src/Test/Hspec/Expectations/Contrib.hs | mit | 498 | 0 | 7 | 91 | 118 | 67 | 51 | 11 | 1 |
import System.Environment (getArgs)
import NumberTheory (toDigs)
-- TODO: use log 10 and check palindrome with division and mod
-- see if there's a good bit hack for this
pe4 :: Int -> Int
pe4 n = maximum [ x*y | x <- dom, y <- dom, x <= y,
toDigs (x*y) == reverse (toDigs (x*y)) ]
where dom = [... | sergsr/projeu | src/pe004.hs | mit | 397 | 0 | 13 | 103 | 170 | 91 | 79 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{- |
Module : Crypto.Gpgme.Key.Gen
License : Public Domain
Maintainer : daveparrish@tutanota.com
Stability : experimental
Portability : untested
Key generation for h-gpgme.
It is suggested to import as qualified. For example:
> import qualified Crypto.Gpgme.Key.Gen a... | mmhat/h-gpgme | src/Crypto/Gpgme/Key/Gen.hs | mit | 7,755 | 0 | 14 | 1,879 | 1,798 | 972 | 826 | 145 | 13 |
--
--
--
----------------
-- Exercise 4.1.
----------------
--
--
--
module E'4''1 where
maxThree :: Integer -> Integer -> Integer -> Integer
maxThree a b c
= max (max a b) c
{- GHCi>
-- Three equal:
maxThree 0 0 0
-- Two equal:
maxThree 0 0 1
maxThree 0 1 0
maxThree 1 0 0
-- All different:
maxThree 0 1 ... | pascal-knodel/haskell-craft | _/links/E'4''1.hs | mit | 793 | 0 | 12 | 271 | 240 | 131 | 109 | 17 | 1 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : $Header$
Description : skolemization as an institution comorphism
Copyright : (c) Mihai Codescu, 2016
License : GPLv2 or higher, see LICENSE.txt
Maintainer : codescu@iws.cs.uni-magdeburg.de
Stability : pro... | spechub/Hets | Comorphisms/CASL2Skolem.hs | gpl-2.0 | 5,693 | 0 | 19 | 1,361 | 1,585 | 857 | 728 | 105 | 6 |
<?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="el-GR">
<title>Support for the Open API Specification | ZAP Extension</title>
<maps>
<homeI... | veggiespam/zap-extensions | addOns/openapi/src/main/javahelp/org/zaproxy/zap/extension/openapi/resources/help_el_GR/helpset_el_GR.hs | apache-2.0 | 1,000 | 80 | 66 | 164 | 423 | 214 | 209 | -1 | -1 |
module System.Console.Haskeline.Monads(
module System.Console.Haskeline.MonadException,
MonadTrans(..),
MonadIO(..),
ReaderT(..),
runReaderT',
mapReaderT,
asks,
StateT,
runStat... | leroux/packages-haskeline | System/Console/Haskeline/Monads.hs | bsd-2-clause | 3,885 | 0 | 14 | 1,287 | 1,607 | 838 | 769 | -1 | -1 |
import Test.Tasty (defaultMain,testGroup)
import qualified Tests.Distribution
import qualified Tests.Function
import qualified Tests.KDE
import qualified Tests.Matrix
import qualified Tests.NonParametric
import qualified Tests.Parametric
import qualified Tests.Transform
import qualified Tests.Correlation
import qualif... | bos/statistics | tests/tests.hs | bsd-2-clause | 702 | 0 | 8 | 88 | 158 | 100 | 58 | 23 | 1 |
module Network.API.Builder.SendSpec where
import Network.API.Builder.Builder
import Network.API.Builder.Routes
import Network.API.Builder.Send
import Data.Aeson
import Data.ByteString.Lazy (ByteString)
import qualified Network.HTTP.Client as HTTP
import Test.Hspec
main :: IO ()
main = hspec spec
spec :: Spec
spec =... | eryx67/api-builder | test/Network/API/Builder/SendSpec.hs | bsd-3-clause | 4,452 | 0 | 25 | 1,302 | 1,195 | 584 | 611 | 91 | 11 |
module Syntax.ParseState
( module Syntax.ParseState
, module Text.Megaparsec.String
)
where
import Syntax.Tree
import qualified Syntax.Env as E
import Control.Monad.State.Lazy (StateT, modify, get)
import Text.Megaparsec.String
-- Types that can be declared. Used to keep track of identifiers while parsing.
data EnvDe... | BakerSmithA/Turing | src/Syntax/ParseState.hs | bsd-3-clause | 2,105 | 0 | 12 | 469 | 537 | 286 | 251 | 40 | 2 |
{-# LANGUAGE CPP #-}
-- | Re-export the operations of the chosen raw frontend
-- (determined at compile time with cabal flags).
module Game.LambdaHack.Client.UI.Frontend.Chosen
( RawFrontend(..), chosenStartup, stdStartup, nullStartup
, frontendName
) where
import Control.Concurrent
import qualified Game.LambdaH... | Concomitant/LambdaHack | Game/LambdaHack/Client/UI/Frontend/Chosen.hs | bsd-3-clause | 2,143 | 0 | 14 | 443 | 518 | 297 | 221 | -1 | -1 |
{- |
Module : $Header$
Description : Conversion to core CspCASL
Copyright : (c) Andy Gimblett and Uni Bremen 2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : a.m.gimblett@swansea.ac.uk
Stability : provisional
Portability : portable
Converting sugared CspCASL to core CspCASL.
The foll... | mariefarrell/Hets | CspCASL/Core_CspCASL.hs | gpl-2.0 | 2,385 | 0 | 15 | 573 | 710 | 350 | 360 | 32 | 19 |
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeApplications #-}
mod... | ezyang/ghc | testsuite/tests/polykinds/T14270.hs | bsd-3-clause | 3,525 | 4 | 15 | 972 | 1,360 | 746 | 614 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module DeleteTeamMembershipFor where
import qualified Github.Auth as Github
import qualified Github.Teams.Memberships as Github
import System.Environment (getArgs)
main = do
args <- getArgs
result <- case args of
[token, team_id, usern... | beni55/github | samples/Teams/Memberships/DeleteTeamMembershipFor.hs | bsd-3-clause | 662 | 0 | 14 | 202 | 145 | 77 | 68 | 15 | 3 |
main = do a; a; a; a; a; a; a | bitemyapp/apply-refact | tests/examples/Duplicate2.hs | bsd-3-clause | 29 | 0 | 6 | 9 | 33 | 16 | 17 | 1 | 1 |
{-# LANGUAGE RankNTypes, FlexibleContexts,
NamedFieldPuns, RecordWildCards, PatternGuards #-}
module Distribution.Server.Features.Documentation (
DocumentationFeature(..),
DocumentationResource(..),
initDocumentationFeature
) where
import Distribution.Server.Framework
import Distribution.Se... | ocharles/hackage-server | Distribution/Server/Features/Documentation.hs | bsd-3-clause | 14,412 | 0 | 23 | 4,156 | 2,782 | 1,473 | 1,309 | 236 | 6 |
{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE RankNTypes, PolyKinds, DataKinds #-}
module SAKS_010 where
import Data.Kind (Type)
type W :: forall (a :: forall k. k -> Type) -> a Int -> a Maybe -> Type
data W x (y :: x Int) (z :: x Maybe)
| sdiehl/ghc | testsuite/tests/saks/should_compile/saks010.hs | bsd-3-clause | 250 | 0 | 9 | 49 | 80 | 48 | 32 | -1 | -1 |
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-unused-top-binds #-}
module EmptyEntityTest (specsWith, migration, cleanDB) where
import Database.Persist.Sql
import Database.Persist.TH
import Init
-- Test lower case names
share [mkPersist sqlSettings { mpsGeneric = True }, mkMigrate "migration"] [persistL... | yesodweb/persistent | persistent-test/src/EmptyEntityTest.hs | mit | 966 | 0 | 10 | 222 | 258 | 132 | 126 | -1 | -1 |
import System.Posix.Process
main = do
pid <- getProcessID
ppid <- getParentProcessID
ppgid <- getProcessGroupIDOf ppid
-- join the parent process
putStr "Testing joinProcessGroup: "
joinProcessGroup ppgid
pgid1 <- getProcessGroupID
print $ ppgid == pgid1
-- be a leader
putStr "Testing createProcessGroupFor: ... | jimenezrick/unix | tests/processGroup002.hs | bsd-3-clause | 565 | 0 | 8 | 93 | 134 | 58 | 76 | 17 | 1 |
{-# LANGUAGE CPP #-}
-- !!! Testing Typeable instances
module Main(main) where
import Data.Dynamic
#if MIN_VERSION_base(4,10,0)
import Data.Typeable (TyCon, TypeRep, typeOf)
#endif
import Data.Array
import Data.Array.MArray
import Data.Array.ST
import Data.Array.IO
import Data.Array.Unboxed
import Data.Complex
import... | ezyang/ghc | libraries/base/tests/dynamic002.hs | bsd-3-clause | 3,269 | 0 | 13 | 609 | 1,550 | 801 | 749 | 85 | 1 |
mmmodule Foo where
foo = 'c'
| wxwxwwxxx/ghc | testsuite/tests/module/Mod178_2.hs | bsd-3-clause | 32 | 0 | 5 | 9 | 14 | 6 | 8 | -1 | -1 |
module Bench where
import Bench.Macro
import Bench.Triangles
import Criterion.Main
width = 800
height = 800
main :: IO ()
main = defaultMain [
macro width height
, triangles
]
| SASinestro/lil-render | bin/Bench.hs | isc | 195 | 0 | 7 | 48 | 58 | 33 | 25 | 10 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Network.Google.Contacts
-- Copyright : (c) 2012-13 Brian W Bush
-- License : MIT
--
-- Maintainer : Brian W Bush <b.w.bush@acm.org>
-- Stability : Stable
-- Portability : Portable
--
-- | Functions for acces... | rrnewton/hgdata_trash | src/Network/Google/Contacts.hs | mit | 3,808 | 0 | 15 | 768 | 752 | 413 | 339 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE NamedFieldPuns #-}
module Main (main) where
import Control.Applicative ((<$>))
import Control.Concurrent (getNumCapabilities)
import Control.Monad (forM_, void)
import Data.Time.Clock (getCurrentTime, diffUTCTime)
import System.IO (stdout)
import Data.Array (Array)
import G... | matklad/raytracer | bin/Ray.hs | mit | 2,731 | 0 | 13 | 657 | 850 | 465 | 385 | 70 | 1 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.MimeType
(getType, getSuffixes, getDescription, getEnabledPlugin,
MimeType(..), gTypeMimeType)
whe... | ghcjs/jsaddle-dom | src/JSDOM/Generated/MimeType.hs | mit | 2,160 | 0 | 10 | 282 | 522 | 317 | 205 | 33 | 1 |
-- print2.hs
module Print2 where
main :: IO ()
main = do
putStr "Count to for for me:"
putStrLn "One, two"
putStrLn ", three and"
putStr " four!" | RazvanCosmeanu/Haskellbook | ch03/print2.hs | mit | 167 | 0 | 7 | 49 | 44 | 20 | 24 | 7 | 1 |
-- * Built-in types
type Undefined
type Null
type Int
type UInt32
type Number
type String
type DateTime
type Array a -- [a]
type Object a -- { String -> a }
type Function a b -- a -> b
-- Arrays
Array a :: new Number -> [a]
Array a :: new a... -> [a]
Array.isArray :: a -> Bool
data SortingRank :: Lower -1 | Equa... | robotlolita/alexandria.js | types.hs | mit | 5,997 | 396 | 7 | 1,249 | 2,109 | 1,131 | 978 | -1 | -1 |
group :: Int -> [a] -> [[a]]
group n = takeWhile (not . null)
. map (take n)
. iterate (drop n)
map1 = map . map
map2 = (map, map)
map3 = [map id, reverse, map not]
| craynafinal/cs557_functional_languages | practice/week2/practice.hs | mit | 172 | 0 | 9 | 45 | 107 | 57 | 50 | 7 | 1 |
module Math.Combinatorics where
-- | Computes the sum from m to n. O(1)
sumFrom :: Integral a => a -> a -> a
sumFrom m n = (n + m)*(n - m + 1) `div` 2
| taylor1791/HakTools | haskell/src/Numeric/Combinatorics.hs | mit | 158 | 0 | 9 | 43 | 65 | 36 | 29 | 3 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiWayIf #-}
module EventQueue (
EventQueue
, newQueue
, Event(..)
, FileEventType(..)
, emitEvent
, Status(..)
, processQueue
#ifdef TEST
, Action(..)
, processEvents
, combineFileEvents
, groupFileEvents
#endif
) where
import Imports
imp... | hspec/sensei | src/EventQueue.hs | mit | 4,346 | 0 | 17 | 1,014 | 1,495 | 796 | 699 | 109 | 11 |
module Main where
import Data.List
main =
interact (concat . sort . lines)
| dicander/progp_haskell | concatsort.hs | mit | 78 | 0 | 8 | 16 | 28 | 16 | 12 | 4 | 1 |
module Web.WeChat
( module Web.WeChat.Types
, parseInMessage
, printOutMessage
, sha1VerifySignature
, encodeMsg
, decodeMsg
) where
import Web.WeChat.Internal
import Web.WeChat.Types
import Web.WeChat.JSONPrint()
import Web.WeChat.XMLParse
import Web.We... | Vlix/wechat | Web/WeChat.hs | mit | 2,858 | 0 | 30 | 752 | 679 | 355 | 324 | -1 | -1 |
module Darcs.Patch.Inspect
( PatchInspect(..)
)
where
import Darcs.Patch.Witnesses.Ordered ( FL, RL, reverseRL, mapFL )
import qualified Data.ByteString.Char8 as BC
import Data.List ( nub )
class PatchInspect p where
listTouchedFiles :: p wX wY -> [FilePath]
hunkMatches :: (BC.ByteStrin... | DavidAlphaFox/darcs | src/Darcs/Patch/Inspect.hs | gpl-2.0 | 671 | 0 | 10 | 144 | 217 | 117 | 100 | 14 | 0 |
{- |
Module : $Header$
Copyright : (c) C. Maeder, DFKI GmbH 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : experimental
Portability : portable
testing random data
-}
module Main where
import System.Environment
import System.Random
import ATerm.S... | nevrenato/Hets_Fork | ATC/ATCTest2.hs | gpl-2.0 | 5,218 | 0 | 16 | 2,061 | 1,229 | 589 | 640 | 113 | 2 |
--{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module SIR.Pure
( runPureSIR
) where
import Data.Maybe
import Control.Monad.Random
import Control.Monad.Reader
import Control.Monad.Writ... | thalerjonathan/phd | thesis/code/taglessfinal/src/SIR/Pure.hs | gpl-3.0 | 10,319 | 1 | 23 | 3,003 | 2,779 | 1,509 | 1,270 | 197 | 3 |
module Interface.Common where
import Control.Applicative
import Data.Either
import Data.List (partition)
import Data.Maybe
import qualified Data.Text as Text
import Game (
Color(..)
, Tile(..)
, maxValue
, minValue
)
import qualified Safe
-- | Parse a list of tile specifications from input.
parseTiles :: St... | gregorias/rummikubsolver | src/Interface/Common.hs | gpl-3.0 | 2,462 | 0 | 20 | 776 | 780 | 425 | 355 | 61 | 7 |
module Main where
import Export.CSV
import SIR.SD
-- contact rate
beta :: Double
beta = 5
-- infectivity
gamma :: Double
gamma = 0.05
-- illness duration
delta :: Double
delta = 15.0
tLimit :: Double
tLimit = 150
main :: IO ()
main = do
let ret = runSIRSD
999
1
0
... | thalerjonathan/phd | thesis/code/sir/src/MainSD.hs | gpl-3.0 | 470 | 0 | 10 | 182 | 105 | 59 | 46 | 22 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
module Nucleic.Element (
Window, Element, ContainerElement,
Style, style,
DocumentM,
asHTMLElement,
runDocument, withDocument,
attachChild,
body, div, helem, para, ... | RayRacine/nucleic | Nucleic/Element.hs | gpl-3.0 | 6,300 | 0 | 15 | 1,422 | 1,893 | 1,001 | 892 | 156 | 1 |
module Interface where
import Language.Copilot
import qualified Prelude as P
ledPwmSet :: Stream Word8 -> Stream Float -> Spec
ledPwmSet id val =
trigger "led_pwm_set" (constB True) [arg id, arg val]
btnStatus :: Stream Bool
btnStatus = externFun "btn_status" [] $ Just $ constB False
| yuchangyuan/copilot1 | src/hs/Interface.hs | gpl-3.0 | 290 | 0 | 8 | 50 | 100 | 52 | 48 | 8 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
import Text.Printf (printf)
import Control.Exception (catch, IOException)
tip, total :: Float -> Float -> Float
tip amt rate = amt * (rate / 100)
total amt rate = amt + tip amt rate
promptF :: String -> IO Float
promptF s = do
putStr s
(readLn :: IO Float) `catch` \ (ex ::... | ciderpunx/57-exercises-for-programmers | src/tipcalc.hs | gpl-3.0 | 1,112 | 0 | 13 | 313 | 381 | 184 | 197 | 38 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-|
-
- This module contains functions related to CLI arguement parsing and
- dispatch.
-
-}
module Main.CLI
( hkredmine
, dispatch
) where
import qualified Web.HTTP.Redmine as R
import qualified Data.ByteString.Char8 as BC ... | prikhi/hkredmine | bin/Main/CLI.hs | gpl-3.0 | 33,852 | 6 | 27 | 14,940 | 6,413 | 3,412 | 3,001 | 640 | 23 |
{-# LANGUAGE TypeFamilies, MultiParamTypeClasses, RankNTypes#-}
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Numerical.PETSc.Internal.PutGet.PF
-- Copyright : (c) Marco Zocca 2015
-- License : LGPL3
-- Maintainer : zocca . marco . gm... | ocramz/petsc-hs | src/Numerical/PETSc/Internal/PutGet/PF.hs | gpl-3.0 | 1,540 | 0 | 11 | 232 | 308 | 184 | 124 | 30 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
-- |
-- Copyright : (c) 2010, 2011 Benedikt Schmidt & Simon Meier
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
-- Portability : GHC only
--
-- Main module for the Tamarin prover.
module Main.Mode.Batch (
batchMode
) where
import ... | kmilner/tamarin-prover | src/Main/Mode/Batch.hs | gpl-3.0 | 7,447 | 0 | 19 | 2,743 | 1,395 | 702 | 693 | 125 | 3 |
-- -*-haskell-*-
-- Vision (for the Voice): an XMMS2 client.
--
-- Author: Oleg Belozeorov
-- Created: 2 Jul. 2010
--
-- Copyright (C) 2010 Oleg Belozeorov
--
-- 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 Fr... | upwawet/vision | src/Playlist/Control.hs | gpl-3.0 | 3,131 | 0 | 18 | 743 | 762 | 373 | 389 | 88 | 2 |
{- lat - tool to track alerts from LWN.
- Copyright (C) 2010 Magnus Therning
-
- 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, version 3 of the License.
-
- This program is distributed i... | magthe/lat | src/lat.hs | gpl-3.0 | 771 | 0 | 5 | 161 | 23 | 16 | 7 | 4 | 1 |
{-# LANGUAGE NoMonomorphismRestriction#-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE NamedFieldPuns #-}
module Bamboo.Controller.Helper where
import Bamboo.Controller.Type
import Bamboo.Env hiding (get)
import Bamboo.Type.State
import Control.Monad.State
import Data.Default
import Data.List hiding (length)
impor... | nfjinjing/bamboo | src/Bamboo/Controller/Helper.hs | gpl-3.0 | 2,779 | 22 | 12 | 622 | 930 | 505 | 425 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-android-publisher/gen/Network/Google/Resource/AndroidPublisher/Edits/ExpansionFiles/Patch.hs | mpl-2.0 | 7,460 | 0 | 24 | 1,795 | 1,046 | 607 | 439 | 158 | 1 |
module SyntaxTwo where
let y = 2
x : \xs -> x
| thewoolleyman/haskellbook | 04/09/chad/SyntaxTwo.hs | unlicense | 50 | 2 | 5 | 16 | 21 | 13 | 8 | -1 | -1 |
import Control.Monad
import qualified Data.Map.Strict as M
import Data.List
type Primes = M.Map Int Int
fromString :: String -> Primes
fromString = M.fromList . go . (map read) . words
where
go [] = []
go (k:v:rest) = (k, v) : go rest
toString :: Primes -> String
toString = unwords . (map show) .... | itsbruce/hackerrank | func/recur/listGCD.hs | unlicense | 628 | 2 | 10 | 166 | 271 | 140 | 131 | 19 | 2 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RecordWildCards #-}
module Player where
import Control.Arrow
import Control.Lens
import Data.AffineSpace
import Data.Default
import Data.Foldable (toList)
import Data.Monoid (mempty)
import Data.Sequenc... | nilcons/tag-game | src/Player.hs | apache-2.0 | 3,457 | 1 | 14 | 970 | 1,451 | 796 | 655 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Data.Ranks
( RankStats (..)
, PlayerStore
, empty
, newPlayer
, voteMod
, getStats
, allStats
, searchStats
, playerCount
, playerExists
) where
import Prelude
import Data.Typeable (Typeable)
import Data.SafeCopy (base, deriveSafeC... | JerrySun/league-famous | Data/Ranks.hs | bsd-2-clause | 5,031 | 0 | 12 | 1,562 | 1,474 | 762 | 712 | -1 | -1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QPrinter.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:16
Warning : this file is machine generated - do not ... | keera-studios/hsQt | Qtc/Gui/QPrinter.hs | bsd-2-clause | 19,258 | 0 | 14 | 3,197 | 6,218 | 3,161 | 3,057 | -1 | -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. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
{-# LANGUAGE GADT... | rfranek/duckling | Duckling/Numeral/SV/Rules.hs | bsd-3-clause | 8,629 | 0 | 19 | 2,282 | 2,549 | 1,433 | 1,116 | 252 | 8 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses #-}
-- | The @nd@ element of a OSM file.
module Data.Geo.OSM.Nd
(
Nd
, nd
) where
import Text.XML.HXT.Arrow.Pickle
import Data.Geo.OSM.Lens.RefL
import Control.Lens.Lens
import Control.Newtype
-- | The @nd@ element of a OSM file.
newtype N... | tonymorris/geo-osm | src/Data/Geo/OSM/Nd.hs | bsd-3-clause | 739 | 0 | 12 | 166 | 195 | 113 | 82 | 31 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import qualified Aws
import qualified Aws.S3 as S3
import Data.Conduit
import Data.Conduit.Binary
import Data.IORef
import Data.Monoid
import BkrAwsConfig
{-
-- Credentials
import Aws.Credentials
import Aws.Aws
import qualified Data.ByteString.Char8 as B
-- Configuration
import ... | miie/bkr | src/System/Bkr/TargetServices/S3/BkrAws.hs | bsd-3-clause | 3,377 | 0 | 10 | 918 | 206 | 109 | 97 | 21 | 1 |
{-# LANGUAGE GADTs, RecordWildCards,ExistentialQuantification #-}
module Llvm.Hir.Data.Module
(module Llvm.Hir.Data.Module
, module Llvm.Hir.Data.Inst
, module Llvm.Hir.Data.Commentor
, module Data.Word
)
where
import Llvm.Hir.Data.Inst
import Llvm.Hir.Data.Commentor
import qualified Llvm.Hir.Da... | mlite/hLLVM | src/Llvm/Hir/Data/Module.hs | bsd-3-clause | 14,443 | 0 | 12 | 5,911 | 3,077 | 1,693 | 1,384 | 243 | 0 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DoAndIfThenElse #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANG... | UCSD-PL/RefScript | src/Language/Rsc/Typecheck/Checker.hs | bsd-3-clause | 46,663 | 0 | 24 | 12,826 | 15,162 | 7,639 | 7,523 | 743 | 21 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.ARB.TextureCompression
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Porta... | haskell-opengl/OpenGLRaw | src/Graphics/GL/ARB/TextureCompression.hs | bsd-3-clause | 1,345 | 0 | 5 | 159 | 125 | 85 | 40 | 25 | 0 |
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances, UndecidableInstances #-}
{- |
Copyright : 2010 Aristid Breitkreuz
License : BSD3
Stability : experimental
Portability : portable
This module provides Arrow-like monad composition for transformers. To be more precise, it is "Cat... | aristidb/transformers-compose | Control/Monad/Compose/Class.hs | bsd-3-clause | 4,777 | 0 | 11 | 1,021 | 1,354 | 725 | 629 | 57 | 1 |
module Cis194.Hw.Week1 where
import Data.Char
-------------
-- Ex 1-4 --
-------------
digitToInteger :: Char->Integer
digitToInteger = toInteger . digitToInt
toDigits :: Integer -> [Integer]
-- | this is some comment
-- >>> toDigits 1234
-- [1,2,3,4]
toDigits n
| n <= 0 = []
| n > 0 = ma... | halarnold2000/cis194 | src/Cis194/Hw/Week1.hs | bsd-3-clause | 1,507 | 0 | 10 | 308 | 470 | 266 | 204 | 34 | 1 |
{-# LANGUAGE BangPatterns, DataKinds, DeriveDataTypeable, DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances, GADTs, LambdaCase, NamedFieldPuns #-}
{-# LANGUAGE NoOverloadedLists, ParallelListComp, PatternGuards, PolyKinds #-}
{-# LANGUAGE RecordWildCards, ScopedTypeVariables, StandaloneDeriving #-}
{-# ... | konn/presburger-dfa | src/Arithmetic/Presburger/Solver/DFA.hs | bsd-3-clause | 10,242 | 0 | 20 | 2,715 | 4,035 | 2,095 | 1,940 | 208 | 2 |
{-|
Module : Data.Algorithm.PPattern.State.IncreasingFactorization
Description : Jump to next increasing element facility
Copyright : (c) Laurent Bulteau, Romeo Rizzi, Stéphane Vialette, 2016-2017
License : MIT
Maintainer : vialette@gmaiList.com
Stability : experimental
Increasing factorization facility.... | vialette/ppattern | src/Data/Algorithm/PPattern/Search/State/IncreasingFactorization.hs | mit | 1,712 | 0 | 13 | 374 | 375 | 208 | 167 | 24 | 3 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module Database.Persist.Sql.Class
( RawSql (..)
, Per... | yesodweb/persistent | persistent/Database/Persist/Sql/Class.hs | mit | 103,804 | 0 | 17 | 15,185 | 83,439 | 52,697 | 30,742 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.