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 NoImplicitPrelude, OverloadedStrings #-}
module Day4 where
import ClassyPrelude
import Control.Monad.Trans.Either
import Data.Attoparsec.Text hiding (take)
import Data.Char
import Debug.Trace
input :: IO Text
input = readFile "data/day4.txt"
test = "aaaaa-bbb-z-y-x-123[abxyz]\n\
\a-b-c-d-e-f-g... | farrellm/advent-2016 | src/Day4.hs | mit | 2,122 | 0 | 16 | 498 | 700 | 372 | 328 | 57 | 2 |
{-# OPTIONS #-}
-- ------------------------------------------------------------
module Holumbus.Crawler
( module Holumbus.Crawler.Constants
, module Holumbus.Crawler.Core
, module Holumbus.Crawler.Html
, module Holumbus.Crawler.Logger
, module Holumbus.Crawler.Robots
, module Holumbus.Crawler.... | ichistmeinname/holumbus | src/Holumbus/Crawler.hs | mit | 966 | 0 | 5 | 209 | 141 | 98 | 43 | 22 | 0 |
{-# LANGUAGE Haskell2010
, GeneralizedNewtypeDeriving
, DeriveDataTypeable
#-}
{-# OPTIONS
-Wall
-fno-warn-name-shadowing
#-}
-- | INTERNAL module is used to infer Haskell types from Java types.
module Foreign.Java.Bindings.Typomatic (
runTypomatic,
typomatic,
ArgInfo (..),
dataTName... | fehu/haskell-java-bridge-fork | src/Foreign/Java/Bindings/Typomatic.hs | mit | 13,693 | 0 | 24 | 4,608 | 2,933 | 1,499 | 1,434 | 262 | 32 |
module Proteome.Test.ResolveTest where
import qualified Data.Map as Map (fromList)
import Hedgehog ((/==), (===))
import Path (Abs, Dir, absdir, parseAbsDir)
import Ribosome.File (canonicalPaths)
import Ribosome.Test.Run (UnitTest, unitTest)
import Ribosome.Test.Unit (fixture)
import Test.Tasty (TestTree, testGroup)
... | tek/proteome | packages/test/test/Proteome/Test/ResolveTest.hs | mit | 2,342 | 0 | 10 | 328 | 734 | 418 | 316 | -1 | -1 |
-- | This file provides and helps extract version information.
--
-- Author: Thorsten Rangwich. See file <../LICENSE> for details.
module Version.Information
(
-- * Compile time and forever constants
module Version.Constants,
module Version.StaticVersion,
-- * Version information
versionSt... | tnrangwi/grill | src/Version/Information.hs | mit | 4,869 | 0 | 17 | 1,045 | 897 | 499 | 398 | 75 | 2 |
module Glucose.Test.IR.Unchecked (module Glucose.Test.IR.Core, alias) where
import Glucose.Test.IR.Core
import Data.Text
import Glucose.IR
import Glucose.Parser.Source
alias :: FromSource Text -> FromSource Text -> FromSource (Definition Unchecked)
alias to from = definition to $ reference UnknownKind from ... | sardonicpresence/glucose | test/Glucose/Test/IR/Unchecked.hs | mit | 329 | 0 | 9 | 49 | 96 | 54 | 42 | 7 | 1 |
module Ternary.Arbitraries where
import Test.QuickCheck
import Test.QuickCheck.Checkers hiding (Binop)
import Control.Monad (liftM2)
import Ternary.Core.Digit
import Ternary.Util.Triad (Triad, makeTriad)
import Ternary.List.Exact (Exact(Exact))
import Ternary.List.FiniteExact (FiniteExact, unsafeFinite)
instance Ar... | jeroennoels/exact-real | test/Ternary/Arbitraries.hs | mit | 901 | 0 | 10 | 143 | 252 | 144 | 108 | 21 | 0 |
import Control.Monad
import Data.List
factorList :: Int -> [a] -> [[a]]
factorList _ [] = []
factorList p list | length list < p = []
factorList p list = [(take p list)] ++ (factorList p $ tail list)
diagonals :: Int -> [[a]] -> [[a]]
diagonals _ [] = []
diagonals p m = concatMap (factorList p) li... | NorfairKing/project-euler | 011/haskell/solution.hs | gpl-2.0 | 1,721 | 0 | 13 | 566 | 832 | 437 | 395 | 51 | 1 |
data CircuitF :: * -> * where
IdentityF :: Int -> CircuitF x | FiveEye/playground | lang/foldingDSL.hs | gpl-2.0 | 62 | 0 | 7 | 14 | 24 | 13 | 11 | -1 | -1 |
module GRSynth.States where
import OBDD
import Prelude hiding ((||), or, and, not)
import qualified Data.Map as M
import qualified Data.Set as S
import Data.Bits
import Data.Maybe (fromMaybe, fromJust)
import Data.Functor
import Data.List (foldl')
type PState = [Bool]
-- | Representation of a set of boolean vectors ... | johnbcoughlin/mucalc | src/GRSynth/States.hs | gpl-2.0 | 6,457 | 0 | 18 | 2,145 | 1,678 | 896 | 782 | 99 | 4 |
fibonacci' :: (Int a) => a -> a
fibonacci' x
| x < 0 = "error int"
| x <= 1 = 1
| otherwise = fibonacci (x-1) + fibonacci (x-2)
| mingzhi0/misc | hs_code/fibonacci.hs | gpl-2.0 | 140 | 0 | 9 | 43 | 83 | 40 | 43 | 5 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TemplateHaskell, QuasiQuotes #-}
-- Main function
import Web.Scotty
import Control.Monad(liftM,liftM2,when)
import Control.Monad.IO.Class(liftIO)
import qualified Data.ByteString.Lazy.Char8 as C
import qualified Data.Text.Lazy as T
imp... | emollient/Aphrodite | Aphrodite/Aphrodite.hs | gpl-2.0 | 4,385 | 0 | 23 | 1,544 | 931 | 477 | 454 | 83 | 3 |
{-# LANGUAGE OverloadedStrings #-}
-- Copyright (C) 2014 Sami Liedes <[email protected]>
--
-- 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 ... | sliedes/nonogram-svg | pngToNono.hs | gpl-2.0 | 2,233 | 0 | 11 | 424 | 565 | 302 | 263 | 41 | 2 |
{-# OPTIONS_GHC -Wall #-}
module Main where
import Test.Framework
import GHC.IO.Encoding
import qualified Tests.Old
import qualified Tests.Readers.LaTeX
import qualified Tests.Readers.Markdown
import qualified Tests.Readers.Org
import qualified Tests.Readers.RST
import qualified Tests.Writers.ConTeXt
import qualified... | nickbart1980/pandoc | tests/test-pandoc.hs | gpl-2.0 | 1,783 | 0 | 9 | 352 | 357 | 216 | 141 | 40 | 1 |
-- ID: FIB
-- Name: Rabbits and Recurrence relations
-- Author: Samuel Jackson
-- Email: [email protected]
-- Description: computes rabbit pairs over n months, with each rabbit producing k pairs.
rabbitPairs :: Int -> Int -> Int
rabbitPairs n k = last $ take n $ fibs k
where
--compute the fibo... | samueljackson92/rosalind | src/FIB_rabbits_and_recurrence_relations.hs | gpl-2.0 | 438 | 0 | 13 | 100 | 112 | 62 | 50 | 4 | 1 |
module T where
import Tests.Basis
c = proc () ->
(| combLoop (\x ->
do x' <- (| delayAC (falseA -< ()) (| delayAC (falseA -< ()) (returnA -< x) |) |)
dupA <<< notA -< x'
) |)
prop_correct = take n (simulate c lhs) == take n rhs
where
n = 50
lhs = repeat (... | peteg/ADHOC | Tests/02_SequentialCircuits/012_alternate_combLoop_period_two.hs | gpl-2.0 | 414 | 7 | 19 | 142 | 186 | 98 | 88 | -1 | -1 |
{- Game2048.Board.IntMapBoard • represent grid as IntMap (patricia tree)
- Copyright ©2014 Christopher League <[email protected]>
-
- 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, ei... | league/game2048 | src/Game2048/Board/IntMapBoard.hs | gpl-3.0 | 1,662 | 0 | 13 | 377 | 395 | 216 | 179 | 31 | 0 |
{-# Language TypeSynonymInstances #-}
{-# Language FlexibleInstances #-}
module Infsabot.RobotAction.Logic (
RobotProgram, RobotProgramResult,
KnownState(KnownState),
peekAtSpot, material, stateLocation, stateAge, stateMemory, stateMessages,
RobotAction(Die, Noop, MoveIn, Dig, Spawn,... | kavigupta/Infsabot | Infsabot/RobotAction/Logic.hs | gpl-3.0 | 4,032 | 0 | 10 | 1,023 | 710 | 424 | 286 | 83 | 1 |
module Main where
combineWords adjectives nouns = [adjective ++ " " ++ noun | adjective <- adjectives, noun <- nouns] | yumerov/haskell-study | learnyouahaskell/00-starting-out/list-product.hs | gpl-3.0 | 118 | 0 | 7 | 20 | 41 | 22 | 19 | 2 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-people/gen/Network/Google/Resource/People/People/DeleteContactPhoto.hs | mpl-2.0 | 6,456 | 0 | 17 | 1,428 | 880 | 514 | 366 | 130 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/RevokeDeviceAccess.hs | mpl-2.0 | 5,678 | 0 | 20 | 1,312 | 793 | 462 | 331 | 118 | 1 |
module Main where
import Data.Function
--Identity monad
type I a = a
--Identity Function
unitI :: a -> a
unitI a = a
-- plain postfix application (always call)
bindI :: a -> (a -> I b) -> I b
bindI a f = f a
-- just creating as a common f# operator
-- https://stackoverflow.co... | xunilrj/sandbox | sources/haskell/papers/reactive.hs | apache-2.0 | 4,438 | 0 | 13 | 1,633 | 1,253 | 657 | 596 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
module DecisionProcedure.Opra2
( module DecisionProcedure.Opra
) where
-- standard modules
import Data.Maybe
import qualified Data.Set as Set
-- local modules
import Basics
import Calculus.Opra2
import DecisionProcedure
import DecisionProcedure.Algebra... | spatial-reasoning/zeno | src/DecisionProcedure/Opra2.hs | bsd-2-clause | 1,053 | 0 | 11 | 208 | 177 | 99 | 78 | 24 | 0 |
{-# LANGUAGE TupleSections, TemplateHaskell #-}
{-| Configuration server for the metadata daemon.
-}
{-
Copyright (C) 2014 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. Redistributio... | dimara/ganeti | src/Ganeti/Metad/ConfigServer.hs | bsd-2-clause | 2,470 | 0 | 13 | 392 | 259 | 144 | 115 | 23 | 1 |
{-# LANGUAGE BangPatterns, ExistentialQuantification,
TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses,
RecordWildCards #-}
module Codec.Compression.HLZ4.Decode
-- (
-- decompress
-- )
where
import Control.Monad (when)
import Control.Monad.IO.Class
import Control.Applicative ... | axman6/HLZ4 | src/Codec/Compression/HLZ4/Decode.hs | bsd-3-clause | 12,266 | 0 | 18 | 3,661 | 4,067 | 2,106 | 1,961 | 298 | 4 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Time.EN.AU.Corpus
( allExamples
) where
import Data.Strin... | facebookincubator/duckling | Duckling/Time/EN/AU/Corpus.hs | bsd-3-clause | 4,316 | 0 | 11 | 1,538 | 1,185 | 717 | 468 | 81 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{- |
Copyright : Copyright (C) 2008 Bjorn Buckwalter
License : BSD3
Maintainer : [email protected]
Stability : experimental
Portability: GHC only?
An implementation of TDB conversions based on formula (2.6) of
[Kaplan2005]. The formula reportedly ha... | bjornbm/astro | src/Astro/Time/Barycentric/Kaplan2005.hs | bsd-3-clause | 2,118 | 0 | 30 | 475 | 474 | 244 | 230 | 21 | 1 |
module App.Password where
import Control.Monad.IO.Class (MonadIO(liftIO))
import Crypto.Scrypt
(EncryptedPass(EncryptedPass), Pass(Pass), encryptPassIO',
getEncryptedPass, verifyPass')
import Data.Text (Text)
import Data.Text.Encoding (decodeUtf8With, encodeUtf8)
import Data.Text.Encoding.Error (lenient... | arow-oss/arow-sample-webapp | src/App/Password.hs | bsd-3-clause | 1,556 | 0 | 11 | 252 | 349 | 194 | 155 | 42 | 2 |
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ViewPatterns #-}
module GHC.Util (
module GHC.Util.View
, module GHC.Util.FreeVars
, module GHC.Util.ApiAnnotation
, module GHC.Util.HsDecl
, module GHC.Util.HsExpr
, module GHC.Util.SrcLoc
, module GHC.Util.DynFlags
, module GHC.Util.Scope
, module GHC... | ndmitchell/hlint | src/GHC/Util.hs | bsd-3-clause | 2,787 | 0 | 10 | 519 | 658 | 396 | 262 | 88 | 2 |
module Main where
import Prelude ()
import Prelude.Compat
import Test.Tasty (TestTree, defaultMain, testGroup)
import Test.Golden (goldenTests)
main :: IO ()
main = do
-- createDirectoryIfMissing False (testDir </> "empty-dir")
tests <- testsIO
defaultMain tests
testsIO :: IO TestTree
testsIO = do
return $... | cdepillabout/highlight | test/Test.hs | bsd-3-clause | 354 | 0 | 9 | 60 | 98 | 54 | 44 | 12 | 1 |
{-# LANGUAGE RankNTypes, PolyKinds, DataKinds, TypeOperators, TypeInType,
TypeFamilies, FlexibleContexts, UndecidableInstances, GADTs #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Singletons.Decide
-- Cop... | int-index/singletons | src/Data/Singletons/Decide.hs | bsd-3-clause | 2,113 | 1 | 12 | 383 | 248 | 154 | 94 | 20 | 0 |
{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
module Main where
import Stashh.App
import Stashh.Env
import Stashh.Command
import Control.Monad.Reader
import Control.Monad.IO.Class (MonadIO, liftIO)
main :: IO ()
main = do
env <- parseEnv
runApp app env
app :: AppT IO ()
app = do
env <- ask
debugout e... | yuroyoro/stashh | src/Main.hs | bsd-3-clause | 362 | 0 | 9 | 68 | 118 | 64 | 54 | 16 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Control.Applicative (optional, (<$>))
import Control.Category (Category, (<<<))
import qualified Control.Category as Cat (id, (.))
import Control.DeepSeq (NFData, rnf)... | BlairArchibald/bones | apps/maxclique/src/Main.hs | bsd-3-clause | 12,772 | 0 | 20 | 4,139 | 2,585 | 1,346 | 1,239 | 235 | 10 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
--
-- Copyright (c) 2009-2011, ERICSSON AB
-- All rights... | emwap/feldspar-language | src/Feldspar/Core/Constructs/Save.hs | bsd-3-clause | 2,700 | 0 | 9 | 491 | 294 | 171 | 123 | 29 | 0 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP
, NoImplicitPrelude
, RecordWildCards
, BangPatterns
, NondecreasingIndentation
, MagicHash
#-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
{-# OPTIONS_HADDOCK hide #-}
-... | bitemyapp/ghc | libraries/base/GHC/IO/Handle/Text.hs | bsd-3-clause | 38,280 | 0 | 26 | 12,018 | 7,734 | 3,947 | 3,787 | 560 | 7 |
module Utils where
import qualified Data.DList as DList
breakWith :: (a -> Maybe b) -> [a] -> ([b], [a])
breakWith f = go mempty
where
go accum (x:xs)
| Just y <- f x = go (accum `DList.snoc` y) xs
| otherwise = (DList.toList accum, x:xs)
go accum [] = (DList.toList accum, [])
| bgamari/diff-utils | src/Utils.hs | bsd-3-clause | 312 | 0 | 11 | 87 | 161 | 86 | 75 | 8 | 2 |
{-
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2001-2003
--
-- Access to system tools: gcc, cp, rm etc
--
-----------------------------------------------------------------------------
-}
{-# LANGUAGE CPP, MultiWayIf, ScopedTypeVariables #-}
module ... | sdiehl/ghc | compiler/main/SysTools.hs | bsd-3-clause | 18,898 | 0 | 28 | 5,674 | 2,111 | 1,096 | 1,015 | 195 | 11 |
{-# LANGUAGE QuasiQuotes #-}
module Test0 () where
import LiquidHaskell
[lq| type GeNum a N = {v: a | N <= v} |]
[lq| type PosInt = GeNum Int {0} |]
[lq| myabs :: Int -> PosInt |]
myabs x = if (x > 0) then x else (-x)
[lq| incr :: x:Int -> GeNum Int {x} |]
incr x = x + 1
| spinda/liquidhaskell | tests/gsoc15/working/pos/alias01.hs | bsd-3-clause | 283 | 0 | 7 | 75 | 79 | 50 | 29 | 9 | 2 |
{-
Gifcurry
(C) 2018 David Lettier
lettier.com
-}
{-# LANGUAGE
DuplicateRecordFields
#-}
module GuiRecords where
import Data.IORef
import Data.Int
import qualified GI.Gtk
import qualified Graphics.Rendering.Pango.Font as GRPF
import GI.Gst
data GuiComponents =
GuiComponents
{ window ... | lettier/gifcurry | src/gui/GuiRecords.hs | bsd-3-clause | 9,187 | 0 | 10 | 3,110 | 1,437 | 937 | 500 | 195 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Sesyrel.FaultTree.Dynamic (
compileDynamicFaultTree
, logDynamicFactorInfo
, DynamicFactor(..)
, dynamicFactorExpr
) where
import Sesyrel.FaultTree.Base hiding (Variable)
import qualified Sesyrel.FaultTree.Base as F (Variable(..))
import Sesyrel.Expression
import S... | balodja/sesyrel | src/Sesyrel/FaultTree/Dynamic.hs | bsd-3-clause | 6,383 | 0 | 16 | 1,389 | 2,349 | 1,188 | 1,161 | 101 | 6 |
module Main where
import Client
import Server
import Player
import System.IO
import System.IO.Error hiding (catch)
import System.Environment (getArgs)
import Network
import Text.Printf
import Control.Concurrent.STM
import Control.Concurrent.Async
import Control.Exception hiding (handle)
import Control.Monad.Reader
im... | thomasathorne/h-chu | src/Main.hs | bsd-3-clause | 3,638 | 0 | 21 | 1,204 | 1,183 | 580 | 603 | 85 | 7 |
-- Copyright (c) Microsoft. All rights reserved.
-- Licensed under the MIT license. See LICENSE file in the project root for full license information.
import Test.Tasty
import Test.Tasty.QuickCheck
import Test.Tasty.HUnit (testCase)
import Tests.Syntax
import Tests.Codegen
import Tests.Codegen.Util(utilTestGroup)
tes... | gencer/bond | compiler/tests/TestMain.hs | mit | 8,480 | 0 | 14 | 3,375 | 1,093 | 561 | 532 | 172 | 1 |
{- DATX02-17-26, automated assessment of imperative programs.
- Copyright, 2017, see AUTHORS.md.
-
- 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... | Centril/DATX02-17-26 | libsrc/PropertyBasedTesting.hs | gpl-2.0 | 4,812 | 0 | 21 | 1,040 | 1,178 | 584 | 594 | 83 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-directconnect/gen/Network/AWS/DirectConnect/DescribeInterconnects.hs | mpl-2.0 | 4,133 | 0 | 10 | 776 | 507 | 306 | 201 | 59 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Network.AWS.SES.Types.Product
-- Copy... | fmapfmapfmap/amazonka | amazonka-ses/gen/Network/AWS/SES/Types/Product.hs | mpl-2.0 | 17,621 | 0 | 13 | 3,397 | 2,662 | 1,569 | 1,093 | 260 | 1 |
{-#LANGUAGE NoImplicitPrelude #-}
{-#LANGUAGE OverloadedStrings #-}
{-#LANGUAGE OverloadedLists #-}
{-#LANGUAGE TypeFamilies #-}
{-#LANGUAGE MultiParamTypeClasses #-}
{-#LANGUAGE FlexibleInstances #-}
{-#LANGUAGE FlexibleContexts #-}
{-#LANGUAGE LambdaCase #-}
{-#LANGUAGE TupleSections #-}
{-#LANGUAGE DeriveGeneric #-}... | tdammers/templar | src/Web/Sprinkles/Backends/Spec.hs | bsd-3-clause | 19,599 | 0 | 27 | 6,568 | 4,246 | 2,238 | 2,008 | 418 | 22 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Monoid
import qualified Graphics.Vty as V
import qualified Brick.Main as M
import Brick.Widgets.Core
( Widget
, padAll
, str
)
import qualified Brick.Widgets.Dialog as D
import qualified Brick.Widgets.Center as C
import qualified Brick.AttrMap a... | FranklinChen/brick | programs/DialogDemo.hs | bsd-3-clause | 1,675 | 0 | 12 | 454 | 576 | 323 | 253 | 47 | 3 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.SBV.Examples.Puzzles.Coins
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : [email protected]
-- Stability : experimental
--
-- Solves the following puzzle:
--
-- @
-- You and a friend ... | josefs/sbv | Data/SBV/Examples/Puzzles/Coins.hs | bsd-3-clause | 3,989 | 0 | 12 | 949 | 623 | 353 | 270 | 31 | 3 |
-- | The functions in this module allow you to limit the total size of incoming request bodies.
--
-- Limiting incoming request body size helps protect your server against denial-of-service (DOS) attacks,
-- in which an attacker sends huge bodies to your server.
module Network.Wai.Middleware.RequestSizeLimit
(
... | sordina/wai | wai-extra/Network/Wai/Middleware/RequestSizeLimit.hs | bsd-2-clause | 3,370 | 0 | 18 | 658 | 499 | 284 | 215 | 43 | 3 |
{-# LANGUAGE DeriveDataTypeable, UndecidableInstances #-}
{-# LANGUAGE CPP #-}
--
-- (c) The University of Glasgow 2002-2006
--
-- The IO Monad with an environment
--
-- The environment is passed around as a Reader monad but
-- as its in the IO monad, mutable references can be used
-- for updating state.
--
module IO... | GaloisInc/halvm-ghc | compiler/utils/IOEnv.hs | bsd-3-clause | 7,617 | 0 | 18 | 1,632 | 1,998 | 1,062 | 936 | -1 | -1 |
module Dwarf.Types
( -- * Dwarf information
DwarfInfo(..)
, pprDwarfInfo
, pprAbbrevDecls
-- * Dwarf address range table
, DwarfARange(..)
, pprDwarfARanges
-- * Dwarf frame
, DwarfFrame(..), DwarfFrameProc(..), DwarfFrameBlock(..)
, pprDwarfFrame
-- * Utilities
, pprByte
, pprHalf
,... | ezyang/ghc | compiler/nativeGen/Dwarf/Types.hs | bsd-3-clause | 23,682 | 0 | 24 | 6,419 | 5,112 | 2,678 | 2,434 | 422 | 9 |
-- | This module handles loading data from disk.
module HLearn.Data.LoadData
where
import SubHask
import SubHask.Algebra.Array
import SubHask.Algebra.Container
import SubHask.Algebra.Parallel
import SubHask.Compatibility.ByteString
import SubHask.Compatibility.Cassava
import SubHask.Compatibility.Containers
import... | mikeizbicki/HLearn | src/HLearn/Data/LoadData.hs | bsd-3-clause | 12,398 | 0 | 24 | 3,387 | 2,149 | 1,107 | 1,042 | -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="ko-KR">
<title>Passive Scan Rules | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<... | kingthorin/zap-extensions | addOns/pscanrules/src/main/javahelp/org/zaproxy/zap/extension/pscanrules/resources/help_ko_KR/helpset_ko_KR.hs | apache-2.0 | 979 | 78 | 66 | 160 | 415 | 210 | 205 | -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>TreeTools</title>
<maps>
<homeID>treetools</homeID>
<mapref location="ma... | thc202/zap-extensions | addOns/treetools/src/main/javahelp/help_id_ID/helpset_id_ID.hs | apache-2.0 | 960 | 77 | 66 | 155 | 404 | 205 | 199 | -1 | -1 |
import Test.Cabal.Prelude
-- Test build-tool-depends between two packages
main = cabalTest $ do
cabal "new-build" ["client"]
| mydaum/cabal | cabal-testsuite/PackageTests/BuildToolDepends/setup.test.hs | bsd-3-clause | 129 | 0 | 9 | 20 | 28 | 15 | 13 | 3 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE UnboxedSums #-}
module T12478_5 where
import Language.Haskell.TH
foo :: $(conT (unboxedSumTypeName 2) `appT` conT ''() `appT` conT ''())
-> $(conT (unboxedSumTypeName 2) `appT` conT ''() `appT` conT ''())
foo $(conP (unboxedSumDataName 1 2) [conP '() []])
= $(conE (... | olsner/ghc | testsuite/tests/th/T12478_5.hs | bsd-3-clause | 693 | 0 | 12 | 125 | 369 | 199 | 170 | 14 | 1 |
{-# LANGUAGE TypeFamilies #-}
module Tc251_Help where
class Cls a where
type Fam a :: *
type Fam a = Maybe a
| wxwxwwxxx/ghc | testsuite/tests/typecheck/should_compile/Tc251_Help.hs | bsd-3-clause | 118 | 0 | 7 | 31 | 33 | 19 | 14 | 5 | 0 |
{-# LANGUAGE TypeFamilies, FunctionalDependencies, RankNTypes, MultiParamTypeClasses #-}
module T4254 where
class FD a b | a -> b where
op :: a -> b;
op = undefined
instance FD Int Bool
ok1 :: forall a b. (a~Int,FD a b) => a -> b
ok1 = op
-- Should be OK: op has the right type
ok2 :: forall a b. (a~In... | wxwxwwxxx/ghc | testsuite/tests/indexed-types/should_fail/T4254.hs | bsd-3-clause | 551 | 0 | 8 | 133 | 175 | 100 | 75 | 12 | 1 |
{-# LANGUAGE DeriveFunctor #-}
module T9071_2 where
newtype Mu f = Mu (f (Mu f))
newtype K1 a b = K1 a
newtype F1 a = F1 (Mu (K1 a)) deriving Functor
| gcampax/ghc | testsuite/tests/deriving/should_fail/T9071_2.hs | bsd-3-clause | 152 | 0 | 9 | 34 | 60 | 37 | 23 | 5 | 0 |
module Math where
import Foreign.C
floor' :: Double -> Double
floor' = realToFrac . c_floor . realToFrac
{-# INLINE floor' #-}
round' :: Double -> Double
round' = realToFrac . c_round . realToFrac
{-# INLINE round' #-}
ceil' :: Double -> Double
ceil' = realToFrac . c_ceil . realToFrac
{-# INLINE ceil' #-}
log1p ::... | glguy/CookieCalculator | src/Math.hs | isc | 695 | 0 | 6 | 122 | 173 | 98 | 75 | 18 | 1 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MonadComprehensions #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #... | mstksg/auto-examples | src/Experimental/Survive.hs | mit | 33,328 | 8 | 27 | 13,025 | 9,950 | 5,136 | 4,814 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
module XmppDaemon.Stun where
import Control.Applicative
import Control.Concurrent.STM
import qualified Control.Exception as Ex
import Control.Monad
impo... | Philonous/xmpp-daemon | source/XmppDaemon/Stun.hs | mit | 5,711 | 0 | 25 | 2,019 | 1,603 | 790 | 813 | 122 | 9 |
{-# LANGUAGE OverloadedStrings, NoImplicitPrelude #-}
module Stackage.Stats
( printStats
) where
import Stackage.Prelude
import Data.Yaml (decodeFileEither)
printStats :: FilePath -- ^ YAML build plan file
-> IO ()
printStats fp = do
bp <- decodeFileEither fp >>= either throwIO return
let c... | fpco/stackage-curator | src/Stackage/Stats.hs | mit | 817 | 0 | 16 | 238 | 205 | 100 | 105 | 20 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{- |
Module : Orville.PostgreSQL.Expr.Name.TableName
Copyright : Flipstone Technology Partners 2016-2021
License : MIT
-}
module Orville.PostgreSQL.Internal.Expr.Name.TableName
( TableName,
tableName,
)
where
import Orville.PostgreSQL.Internal.Expr.Name.Identif... | flipstone/orville | orville-postgresql-libpq/src/Orville/PostgreSQL/Internal/Expr/Name/TableName.hs | mit | 604 | 0 | 7 | 77 | 90 | 60 | 30 | 12 | 1 |
module Network.Skype.Protocol.ChatMessage where
import Data.Typeable (Typeable)
import Network.Skype.Protocol.Chat
import Network.Skype.Protocol.Types
data ChatMessageProperty
-- | Time when the message was sent (UNIX timestamp).
= ChatMessageTimestamp Timestamp
-- | Skypename of the originator of the chatmess... | emonkak/skype4hs | src/Network/Skype/Protocol/ChatMessage.hs | mit | 4,864 | 0 | 8 | 940 | 327 | 222 | 105 | 53 | 0 |
{-# Language TemplateHaskell, QuasiQuotes, FlexibleContexts #-}
module Main where
import Language.F2
import Language.F2.Util
import System.IO (hFlush, stdout)
import Control.Arrow (first, second, (>>>))
import Control.Monad.State
import Text.Peggy (defaultDelimiter, peggy, parseString)
[peggy|
space :: ()
= [ \r\n... | kagamilove0707/F2 | src/Main.hs | mit | 2,011 | 0 | 32 | 575 | 509 | 262 | 247 | -1 | -1 |
-- Taken from https://github.com/carymrobbins/haskell-conf commit 3d3b13c
module Data.Conf (Conf, readConf, getConf, parseConf) where
import Control.Monad
import Text.Read
import Data.Conf.Parser
getConf :: Read a => String -> Conf -> Maybe a
getConf key conf = lookup key conf >>= readMaybe
readConf :: String -> IO ... | splondike/dmarc-check | src/Data/Conf.hs | gpl-2.0 | 377 | 0 | 8 | 55 | 112 | 62 | 50 | 8 | 1 |
{- |
Module : $Header$
Description : printing Isabelle entities
Copyright : (c) University of Cambridge, Cambridge, England
adaption (c) Till Mossakowski, Uni Bremen 2002-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : [email protected]
Stability : provisional
Por... | nevrenato/HetsAlloy | Isabelle/IsaPrint.hs | gpl-2.0 | 41,879 | 1,387 | 27 | 14,867 | 14,680 | 7,636 | 7,044 | 927 | 54 |
{-# LANGUAGE DeriveGeneric #-} -- needed for json parsing
module Types where
import GHC.Generics (Generic)
import qualified Data.Map as M
import Data.Maybe (fromMaybe, fromJust)
-- a Symbol gets bound; a Sym is a sort of literal
type Symbol = String
data Sym = Sym String
deriving (Eq, Ord, Generic)
instance Show S... | kovach/web | res0/Types.hs | gpl-2.0 | 2,970 | 0 | 12 | 702 | 1,010 | 555 | 455 | 69 | 1 |
import Control.Monad (liftM)
import Data.List (sort)
import Data.Char (ord)
import Data.List.Split (splitOn)
getAsSortedList :: IO [String]
getAsSortedList =
liftM (sort . concatMap (splitOn ",") . lines . filter (/= '"') ) $ readFile "names.txt"
toNum :: String -> [Int]
toNum = map chst
where
chst x = or... | ciderpunx/project_euler_in_haskell | euler022.hs | gpl-2.0 | 487 | 1 | 16 | 115 | 234 | 117 | 117 | 16 | 1 |
-- -*- mode: haskell -*-
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
module NFA.AI where
import Autolib.NFA.Example
import Autolib.NFA.Type (NFA)
import Autolib.Set
import Autolib.ToDoc
import Autolib.Reader
import Data.Typeable
data AI = AI { name :: String -- abkürzung
, automat :: NFA Char Int ... | Erdwolf/autotool-bonn | src/NFA/AI.hs | gpl-2.0 | 636 | 18 | 10 | 137 | 176 | 103 | 73 | 19 | 1 |
module Ltc.Network.Types (
Hostname, Port
) where
type Hostname = String
type Port = Int
| scvalex/ltc | src/Ltc/Network/Types.hs | gpl-3.0 | 102 | 0 | 4 | 28 | 27 | 18 | 9 | 4 | 0 |
module P08Pizza where
import Library
main :: IO ()
main = do
peeps <- promptNonNegInt "Number of people: "
pizzas <- promptNonNegInt "Number of pizzas: "
spp <- promptNonNegInt "Slices per pizza: "
let (slices, leftover) = (spp * pizzas) `divMod` peeps
putStrLn $ formatPizzas pizzas
... | ciderpunx/57-exercises-for-programmers | src/P08Pizza.hs | gpl-3.0 | 1,576 | 0 | 15 | 460 | 373 | 181 | 192 | 39 | 3 |
{-# LANGUAGE NoImplicitPrelude #-}
module Bamboo.Theme.MiniHTML5.Control.Comment where
import Bamboo.Model.Comment (Comment)
import Bamboo.Theme.MiniHTML5.Env hiding (body, date, alt, create)
import qualified Bamboo.Theme.MiniHTML5.Atom.Comment as CommentVA
list :: [Comment] -> [Html]
list [] = []
list xs =
[ h2... | nfjinjing/bamboo-theme-mini-html5 | src/Bamboo/Theme/MiniHTML5/Control/Comment.hs | gpl-3.0 | 601 | 1 | 11 | 98 | 203 | 117 | 86 | -1 | -1 |
Store (Store (set a)) (get a) | hmemcpy/milewski-ctfp-pdf | src/content/3.9/code/haskell/snippet11.hs | gpl-3.0 | 29 | 0 | 9 | 5 | 27 | 12 | 15 | -1 | -1 |
-- Copyright (c) 2014 Contributors as noted in the AUTHORS file
--
-- 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 3 of the License, or
-- (at your option) any later version.
-... | frp-arduino/frp-arduino | examples/FrequencyBlink.hs | gpl-3.0 | 1,536 | 0 | 10 | 290 | 258 | 137 | 121 | 15 | 1 |
-- * Header
{- GHC version 7.8.3
Author: Florent Balestrieri
-}
-- ** Ghc options
{-# LANGUAGE
MultiParamTypeClasses
, FlexibleContexts
, FlexibleInstances
, TypeOperators
, UndecidableInstances
, OverlappingInstances
, NoMonomorphismRestriction
, GADTs
, TypeFamilies
, LambdaC... | balez/ag-a-la-carte | Language/Grammars/AGalacarte/Core.hs | gpl-3.0 | 28,989 | 2 | 20 | 8,347 | 11,761 | 6,121 | 5,640 | -1 | -1 |
module Java2js.Convert where
convert =undefined
| ledyba/java.js | lib/Java2js/Convert.hs | gpl-3.0 | 50 | 0 | 4 | 7 | 11 | 7 | 4 | 2 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-healthcare/gen/Network/Google/Resource/Healthcare/Projects/Locations/DataSets/ConsentStores/UserDataMAppings/List.hs | mpl-2.0 | 9,845 | 0 | 19 | 1,918 | 989 | 583 | 406 | 149 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-plus/gen/Network/Google/Resource/Plus/People/ListByActivity.hs | mpl-2.0 | 4,637 | 0 | 16 | 1,057 | 560 | 332 | 228 | 89 | 1 |
-- | This module is very similar to the "Language.Interpreter.Dao" module, except most of the
-- functions have been renamed to an abbreviation so that they are easier to type into a GHCI
-- Read-Eval-Print Loop session. Another major difference is that this module uses
-- 'System.IO.Unsafe.unsafePerformIO' to create a... | RaminHAL9001/Dao | src/Language/Interpreter/Dao/GHCI.hs | agpl-3.0 | 1,021 | 0 | 4 | 171 | 31 | 26 | 5 | 3 | 0 |
{-# LANGUAGE
NoImplicitPrelude,
GADTs,
DataKinds,
TypeFamilies,
TypeOperators,
RankNTypes,
DeriveFunctor,
UndecidableInstances
#-}
--
module Singletons where
import Prelude hiding (drop,
take,
head,
tail,
ind... | ice1000/OI-codes | codewars/1-100/singletons.hs | agpl-3.0 | 2,903 | 6 | 10 | 912 | 1,194 | 631 | 563 | 76 | 1 |
{-
passman
Copyright (C) 2018-2021 Jonathan Lamothe
<[email protected]>
This program 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 3 of the
License, or (at your option) any later vers... | jlamothe/passman | test/Spec/ValidatePWDatabase.hs | lgpl-3.0 | 1,713 | 0 | 8 | 308 | 341 | 198 | 143 | 27 | 1 |
module Network.Haskoin.Node.Message
( Message(..)
, MessageHeader(..)
) where
import Control.DeepSeq (NFData, rnf)
import Control.Monad (unless)
import Control.Applicative ((<$>),(<*>))
import Data.Word (Word32)
import Data.Binary (Binary, get, put)
import Data.Binary.Get
( lookAhead
, getByteString
,... | nuttycom/haskoin | Network/Haskoin/Node/Message.hs | unlicense | 6,001 | 0 | 15 | 2,268 | 1,347 | 718 | 629 | 171 | 0 |
import Control.Monad
import System.Exit (exitSuccess)
import Data.Char (toLower, isLetter)
palindrome :: IO ()
palindrome = forever $ do
line1 <- getLine
case (line1 == reverse line1) of
True -> putStrLn "It's a palindrome!"
False -> do
putStrLn "Nope!"
exitSuccess
palindrome' :: IO ()
palindr... | dmp1ce/Haskell-Programming-Exercises | Chapter 13/palindrome.hs | unlicense | 620 | 0 | 13 | 143 | 185 | 90 | 95 | 19 | 2 |
<?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>Import/Export</title>
<maps>
<homeID>exim</homeID>
<mapref location="map... | secdec/zap-extensions | addOns/exim/src/main/javahelp/help_ru_RU/helpset_ru_RU.hs | apache-2.0 | 959 | 77 | 67 | 155 | 408 | 207 | 201 | -1 | -1 |
{-
Copyright 2019 The CodeWorld Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicab... | alphalambda/codeworld | codeworld-base/src/Core.hs | apache-2.0 | 965 | 0 | 5 | 207 | 44 | 31 | 13 | 11 | 0 |
{- Copyright 2014 David Farrell <[email protected]>
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or... | shockkolate/lambdircd | plugins.old/CModeNoExternal.hs | apache-2.0 | 1,375 | 0 | 13 | 255 | 242 | 137 | 105 | 18 | 3 |
-- 45228
import Data.List(nub)
import Euler(digitUsage, fromDigits, intSqrt)
kk = 9
isPandigital n a b = digitUsage n == xs
where xs = zipWith3 (\x y z -> x+y+z)
(digitUsage a) (digitUsage b) (digitUsage $ a*b)
genPandigital m n = [x*y | x <- [1..intSqrt m],
y <- [x+1.... | higgsd/euler | hs/32.hs | bsd-2-clause | 556 | 0 | 11 | 167 | 268 | 142 | 126 | 13 | 1 |
-- |
-- Module : Main
-- Copyright : [2013] Manuel M T Chakravarty
-- License : BSD3
--
-- Maintainer : Manuel M T Chakravarty <[email protected]>
-- Portability : haskell2011
module Graphics.Gloss.Game (
-- * Reexport some basic Gloss datatypes
module Graphics.Gloss.Data.Color,
module Graphics... | mchakravarty/gloss-game | Graphics/Gloss/Game.hs | bsd-3-clause | 9,807 | 0 | 15 | 2,644 | 2,155 | 1,196 | 959 | 126 | 5 |
{-# LANGUAGE TemplateHaskell #-}
module Language.Haskell.Liquid.TH.Misc (
-- * Convert Data to Exp
dataToExpQ'
-- * Split AnnoType
, splitSigmaRTy
, splitForAllRTy
, splitPhiRTy
, splitCxtArrowRTy
, splitCxtArrowRTy_maybe
, splitTuplesRTy
, splitTupleRTy
, splitTupleRTy_maybe
) where
im... | spinda/liquidhaskell | src/Language/Haskell/Liquid/TH/Misc.hs | bsd-3-clause | 2,844 | 0 | 12 | 493 | 816 | 442 | 374 | 63 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.SBV.Provers.Prover
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : [email protected]
-- Stability : experimental
--
-- Provable abstraction and the connection to SMT solvers
----------... | TomMD/cryptol | sbv/Data/SBV/Provers/Prover.hs | bsd-3-clause | 26,293 | 0 | 25 | 8,180 | 6,531 | 3,438 | 3,093 | 302 | 10 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE Kind... | kylcarte/derivation | src/Data/Derivation/Structural.hs | bsd-3-clause | 1,414 | 0 | 12 | 347 | 568 | 316 | 252 | 40 | 1 |
{-# LANGUAGE CPP, FlexibleInstances, NamedFieldPuns,
NoImplicitPrelude, TemplateHaskell,
UndecidableInstances #-}
#include "overlapping-compat.h"
{-|
Module: Data.Aeson.TH
Copyright: (c) 2011-2015 Bryan O'Sullivan
(c) 2011 MailRank, Inc.
License: Apache
Stability: experimental
Portab... | neobrain/aeson | Data/Aeson/TH.hs | bsd-3-clause | 48,240 | 0 | 27 | 17,437 | 10,780 | 5,828 | 4,952 | -1 | -1 |
-- | This module implements encoding and decoding of CSV data. The
-- implementation is RFC 4180 compliant, with the following
-- extensions:
--
-- * Empty lines are ignored.
--
-- * Non-escaped fields may contain any characters except
-- double-quotes, commas, carriage returns, and newlines.
--
-- * Escaped fiel... | plow-technologies/cassava | Data/Csv.hs | bsd-3-clause | 6,937 | 0 | 5 | 1,492 | 351 | 292 | 59 | 43 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Minecraft.Player where
import Control.Lens.TH (makeLenses)
import Data.Data (Data)
import Data.Typeable (Typeable)
import Data.NBT
im... | stepcut/minecraft-data | Minecraft/Player.hs | bsd-3-clause | 6,179 | 0 | 19 | 1,831 | 1,663 | 934 | 729 | 146 | 1 |
{-# LANGUAGE CPP, DeriveDataTypeable, GeneralizedNewtypeDeriving, Rank2Types,
RecordWildCards #-}
#if __GLASGOW_HASKELL >= 800
-- a) THQ works on cross-compilers and unregisterised GHCs
-- b) may make compilation faster as no dynamic loading is ever needed (not sure about this)
-- c) removes one hindrance to have c... | roelvandijk/aeson | Data/Aeson/Types/Internal.hs | bsd-3-clause | 20,704 | 0 | 25 | 5,736 | 4,609 | 2,548 | 2,061 | 412 | 6 |
{-# LANGUAGE CPP #-}
-- Copyright 2019 Google LLC
--
-- Use of this source code is governed by a BSD-style
-- license that can be found in the LICENSE file or at
-- https://developers.google.com/open-source/licenses/bsd
-- | This module provides combinators for constructing Haskell types.
module GHC.SourceGen.Type
... | google/ghc-source-gen | src/GHC/SourceGen/Type.hs | bsd-3-clause | 3,157 | 0 | 10 | 604 | 552 | 322 | 230 | 46 | 1 |
module Main where
import qualified Lib as L
import System.Environment
import Data.Maybe
import Control.Monad
import qualified System.IO.Strict as S
import qualified PackageRank as PR
import qualified Data.Map.Strict as Map
import Data.List (isInfixOf)
import qualified TarUtil as T
import Pipes
import qualified Pipes.... | erantapaa/parse-cabal | app/Main.hs | bsd-3-clause | 1,411 | 0 | 19 | 299 | 451 | 249 | 202 | 33 | 2 |
module Main where
import Network.Curl
import System.Environment (getArgs)
postJson :: URLString -> String -> IO CurlResponse
postJson url jsonData = do
writeFile "coverage.json" jsonData
h <- initialize
setopt h (CurlVerbose True)
setopt h (CurlURL url)
-- setopt h (CurlPost True)
-- setopt h ... | guillaume-nargeot/hpc-coveralls-experiment | src/Main.hs | bsd-3-clause | 1,322 | 0 | 16 | 362 | 301 | 138 | 163 | 34 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.