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 TypeOperators, TypeFamilies #-}
{-# LANGUAGE AllowAmbiguousTypes #-}
-- The type of 'empty' is indeed ambiguous
module T2544 where
data (:|:) a b = Inl a | Inr b
class Ix i where
type IxMap i :: * -> *
empty :: IxMap i [Int]
data BiApp a b c = BiApp (a c) (b c)
instance (Ix l,... | urbanslug/ghc | testsuite/tests/indexed-types/should_fail/T2544.hs | bsd-3-clause | 1,063 | 0 | 8 | 304 | 168 | 100 | 68 | 11 | 0 |
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | jcgruenhage/dendrite | vendor/src/github.com/apache/thrift/tutorial/hs/HaskellServer.hs | apache-2.0 | 2,972 | 10 | 16 | 848 | 553 | 294 | 259 | 64 | 1 |
{-# LANGUAGE BangPatterns, DeriveDataTypeable, DeriveGeneric, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Com.Mysql.Cj.Mysqlx.Protobuf.Open.Condition.ConditionOperation (ConditionOperation(..)) where
import Prelude ((+), (/), (.))
import qualified Prelude as Prelude... | naoto-ogawa/h-xproto-mysql | src/Com/Mysql/Cj/Mysqlx/Protobuf/Open/Condition/ConditionOperation.hs | mit | 2,917 | 0 | 11 | 466 | 645 | 357 | 288 | 59 | 1 |
{-# htermination maxFM :: FiniteMap Bool b -> Maybe Bool #-}
import FiniteMap
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/FiniteMap_maxFM_8.hs | mit | 78 | 0 | 3 | 13 | 5 | 3 | 2 | 1 | 0 |
module Main where
import Control.Monad (unless)
import Control.Monad.Error.Class (throwError)
{- Abstract syntax
===============
τ := α Base type
| τ -> τ' Function type
e := e :: τ Annotated term
| x Variable
| e e' Application
| λx -> e L... | mietek/lambda-pi | LambdaArrow.hs | mit | 6,072 | 0 | 15 | 1,995 | 2,007 | 1,011 | 996 | 135 | 4 |
module Scene
(
Scene
, Intersection(..)
, mkScene
, sceneIntersection
)
where
import Data.List ( minimumBy )
import Data.Maybe ( mapMaybe )
import Data.Ord ( comparing )
import Core ( Ray, Point, at )
import Surface ( Surface, intersection )
data Scene... | stu-smith/rendering-in-haskell | src/experiment01/Scene.hs | mit | 1,268 | 0 | 10 | 397 | 318 | 181 | 137 | 35 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE UnicodeSyntax #-}
--------------------------------------------------------------------------------
-- File : Info
-- Author : Alejandro Gómez Londoño
-- Date : Sun Sep 14 01:56:28 2014
-- Description : Dropbox API info queries
-----------------------------------------... | agomezl/MonadBox | src/MonadBox/Info.hs | mit | 1,244 | 0 | 13 | 158 | 281 | 162 | 119 | 21 | 1 |
{-
The following is a prototype implementation of the plan for
overloaded record fields in GHC, described at
http://ghc.haskell.org/trac/ghc/wiki/Records/OverloadedRecordFields/Plan
This version integrates with lenses, but does not support
type-changing update.
-}
{-# LANGUAGE KindSignatures, DataKinds, Mu... | adamgundry/records-prototype | 2013/SimpleRecords.hs | mit | 4,777 | 2 | 12 | 1,135 | 1,770 | 951 | 819 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell #-}
-- | Monitor API.
module Web.Mackerel.Api.Monitor
( listMonitors
, createMonitor
, updateMonitor
, deleteMonitor
) where
import Data.Aeson (Value)
import Data.Aeson.TH (deriveJSON)
import qualified Data.ByteString.Char8 as BS
import Network.HTTP.Types (StdM... | itchyny/mackerel-client-hs | src/Web/Mackerel/Api/Monitor.hs | mit | 1,402 | 0 | 12 | 184 | 412 | 221 | 191 | 29 | 1 |
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module DataBet
( dataBetTestGroup )
where
import Control.Applicative
import Control.Lens
import Data.Bet
import Data.Semigroup
... | Noeda/bet | test/DataBet.hs | mit | 1,900 | 0 | 15 | 398 | 637 | 332 | 305 | -1 | -1 |
{-|
Module: Treb.Routes.Helpers
Description: Helper functions that return into TrebServerBase.
Copyright: Travis Whitaker 2015
License: MIT
Maintainer: twhitak@its.jnj.com
Stability: Provisional
Portability: POSIX
-}
{-# LANGUAGE DataKinds, PolyKinds, RankNTypes, TypeFamilies, TypeOperators,
... | MadSciGuys/trebuchet | src/Treb/Routes/Helpers.hs | mit | 6,372 | 0 | 18 | 1,221 | 1,451 | 764 | 687 | 121 | 4 |
-- Aufgabe 12.16
-- a)
-- Note that expo work only on natural numbers (non-negative)
-- `expo 0 0`, `expo 0 1`, `expo 2 3`
expo :: Int -> Int -> Int
expo x 0 = 1
expo 0 y = 0
expo x y
| y > 0 = x * (expo x (y-1))
{-
Computation example:
expo 2 2 = 2 * (expo 2 1)
= 2 * 2 * (expo 2 0)
= 2 * 2 * 1
= 4
-}
--... | KaliszAd/programmierung2012 | aufgabe12_16.hs | gpl-2.0 | 959 | 12 | 12 | 255 | 414 | 209 | 205 | 24 | 1 |
{- |
Module : $Header$
Description : Navigation through the Development Graph
Copyright : (c) Ewaryst Schulz, DFKI Bremen 2011
License : GPLv2 or higher, see LICENSE.txt
Maintainer : ewaryst.schulz@dfki.de
Stability : experimental
Portability : non-portable (via imports)
Navigation through the De... | nevrenato/Hets_Fork | Static/DGNavigation.hs | gpl-2.0 | 8,381 | 25 | 14 | 2,163 | 2,262 | 1,185 | 1,077 | 128 | 2 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_HADDOCK show-extensions #-}
-- |
-- Module : Yi.Config.Lens
-- License : GPL-2
-- Maintainer : yi-devel@googlegroups.com
-- Stability : experimental
-- Portability : portable
--
-- Lenses for types exported in Yi.Config. This module serves as a
-- convenien... | atsukotakahashi/wi | src/library/Yi/Config/Lens.hs | gpl-2.0 | 731 | 0 | 6 | 111 | 125 | 74 | 51 | 12 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
module Hkl.Diffabs.IRDRx
( mainIRDRx ) where
import Control.Concurrent.Async (mapConcurrently)
import Data.Array.Repa (DIM1, ix1)
import Data.Char (toUpper)
import Numeric.LinearAlgebra (ident)
import System.FilePath ((</>))
import Text.Printf (printf)
i... | picca/hkl | contrib/haskell/src/Hkl/Diffabs/IRDRx.hs | gpl-3.0 | 4,443 | 0 | 17 | 1,106 | 1,071 | 586 | 485 | 83 | 1 |
-- | Define the behaviors of 'Ball'
{-# LANGUAGE
GADTs
, MultiParamTypeClasses
#-}
module Satter.Ball
(
expectedTime
) where
import Satter.TwoD
import Satter.Types
alpha :: Double
alpha = 0.99
instance SObject Ball where
geometricsOf = _geometrics_b
sizeOf _ = ballSize
updateInte... | shnarazk/satter | Satter/Ball.hs | gpl-3.0 | 1,410 | 0 | 13 | 390 | 608 | 326 | 282 | 40 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-iam/gen/Network/Google/Resource/IAM/Projects/Locations/WorkLoadIdentityPools/Providers/Delete.hs | mpl-2.0 | 6,425 | 0 | 15 | 1,277 | 705 | 416 | 289 | 112 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-adsense/gen/Network/Google/Resource/AdSense/Accounts/AdClients/AdUnits/GetAdcode.hs | mpl-2.0 | 5,387 | 0 | 16 | 1,159 | 704 | 412 | 292 | 109 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main ( main ) where
import Control.Monad
import Criterion
import Criterion.Main
import Data.Text ( Text )
import qualified Data.Text as T
import Foreign.Marshal.Alloc
import Graphics.Text
setupEnv :: IO RenderContext
setupEnv = do
ctx <- newRenderContext
setFont ctx ... | Noeda/rendertext | benchmark/Main.hs | lgpl-2.1 | 2,112 | 0 | 18 | 602 | 741 | 373 | 368 | 52 | 1 |
maximum' :: (Ord a) => [a] -> a
maximum' [] = error "maximum of empty list!"
maximum' [x] = x
maximum' (x:xs) = max x (maximum' xs)
-- We use guards instead of patterns because we're testing for a Boolean condition
replicate' :: Int -> a -> [a]
replicate' n x
| n <= 0 = []
| otherwise = x : replicate' (n-1) x
take'... | Ketouem/learn-you-a-haskell | src/chapter-4-hello-recursion/recursion.hs | unlicense | 1,020 | 10 | 11 | 254 | 620 | 325 | 295 | 33 | 1 |
import Data.List (findIndices, permutations)
import Helpers.ListHelpers (cartesianProduct)
wreathProductElements k n = [(a, b) | a <- permutations [0..n-1], b <- cartesianProduct n [0..k-1]]
isDerangement (perm, prod) = all (\fp -> (prod !! fp) /= 0) fixedPoints where
fixedPoints = findIndices (uncurry (==)) $ zip... | peterokagey/haskellOEIS | src/Sandbox/Sami/WreathProductDerangements.hs | apache-2.0 | 332 | 0 | 10 | 51 | 153 | 83 | 70 | 5 | 1 |
{-# LANGUAGE BangPatterns, TemplateHaskell #-}
module Collectors.Network where
import Control.Applicative ((*>))
import Control.Lens.TH (makeClassy)
import Data.Functor ((<$>))
import Data.Text (Text, pack)
import Text.Parsec (manyTill, anyChar, digit, endBy, string
, many1, char, sepBy, newline, s... | muhbaasu/hmon | src/Collectors/NetDev.hs | apache-2.0 | 2,863 | 0 | 15 | 1,264 | 661 | 359 | 302 | 94 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module CoSimCLaSH
( CoSimulator(..)
,coSim
,coSimCleanUp
,coSimDisableStdOut
,coSimEnable... | jgjverheij/clash-cosim | CoSimCLaSH.hs | bsd-2-clause | 14,376 | 0 | 13 | 4,352 | 3,753 | 2,027 | 1,726 | -1 | -1 |
-- | Program to replace HTML tags by whitespace
--
-- This program was originally contributed by Petr Prokhorenkov.
--
-- Tested in this benchmark:
--
-- * Reading the file
--
-- * Replacing text between HTML tags (<>) with whitespace
--
-- * Writing back to a handle
--
{-# OPTIONS_GHC -fspec-constr-count=5 #-}
module ... | ekmett/text | benchmarks/haskell/Benchmarks/Programs/StripTags.hs | bsd-2-clause | 1,461 | 0 | 14 | 322 | 449 | 248 | 201 | 32 | 3 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
module Haskell.Decode where
import Haskell.ArraySig
import Data.Array.Base (IArray(..),listArray,amap,elems,MArray)
import Data.Array.Base (thaw,unsafeFreeze)
import Data.Array.Unboxed ((!),Ix(..))
import Data.Array.ST (STUArray,readArray,writeArray)
im... | ku-fpg/ldpc-blob | src/Haskell/Decode.hs | bsd-2-clause | 6,316 | 0 | 23 | 1,673 | 1,794 | 915 | 879 | 87 | 5 |
module SpatioTemporalStructure.OrientedMatroid where
-- standard modules
import Data.List
import qualified Data.Map as Map
import qualified Data.Set as Set
import Data.Maybe
-- local modules
import Basics
--import Calculus.Dipole
import qualified Helpful as H
import Interface.LpSolve
--import Interface.Clp
--import ... | spatial-reasoning/zeno | src/SpatioTemporalStructure/OrientedMatroid.hs | bsd-2-clause | 10,799 | 0 | 24 | 4,579 | 2,572 | 1,382 | 1,190 | 163 | 7 |
-- |Implementation of the gaurantee semantics and forwarding semantics of
-- PolicyTrees
module HFT
( Action
, MatchTable (..)
, compileShareTree
, emptyTable
, unionTable
, concatTable
, condense
) where
import Data.Tree (Tree (..))
import ShareTree (Share (..))
import Base
import Data.List (groupBy,... | brownsys/pane | src/HFT.hs | bsd-3-clause | 4,998 | 0 | 14 | 1,508 | 1,461 | 774 | 687 | 94 | 8 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DeriveGeneric #-}
module CollabHandlers where
import Control.Applicative
import Snap.Core
import Snap.Snaplet
import Snap.Extras.CoreUtils
import Snap.Extras.JSON
import Snap.Snaplet.PostgresqlSimple
import Control.Monad (when)
impor... | imalsogreg/collabplot | server/src/CollabHandlers.hs | bsd-3-clause | 7,312 | 0 | 20 | 1,881 | 2,401 | 1,197 | 1,204 | 165 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE ParallelListComp #-}
module CRDT.Cv.RGA
( RGA (..)
, fromList
, toList
, edit
, RgaString
, fromString
, toString
-- * Packed representation
, RgaPacked
, pack
, unpack
) where
import Data.Algorithm.Diff (PolyDiff (Both... | cblp/crdt | crdt/lib/CRDT/Cv/RGA.hs | bsd-3-clause | 3,516 | 2 | 13 | 1,006 | 1,334 | 717 | 617 | 75 | 5 |
module Main where
import Person
main :: IO ()
main = print$firstName$Person "Gabriel" "Ariel" 17 1.90 "3330-7320" "morango"
| Hidowga/Projetos | Main.hs | bsd-3-clause | 135 | 0 | 7 | 29 | 43 | 22 | 21 | 4 | 1 |
-- -----------------------------------------------------------------------------
--
-- DFA.hs, part of Alex
--
-- (c) Chris Dornan 1995-2000, Simon Marlow 2003
--
-- This module generates a DFA from a scanner by first converting it
-- to an NFA and then converting the NFA with the subset construction.
--
-- See the c... | simonmar/alex | src/DFA.hs | bsd-3-clause | 10,525 | 6 | 19 | 2,552 | 1,331 | 720 | 611 | 66 | 2 |
{-
- Everything here is evil by definition.
-}
module System.DotFS.Core.Constants where
import System.DotFS.Core.Datatypes
import System.Fuse
import System.Posix.Files
-- there is a system call for this.
-- but never mind, since we have a read-only file
-- system, we don't need that.
dotfsGetFileSystemStats :: Con... | toothbrush/dotfs | System/DotFS/Core/Constants.hs | bsd-3-clause | 1,135 | 0 | 9 | 256 | 194 | 125 | 69 | 26 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude #-}
{-# OPTIONS_GHC -funbox-strict-fields #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.IO.Encoding
-- Copyright : (c) The University of Glasgow, 2008-2009
-- License : see libraries/... | urbanslug/ghc | libraries/base/GHC/IO/Encoding.hs | bsd-3-clause | 11,413 | 0 | 13 | 2,220 | 1,224 | 737 | 487 | 103 | 9 |
{-
(c) The University of Glasgow, 1992-2006
Here we collect a variety of helper functions that construct or
analyse HsSyn. All these functions deal with generic HsSyn; functions
which deal with the instantiated versions are located elsewhere:
Parameterised by Module
---------------- -------------
R... | vikraman/ghc | compiler/hsSyn/HsUtils.hs | bsd-3-clause | 46,472 | 0 | 27 | 12,132 | 11,948 | 6,151 | 5,797 | -1 | -1 |
{-# LANGUAGE GADTs #-}
module Experiments.Applicative.Introspection where
import Control.Applicative
data GAplTree a where
GAplBranch :: GAplTree (a -> b) -> GAplTree a -> GAplTree b
GAplLeaf :: a -> GAplTree a
GAplLabel :: String -> GAplTree a -> GAplTree a
instance Functor GAplTree where
fmap f ... | rumblesan/haskell-experiments | src/Experiments/Applicative/Introspection.hs | bsd-3-clause | 1,391 | 0 | 11 | 331 | 506 | 258 | 248 | 29 | 1 |
{-# LANGUAGE TemplateHaskell #-}
-- | Internal module that handles the caching of Discord resources.
--
-- Every object is indexed by its internal discord identifier.
module Haskcord.Cache
where
-- TODO Make a type synonym for ReaderT cache.
| swagcod/haskcord | src/Haskcord/Cache.hs | bsd-3-clause | 243 | 0 | 3 | 39 | 11 | 9 | 2 | 2 | 0 |
-- A module for changing behavior based on the version of GHC.
{-# LANGUAGE CPP #-}
module GhcVersion where
import Data.Version
import Text.ParserCombinators.ReadP
ghcVersion :: Version
ghcVersion = case readP_to_S (parseVersion <* eof) VERSION_ghc of
[(v,"")] -> v
_ -> error $ "Unable to parse GHC version " ... | google/ghc-source-gen | tests/GhcVersion.hs | bsd-3-clause | 459 | 0 | 9 | 114 | 119 | 67 | 52 | 12 | 2 |
import Control.Concurrent (myThreadId, threadDelay)
import System.IO (stdout, hSetBuffering, BufferMode(LineBuffering))
import System.Random (randomIO)
import Streamly
import qualified Streamly.Prelude as S
main :: IO ()
main = do
hSetBuffering stdout LineBuffering
S.drain $ do
x <- S.take 10 $ loop "A... | harendra-kumar/asyncly | test/parallel-loops.hs | bsd-3-clause | 833 | 1 | 15 | 252 | 265 | 134 | 131 | 21 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVar... | dalaing/type-systems | src/Fragment/TmApp/Rules/Type/Infer/Common.hs | bsd-3-clause | 1,818 | 0 | 14 | 468 | 556 | 294 | 262 | 46 | 1 |
module System.FSWatch.Repr where
import Control.Concurrent (MVar, Chan)
import System.FSNotify (WatchManager)
import System.IO (IO, Handle)
import System.Process (ProcessHandle)
data WatchProcess = WatchProcess
{ wPath :: String
, wProcessHandle :: ProcessHandle
, wStdin :: Handle
, wStdout :: Handle
, wN... | kelemzol/watch | src/System/FSWatch/Repr.hs | bsd-3-clause | 1,151 | 0 | 10 | 272 | 392 | 229 | 163 | 49 | 1 |
-----------------------------------------------------------------------------
--
-- Generating machine code (instruction selection)
--
-- (c) The University of Glasgow 1996-2013
--
-----------------------------------------------------------------------------
{-# LANGUAGE GADTs #-}
module SPARC.CodeGen (
cmmTop... | ekmett/ghc | compiler/nativeGen/SPARC/CodeGen.hs | bsd-3-clause | 22,234 | 0 | 29 | 7,427 | 4,465 | 2,220 | 2,245 | 375 | 40 |
module Calc.SyntaxTree
( Environment
, Expr(..)
, evalExpr
) where
import Control.Monad (liftM, liftM2)
import Control.Monad.State (State, get, modify)
import Data.Map (Map, insert, lookup)
import Prelude hiding (lookup)
type Environment = Map String Expr
data Expr = Nil
| Val Integer
... | qiuhw/calc | src/Calc/SyntaxTree.hs | bsd-3-clause | 2,281 | 0 | 10 | 800 | 1,069 | 532 | 537 | 64 | 8 |
{-# LANGUAGE DataKinds, TypeFamilies #-}
import Proposte
import ProposteInstances
import Data.Set hiding (map)
import Test.HUnit
import Data.Binary
----------------------------------
-- esempi ----------------------
--------------------------------
data instance Prodotto Offerta = PO String Tag
data instance P... | paolino/consumattori | Test.hs | bsd-3-clause | 889 | 4 | 9 | 139 | 334 | 174 | 160 | 14 | 1 |
module Main where
import Lib
import HW07
import Testing
main :: IO ()
main = someFunc | ImsungChoi/haskell-test | app/Main.hs | bsd-3-clause | 88 | 0 | 6 | 18 | 28 | 17 | 11 | 6 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE CPP, TemplateHaskell #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Llvm.AsmHirConversion.HirToAs... | mlite/hLLVM | src/Llvm/AsmHirConversion/HirToAsm.hs | bsd-3-clause | 79,015 | 0 | 23 | 26,516 | 32,395 | 16,080 | 16,315 | 1,213 | 3 |
module Util where
import Data.Time
import Options.Applicative
import Text.Printf
data ClientConfig
= ClientConfig
{ ccHost :: String
, ccPort :: Int
, ccConn :: Int
, ccActive :: Int
, ccTotal :: Int
}
clientConfig :: Parser ClientConfig
clientConfig = C... | tanakh/echo | Util.hs | bsd-3-clause | 1,482 | 0 | 16 | 442 | 473 | 228 | 245 | 52 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Test.Generalization where
import Test.Helper (test2)
import Generalization
import qualified FreshNames as FN
import Syntax
import qualified Subst
import Control.Monad.State
gen1 :: Generalizer
gen1 = Subst.empty
gen2 :: Generalizer
gen2 = ... | kajigor/uKanren_transformations | test/auto/Test/Generalization.hs | bsd-3-clause | 3,620 | 0 | 18 | 1,098 | 2,123 | 1,179 | 944 | 75 | 1 |
module Language.ImProve.Code.C (codeC) where
import Data.List
import Text.Printf
import Language.ImProve.Code.Common
import Language.ImProve.Core
import Language.ImProve.Tree hiding (Branch)
import qualified Language.ImProve.Tree as T
-- | Generate C.
codeC :: Name -> Statement -> IO ()
codeC name stmt = do
writeF... | tomahawkins/improve | Language/ImProve/Code/C.hs | bsd-3-clause | 3,907 | 0 | 21 | 1,021 | 1,651 | 820 | 831 | 83 | 23 |
{-# LANGUAGE PostfixOperators, TypeFamilies #-}
{-# OPTIONS_HADDOCK show-extensions, prune #-}
----------------------------------------------------------------------
-- |
-- Module : ForSyDe.Atom.MoC
-- Copyright : (c) George Ungureanu, 2015-2017
-- License : BSD-style (see the file LICENSE)
--
-- Mainta... | forsyde/forsyde-atom | src/ForSyDe/Atom/MoC.hs | bsd-3-clause | 42,178 | 0 | 15 | 12,798 | 11,909 | 6,677 | 5,232 | 383 | 1 |
{-# LANGUAGE CPP #-}
-- | Functions to work with the time value of money
module Finance.TimeValue
(
-- * Time value of money functions
compound
, compoundingFactor
, discount
, futureInterest
-- * Utility functions
-- TODO: Should they be moved somewhere else?
, weightedAverage
... | schernichkin/exchange | src/Finance/TimeValue.hs | bsd-3-clause | 1,080 | 0 | 13 | 255 | 341 | 185 | 156 | 20 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Control.Monad.TreeWriter
(
-- * The TreeWriter monad transformer
TreeWriter,
runTreeWriter,
execTreeWriter,
printTreeWriter,
-- * TreeWriter operations
leaf,
node,
)
where
import Control.Applicative
import Control.Monad
import Control.... | cdxr/tree-writer | Control/Monad/TreeWriter.hs | bsd-3-clause | 2,625 | 0 | 11 | 525 | 709 | 389 | 320 | 46 | 1 |
module GibbsSampler
(getPosteriorSampling,
randomInitializer,
zerosInitializer
) where
import TNGraph
import TNPrimitiveFunctions
import System.Random
import qualified Data.Map as M
import TNTypes
import TNParser
import Data.Maybe
import Debug.Trace
-- **** GibbsSampler ****
-- This file contains all the functi... | astarostap/cs240h_final_project | src/GibbsSampler.hs | bsd-3-clause | 6,191 | 42 | 13 | 1,044 | 1,581 | 873 | 708 | 89 | 2 |
module Facebook.Object.Marketing.Utility where
import Data.Aeson
import Data.Aeson.Types
import Data.List
import GHC.Generics
import Data.ByteString
import Data.Char
import qualified Data.Aeson.Encode as AE (fromValue)
import qualified Data.Text.Lazy as TL
import qualified Data.Text.Encoding as TE
import qualified Dat... | BeautifulDestinations/fb | src/Facebook/Object/Marketing/Utility.hs | bsd-3-clause | 1,074 | 0 | 9 | 199 | 306 | 174 | 132 | 29 | 2 |
--------------------------------------------------------------------------------
{-# LANGUAGE DoRec #-}
--------------------------------------------------------------------------------
import Control.Applicative (pure, (<$>), (<*>), (<*))
import Control.Concurrent (threadDel... | tsurucapital/elerea-network | example.hs | bsd-3-clause | 2,092 | 1 | 17 | 558 | 503 | 261 | 242 | 43 | 3 |
module Translations.HealthLog where
import Data.Text (Text)
import qualified Data.Text as T
import I18N
import App.HealthLog
instance RenderMessage HealthLogError where
defaultTranslator = renderHealthLogErrorEn
renderHealthLogErrorEn :: HealthLogError -> Text
renderHealthLogErrorEn (DatabaseError exc) = T.appe... | savannidgerinel/health | src/Translations/HealthLog.hs | bsd-3-clause | 465 | 0 | 8 | 60 | 108 | 59 | 49 | 10 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Text.Document.Parser.Wiki where
import Control.Applicative hiding ((<|>))
import Data.List (intercalate)
import Data.Maybe (isNothing, catMaybes)
import Prelude hiding (lines)
import Text.ParserCombinators.Parsec hiding (many, optional)
import Text.Document.Core.Type
import Te... | sebastiaanvisser/orchid-doc | src/Text/Document/Parser/Wiki.hs | bsd-3-clause | 6,372 | 0 | 17 | 1,541 | 2,496 | 1,295 | 1,201 | 147 | 3 |
{-# LANGUAGE Safe,
TypeOperators, ScopedTypeVariables,
PolyKinds,
RankNTypes, TypeFamilies,
MultiParamTypeClasses #-}
module Type.BST.Item (
-- * Item
Item(Item, value), type (|>)
, With
, newkey, item, (|>)
) where
import Type.BST.Proxy
import Type.BST.Showtype
-- | 'It... | Kinokkory/type-level-bst | src/Type/BST/Item.hs | bsd-3-clause | 1,192 | 0 | 15 | 311 | 320 | 186 | 134 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, FlexibleContexts, DeriveDataTypeable, ScopedTypeVariables #-}
module Network.FTP.Commands where
{-| Implement all ftp commands in FTP Monad.
-}
import qualified Prelude as P
import BasicPrelude
import Control.Monad.Trans.State (get, gets, put, modify)
import Control.Exception (throw)... | yihuang/haskell-ftp | Network/FTP/Commands.hs | bsd-3-clause | 10,197 | 0 | 22 | 3,148 | 3,082 | 1,534 | 1,548 | 237 | 6 |
{-|
Module : Util
Description : Lib's utils module
This is a haddock comment describing your library
For more information on how to write Haddock comments check the user guide:
<https://www.haskell.org/haddock/doc/html/index.html>
-}
module Util where
import Control.Concurrent.STM
import qualified Cont... | wamaral/slaskellbot | src/Util.hs | bsd-3-clause | 2,381 | 0 | 15 | 559 | 656 | 341 | 315 | 45 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Config where
import Control.Applicative (empty, (<$>), (<*>))
import qualified Data.Aeson as AE
import qualified Data.ByteString.Lazy.Char8 as BL
import Data.Default
import Data.Text (Text())
import System.Directory (doesFileExist)
data AojConf = AojConf {
user :: String... | asi1024/WXCS | src/Config.hs | mit | 1,579 | 0 | 11 | 431 | 493 | 268 | 225 | 46 | 2 |
{-# LANGUAGE DeriveFunctor, RankNTypes #-}
module Control.Lens.Getter where
import Control.Monad.State.Class
import Control.Monad.Reader.Class
import Control.Applicative
import Unsafe.Coerce
import Data.Monoid
import Data.Foldable
infixl 8 ^.
type Getting r s a = (a -> Accessor r a) -> s -> Accessor r s
type Getter s... | zerobuzz/reasonable-lens | src/Control/Lens/Getter.hs | mit | 1,537 | 0 | 10 | 337 | 621 | 333 | 288 | 45 | 1 |
module Simple where
empty [] = 1
emty xs = 0
main = 2 +. 4
| roberth/uu-helium | docs/wiki-material/Simple4.hs | gpl-3.0 | 66 | 0 | 6 | 23 | 31 | 17 | 14 | 4 | 1 |
{-# LANGUAGE CPP #-}
-- Copyright (c) 2010, Diego Souza
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- ... | dgvncsz0f/iyql | src/test/haskell/Test/Yql/UI/CLI/Commands/SetEnv.hs | gpl-3.0 | 3,377 | 0 | 14 | 782 | 570 | 321 | 249 | 36 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Program : sliders.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:47
Warning : this file is machine generated - do not m... | keera-studios/hsQt | examples/sliders.hs | bsd-2-clause | 3,454 | 0 | 11 | 656 | 1,068 | 537 | 531 | 97 | 1 |
module Main where
import System.Environment
import System.Directory
import System.IO
import Data.List
import Data.Word
import Data.Bits
import Data.Char
import Control.Monad
import Control.Exception
import Data.List.Split
getPrimes :: [Integer] -> [Integer]
getPrimes [] = []
getPrimes (p:ps) = p : (getPrimes (filte... | brosnanyuen/Project-Euler-Solutions | 73/main.hs | bsd-2-clause | 432 | 0 | 14 | 67 | 176 | 101 | 75 | 15 | 1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1993-1998
\section[WwLib]{A library for the ``worker\/wrapper'' back-end to the strictness analyser}
-}
{-# LANGUAGE CPP #-}
module Eta.StrAnal.WwLib ( mkWwBodies, mkWWstr, mkWorkerArgs
, deepSplitProductType_maybe, findTypeShape
) where
#include "HsV... | rahulmutt/ghcvm | compiler/Eta/StrAnal/WwLib.hs | bsd-3-clause | 32,006 | 0 | 15 | 9,473 | 3,898 | 2,135 | 1,763 | 264 | 2 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE FlexibleContexts #-}
module Elm.Utils
( (|>), (<|), (>>)
, run, unwrappedRun
, CommandError(..)
) where
import Prelude hiding ((>>))
import Control.Monad.Except (MonadError, MonadIO, liftIO, throwError)
import System.Exit (ExitCode(ExitSuccess, ExitFailure))
impor... | rgrempel/frelm.org | vendor/elm-format/parser/src/Elm/Utils.hs | mit | 2,199 | 0 | 14 | 588 | 618 | 331 | 287 | 50 | 3 |
{- |
Module : $Header$
Description : Tools for CommonLogic static analysis
Copyright : (c) Eugen Kuksa, Uni Bremen 2011
License : GPLv2 or higher, see LICENSE.txt
Maintainer : eugenk@informatik.uni-bremen.de
Stability : experimental
Portability : portable
Tools for CommonLogic static analysis
-}
... | mariefarrell/Hets | CommonLogic/Tools.hs | gpl-2.0 | 7,438 | 0 | 11 | 1,984 | 1,796 | 882 | 914 | 146 | 5 |
module Main where
import Graphics.UI.WX
bugtext = unlines [ "Former bug: these buttons should react when clicked"
, "but the boxed one does not"
, ""
, "Buggy in: MacOS X [now fixed!]"
, "Working in: Linux and Windows"
]
main ... | ekmett/wxHaskell | samples/test/BoxedCombinator.hs | lgpl-2.1 | 982 | 0 | 19 | 442 | 292 | 145 | 147 | 19 | 1 |
{-# LANGUAGE FlexibleInstances, TypeSynonymInstances,
MultiParamTypeClasses, DeriveDataTypeable, OverloadedStrings #-}
-----------------------------------------------------------------------------
--
-- Module : IDE.Pane.Errors
-- Copyright : 2007-2011 Juergen Nicklisch-Franken, Hamish Mackenzie
-- License ... | 573/leksah | src/IDE/Pane/Errors.hs | gpl-2.0 | 6,804 | 1 | 19 | 1,804 | 1,721 | 856 | 865 | 153 | 3 |
<?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="ru-RU">
<title>Простой пример Дополнения</title>
<maps>
<homeID>top</homeID>
<mapref lo... | kingthorin/zap-extensions | addOns/simpleexample/src/main/javahelp/org/zaproxy/addon/simpleexample/resources/help_ru_RU/helpset_ru_RU.hs | apache-2.0 | 1,025 | 82 | 52 | 157 | 488 | 253 | 235 | -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="id-ID">
<title>Automation Framework</title>
<maps>
<homeID>top</homeID>
<mapref locatio... | thc202/zap-extensions | addOns/automation/src/main/javahelp/org/zaproxy/addon/automation/resources/help_id_ID/helpset_id_ID.hs | apache-2.0 | 965 | 82 | 52 | 156 | 390 | 206 | 184 | -1 | -1 |
module Generate.JavaScript.Port (inbound, outbound, task) where
import qualified Data.List as List
import qualified Data.Map as Map
import Language.ECMAScript3.Syntax
import qualified AST.Type as T
import qualified AST.Variable as Var
import Generate.JavaScript.Helpers
import qualified Reporting.PrettyPrint as P
--... | Axure/elm-compiler | src/Generate/JavaScript/Port.hs | bsd-3-clause | 7,823 | 0 | 20 | 2,758 | 2,707 | 1,336 | 1,371 | 193 | 10 |
module LiftToToplevel.Where where
anotherFun 0 y = sq y
where sq x = x^2
| RefactoringTools/HaRe | test/testdata/Layout/Where.hs | bsd-3-clause | 79 | 0 | 7 | 20 | 33 | 17 | 16 | 3 | 1 |
module A1 where
import C1
main xs
= case xs of
[] -> 0
[(x : xs)] -> (x ^ pow) + (sumSquares1 xs)
| kmate/HaRe | old/testing/liftToToplevel/A1AST.hs | bsd-3-clause | 129 | 0 | 10 | 55 | 60 | 33 | 27 | 6 | 2 |
{-# Language CPP,
GADTs,
StandaloneDeriving,
DeriveDataTypeable,
QuasiQuotes,
NoMonomorphismRestriction,
TupleSections,
OverloadedStrings #-}
{- |
Optimizer:
Basic optimization of the generated JavaScript to
reduce file s... | beni55/ghcjs | src/Gen2/Optimizer.hs | mit | 47,153 | 0 | 24 | 14,258 | 17,288 | 8,706 | 8,582 | -1 | -1 |
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
module T12245 where
import Data.Data ( Data )
data Foo f = Foo (f Bool) (f Int)
deriving instance Data (Foo [])
deriving instance Data (Foo Maybe)
| sgillespie/ghc | testsuite/tests/deriving/should_compile/T12245.hs | bsd-3-clause | 258 | 0 | 8 | 43 | 71 | 40 | 31 | 8 | 0 |
-- Transformation stress test
{-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp #-}
module Main where
import Data.List(takeWhile)
import GHC.Exts(sortWith)
employees = [ ("Simon", "MS", 80)
, ("Erik", "MS", 100)
, ("Phil", "Ed", 40)
, ("Gordon", "Ed", 45)
, ("... | hferreiro/replay | testsuite/tests/deSugar/should_run/mc02.hs | bsd-3-clause | 569 | 0 | 11 | 184 | 173 | 103 | 70 | 15 | 1 |
{-# LANGUAGE NamedFieldPuns #-}
module NotGate where
import Types
notGate :: Literal -> Literal
notGate (Constant b) = Constant $ not b
notGate Input {keys, keyState} =
Input keys changed
where
changed = do
a' <- keyState
case a' of
Producer a0 a1 -> return $ Producer a1 a0
... | ur-crypto/sec-lib | library/NotGate.hs | mit | 425 | 0 | 15 | 123 | 151 | 77 | 74 | 13 | 3 |
{-# LANGUAGE DeriveGeneric, CPP #-}
module Data.KdMap.Dynamic
( -- * Usage
-- $usage
-- * Reference
-- ** Types
PointAsListFn
, SquaredDistanceFn
, KdMap
-- ** Dynamic /k/-d map construction
, empty
, singleton
, emptyWithDist
... | ScrambledEggsOnToast/kdt | lib-src/Data/KdMap/Dynamic.hs | mit | 8,505 | 0 | 13 | 2,164 | 2,041 | 1,114 | 927 | 118 | 3 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE RecordWildCards #-}
#if __GLASGOW_HASKELL__ >= 806
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeApplications #-}
#endif
#include "ghc-compat.h"
{-
This seems to work. But it is a hack!
A 10-line patch extending the GHC-API would make that go away
-}
module HsToCoq.Util.GHC.Derivi... | antalsz/hs-to-coq | src/lib/HsToCoq/Util/GHC/Deriving.hs | mit | 5,977 | 0 | 17 | 1,474 | 1,481 | 786 | 695 | 93 | 10 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Version where
import Language.Haskell.TH (runIO)
import Language.Haskell.TH.Syntax (Exp(LitE), Lit(StringL))
import Shellmet
import Data.Text
-- | Uses Template Haskell to embed a git descriptor of the commit
-- which was used to build the... | unisonweb/platform | parser-typechecker/unison/Version.hs | mit | 933 | 0 | 14 | 172 | 205 | 115 | 90 | 15 | 1 |
{-# LANGUAGE Rank2Types #-}
import Numeric.AD
import Control.Applicative
import Control.Monad
import Data.Foldable as F
import Data.Traversable
import Control.Applicative
import Control.Monad.State
import Control.Monad as M
import System.IO
import Data.Char as C
import Data.Vector as V
import Data.List as L
import Dat... | CurtisHuebner/ghnn | src/Main.hs | mit | 19,897 | 112 | 22 | 5,241 | 6,019 | 3,141 | 2,878 | -1 | -1 |
import Database.HDBC.Sqlite3 (connectSqlite3)
import Database.HDBC
query :: Int -> IO ()
query maxId =
do
conn <- connectSqlite3 "test1.db"
r <- quickQuery' conn "SELECT id, desc from test where id <= ? ORDER BY id, desc" [toSql maxId]
let stringRows = map convRow r
mapM_ putStrLn stringRows
where... | zhangjiji/real-world-haskell | ch21/query.hs | mit | 636 | 5 | 10 | 193 | 182 | 91 | 91 | 16 | 3 |
--asPatterns.hs
module AsPatterns where
import Data.Bool
import Data.Char
import Data.List
myChunks :: String -> Char -> [String]
myChunks n c
| n == "" = []
| otherwise = firstChunk : myChunks (dropWhile (/= c) $ tail n) c
where
firstChunk = if head n == c then
take... | deciduously/Haskell-First-Principles-Exercises | 3-Getting serious/11-Algebraic Datatypes/code/asPatterns.hs | mit | 1,290 | 1 | 13 | 367 | 505 | 264 | 241 | 28 | 2 |
{-# LANGUAGE DeriveGeneric #-}
-- only export the public interface
module Users (Users.all, matching, User(..)) where
import Data.Aeson
import GHC.Generics
data User = User {userId :: Int, userName :: String} deriving (Show, Generic, Eq)
bob :: User
bob = User {userId = 1, userName = "bob"}
jen... | mikegehard/haskell-api | src/Users.hs | mit | 655 | 0 | 8 | 137 | 217 | 126 | 91 | 17 | 1 |
{-
Functions for parsing raw file input to [(Person, Birthday)]
Scheme:
1. Raw Input -> [Lines]
2. [Lines] -> [Only lines with names and bd]
3. [Only lines with names and bd] -> [(Name, BD)]
4. parseNameAndBD :: [(Name, BD)] -> [(Person, Birthday)]
input -> nameAndBirthday (step 2) -> listOfTuples (step 3) -> parseNa... | liqlvnvn/from-IMDB-to-MongoDB | src/Parsing/ParsingIMDBFile.hs | mit | 3,814 | 0 | 12 | 1,036 | 853 | 463 | 390 | 82 | 13 |
module Compiler.JMacro.Symbols where
import Prelude
import Data.Array
import Data.Char (toLower)
import qualified Data.Text as T
import Compiler.JMacro.Base
data Special = Stack
| Sp
deriving (Show, Eq)
instance ToJExpr Special where
toJExpr Stack = ValE... | ghcjs/ghcjs | src/Compiler/JMacro/Symbols.hs | mit | 3,169 | 1 | 19 | 992 | 1,168 | 677 | 491 | 69 | 2 |
{-# LANGUAGE LambdaCase #-}
module OptionsSpec (spec) where
import Control.Lens
import System.Exit.Lens
import Test.Hspec.Lens
import Options
spec :: Spec
spec =
describe "parser" $ do
it "has ’version’ subcommand" $
parseArgs ["version"] `shouldHave` _Version
it "has ’help’ subcommand" $
par... | biegunka/biegunka | test/spec/OptionsSpec.hs | mit | 1,706 | 0 | 17 | 363 | 547 | 289 | 258 | -1 | -1 |
-- Example 3
-- Hello event, with an intermediate (2 second) pause
import FRP.Yampa as Y
import YampaUtils
initialise :: IO ()
initialise = putStrLn "Hello..."
output :: Bool -> IO Bool
output b = if b then putStrLn "...Event!" >> return True else return False
-- twoElapsed generates an event after two seconds
twoE... | rlupton20/yampaTutorial | src/HelloEvent.hs | cc0-1.0 | 658 | 0 | 9 | 118 | 190 | 102 | 88 | 12 | 2 |
{- |
Module : $Header$
Description : description of undo and redo functions
Copyright : uni-bremen and DFKI
License : GPLv2 or higher, see LICENSE.txt
Maintainer : r.pascanu@jacobs-university.de
Stability : provisional
Portability : portable
CMDL.UnDoRedo contains the implementation of the undo and redo ... | nevrenato/Hets_Fork | CMDL/UndoRedo.hs | gpl-2.0 | 1,336 | 0 | 22 | 324 | 304 | 164 | 140 | 24 | 5 |
module MarXup.Text (Text(..), textual, element, module Data.Monoid, linearize) where
import Data.Monoid
import Data.Traversable
import Data.Foldable
import Control.Applicative
import Control.Monad
import Control.Monad.Fix
import Control.Monad.Writer
data Text a where
Return :: a -> Text a
Text :: String -> Text ... | jyp/MarXup | MarXup/Text.hs | gpl-2.0 | 915 | 0 | 10 | 201 | 395 | 215 | 180 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Lamdu.CodeEdit.ExpressionEdit.LiteralEdit(makeInt, makeIntView) where
import Control.Lens.Operators
import Control.MonadA(MonadA)
import Data.Store.Transaction (Transaction)
import Graphics.UI.Bottle.Animation (AnimId)
import Lamdu.CodeEdit.ExpressionEdit.ExpressionGui (Expre... | Mathnerd314/lamdu | src/Lamdu/CodeEdit/ExpressionEdit/LiteralEdit.hs | gpl-3.0 | 3,675 | 0 | 16 | 613 | 1,060 | 561 | 499 | 89 | 2 |
module Main where
import Data.List
import Hash
import System.Environment
main = do
args <- getArgs
if(2 == ( length args) ) then runScript $ last args else runInteractive | IvanSindija/Project-Shell-Hash | Main.hs | gpl-3.0 | 172 | 0 | 11 | 29 | 60 | 33 | 27 | 7 | 2 |
{-# LANGUAGE RecordWildCards #-}
module Pusher.Options where
import System.Console.GetOpt
import System.Info
import qualified Config
import Data.Version (showVersion)
import Paths_pusher (version)
import Aws.S3.Core
defaultOptions :: Options
defaultOptions = Options { optShowVersion = False
,... | schell/pusher | src/Pusher/Options.hs | gpl-3.0 | 4,399 | 0 | 13 | 1,686 | 961 | 539 | 422 | 92 | 1 |
{-# LANGUAGE RecursiveDo, OverloadedStrings #-}
module Estuary.Widgets.TransformedPattern where
import Reflex
import Reflex.Dom hiding (Subtract,End)
import Control.Monad
import Data.Map
import Data.List
import Data.Text (Text)
import qualified Data.Text as T
import GHC.Real
import Data.Maybe (fromJust)
import Text.R... | d0kt0r0/estuary | client/src/Estuary/Widgets/TransformedPattern.hs | gpl-3.0 | 20,375 | 0 | 22 | 3,597 | 8,090 | 4,101 | 3,989 | 326 | 32 |
module Main where
import Helpers
main :: IO ()
main = putStrLn (hello "World !!!!")
| dominicusin/gasta | src/Main.hs | gpl-3.0 | 88 | 0 | 7 | 19 | 31 | 17 | 14 | 4 | 1 |
module Main where
import Graphics.UI.Gtk
import Graphics.UI.Gtk.Builder
import Subgetter.Core
main = do
initGUI
builder <- builderNew
builderAddFromFile builder "sublist.glade"
window <- builderGetObject builder castToWindow "main"
chooser <- builderGetObject builder castToFileChooserDialog "main"
results... | lisperatu/subgetter | UI.hs | gpl-3.0 | 2,103 | 0 | 14 | 366 | 482 | 208 | 274 | 49 | 1 |
-- | Load & infer expressions for sugar processing
-- (unify with stored ParamLists, recursion support)
{-# LANGUAGE TemplateHaskell, TupleSections #-}
module Lamdu.Sugar.Convert.Load
( InferOut(..), irVal, irCtx
, inferDef
, inferDefExpr
, makeNominalsMap
, readValAndAddProperties
, InferFunc, ... | Peaker/lamdu | src/Lamdu/Sugar/Convert/Load.hs | gpl-3.0 | 5,438 | 0 | 18 | 1,456 | 1,624 | 877 | 747 | -1 | -1 |
-- | A standard collections of modules covering the most common areas of mathematics/arithmetic.
module MathPrelude ( module X ) where
import MathPrelude.Prelude.CorePrelude as X
import MathPrelude.Prelude.IntegralLists as X
import MathPrelude.Classes.Group as X
import MathPrelude.Classes.Ring as X
import MathPrelude... | RossOgilvie/MathPrelude | MathPrelude.hs | gpl-3.0 | 727 | 0 | 4 | 83 | 123 | 92 | 31 | 15 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.