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 DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE OverlappingInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{... | qnikst/distributed-process-extras | src/Control/Distributed/Process/Extras/Internal/Types.hs | bsd-3-clause | 9,248 | 4 | 13 | 1,865 | 1,950 | 1,072 | 878 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleContexts #-}
-- | Enno Cramer's Style.
module HIndent.Styles.Cramer (cramer) where
import Control.Monad (forM_, replicateM_, unless, when)
import Control.Monad.State.Strict (MonadState, get, gets, put)
import Data.List (intersp... | lunaris/hindent | src/HIndent/Styles/Cramer.hs | bsd-3-clause | 31,341 | 0 | 20 | 9,175 | 8,780 | 4,254 | 4,526 | 732 | 8 |
--8000---
{-
A note on quality, copied from a version of README.md:
This is an old toy project I wrote as a relatively inexperienced functional
programmer. I have not since cleaned up it, and by my current standards, its
quality seems very low, sorry, although I haven't reviewed it very deeply.
-}
{-
cfipu is a pri... | bairyn/cfipu | src/Cfipu.hs | bsd-3-clause | 22,825 | 1 | 22 | 7,472 | 5,313 | 2,804 | 2,509 | 324 | 5 |
module Main where
import Codec.Picture
import Codec.Picture.Types (promoteImage, ColorConvertible(..))
import Control.Applicative ((<$>))
import Control.Monad (when)
import Data.List (isSuffixOf)
import System.Directory (doesFileExist, getDirectoryContents)
import System.Environment (get... | KaiHa/GuiTest | src/DiffImg.hs | bsd-3-clause | 4,169 | 0 | 13 | 1,130 | 1,238 | 633 | 605 | 70 | 5 |
--- Copyright © 2010 Bart Massey
-- [This program is licensed under the "3-clause ('new') BSD License"]
-- Please see the file COPYING in this distribution for license information.
--- Create a phonetic code database optionally used by
--- Text.SpellingSuggest and in particular by "thimk"
import System.Console.ParseAr... | gregwebs/haskell-spell-suggest | thimk-makedb.hs | bsd-3-clause | 1,146 | 0 | 10 | 334 | 226 | 123 | 103 | 22 | 1 |
module Seed where
import Rumpus
start :: Start
start = do
myCodeHidden ==> True
setShape Sphere
setSize 0.2
setColor (V4 0.2 0.3 0.1 1)
setBody Physical
handIDs <- getHandIDs
myCollisionBegan ==> \hitID _ -> do
let notHand = hitID `notElem` handIDs
isHeld <- i... | lukexi/rumpus | pristine/Intro/Seed.hs | bsd-3-clause | 601 | 0 | 16 | 217 | 189 | 85 | 104 | 20 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UnicodeSyntax #-}
{-|
[@ISO639-1@] hu
[@ISO639-2@] hun
[@ISO639-3@] hun
[@Native name@] magyar
[@English name@] Hungaria... | telser/numerals | src-test/Text/Numeral/Language/HUN/TestData.hs | bsd-3-clause | 3,749 | 0 | 8 | 1,067 | 1,003 | 671 | 332 | 114 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Pt.StateMachineTest where
import Pt.StateMachine
import Test.HUnit
import Data.ByteString.Lazy.Char8 as B
tests = "StateMachine" ~: test $ (($ runFSM) <$> tests') ++ (($ runFSMC1) <$> tests') ++ [c1]
where tests' = [ basics
, escapes
... | mrak/ptui | test/Pt/StateMachineTest.hs | bsd-3-clause | 1,623 | 0 | 15 | 746 | 522 | 281 | 241 | 26 | 1 |
module Lib.Once
( once
) where
import Control.Monad (join)
import Data.IORef
import Prelude.Compat
once :: IO (IO a -> IO (Maybe a))
once = do
doneRef <- newIORef False
pure $ \act -> join $ atomicModifyIORef doneRef $ \x -> (True, f x act)
where
f False = fmap Just
f True = const (pure Nothing... | buildsome/buildsome | src/Lib/Once.hs | gpl-2.0 | 322 | 0 | 12 | 81 | 142 | 73 | 69 | 11 | 2 |
{-# LANGUAGE PatternGuards, TypeSynonymInstances, FlexibleInstances #-}
module HSE.Bracket where
import HSE.Type
import HSE.Util
import Util
class Brackets a where
remParen :: a -> Maybe a -- remove one paren, or Nothing if there is no paren
addParen :: a -> a -- write out a paren
-- | Is this item lex... | bergmark/hlint | src/HSE/Bracket.hs | bsd-3-clause | 4,244 | 0 | 13 | 1,370 | 1,568 | 775 | 793 | 103 | 4 |
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Compiler
-- Copyright : Isaac Jones 2003-2004
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- This should be a ... | tolysz/prepare-ghcjs | spec-lts8/cabal/Cabal/Distribution/Simple/Compiler.hs | bsd-3-clause | 13,675 | 0 | 15 | 3,066 | 2,164 | 1,214 | 950 | 202 | 6 |
module B1.Program.Chart.GraphUtils
( colorLineStripPoint
, lineStripPoint
, getPriceRange
, getXValues
, getY
, heightPercentage
) where
import Graphics.Rendering.OpenGL
import B1.Data.Price
import B1.Data.Technicals.StockData
import B1.Graphics.Rendering.OpenGL.Box
import B1.Graphics.Rendering.OpenGL.P... | madjestic/b1 | src/B1/Program/Chart/GraphUtils.hs | bsd-3-clause | 2,876 | 0 | 11 | 616 | 840 | 449 | 391 | 71 | 2 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Language.Haskell.Liquid.GhcInterface (
-- * extract all information neede... | Kyly/liquidhaskell | src/Language/Haskell/Liquid/GhcInterface.hs | bsd-3-clause | 15,953 | 0 | 20 | 4,262 | 4,323 | 2,203 | 2,120 | 287 | 4 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | Defines the core functionality of this package. This package is
-- distinguished from Yesod.Persist in that the latter additionally... | s9gf4ult/yesod | yesod-persistent/Yesod/Persist/Core.hs | mit | 7,149 | 0 | 14 | 1,716 | 1,344 | 710 | 634 | 115 | 2 |
{-| Cluster rebalancer.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 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 must retain the above copyright ... | ganeti/ganeti | src/Ganeti/HTools/Program/Hbal.hs | bsd-2-clause | 14,278 | 0 | 19 | 3,841 | 3,252 | 1,651 | 1,601 | 279 | 4 |
module Settings.Builders.Configure (configureBuilderArgs) where
import Packages
import Rules.Gmp
import Settings.Builders.Common
configureBuilderArgs :: Args
configureBuilderArgs = do
gmpPath <- expr gmpBuildPath
libffiPath <- expr libffiBuildPath
mconcat [ builder (Configure gmpPath) ? do
... | snowleopard/shaking-up-ghc | src/Settings/Builders/Configure.hs | bsd-3-clause | 1,045 | 0 | 16 | 362 | 207 | 104 | 103 | 22 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[InstEnv]{Utilities for typechecking instance declarations}
The bits common to TcInstDcls and TcDeriv.
-}
{-# LANGUAGE CPP, DeriveDataTypeable #-}
module InstEnv (
DFunId, InstMatch, ClsInstLookupResult,
... | ezyang/ghc | compiler/types/InstEnv.hs | bsd-3-clause | 40,701 | 0 | 15 | 10,373 | 3,955 | 2,202 | 1,753 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE GADTSyntax #-}
module T17379a where
import Language.Haskell.TH
$(let typ = mkName "T" in pure [ DataD [] typ [] Nothing [GadtC [] [] (ConT typ)] [] ])
| sdiehl/ghc | testsuite/tests/th/T17379a.hs | bsd-3-clause | 200 | 0 | 15 | 36 | 78 | 40 | 38 | 5 | 0 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Command
-- Copyright : Duncan Coutts 2007
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- This is to do with command line ... | Helkafen/cabal | Cabal/Distribution/Simple/Command.hs | bsd-3-clause | 24,442 | 0 | 17 | 7,044 | 6,859 | 3,634 | 3,225 | 410 | 20 |
{-# LANGUAGE ScopedTypeVariables, TemplateHaskell, GADTs #-}
module Main where
--------------------------------------------------------------------------
-- imports
import Test.QuickCheck
import Test.QuickCheck.Text
import Test.QuickCheck.All
import Test.QuickCheck.Poly
import Test.QuickCheck.Property
import Data.Li... | srhb/quickcheck | examples/Heap_ProgramAlgebraic.hs | bsd-3-clause | 6,651 | 0 | 16 | 1,993 | 2,815 | 1,437 | 1,378 | 169 | 4 |
{-
This is a very high-level test of the hackage server. It forks a fresh server
instance, and then uses HTTP to run various requests on that server.
System requirements:
1. Port `testPort` (currently 8392) must be available on localhost
2. You must allow for outgoing HTTP traffic, as we POST to html5.valid... | chrisdotcode/hackage-server | tests/HighLevelTest.hs | bsd-3-clause | 10,106 | 0 | 17 | 2,730 | 2,238 | 1,046 | 1,192 | 194 | 4 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module UnitTests.Distribution.Client.Glob (tests) where
#if !MIN_VERSION_base(4,8,0)
import Control.Applicative
#endif
import Data.Char
import Data.List
import Distribution.Text (display, parse, simpleParse)
import Distribution.Compat.ReadP
import Distributi... | mydaum/cabal | cabal-install/tests/UnitTests/Distribution/Client/Glob.hs | bsd-3-clause | 6,410 | 0 | 16 | 1,426 | 1,962 | 989 | 973 | 149 | 4 |
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies,
FlexibleInstances, UndecidableInstances #-}
-- UndecidableInstances because (L a b) is no smaller than (C a b)
-- This one shows up another rather subtle functional-dependecy
-- case. The error... | urbanslug/ghc | testsuite/tests/typecheck/should_fail/tcfail138.hs | bsd-3-clause | 1,580 | 0 | 7 | 328 | 137 | 79 | 58 | -1 | -1 |
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
module ExtraNumAMROff where
foo :: _ => a
foo = 3
| urbanslug/ghc | testsuite/tests/partial-sigs/should_compile/ExtraNumAMROff.hs | bsd-3-clause | 133 | 0 | 6 | 20 | 21 | 13 | 8 | 5 | 1 |
{-# LANGUAGE TypeFamilies #-}
module T8227a where
type family V a :: *
type instance V Double = Double
type instance V (a -> b) = V b | urbanslug/ghc | testsuite/tests/indexed-types/should_fail/T8227a.hs | bsd-3-clause | 140 | 0 | 6 | 34 | 44 | 27 | 17 | 5 | 0 |
-- | Should fail compilation because safe imports aren't enabled
-- not because of trying to import an unsafe module
module Mixed01 where
import safe System.IO.Unsafe
f :: Int
f = 1
| urbanslug/ghc | testsuite/tests/safeHaskell/safeInfered/Mixed01.hs | bsd-3-clause | 185 | 1 | 4 | 35 | 23 | 16 | 7 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module T5968 where
data Bar a = Bar $( [t| a |] )
| wxwxwwxxx/ghc | testsuite/tests/th/T5968.hs | bsd-3-clause | 86 | 0 | 8 | 20 | 23 | 16 | 7 | 3 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Station.Types.VersionContext where
import Import
import qualified Data.Hashable as HA
import Lens.Micro.TH
import Station.Types.Card
import Station.Types.Version
-- | @Nothing@ means a local version. @Just Text@ means a version... | seagreen/station | src/Station/Types/VersionContext.hs | mit | 1,488 | 0 | 13 | 364 | 346 | 187 | 159 | 33 | 1 |
{-# LANGUAGE GADTs #-}
module AMx.TypeCheck where
import Prelude hiding (LT,GT)
import Data.Char(toUpper)
import Data.Map.Strict(Map)
import qualified Data.Map.Strict as Map
import AMx.Language(Argument(..), InstructionSpecification(..), Type(..))
import AMx.ParserMonad(ParserError(..), ParserMonad, Reason(..), getSpec... | sebschrader/programmierung-ss2015 | AMx/TypeCheck.hs | mit | 2,097 | 0 | 11 | 417 | 647 | 330 | 317 | 34 | 2 |
module Present where
import Text.ParserCombinators.Parsec
import Control.Applicative hiding (many, (<|>))
data Present = Present Integer Integer Integer
deriving Show
integer = rd <$> many1 digit
where rd = read :: String -> Integer
eol = (char '\n' <|> (char '\r' >> option '\n' (char '\n'))) >> re... | corajr/adventofcode2015 | 2/Present.hs | mit | 535 | 0 | 12 | 152 | 172 | 92 | 80 | 17 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleInstances #-}
module Homework.Week07.Sized where
import Data.Monoid
newtype Size = Size Int
deriving (Eq, Ord, Show, Num)
getSize :: Size -> Int
getSize (Size i) = i
class Sized a where
size :: a -> Size
instance Sized Size where
size = id
-- This instance m... | laser/cis-194-spring-2017 | src/Homework/Week07/Sized.hs | mit | 544 | 0 | 7 | 118 | 152 | 86 | 66 | 16 | 1 |
module Model where
import Prelude
import Yesod
import Data.Text (Text)
import Database.Persist.Quasi
import Database.Persist.MongoDB hiding (master)
import Language.Haskell.TH.Syntax
import Yesod.Markdown (Markdown)
import Yesod.Auth.HashDB (HashDBUser(..))
-- You can define all of your database entities in the entit... | ShaneKilkelly/YesodExample | Model.hs | mit | 1,213 | 0 | 14 | 288 | 192 | 113 | 79 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, NoImplicitPrelude #-}
module AppGlobalState where
import Data.Int (Int)
import Prelude (String, Bool)
import qualified Data.Text as T
import qualified DB
import qualified LocalAuth
import qualified Cache
import qualified GoogleAuth
import qualified Database.SQLite.Simple as SQL
data Ar... | itsuart/fdc_archivist | src/AppGlobalState.hs | mit | 791 | 0 | 10 | 125 | 184 | 118 | 66 | 25 | 0 |
module System.GratteExternalCommands
( execTesseract
, execConvert
, execConvertAppend
, execPDFToText
) where
import System.Process
import System.Exit
execTesseract :: FilePath -> FilePath -> IO (ExitCode, String)
execTesseract file tempFile = do
(exitCode, _, err) <-
readProcessWithExitCode
"t... | ostapneko/gratte-papier | src/System/GratteExternalCommands.hs | mit | 1,103 | 0 | 11 | 243 | 336 | 183 | 153 | 39 | 1 |
module Correctify (correctify) where
import DNBFormat
import YNABFormat
correctify :: String -> String
correctify text =
unlines (dummyLine : result)
where
dummyLine = "Date,Payee,Category,Memo,Outflow,Inflow"
result = map convert textlines
textlines = tail $ lines text
c... | lstor/traxform | src/Correctify.hs | mit | 361 | 0 | 8 | 93 | 84 | 46 | 38 | 10 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Control.Monad
import Data.HashMap.Strict (HashMap)
import qualified Data.HashMap.Strict as HM
import Data.List
import Data.Maybe
import Data.Text (Text)
import qualified Data.Tuple.Strict as S
import qualified Data.Text as T
import qualified Data.Text.IO as T
import System.Env... | dancor/melang | src/Main/anki-hsk-share-best-parts.hs | mit | 1,788 | 0 | 15 | 444 | 632 | 322 | 310 | 50 | 4 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE TemplateHaskell #-}
module Control.Eff.Logic.Test where
import Test.HUnit hiding (State)
import Control.Eff.Logic.Core
import Control.Monad
-- the inferred signature of testCut is insightful
testCut runChoice =
let cases = [t... | suhailshergill/extensible-effects | test/Control/Eff/Logic/Test.hs | mit | 1,833 | 0 | 15 | 580 | 593 | 359 | 234 | 42 | 1 |
{-|
Module : Data.RDF.Encode.NQuads
Description : Representation and Incremental Processing of RDF Data
Copyright : Travis Whitaker 2016
License : MIT
Maintainer : pi.boy.travis@gmail.com
Stability : Provisional
Portability : Portable
An encoder for
<https://www.w3.org/TR/2014/REC-n-quads-20140225/ RDF 1... | TravisWhitaker/rdf | src/Data/RDF/Encoder/NQuads.hs | mit | 2,248 | 0 | 14 | 779 | 379 | 195 | 184 | 32 | 1 |
-- The sequence of triangle numbers is generated by adding the natural numbers
-- So the 7th triangle number would be 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28
-- The first ten terms would be:
-- 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
-- Let us list the factors of the first seven triangle numbers:
-- 1: 1
-- 3: 1,3
-- 6: ... | sravan-s/euler | euler-0012/divisibleTriangleNum.hs | mit | 876 | 0 | 12 | 185 | 143 | 85 | 58 | 6 | 1 |
{-# LANGUAGE DoRec, TypeSynonymInstances, FlexibleInstances #-}
module Fenfire.Cache where
-- Copyright (c) 2007, Benja Fallenstein, Tuukka Hastrup
-- This file is part of Fenfire.
--
-- Fenfire is free software; you can redistribute it and/or modify it under
-- the terms of the GNU General Public License as publishe... | timthelion/fenfire | Fenfire/Cache.hs | gpl-2.0 | 4,699 | 0 | 15 | 1,315 | 1,390 | 692 | 698 | 86 | 3 |
--
-- Copyright (c) 2012 Citrix Systems, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This progra... | OpenXT/network | nwd/XSWifi.hs | gpl-2.0 | 7,123 | 0 | 20 | 1,959 | 1,527 | 835 | 692 | 140 | 2 |
module Ocram.Analysis.Types where
import Language.C.Data.Node (NodeInfo)
import Ocram.Symbols (Symbol)
import qualified Data.Graph.Inductive.Graph as G
import qualified Data.Graph.Inductive.PatriciaTree as G
import qualified Data.Map as Map
data Attribute =
Blocking
| Start
| Critical
deriving (Eq, Show)
d... | copton/ocram | ocram/src/Ocram/Analysis/Types.hs | gpl-2.0 | 635 | 0 | 9 | 116 | 190 | 121 | 69 | 22 | 0 |
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable, UndecidableInstances, FlexibleContexts, FlexibleInstances #-}
module Code.LZ.Data where
import Code.Type ( BitSize (..), bits )
import Autolib.Reader
import Autolib.ToDoc
import Autolib.Size
import Autolib.Set
import Autolib.FiniteMap
import Data.Typeable
data Lem... | Erdwolf/autotool-bonn | src/Code/LZ/Data.hs | gpl-2.0 | 1,986 | 0 | 14 | 589 | 726 | 399 | 327 | 44 | 1 |
{-|
Module : SQLite
Description : used for database-manipulation and such stuff
Copyright : (c) Stefan Naumann, 2016
License : GPL-3
Maintainer : me@stefannaumann.de
Stability : experimental
This module incluse functions for retrieving mostly games,
deleting games and managing all the stuff around it, li... | naums/GameCollection | haskell/SQLite.hs | gpl-3.0 | 6,791 | 0 | 15 | 2,348 | 1,338 | 700 | 638 | 94 | 3 |
module Chat.Cmd ( Command (..)
, cmdToMstring
, commandHelp
, parseCmd
)
where
import Text.Parsec
import Data.Functor.Identity
data Command = Quit
| Nick String
| Who
| Help
| CmdError String
... | seppeljordan/simplechat | Chat/Cmd.hs | gpl-3.0 | 2,072 | 0 | 12 | 680 | 573 | 296 | 277 | 75 | 1 |
-- Brainfuck compiler
import Parse
import System.Environment (getArgs)
import qualified System.Directory
import System.Console.Docopt (optionsWithUsageFile, getArg, isPresent, command, argument, shortOption)
import Control.Monad (when, unless)
import System.IO (hGetContents, stdin)
import FileUtilities (splitAtExt)
im... | UndeadMastodon/HsBFC | Main.hs | gpl-3.0 | 2,047 | 2 | 15 | 577 | 524 | 271 | 253 | 53 | 2 |
-- | This module provides statistics needed for substitution matrices. It is a
-- very modest attempt to replicate some of the Blast statistics.
module Biobase.SubstMatrix.Statistics where
import Data.Vector.Unboxed (Unbox)
import Data.Vector.Fusion.Util
import Data.Vector.Fusion.Stream.Monadic as SM
import Debug.Tr... | choener/BiobaseBlast | Biobase/SubstMatrix/Statistics.hs | gpl-3.0 | 1,320 | 0 | 15 | 312 | 422 | 228 | 194 | 22 | 1 |
{-# Language CPP #-}
-- | Settings are centralized, as much as possible, into this file. This
-- includes database connection settings, static file locations, etc.
-- In addition, you can configure a number of different aspects of Yesod
-- by overriding methods in the Yesod typeclass. That instance is
-- declared in th... | ackao/APRICoT | web/address-manager/Settings.hs | gpl-3.0 | 5,769 | 0 | 12 | 1,565 | 749 | 431 | 318 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Adapter.Tree where
import Prelude hiding (FilePath)
import Types.Base
import Types.ETree
import Types.EState
import Types.AppConfig(Config(..))
import qualified Adapter.Entry as Entry
import qualified Logic.ETree as ETr... | diegospd/pol | src/Adapter/Tree.hs | gpl-3.0 | 528 | 0 | 7 | 118 | 122 | 71 | 51 | 13 | 1 |
module Filter.TruthTables (makeTruthTables) where
import Text.Pandoc
import Filter.Util (splitIt, intoChunks,formatChunk, unlines', exerciseWrapper)
import Data.Map (fromList, toList, unions)
import Prelude
makeTruthTables :: Block -> Block
makeTruthTables cb@(CodeBlock (_,classes,extra) contents)
| "TruthTable" ... | gleachkr/Carnap | Carnap-Server/Filter/TruthTables.hs | gpl-3.0 | 1,378 | 0 | 15 | 368 | 516 | 278 | 238 | 25 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-route53-domains/gen/Network/AWS/Route53Domains/CheckDomainAvailability.hs | mpl-2.0 | 5,572 | 0 | 9 | 1,077 | 542 | 339 | 203 | 63 | 1 |
{-
This file is part of Tractor.
Tractor is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Tractor is distribu... | ak1211/tractor | src/BackOffice/Agency.hs | agpl-3.0 | 1,311 | 0 | 7 | 292 | 59 | 37 | 22 | 8 | 1 |
module Git.Command.NameRev (run) where
run :: [String] -> IO ()
run args = return () | wereHamster/yag | Git/Command/NameRev.hs | unlicense | 85 | 0 | 7 | 15 | 42 | 23 | 19 | 3 | 1 |
{-# LANGUAGE ImplicitParams #-}
module ProgramCounting (
main,
countTag,
expandTag,
Context,
newContext,
newContextFromStrings,
defaultContext, -- ^ all operations allowed
defaultAllowedOp1,
defaultAllowedOp2,
EvalContext,
evalCtx,
eval,
expectedComplexity,
denumeralize,
buildCaches,
get... | atemerev/icfpc2013 | src/solver-lib/ProgramCounting.hs | apache-2.0 | 14,273 | 0 | 18 | 3,527 | 6,351 | 3,284 | 3,067 | 321 | 5 |
-- | Settings are centralized, as much as possible, into this file. This
-- includes database connection settings, static file locations, etc.
-- In addition, you can configure a number of different aspects of Yesod
-- by overriding methods in the Yesod typeclass. That instance is
-- declared in the Foundation.hs file.... | jml/haverer-api | Settings.hs | apache-2.0 | 5,665 | 0 | 12 | 1,561 | 737 | 422 | 315 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Controller
( withAutofocus
) where
import Autofocus
import Settings
import Yesod.Helpers.Static
import Yesod.Helpers.Auth
import Database.Persist.GenericSql
-- Import all relevant handler modules here.
import Handler.Handlers
-- Th... | shepheb/autofocus | Controller.hs | bsd-2-clause | 1,339 | 0 | 12 | 218 | 195 | 106 | 89 | 21 | 1 |
module Handler.Root where
import Import
import WebToInk.Converter.Logger (logi)
-- This is a handler function for the GET request method on the RootR
-- resource pattern. All of your resource patterns are defined in
-- config/routes
--
-- The majority of the code you will write in Yesod lives in these handler
-- func... | thlorenz/WebToInk | webtoink/Handler/Root.hs | bsd-2-clause | 693 | 0 | 10 | 129 | 100 | 51 | 49 | 11 | 1 |
{-| Module describing an instance.
The instance data type holds very few fields, the algorithm
intelligence is in the "Node" and "Cluster" modules.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012, 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are ... | apyrgio/ganeti | src/Ganeti/HTools/Instance.hs | bsd-2-clause | 14,818 | 0 | 20 | 3,816 | 2,901 | 1,618 | 1,283 | 253 | 9 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
TcMatches: Typecheck some @Matches@
-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE FlexibleContexts #-}
module TcMatches ( tcMatchesFun, tcGRHS... | mettekou/ghc | compiler/typecheck/TcMatches.hs | bsd-3-clause | 48,078 | 4 | 21 | 15,994 | 9,656 | 5,114 | 4,542 | 630 | 7 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Desugaring arrow commands
-}
{-# LANGUAGE CPP #-}
module DsArrows ( dsProcExpr ) where
#include "HsVersions.h"
import Match
import DsUtils
import DsMonad
import HsSyn hiding (collectPatBinders, collectPatsBinders, ... | green-haskell/ghc | compiler/deSugar/DsArrows.hs | bsd-3-clause | 46,047 | 0 | 22 | 13,598 | 9,630 | 4,963 | 4,667 | 704 | 20 |
{-# LANGUAGE TypeOperators
, DataKinds
, PolyKinds
, TypeFamilies
, GADTs
, UndecidableInstances
, RankNTypes
, ScopedTypeVariables
#-}
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -Werror #-}
{-# OPTIONS_GHC -O1 -fspec-constr #-}
{-
ghc-stag... | gridaphobe/ghc | testsuite/tests/simplCore/should_compile/T10689a.hs | bsd-3-clause | 4,120 | 0 | 22 | 1,288 | 1,214 | 668 | 546 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
-------... | cchalmers/geometry | src/Geometry/ThreeD/Camera.hs | bsd-3-clause | 7,467 | 0 | 13 | 1,725 | 1,688 | 927 | 761 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-partial-type-signatures #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE RankNTypes #-}
module Haskell.Ide.HaRePlugin where
import Control.Monad.State
im... | ankhers/haskell-ide-engine | hie-hare/Haskell/Ide/HaRePlugin.hs | bsd-3-clause | 8,868 | 0 | 20 | 2,126 | 2,024 | 1,037 | 987 | 150 | 3 |
module LogInstances (isSorted) where
-- Export isSorted and instances, not 'build'
import Log
import Test.Tasty.QuickCheck
import Data.List (sortOn)
-- The library provides Arbitrary instances for built-in types like Int & String
-- This module tells QuickCheck how to pick an arbitrary value of our new types.
insta... | zzwick/cs2-adts-logging | LogInstances.hs | bsd-3-clause | 1,134 | 0 | 13 | 211 | 323 | 173 | 150 | 22 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelud... | aelve/tom | lib/Tom/When.hs | bsd-3-clause | 17,994 | 11 | 26 | 4,916 | 4,268 | 2,235 | 2,033 | 309 | 13 |
-----------------------------------------------------------------------------
--
-- Pretty-printing assembly language
--
-- (c) The University of Glasgow 1993-2005
--
-----------------------------------------------------------------------------
{-# OPTIONS_GHC -fno-warn-orphans #-}
module X86.Ppr (
pprNatCmmDe... | nomeata/ghc | compiler/nativeGen/X86/Ppr.hs | bsd-3-clause | 41,666 | 0 | 28 | 12,983 | 12,248 | 6,099 | 6,149 | 799 | 97 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE Typ... | Garygunn94/DFS | AuthServer/.stack-work/intero/intero5744AMY.hs | bsd-3-clause | 7,881 | 121 | 13 | 2,057 | 1,608 | 888 | 720 | -1 | -1 |
module TestsCommon
( module X
, pMapM_
, rndSelect
, testFieldSpec
) where
import GalFld.Core.FiniteField
-- from hspec
import Test.Hspec as X
import Control.Exception as X
-- from monad-parallel
import qualified Control.Monad.Parallel as P
import System.Random
import Control.Monad (replicateM)
rndSelect ... | maximilianhuber/softwareProjekt | test/TestsCommon.hs | bsd-3-clause | 791 | 0 | 15 | 165 | 267 | 144 | 123 | 27 | 1 |
module Main where
import Development.Shake
import Data.Monoid ((<>))
import Control.Arrow ((>>>))
import Control.Monad.Extra
import System.FilePath ((</>), takeDirectory)
import qualified System.Directory as Directory
import qualified GHC.Conc as Conc
import qualified Data.ByteString as ByteString
import qualified Ne... | TalkBank/update-chat-site | app/Main.hs | bsd-3-clause | 3,872 | 0 | 15 | 824 | 820 | 433 | 387 | 77 | 1 |
--------------------------------------------------------------------------------
module Firefly.Input.Internal
( Key (..)
, MouseButton (..)
) where
--------------------------------------------------------------------------------
import Foreign.C.Types (CInt)
----------------------------------... | jaspervdj/firefly | src/Firefly/Input/Internal.hs | bsd-3-clause | 602 | 0 | 5 | 69 | 56 | 39 | 17 | 6 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module FinishCmd (
finishCmd, finishCmdOpts
) where
-- standard libraries
import Data.Text (Text)
import qualified Data.Text as T
import Text.Printf
-- import System.Exit
-- import Control.Monad
import Data.Time
import Data.Maybe (mapMaybe, isJust, fromJust)
-- import Data.Eithe... | sseefried/task | src/FinishCmd.hs | bsd-3-clause | 2,123 | 0 | 12 | 437 | 558 | 291 | 267 | 44 | 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.
module Duckling.Or... | rfranek/duckling | tests/Duckling/Ordinal/HR/Tests.hs | bsd-3-clause | 599 | 0 | 9 | 95 | 80 | 51 | 29 | 11 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
module Fragment.KiArr.Ast (
module X
) where
import Fragment.KiArr.Ast.Kind as X
import Fragment.KiArr.Ast.Error as X
| dalaing/type-systems | src/Fragment/KiArr/Ast.hs | bsd-3-clause | 278 | 0 | 4 | 51 | 32 | 24 | 8 | 4 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
#ifdef TRUSTWORTHY
{-# LANGUAGE Trustworthy #-}
#endif
#if __GLASGOW_HASKELL__ >= 710
{-# LANGUAGE PatternSynonyms ... | ddssff/lens | src/Control/Exception/Lens.hs | bsd-3-clause | 52,743 | 0 | 11 | 8,532 | 6,313 | 3,656 | 2,657 | 352 | 2 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
module Data.Aeson.Forms.Internal.Types
(
-- * Types
Form (..)
, Result (..)
, Errors (..)
, Field
) where
import Control.Applicative
import Data.Aeson (Value (..), ToJSON (..), object, (.=))
import ... | lukerandall/aeson-forms | src/Data/Aeson/Forms/Internal/Types.hs | bsd-3-clause | 3,551 | 0 | 11 | 743 | 852 | 441 | 411 | 61 | 0 |
-- Copyright (c) 2018 Leandro T. C. Melo (ltcmelo@gmail.com)
-- License: GPLv3
-- This implementation focus readability and formalism.
{-# LANGUAGE NamedFieldPuns #-}
import Control.Monad
import Control.Monad.Except
import Control.Monad.State
import Data.List
import Data.Map (Map)
import Data.Set (Set)
import qualifi... | ltcmelo/psychec | formalism/muC.hs | bsd-3-clause | 56,627 | 0 | 22 | 15,749 | 23,940 | 12,248 | 11,692 | 1,444 | 18 |
{-# LANGUAGE TypeOperators, TypeFamilies, UndecidableInstances, CPP
, FlexibleContexts, DeriveFunctor, StandaloneDeriving
, GADTs
#-}
{-# OPTIONS_GHC -Wall -fno-warn-orphans #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-} -- TEMP
-- {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- TEMP
-----... | conal/functor-combo | src/FunctorCombo/StrictMemo.hs | bsd-3-clause | 17,087 | 4 | 12 | 4,028 | 3,939 | 2,196 | 1,743 | -1 | -1 |
module Main where
import Syntax.BexpSpec
import Syntax.CommonSpec
import Syntax.ControlSpec
import Syntax.FuncSpec
import Syntax.IdentifierSpec
import Syntax.ParserSpec
import Syntax.VariableExprSpec
import State.TapeSpec
import State.ConfigSpec
import State.TreeSpec
import Semantics.BexpSpec
import Semantics.StmSpec
... | BakerSmithA/Metal | test/Tests.hs | mit | 671 | 0 | 8 | 166 | 138 | 71 | 67 | 31 | 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-storagegateway/gen/Network/AWS/StorageGateway/ListGateways.hs | mpl-2.0 | 5,700 | 0 | 13 | 1,343 | 868 | 512 | 356 | 102 | 1 |
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-}
-- |
-- Module : Statistics.Distribution.Hypergeometric
-- Copyright : (c) 2009 Bryan O'Sullivan
-- License : BSD3
--
-- Maintainer : bos@serpentine.com
-- Stability : experimental
-- Portability : portable
--
-- The Hypergeometric distribution. This is the di... | fpco/statistics | Statistics/Distribution/Hypergeometric.hs | bsd-2-clause | 4,019 | 0 | 14 | 924 | 1,114 | 590 | 524 | 83 | 2 |
{-# LANGUAGE BangPatterns, GeneralizedNewtypeDeriving, StandaloneDeriving #-}
import Prelude hiding (mapM)
import Options.Applicative
import Data.Monoid ((<>))
import Control.Monad.Trans.Class
import Data.Vector (Vector)
import qualified Data.Vector.Generic as V
impo... | beni55/bayes-stack | network-topic-models/RunLDA.hs | bsd-3-clause | 5,209 | 0 | 16 | 1,943 | 1,466 | 755 | 711 | -1 | -1 |
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
module Main ( main, write ) where
import Prelude
import qualified Control.Effect as E
import Control.Effect.State
ifThenElse :: Bool -> a -> a -> a
ifThenElse T... | jbracker/supermonad-plugin | examples/monad/effect/Main.hs | bsd-3-clause | 1,838 | 0 | 16 | 546 | 937 | 505 | 432 | 48 | 1 |
-----------------------------------------------------------------------------
-- |
-- License : BSD-3-Clause
-- Maintainer : Oleg Grenrus <oleg.grenrus@iki.fi>
--
module GitHub.Data.Activities where
import GitHub.Data.Id (Id, mkId)
import GitHub.Data.Repos (Repo, RepoRef)
import GitHub.Data.URL ... | jwiegley/github | src/GitHub/Data/Activities.hs | bsd-3-clause | 3,569 | 0 | 27 | 905 | 798 | 427 | 371 | 108 | 0 |
module RunSpec ( runSpec ) where
import TestInit
import qualified Data.Text as T
import System.IO
runSpec :: Spec
runSpec = do
describe "run" $ do
it "simple command" $ do
res <- shelly $ run "echo" [ "wibble" ]
res @?= "wibble\n"
it "with escaping" $ do
res <- shelly $ run "echo" [ "*" ... | adinapoli/Shelly.hs | test/src/RunSpec.hs | bsd-3-clause | 1,864 | 0 | 20 | 534 | 485 | 230 | 255 | 38 | 1 |
module FilesystemParseTest
( tests
)
where
import Test.HUnit
import Data.Time.Clock ( UTCTime )
import System.FilePath ( (</>) )
import Common
import Database.Schema.Migrations.Migration
import Database.Schema.Migrations.Filesystem
( FilesystemStoreSettings(..)
, migrationFromFile
)
tests :: IO ... | nathankot/dbmigrations | test/FilesystemParseTest.hs | bsd-3-clause | 5,297 | 0 | 13 | 2,367 | 850 | 497 | 353 | 96 | 1 |
import Graphics.UI.Gtk
import Graphics.Rendering.Cairo
main :: IO ()
main= do
initGUI
window <- windowNew
set window [windowTitle := "Hello Cairo with Resizing",
windowDefaultWidth := 300, windowDefaultHeight := 200,
containerBorderWidth := 30 ]
frame <- frameNew
... | k0001/gtk2hs | docs/tutorial/Tutorial_Port/Example_Code/GtkApp1b.hs | gpl-3.0 | 1,052 | 0 | 16 | 380 | 332 | 155 | 177 | 32 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- Create a source distribution tarball
module Stack.SDist
( getSDistTarball
) where
import qualified Codec.Archive.Tar as Tar
import qualified Codec.Archi... | wskplho/stack | src/Stack/SDist.hs | bsd-3-clause | 6,706 | 0 | 20 | 1,701 | 1,583 | 852 | 731 | 119 | 4 |
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Safe #-}
#endif
-- | Produces XHTML 1.0 Strict.
module Text.XHtml.Strict (
-- * Data types
Html, HtmlAttr,
-- * Classes
HTML(..), ADDATTRS(..), CHANGEATTRS(..),
-- * Primitives and basic combinators
(<<), concatHtml, (+++),
noHtml, isNoHtm... | DavidAlphaFox/ghc | libraries/xhtml/Text/XHtml/Strict.hs | bsd-3-clause | 2,478 | 0 | 10 | 587 | 351 | 218 | 133 | 36 | 1 |
{-# LANGUAGE QuasiQuotes, TypeFamilies, GeneralizedNewtypeDeriving, TemplateHaskell #-}
module Model where
import Yesod
import Data.Text (Text)
-- You can define all of your database entities in the entities file.
-- You can find more information on persistent and how to declare entities
-- at:
-- http://www.yesodweb... | tehgeekmeister/apters-web | Model.hs | agpl-3.0 | 415 | 0 | 8 | 53 | 46 | 27 | 19 | 5 | 0 |
-- !!! Wentworth's version of a program to generate
-- !!! all the expansions of a generalised regular expression
-- !!!
--
-- RJE: Modified so it only outputs the number of characters in the output,
-- rather that the output itself, thus avoiding having to generate such a
-- huge output file to get a reasonable exec... | mightymoose/liquidhaskell | benchmarks/nofib/imaginary/gen_regexps/Main.hs | bsd-3-clause | 1,211 | 14 | 15 | 290 | 563 | 297 | 266 | 23 | 2 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, MagicHash
, UnboxedTuples
, ScopedTypeVariables
, RankNTypes
#-}
{-# OPTIONS_GHC -Wno-deprecations #-}
-- kludge for the Control.Concurrent.QSem, Control.Concurrent.QSemN
-- and Control.Concurrent.SampleVar imports.
---------... | olsner/ghc | libraries/base/Control/Concurrent.hs | bsd-3-clause | 24,910 | 0 | 21 | 6,070 | 1,994 | 1,052 | 942 | 133 | 3 |
module Bug387
( -- * Section1#a:section1#
test1
-- * Section2#a:section2#
, test2
) where
test1 :: Int
test1 = 223
test2 :: Int
test2 = 42
| Helkafen/haddock | html-test/src/Bug387.hs | bsd-2-clause | 155 | 0 | 4 | 42 | 34 | 22 | 12 | 8 | 1 |
module Interpreter where
import BasicPrelude
import Control.Monad.State
import Control.Monad.Except
import Types (Store)
import Statements (exec, Prog)
runInterpreter :: Prog -> Store -> IO (Either Text (), Store)
runInterpreter prog store = runStateT (runExceptT (exec prog)) store
| mlitchard/squanchy | src/Interpreter.hs | isc | 290 | 0 | 10 | 43 | 94 | 53 | 41 | 8 | 1 |
-- | This module consists of some messing around with the GLFW library along w/
-- FRP to try to do some interactive IO stuff.
module FRP.Jalapeno.IO where
-------------
-- Imports --
import Graphics.Rendering.OpenGL.Raw
import Graphics.Rendering.OpenGL
import Control.Monad.IO.Class
import Control.Concurrent
import ... | crockeo/jalapeno | src/lib/FRP/Jalapeno/IO.hs | mit | 2,546 | 0 | 21 | 809 | 621 | 305 | 316 | 57 | 3 |
module ByteString.TreeBuilder.Prelude
(
module Exports,
)
where
-- base
-------------------------
import Control.Applicative as Exports hiding (WrappedArrow(..))
import Control.Arrow as Exports hiding (first, second)
import Control.Category as Exports
import Control.Concurrent as Exports
import Control.Exception as... | nikita-volkov/bytestring-tree-builder | library/ByteString/TreeBuilder/Prelude.hs | mit | 3,258 | 0 | 6 | 395 | 860 | 604 | 256 | 71 | 0 |
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable #-}
module ViewModels.ThreadThumbnailViewModel where
import Data.Text
import Data.Data
import qualified ViewModels.ImageViewModel as IVM
data ThreadThumbnailViewModel = ThreadThumbnailViewModel {
threadId :: Text,
threadURL :: Text,
thumbnail :: IVM.ImageViewM... | itsuart/fdc_archivist | src/ViewModels/ThreadThumbnailViewModel.hs | mit | 355 | 0 | 9 | 46 | 65 | 41 | 24 | 10 | 0 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE Rank2Types #-}
module Web.Apiary.PureScript
( I.PureScript
, I.PureScriptConfig(..)
, initPureScript
, pureScript
) where
import Web.Apiary(MonadIO(..))
import Control.Monad.Apiary.Action(ActionT)
import qualified Web.Apiary.PureScript.Internal as I
i... | philopon/apiary | apiary-purescript/src/Web/Apiary/PureScript.hs | mit | 729 | 0 | 9 | 104 | 214 | 125 | 89 | 16 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.DocumentFragment
(js_newDocumentFragment, newDocumentFragment, js_querySelector,
querySelector, js_querySelectorAll, querySelectorAll,
DocumentFragment, castToDocumentFragment, gTypeDocument... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/DocumentFragment.hs | mit | 2,668 | 20 | 11 | 422 | 583 | 345 | 238 | 47 | 1 |
module Main where
import System.Process (callCommand)
import Poi.Migrations.Migrate (prepareMigrationWithConfig, migrationStatusWithConfig, createNewMigration)
import Poi.Migrations.Types (Options(..), MigrateArgs(..), Mode(..))
import Poi.Migrations.Utils (poiArgs, readConfigForEnv, dbConfig)
main :: IO ()
main = d... | pranaysashank/poi | poi-bin/main.hs | mit | 1,008 | 0 | 14 | 226 | 310 | 164 | 146 | 22 | 6 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances, FlexibleInstances #-}
{- |
Module : $Header$
Description : COL instance of class Logic
Copyright : (c) Till Mossakowski, Uni Bremen 2002-2004
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@informatik.uni-bremen.de
Stability : p... | nevrenato/Hets_Fork | COL/Logic_COL.hs | gpl-2.0 | 3,103 | 0 | 9 | 790 | 594 | 306 | 288 | 70 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.