code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}... | haroldcarr/juno | z-no-longer-used/src/Hop/Hoplite/Eval.hs | bsd-3-clause | 12,445 | 0 | 22 | 3,222 | 3,855 | 1,973 | 1,882 | 246 | 3 |
-- | This module provides a simple default configuration which behaves similar
-- to a tool such as the Jekyll static site generator (<http://jekyllrb.com/>).
--
-- The idea is that you don't have to write your configuration yourself: you
-- just follow some conventions, and Hakyll does the rest.
--
-- You can generate... | jaspervdj/hakyll-contrib | src/Hakyll/Contrib/SmallBlog.hs | bsd-3-clause | 6,730 | 0 | 15 | 1,430 | 701 | 414 | 287 | 62 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Controllers.TagsTest (tests) where
import Data.Text (Text)
import Test.Framework (Test, testGroup)
import Test.Framework.Providers.HUnit (testCase)
import Test.HUnit ((@?=))
imp... | HaskellCNOrg/snap-web | tests/Controllers/TagsTest.hs | bsd-3-clause | 1,284 | 0 | 11 | 304 | 314 | 181 | 133 | 26 | 1 |
-- | Command line parsing flags.
module Development.Shake.Args(shakeOptDescrs, shakeArgs, shakeArgsWith) where
import Paths_shake
import Development.Shake.Types
import Development.Shake.Core
import Development.Shake.File
import Development.Shake.FilePath
import Development.Shake.Progress
import Development.Shake.Shak... | nh2/shake | Development/Shake/Args.hs | bsd-3-clause | 15,139 | 0 | 26 | 3,684 | 4,319 | 2,309 | 2,010 | 179 | 9 |
module Parser.Simulate (doParseSim) where
import qualified Data.Text as T
import Parser.Utils
import Text.Parsec
import Text.Parsec.String
doParseSim :: T.Text -> Either ParseError [Bool]
doParseSim
= runParser parseSim () "" . T.unpack . stripLines
parseOneSim :: Parser Bo... | qfjp/csce_dfa_project_test | src/Parser/Simulate.hs | bsd-3-clause | 605 | 0 | 8 | 136 | 172 | 92 | 80 | 22 | 1 |
-- | Media-independent properties of a tracks sound content.
module Data.ByteString.IsoBaseFileFormat.Boxes.SoundMediaHeader where
import Data.ByteString.IsoBaseFileFormat.Box
import Data.ByteString.IsoBaseFileFormat.Boxes.Handler
import Data.ByteString.IsoBaseFileFormat.Boxes.SpecificMediaHeader
import Data.ByteStrin... | sheyll/isobmff-builder | src/Data/ByteString/IsoBaseFileFormat/Boxes/SoundMediaHeader.hs | bsd-3-clause | 1,021 | 0 | 10 | 111 | 173 | 106 | 67 | -1 | -1 |
{-# LANGUAGE CPP #-}
-- | Provide workarounds for bugs detected in GHC, until they are
-- fixed in a later version
module Language.Haskell.Refact.Utils.GhcBugWorkArounds
(
-- bypassGHCBug7351
getRichTokenStreamWA
) where
import qualified Bag as GHC
import qualified DynFlags ... | mpickering/HaRe | src/Language/Haskell/Refact/Utils/GhcBugWorkArounds.hs | bsd-3-clause | 10,861 | 0 | 21 | 2,281 | 2,180 | 1,147 | 1,033 | 126 | 3 |
module Main where
-- import Data.Functor.Identity (Indentity)
import Jetpack
import HLS
import Types
import Lucid
-- sk = ansi_setSGR [ansi_mk'Vivid ansi_mk'Blue]
main :: IO ()
main = do
putStrLn "starting webserver"
let ctx = Ctx {streams = [d2']}
spock_runSpock 3000 $ spock_spockT (runM ctx) $ do
spock_... | rvion/ride | twitch-cast/src/Main.hs | bsd-3-clause | 1,644 | 0 | 16 | 356 | 582 | 286 | 296 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Webcrank.Internal.Types where
import Control.Applicative
... | webcrank/webcrank.hs | src/Webcrank/Internal/Types.hs | bsd-3-clause | 11,928 | 0 | 13 | 2,477 | 1,195 | 734 | 461 | 115 | 0 |
module CalculatorKata.Day5Spec (spec) where
import Test.Hspec
import CalculatorKata.Day5 (calculate)
spec :: Spec
spec = do
it "calculates one digit"
(calculate "7" == 7.0)
it "calculates many digits"
(calculate "547" == 547.0)
it "calculates addition"... | Alex-Diez/haskell-tdd-kata | old-katas/test/CalculatorKata/Day5Spec.hs | bsd-3-clause | 612 | 0 | 11 | 202 | 160 | 78 | 82 | 17 | 1 |
{-# OPTIONS -Wall #-}
module Language.Pck.Cpu.State (
-- * Evaluation monad (State monad)
EvalCpu
-- * Cpu state type
, CpuState
, pcFromCpuState
, grFromCpuState
, flFromCpuState
, imemFromCpuState
, dmemFromCpuState
, dumpCpuState
, initCpuSta... | takenobu-hs/processor-creative-kit | Language/Pck/Cpu/State.hs | bsd-3-clause | 7,498 | 0 | 17 | 2,288 | 1,226 | 707 | 519 | 115 | 1 |
{-# LANGUAGE Rank2Types, FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
module NPNTool.PetriNet (
-- * Datatypes
Net(..), Trans(..), SS,
DynNet(..),
PTNet, PTMark, PTTrans, PTPlace,
-- ... | co-dan/NPNTool | src/NPNTool/PetriNet.hs | bsd-3-clause | 5,064 | 0 | 17 | 1,391 | 1,852 | 999 | 853 | 102 | 3 |
{-|
Module : AERN2.RealSpec
Description : hspec tests for CauchyReal
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portable
-}
module AERN2.PolySpec (spec) where
-- import MixedTypesNumPrelude
im... | michalkonecny/aern2 | aern2-fun-univariate/test/AERN2/PolySpec.hs | bsd-3-clause | 398 | 0 | 4 | 99 | 35 | 23 | 12 | 5 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Lib (app) where
import SDL
import Linear
import Linear.Affine
import Foreign.C.Types
import Control.Monad (unless)
import Data.Word
import Control.Concurrent
import System.Random
import Control.Monad
import Neural
windowWidth = 500 :: CInt
windowHeight = 500 :: CInt
vertice... | KenseiMaedhros/neural-net-visual-test | src/Lib.hs | bsd-3-clause | 3,730 | 0 | 17 | 958 | 1,186 | 582 | 604 | 82 | 2 |
module ImportBothUsedUnqualified where
import Language.Haskell.Names (symbolName)
import qualified Language.Haskell.Names as N
main = symbolName
| serokell/importify | test/test-data/haskell-names@records/02-ImportBothUsedUnqualified.hs | mit | 157 | 0 | 5 | 26 | 29 | 20 | 9 | 4 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/DisassociateElasticIP.hs | mpl-2.0 | 3,957 | 0 | 12 | 777 | 405 | 247 | 158 | 59 | 1 |
-- an eyeball test for unicode handling
-- loads a file of UTF-8 encoded strings (hardcoded below) and displays widgets
-- for each one of the strings
-- Eric Kow 2006
{-# LANGUAGE FlexibleContexts #-}
module Main where
import UTF8
import Paths_samplesTest
import Graphics.UI.WX
import Graphics.UI.WXCore
import... | jacekszymanski/wxHaskell | samples/test/UTF8Sampler.hs | lgpl-2.1 | 2,945 | 0 | 18 | 958 | 985 | 467 | 518 | 71 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-| PyType helper for Ganeti Haskell code.
-}
{-
Copyright (C) 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code mus... | mbakke/ganeti | src/Ganeti/THH/PyType.hs | bsd-2-clause | 4,849 | 0 | 10 | 1,287 | 966 | 517 | 449 | 82 | 9 |
module Optimization.LineSearch.SteepestDescent
( -- * Steepest descent method
steepestDescent
-- * Step size methods
, module Optimization.LineSearch
) where
import Optimization.LineSearch
import Linear
-- | Steepest descent method
--
-- @steepestDescent search f df x0@ optimizes a function @f... | ocramz/optimization | src/Optimization/LineSearch/SteepestDescent.hs | bsd-3-clause | 990 | 0 | 13 | 308 | 178 | 98 | 80 | 15 | 1 |
{-# LANGUAGE Haskell98 #-}
{-# LINE 1 "Data/HashMap/Base.hs" #-}
{-# LANGUAGE BangPatterns, CPP, DeriveDataTypeable, MagicHash #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE RoleAnnotations #-}
{-# LANGUAGE TypeFamilies #-}
{-# OP... | phischu/fragnix | tests/packages/scotty/Data.HashMap.Base.hs | bsd-3-clause | 47,372 | 0 | 21 | 15,435 | 16,300 | 8,148 | 8,152 | 915 | 17 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module DateParserSpec (spec) where
import Test.Hspec
import Test.QuickCheck
import Control.Monad
import Data.Either
import Data.Text (Text)
import qualified Data.Text as T
import Data.... | rootzlevel/hledger-add | tests/DateParserSpec.hs | bsd-3-clause | 7,247 | 0 | 19 | 1,592 | 2,355 | 1,144 | 1,211 | 153 | 2 |
module XMonad.Util.NoTaskbar (-- * Usage
-- $usage
noTaskbar
,markNoTaskbar) where
import XMonad.Core
import XMonad.ManageHook
import Graphics.X11.Xlib (Window)
import Graphics.X11.Xlib.Atom (aTOM)
import Graphics.X11.Xlib.Extras ... | f1u77y/xmonad-contrib | XMonad/Util/NoTaskbar.hs | bsd-3-clause | 1,284 | 0 | 12 | 369 | 231 | 131 | 100 | 20 | 1 |
{-# OPTIONS_GHC -Wall #-}
module Reporting.Render.Code
( render
)
where
import Control.Applicative ((<|>))
import Text.PrettyPrint.ANSI.Leijen (Doc, (<>), hardline, dullred, empty, text)
import qualified Reporting.Region as R
(|>) :: a -> (a -> b) -> b
(|>) a f =
f a
(<==>) :: Doc -> Doc -> Doc
(<==... | laszlopandy/elm-compiler | src/Reporting/Render/Code.hs | bsd-3-clause | 2,842 | 0 | 18 | 987 | 896 | 471 | 425 | 81 | 4 |
module Blank () where
{- qualif Gimme(v:[a], n:int, acc:[a]): (len v == n + 1 + len acc) -}
{-@ gimme :: xs:[a] -> n:Int -> acc:[a] -> {v:[a] | len v = n + 1 + len acc} @-}
gimme :: [a] -> Int -> [a] -> [a]
gimme xs (-1) acc = acc
gimme (x:xs) n acc = gimme xs (n-1) (x : acc)
gimme _ _ _ = error "gimme"
{-@ ... | abakst/liquidhaskell | tests/pos/gimme.hs | bsd-3-clause | 438 | 0 | 8 | 113 | 153 | 84 | 69 | 7 | 1 |
module Aws.Sqs.Commands.Queue where
import Aws.Core
import Aws.Sqs.Core
import Control.Applicative
import Data.Maybe
import Text.XML.Cursor (($//), (&/))
import qualified Data.Text as T
import qualified Data.Text.Encoding as TE
import qualified Te... | frms-/aws | Aws/Sqs/Commands/Queue.hs | bsd-3-clause | 4,393 | 0 | 18 | 1,467 | 843 | 460 | 383 | -1 | -1 |
module StrategoCmds where
import Prelude hiding (print)
import PFE0(pput,epput,getSubGraph)
import PFE3(parseModule)
import PFE4(rewriteAndTypeCheckModule)
import PFE_Rewrites(fbRewrite,lcRewrite,flRewrite,pmRewrite,compRw,rwFun)
import HsModule(hsModDecls)
import PfeDepCmds(tdepgraph)
import PfeParse
import PfePropCmd... | forste/haReFork | tools/hs2stratego/StrategoCmds.hs | bsd-3-clause | 3,239 | 0 | 13 | 482 | 894 | 493 | 401 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
-- | Implementation of the Futhark module system (at least most of it;
-- some is scattered elsewhere in the type checker).
module Language.Futhark.TypeChecker.Modules
( matchMTys,
newNamesForMTy,
refineEnv,
applyFunctor,
)
where
import... | HIPERFIT/futhark | src/Language/Futhark/TypeChecker/Modules.hs | isc | 22,422 | 0 | 20 | 6,456 | 6,798 | 3,365 | 3,433 | 508 | 15 |
{-# LANGUAGE Strict #-}
-- | A usage-table is sort of a bottom-up symbol table, describing how
-- (and if) a variable is used.
module Futhark.Analysis.UsageTable
( UsageTable,
without,
lookup,
used,
expand,
isConsumed,
isInResult,
isUsedDirectly,
isSize,
usages,
usage,
con... | diku-dk/futhark | src/Futhark/Analysis/UsageTable.hs | isc | 5,919 | 0 | 14 | 1,236 | 1,575 | 833 | 742 | 126 | 1 |
module Discussion.Converter (compact, unlambda) where
import Control.Applicative ((<$>))
import Discussion.Data
import Discussion.Bool
--------------------------------------------------------------------------------
-- Termを本質的な構造は変えずに最小の構成にする
compact :: Term -> Term
compact v@(VarT _) = v
compact ... | todays-mitsui/discussion | src/Discussion/Converter.hs | mit | 2,223 | 0 | 13 | 445 | 745 | 383 | 362 | 38 | 1 |
-- | Create a bundle to be uploaded to Stackage Server.
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleContexts #-}
module Stackage.ServerBundle
( bpAllPackages
, docsListing
, createBundleV2
, CreateBundleV2 (..)
, Snap... | fpco/stackage-curator | src/Stackage/ServerBundle.hs | mit | 5,807 | 0 | 22 | 1,847 | 1,128 | 601 | 527 | 146 | 3 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Aeson
import Control.Applicative ((<$>), (<*>))
import Control.Monad (mzero)
import qualified Data.Text as T
data Ingredient = Ingredient { amount :: Float
, unit :: String
, item :: String
... | tpoulsen/RecipeScaler | RecipeJSON.hs | mit | 1,249 | 0 | 13 | 560 | 297 | 162 | 135 | 29 | 0 |
module Main(main,hello) where
import qualified Hello
import qualified Hello as H
import Hello(exported)
hello = Hello.hello
main = Hello.hello
| sgtest/haskell-module-import | src/Main.hs | mit | 156 | 0 | 5 | 32 | 44 | 29 | 15 | 6 | 1 |
{-# htermination keysFM :: FiniteMap a b -> [a] #-}
import FiniteMap
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/FiniteMap_keysFM_1.hs | mit | 69 | 0 | 3 | 12 | 5 | 3 | 2 | 1 | 0 |
-- find the number of elements of a list
-- too easy.. doesn't count
myLength :: [x] -> Int
myLength a = length a
-- can't i use a fold and just add one for each element (regardless of what it is?)
myLength' a = foldr (\x -> \y -> y + 1) 0 a
-- here's what's going on.. the thing between parenthesis is a lambda.. it... | queirozfcom/haskell-99-problems | problem4.hs | mit | 560 | 0 | 9 | 126 | 93 | 50 | 43 | 5 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TemplateHaskell #-}
{-# L... | timjb/diagrams-rubiks-cube | src/Diagrams/RubiksCube/Model.hs | mit | 14,358 | 0 | 14 | 3,614 | 5,547 | 2,839 | 2,708 | -1 | -1 |
{-# LANGUAGE RecordWildCards, NamedFieldPuns #-}
-- Needed libraries:
--cabal install bmp
--cabal install parsec-numbers
--cabal install vect
import Codec.BMP
import qualified Data.ByteString as BS
import Raytrace
import Types
import Scene
import SceneParser (loadSceneFile, rawScene)
-------------------------------... | CanisLupus/haskell-raytracer | raytracer.hs | mit | 1,563 | 6 | 14 | 205 | 326 | 171 | 155 | 23 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.Maude.Exec.Types
-- Copyright : (c) David Lazar, 2012
-- License : MIT
--
-- Maintainer : lazar6@illinois.edu
-- Stability : experimental
-- Portability : unkno... | davidlazar/maude-hs | src/Language/Maude/Exec/Types.hs | mit | 3,851 | 0 | 12 | 929 | 712 | 417 | 295 | 70 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeSynonymInstances #-}
module TestUtility
(
URIBuilder
, uri
, query
, runTest
, get
, post
, postRaw
, put
, putRaw
, delete
, jsonBody
, simpleHeader
)
where
import Blaze.ByteString.Builder ( toByteString )
import Control.Mon... | stu-smith/Brandy | tests/TestUtility.hs | mit | 4,956 | 0 | 13 | 1,238 | 1,440 | 783 | 657 | 118 | 1 |
{-|
TODO This has a bunch of stub logic that was intended for an
architecture with a single Urbit daemon running multiple
ships. Do it or strip it out.
-}
module Urbit.King.API
( King(..)
, TermConn
, TermConnAPI
, kingAPI
, readPortsFile
)
where
import RIO.Directory
import Urbit.Pre... | urbit/urbit | pkg/hs/urbit-king/lib/Urbit/King/API.hs | mit | 4,293 | 0 | 18 | 1,230 | 1,126 | 585 | 541 | -1 | -1 |
module Gshell.Command ( Command(..)
, Options(..)
) where
data Command = Init FilePath
| Enter FilePath
| EnterRevision FilePath
| Clear FilePath
| Commit String
| Push
| Pull
| Rollba... | ctlab/gShell | src/Gshell/Command.hs | mit | 480 | 0 | 8 | 227 | 98 | 60 | 38 | 14 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeSynonymInstances #-}
module ... | lgeorget/ogma | server/src/Ogma/Server.hs | mit | 4,893 | 0 | 16 | 1,640 | 1,137 | 580 | 557 | 108 | 2 |
module Y2021.M03.D05.Exercise where
{--
'Shell scripting' Haskell is the name of the game for today.
Today we're going to build a Haskell application that interacts with the
shell, or 'command line,' if you prefer.
Specifically, we're creating the application 'im' that has this interaction:
$ im geophf
Hello, geoph... | geophf/1HaskellADay | exercises/HAD/Y2021/M03/D05/Exercise.hs | mit | 1,403 | 0 | 7 | 267 | 42 | 29 | 13 | 3 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Web.Scotty
import qualified Text.Blaze.Html5 as H
import Text.Blaze.Html5 (toHtml, Html)
import Text.Blaze.Html.Renderer.Text (renderHtml)
greet :: String -> Html
greet user = H.html $ do
H.head $
H.title "Welcome!"
H.body $ do
H.h1 "Greetings!"
H.p ("Hello "... | riwsky/wiwinwlh | src/scotty.hs | mit | 512 | 0 | 15 | 115 | 193 | 97 | 96 | 20 | 1 |
-- | Utils.Functions module
{-# LANGUAGE CPP #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverlappingInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UnicodeSyntax #-}
#ifndef MIN_VERSION_base
#defi... | agomezl/tstp2agda | src/Utils/Functions.hs | mit | 4,218 | 26 | 10 | 997 | 829 | 478 | 351 | 68 | 2 |
{-# LANGUAGE TypeFamilies, TypeOperators, FlexibleInstances, UndecidableInstances #-}
module Language.CL.C.HOAS.Sugar
((:->), Func, Proc, Procedure, RP, C
) where
import Language.CL.C.HOAS.AST (Function, Expression)
import Language.CL.C.Types.Classes
class (ParamType a, RetType a) => RP a
instance (P... | pxqr/language-cl-c | Language/CL/C/HOAS/Sugar.hs | mit | 847 | 12 | 7 | 205 | 464 | 265 | 199 | -1 | -1 |
-- Minimal implicational modal logic, PHOAS approach, initial encoding
{-# LANGUAGE DataKinds, GADTs, KindSignatures, Rank2Types, Safe, TypeOperators #-}
module Pi.BoxMp where
import Lib (Nat (Suc))
-- Types
infixr 0 :=>
data Ty :: * where
UNIT :: Ty
(:=>) :: Ty -> Ty -> Ty
BOX :: Ty ->... | mietek/formal-logic | src/Pi/BoxMp.hs | mit | 1,664 | 0 | 15 | 554 | 866 | 455 | 411 | 45 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticsearch-domain-vpcoptions.html
module Stratosphere.ResourceProperties.ElasticsearchDomainVPCOptions whe... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/ElasticsearchDomainVPCOptions.hs | mit | 2,153 | 0 | 12 | 205 | 264 | 151 | 113 | 27 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Homework.Week11.Reference where
import Control.Monad (void)
import Data.Int (Int64)
import Data.Text (Text)
import Database.SQLite.Simple (Connection, Only(..), query, execute_, execute,
lastInsertRowId, query_, open, close)
import Homework.Week11.Types
dbName :: String
... | laser/cis-194-winter-2016 | src/Homework/Week11/Reference.hs | mit | 1,503 | 0 | 12 | 352 | 398 | 198 | 200 | 47 | 2 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
module SMCDEL.Explicit.K where
import Control.Arrow ((&&&),second)
import Data.Containers.ListUtils (nubInt,nubOrd)
import Data.Dynamic
import Data.List (sort,(\\),delete,intercalate,intersect)
import qualified Data.Map.Strict as M
import Data.Map.Strict ((!))... | jrclogic/SMCDEL | src/SMCDEL/Explicit/K.hs | gpl-2.0 | 13,818 | 18 | 21 | 3,268 | 6,109 | 3,197 | 2,912 | -1 | -1 |
{- |
Module : $Header$
Description : Handpicked model of OMDoc subset
Copyright : (c) Hendrik Iben, Uni Bremen 2005-2007
License : GPLv2 or higher, see LICENSE.txt
Maintainer : hiben@informatik.uni-bremen.de
Stability : provisional
Portability : non-portable
Model of a handpicked subset from OMDo... | nevrenato/Hets_Fork | OMDoc/OMDocInterface.hs | gpl-2.0 | 18,827 | 0 | 12 | 4,480 | 5,453 | 2,996 | 2,457 | 545 | 2 |
module BioInf.RNAdesign.Graph where
import Control.Arrow (first,second)
import Data.Graph.Inductive.Basic
import Data.Graph.Inductive.Graph
import Data.Graph.Inductive.PatriciaTree
import Data.Graph.Inductive.Query
import Data.List (nub,partition)
import Biobase.Secondary.Diagrams
-- | Given the one to many struc... | choener/RNAdesign | BioInf/RNAdesign/Graph.hs | gpl-3.0 | 2,104 | 0 | 12 | 406 | 563 | 293 | 270 | 30 | 1 |
module Data.Conduit.Extra
( group
)
where
import Data.Conduit
group :: Resource m => Int -> Conduit a m [a]
group n = conduitState
st0
push
close
where
close (_, xs) = return [xs]
push (m, xs) x = do
let n' = m + 1
return $ if n' == n
then StatePro... | br0ns/hindsight | src/Data/Conduit/Extra.hs | gpl-3.0 | 418 | 0 | 14 | 160 | 174 | 93 | 81 | 15 | 2 |
{- Copyright 2013 Matthew Gordon.
This file is part of Gramophone.
Gramophone 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 v... | matthewscottgordon/gramophone | src/Gramophone/Core/MediaController/Types.hs | gpl-3.0 | 2,131 | 0 | 10 | 477 | 302 | 189 | 113 | 36 | 0 |
{-|
Module : Generator
Description : Helpful functions for generating JSON from Clausewitz values
Copyright : (c) Matthew Bauer, 2016
Maintainer : mjbauer95@gmail.com
Stability : experimental
Generate JSON data from parsed values within Clausewitz text
assets. These provide commonly used methods for creating... | matthewbauer/eu4-parser | Generator.hs | gpl-3.0 | 2,710 | 0 | 12 | 484 | 927 | 473 | 454 | 51 | 3 |
module Main (main) where
import qualified ReadConfig.Tests
import qualified Test.Tasty as T
import qualified Types.Tests
import qualified UnitConversions.Tests
import qualified Utils.Tests
main :: IO ()
main =
T.defaultMain $
T.testGroup
"Tests"
[ ReadConfig.Tests.tests,
Types.Tests.tests,
... | JackKiefer/herms | test/Main.hs | gpl-3.0 | 389 | 0 | 8 | 87 | 93 | 58 | 35 | 15 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE... | brendanhay/gogol | gogol/src/Network/Google/Internal/Auth.hs | mpl-2.0 | 12,403 | 0 | 17 | 3,462 | 2,184 | 1,184 | 1,000 | 247 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Services/Versions/Instances/Get.hs | mpl-2.0 | 7,655 | 0 | 24 | 1,888 | 1,099 | 637 | 462 | 167 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.Dataflow.Types.Sum
-- Copyright : (c) 2015-2016 Brenda... | rueshyna/gogol | gogol-dataflow/gen/Network/Google/Dataflow/Types/Sum.hs | mpl-2.0 | 600 | 0 | 4 | 109 | 29 | 25 | 4 | 8 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.VideoIntell... | brendanhay/gogol | gogol-videointelligence/gen/Network/Google/VideoIntelligence/Types/Product.hs | mpl-2.0 | 581,931 | 0 | 29 | 117,161 | 75,971 | 43,582 | 32,389 | 9,876 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-apps-reseller/gen/Network/Google/Resource/Reseller/Resellernotify/Register.hs | mpl-2.0 | 5,004 | 0 | 19 | 1,169 | 714 | 415 | 299 | 106 | 1 |
{-# 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/Databases/Sessions/ExecuteStreamingSQL.hs | mpl-2.0 | 7,076 | 0 | 16 | 1,436 | 788 | 463 | 325 | 127 | 1 |
{-
Habit of Fate, a game to incentivize habit formation.
Copyright (C) 2019 Gregory Crosswhite
This program is free software: you can redistribute it and/or modify
it under version 3 of the terms of the GNU Affero General Public License.
This program is distributed in the hope that it will be usef... | gcross/habit-of-fate | sources/library/HabitOfFate/Testing/Data.hs | agpl-3.0 | 2,920 | 0 | 14 | 412 | 595 | 321 | 274 | 41 | 1 |
module Main where
import Data.IORef
import Control.Concurrent
import Control.Monad
import FRP.Yampa.Simulation
import FRP.Yampa(DTime)
import Brick.BChan
import Brick.Main
import qualified Graphics.Vty as V
import Wrapper.ToBrick
import Wrapper.FromBrick
import Game.Games
import Game.GameState
import Input
dtime :... | no-moree-ria10/utsuEater | app/Main.hs | apache-2.0 | 917 | 0 | 12 | 175 | 273 | 143 | 130 | 31 | 1 |
{-# LANGUAGE ViewPatterns #-}
module Specialize.Frame (Frame,frameAlloc,lookupAddr,emptyFrame,frameTop,withAddr) where
import qualified Data.Map as M
import PCode
import ID
data Frame = Frame {
frameTop :: Int,
frameAddrs :: M.Map ID Int
}
deriving Show
emptyFrame = Frame 0 M.empty
align n a = case... | lih/Alpha | src/Specialize/Frame.hs | bsd-2-clause | 741 | 0 | 11 | 161 | 342 | 187 | 155 | 19 | 2 |
module Problem346 where
import qualified Data.HashSet as S
main :: IO ()
-- 1*b^0+..1*b^n = (b^(n+1)-1)(b-1)
-- 1 = 1 in all bases
-- n = 11 in base (n-1)
-- so atleast 3 digit in other bases: 1+b+b^2<=n => b<=sqrt n
main =
print
$ sum
$ S.fromList
$ (1 :)
$ concat
$ [ drop... | adityagupta1089/Project-Euler-Haskell | src/problems/Problem346.hs | bsd-3-clause | 518 | 0 | 11 | 181 | 147 | 84 | 63 | 15 | 1 |
{-# LANGUAGE Trustworthy, Rank2Types, FlexibleInstances, FlexibleContexts, MultiParamTypeClasses, UndecidableInstances #-}
module Control.Monad.Reader.CPS (ReaderT(..)
, runReaderT
, mapReaderT
, Reader
, runReader
, module Control.Monad.Reader.Class) where
import Control.Monad.Reader.Class
import C... | fumieval/mtl-c | Control/Monad/Reader/CPS.hs | bsd-3-clause | 2,785 | 0 | 14 | 677 | 1,028 | 548 | 480 | 53 | 1 |
module Problem39 where
import Data.Ord
import Data.List
main :: IO ()
main =
print
. fst
. maximumBy (comparing snd)
$ [ (n, pythagoreasSolutions n) | n <- [1 .. 1000] ]
pythagoreasSolutions :: Int -> Int
pythagoreasSolutions s = length
[ True
| a <- [1 .. s - 1]
, b <- [1 .. ... | adityagupta1089/Project-Euler-Haskell | src/problems/Problem39.hs | bsd-3-clause | 394 | 0 | 12 | 139 | 189 | 102 | 87 | 16 | 1 |
module Control.Monatron.Monad (
State, Writer, Reader, Exception, Cont,
state,writer,reader,exception,cont,
runState, runWriter, runReader, runException, runCont,
Id(..), Lift(..)
) where
import Control.Monatron.Transformer
import Control.Monad
import Control.Monad.Fix
newtype Id a = Id {runId :: a}
dat... | neothemachine/monadiccp | src/Control/Monatron/Monad.hs | bsd-3-clause | 1,725 | 0 | 12 | 437 | 804 | 434 | 370 | 49 | 1 |
-- | Value level 'Ord'er. Sometimes values stored in e.g. 'Data.Set.Set's have
-- an 'Ord' instance, which does not represent the desired order. In that case
-- use this product type to pass a value along with the value to be for
-- comparison by the 'Eq' and 'Ord' instances.
module Data.MediaBus.Basics.OrderedBy
( O... | lindenbaum/mediabus | src/Data/MediaBus/Basics/OrderedBy.hs | bsd-3-clause | 850 | 0 | 8 | 189 | 148 | 83 | 65 | 10 | 0 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE JavaScriptFFI #-}
{-# LANGUAGE OverloadedStrings #-}
module Reflex.Dom.Xhr.Foreign (
XMLHttpRequest
, XMLHttpRequestResponseType(..)
, module Reflex.Dom.Xhr.Foreign
) where
import Control.Exception (throwIO)
import Control.Monad.IO.Class (MonadIO(..))
import Dat... | reflex-frp/reflex-dom | reflex-dom-core/src/Reflex/Dom/Xhr/Foreign.hs | bsd-3-clause | 8,079 | 0 | 14 | 1,073 | 1,927 | 1,020 | 907 | -1 | -1 |
module RPF.Lexer where
import RPF.Types
import Text.Parsec
import Text.Parsec.String
import Text.ParserCombinators.Parsec.Language
import Text.ParserCombinators.Parsec.Token as P
----------------------------------------------------------------
type Lexer st a = GenParser Char st a
----------------------------------... | kazu-yamamoto/rpf | RPF/Lexer.hs | bsd-3-clause | 1,765 | 0 | 10 | 324 | 454 | 248 | 206 | 43 | 1 |
module Text
( loadCharset
, displayString
) where
import Control.Applicative
import Control.Monad
import Data.Array
import Data.List
import Data.Word
import Foreign.Marshal
import Foreign.Ptr
import Graphics.Rendering.OpenGL
import GraphUtils
loadCharset file = do
dat <- lines <$> readFile fil... | cobbpg/dow | src/Text.hs | bsd-3-clause | 1,611 | 0 | 28 | 440 | 844 | 440 | 404 | 46 | 2 |
module Chp92
where
{-- when
The when function is found in Control.Monad (to get access to it, do import Control.Monad). It's interesting because in a do block it looks like a control flow statement, but it's actually a normal function.
It takes a boolean value and an I/O action if that boolean value is True, it retu... | jamesyang124/haskell-playground | src/Chp92.hs | bsd-3-clause | 5,010 | 0 | 15 | 1,253 | 388 | 207 | 181 | 33 | 1 |
-- | Export Module for SSTG.Core.SMT
module SSTG.Core.SMT
( module SSTG.Core.SMT.Syntax
) where
import SSTG.Core.SMT.Syntax
| AntonXue/SSTG | src/SSTG/Core/SMT.hs | bsd-3-clause | 134 | 0 | 5 | 25 | 25 | 18 | 7 | 3 | 0 |
{-# OPTIONS_HADDOCK show-extensions #-}
{- |
Copyright : Copyright (C) 2006-2015 Douglas McClean
License : BSD3
Maintainer : douglas.mcclean@gmail.com
Stability : Experimental
Portability: GHC only
= Summary
A type checker plugin for GHC that can perform unification in the Abelian
group of types... | bjornbm/dimensional-dk-experimental | src/Numeric/Units/Dimensional/DK/Solver.hs | bsd-3-clause | 1,251 | 0 | 7 | 228 | 199 | 136 | 63 | 15 | 1 |
module Haskell99Pointfree.P19
(
) where
import Control.Applicative ((<*>), liftA2)
import Data.Tuple (swap)
import Control.Monad.Extra (ifM)
import Data.Function ((&))
import Control.Monad (join, ap)
p19_1 :: [a] -> Int -> [a]
p19_1 = ( . ) . ( ( uncurry (++) .swap) . ) . flip splitAt <*> flip mod . length
... | SvenWille/Haskell99Pointfree | src/Haskell99Pointfree/P19.hs | bsd-3-clause | 597 | 1 | 16 | 150 | 297 | 177 | 120 | 13 | 1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Orphans where
-- import Solr.Query.Lucene
--
-- import Data.Coerce (coerce)
-- import Prelude.Compat
-- import Test.QuickCheck.Arbitrary
-- import Test.QuickCheck.Gen
-- import Test.QuickCheck.Instances ()
--
-- instance Arbitrary (Loc... | Sentenai/solr-query | test/Orphans.hs | bsd-3-clause | 707 | 0 | 2 | 155 | 29 | 28 | 1 | 3 | 0 |
module Handler.User where
import Import
import qualified Data.Text as T
getUserR :: Handler Html
getUserR = do
Entity userId user' <- requireAuth
user <- case user' of
UserInfo { userInfoIdent = uid, userInfoAuthId = "" } -> do
authId <- liftIO $ genAuthId userId uid
runDB $ do
update use... | tanakh/icfp2013-clone | Handler/User.hs | bsd-3-clause | 1,176 | 0 | 18 | 295 | 374 | 178 | 196 | -1 | -1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Concurrent (threadDelay)
import Control.Exception
import Control.Lens
import Data.ByteString.Char8 (isInfixOf)
import Data.Default
import MVC
import ... | cmahon/mvc-service | executable/SocketTestClient.hs | bsd-3-clause | 2,367 | 0 | 13 | 578 | 571 | 292 | 279 | 55 | 3 |
module HVX.DcpTests.OkConcaveNondecConcave where
import HVX
main :: IO ()
main = do
let x = EVar "x"
_ = hlog $ hlog x
_ = hlog $ hmin x
return ()
| chrisnc/hvx | test/DcpTests/OkConcaveNondecConcave.hs | bsd-3-clause | 165 | 0 | 11 | 49 | 71 | 35 | 36 | 8 | 1 |
-- All rights reserved
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Lamb... | nejla/auth-service | auth-service-core/src/AuthService/Types.hs | bsd-3-clause | 11,190 | 0 | 13 | 3,419 | 2,215 | 1,179 | 1,036 | 227 | 0 |
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnliftedFFITypes #-}
module MCL.Curves.Fp254BNb.Fp12
( Fp12
, beta
, mkFp12
, fp12_c0
, fp12_c1
, fp12_c2
, fp12_c3
, fp12_c4
, fp12_c5
, fp12_isZero
) where
import Control.DeepSeq
import Data.Binary
import Foreign.C.Types
import MCL.Curves.Fp254BNb.Fp2
im... | arybczak/haskell-mcl | src/MCL/Curves/Fp254BNb/Fp12.hs | bsd-3-clause | 5,109 | 0 | 14 | 1,039 | 1,326 | 695 | 631 | 113 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE LambdaCase #-}
module SimpTT.Expr
( Variable (..)
, ExprF (..)
, Expr
, getPosition
, free
, shift
... | esmolanka/simple-pi | src/SimpTT/Expr.hs | bsd-3-clause | 5,210 | 0 | 19 | 1,761 | 2,253 | 1,168 | 1,085 | 157 | 9 |
module TriangleKata.Day7Spec (spec) where
import Test.Hspec
import TriangleKata.Day7 (triangle, TriangleType(..))
spec :: Spec
spec = do
it "equilateral triangle has all sides equal" $ do
triangle (10, 10, 10) `shouldBe` Equilateral
it "isosceles triangle has first two sid... | Alex-Diez/haskell-tdd-kata | old-katas/test/TriangleKata/Day7Spec.hs | bsd-3-clause | 1,448 | 0 | 12 | 449 | 385 | 207 | 178 | 26 | 1 |
module Math.Budget.Demo where
import Math.Budget
import Control.Applicative
import Data.List
import Data.List.NonEmpty hiding (iterate, zipWith, tail)
import Data.Maybe
import Data.Time
import Data.Time.Calendar.OrdinalDate
paydaydiffs ::
ZonedTime
-> FixedPeriods
paydaydiffs =
(zipWith (\v w -> let UTCTime vd ... | tonymorris/hbudget | demo/src/Math/Budget/Demo.hs | bsd-3-clause | 2,657 | 0 | 19 | 922 | 790 | 419 | 371 | 79 | 2 |
{-# LANGUAGE BangPatterns #-}
module Development.Cake.Options
( Options(..), defaultOptions, parseOptions )
where
import Development.Cake.Core.Types
import Control.Applicative
import Data.Maybe ( fromMaybe, listToMaybe )
import GHC.Conc ( numCapabilities )
-- | Command line options for Cake.
data Options = Options... | nominolo/cake | src/Development/Cake/Options.hs | bsd-3-clause | 2,324 | 0 | 21 | 671 | 545 | 299 | 246 | 46 | 6 |
-- This demo shows how to use Yesod with the XING API.
--
-- The OAuth handshake is implemented without using yesod-auth.
-- Have a look at the yesod-auth-xing package for a simpler
-- solution to authenticate users using the XING API.
--
-- Make sure to set the environment variables XING_CONSUMER_KEY and
-- XING_CONSU... | JanAhrens/xing-api-haskell | demos/yesod-demo.hs | bsd-3-clause | 5,981 | 0 | 18 | 1,392 | 1,071 | 555 | 516 | 109 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module: $HEADER$
-- Description: TODO
-- Copyright: (c) 2014 Peter Trsko
-- License: BSD3
--
-- Maintainer: peter.trsko@gmail.com
-- Stability: experimental
-- Portability: NoImplicitPrelude, OverloadedStrings
--
-- TODO
... | trskop/skeletos | src/Skeletos/ShowOpt.hs | bsd-3-clause | 2,504 | 0 | 16 | 518 | 733 | 414 | 319 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeOperators #-}
-- |
-- Module : Crypto.Classical.Cipher.Enigma
-- Copyright : (c) Colin Woodbury, 2015 - 2020
-- License : BSD3
-- Maintainer: Colin Woodbury <colin@fosskers... | fosskers/crypto-classical | lib/Crypto/Classical/Cipher/Enigma.hs | bsd-3-clause | 3,178 | 0 | 18 | 868 | 813 | 435 | 378 | 51 | 2 |
{- |
Module : $Header$
Description : export logic graph information as XML
Copyright : (c) Christian Maeder DFKI GmbH 2013
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : non-portable (via imports)
export logic graph informati... | keithodulaigh/Hets | Logic/LGToXml.hs | gpl-2.0 | 3,888 | 0 | 21 | 851 | 1,296 | 633 | 663 | 81 | 1 |
module EnumFromTo3 where
main :: [Int]
main = list
where
list :: [Int]
list = [50..60]
| roberth/uu-helium | test/correct/EnumFromTo3.hs | gpl-3.0 | 98 | 0 | 7 | 27 | 37 | 23 | 14 | 5 | 1 |
{-# LANGUAGE FlexibleContexts, TypeFamilies #-}
{- |
Helpers for debug output and pretty-printing
(using pretty-simple, with which there may be some overlap).
This module also exports Debug.Trace.
@dbg0@-@dbg9@ will pretty-print values to stderr
if the program was run with a sufficiently high @--debug=N@ argument. ... | adept/hledger | hledger-lib/Hledger/Utils/Debug.hs | gpl-3.0 | 15,643 | 0 | 30 | 3,789 | 3,211 | 1,728 | 1,483 | 232 | 5 |
{-# 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/PutScheduledUpdateGroupAction.hs | mpl-2.0 | 7,971 | 0 | 11 | 1,495 | 1,020 | 611 | 409 | 120 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module DB.Admin(resetDatabase) where
import Config (dbName)
import Control.Monad (when)
import qualified Lib.DB as DB
import System.Directory (doesFileExist, removeFile)
resetDatabase :: IO String
resetDatabase = do
fileExists <- doesFil... | arealities/simplestore | src/DB/Admin.hs | unlicense | 1,283 | 0 | 10 | 436 | 153 | 81 | 72 | 19 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Program : imageviewer.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:48
Warning : this file is machine generated - do n... | uduki/hsQt | demos/Glome/imageviewer.hs | bsd-2-clause | 21,788 | 0 | 25 | 6,085 | 8,253 | 4,069 | 4,184 | -1 | -1 |
{-# OPTIONS -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Storable
-- Copyright : (c) The FFI task force 2001
-- License : see libraries/base/LICENSE
--
-- Maintainer : ffi@haskell.org
-- Stability : provisional
-- Po... | alekar/hugs | cpphs/tests/Storable.hs | bsd-3-clause | 8,408 | 51 | 13 | 1,737 | 1,010 | 604 | 406 | -1 | -1 |
{-# LANGUAGE CPP, ScopedTypeVariables #-}
--
-- Copyright (C) 2004 Don Stewart - http://www.cse.unsw.edu.au/~dons
--
-- This library is free software; you can redistribute it and/or
-- modify it under the terms of the GNU Lesser General Public
-- License as published by the Free Software Foundation; either
-- version 2... | Paow/encore | src/front/SystemUtils.hs | bsd-3-clause | 10,330 | 0 | 15 | 2,550 | 2,452 | 1,317 | 1,135 | 187 | 6 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE JavaScriptFFI #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStr... | et4te/zero | src/Reflex/Dom/SemanticUI/Input.hs | bsd-3-clause | 4,039 | 0 | 13 | 977 | 992 | 522 | 470 | 102 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.List
-- Copyright : (c) David Himmelstrup 2005
-- Duncan Coutts 2008-2011
-- License : BSD-like
--
-- Maintainer : cabal-devel@haskell.org
--
-- Search for and print info... | gbaz/cabal | cabal-install/Distribution/Client/List.hs | bsd-3-clause | 24,732 | 0 | 20 | 7,664 | 5,609 | 2,950 | 2,659 | 466 | 9 |
{-# LANGUAGE MagicHash, OverloadedStrings #-}
module Eta.CodeGen.Name (
qualifiedName,
fastStringText,
fastZStringText,
nameText,
nameTypeText,
nameTypeTable,
idNameText,
idClassText,
moduleJavaClass,
dataConClass,
tyConClass,
moduleClass,
closure,
classFilePath,
labelToMethod,
idFastStr... | rahulmutt/ghcvm | compiler/Eta/CodeGen/Name.hs | bsd-3-clause | 5,202 | 0 | 16 | 1,260 | 1,508 | 790 | 718 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.