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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Hakyll.Web.Template.Blaze
( Template
, applyTemplate
, applyTemplateList
, applyTemplateListWith
, string
, preEscapedString
-- For API compatibility with first release
, toHtml
, safeToHtml
) where
import Hakyll (Context(..), Item, Compiler,
... | nagisa/hakyll-blaze-templates | src/Hakyll/Web/Template/Blaze.hs | bsd-3-clause | 2,005 | 0 | 10 | 648 | 403 | 229 | 174 | 40 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Text.CSL.Output.Plain
-- Copyright : (c) Andrea Rossato
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Andrea Rossato <andrea.rossato@unitn.it>
-- Stability : un... | adunning/pandoc-citeproc | src/Text/CSL/Output/Plain.hs | bsd-3-clause | 886 | 0 | 8 | 168 | 111 | 73 | 38 | 9 | 1 |
{- | This module provides a pure implementation of Reflex, which is intended to serve as a reference for the semantics of the Reflex class. All implementations of Reflex should produce the same results as this implementation, although performance and laziness/strictness may differ.
-}
{-# LANGUAGE TypeFamilies, MultiP... | zudov/reflex-marbles | src/Reflex/Pure.hs | bsd-3-clause | 2,209 | 0 | 16 | 537 | 611 | 323 | 288 | -1 | -1 |
module Data.Exif.Types where
import Data.Ratio (Ratio)
import Data.Word (Word8, Word16, Word32)
data Endianness = LittleEndian | BigEndian deriving (Show)
data TIFFHeader = TIFFHeader {
thOffset :: Word32
, thByteOrder :: Endianness
, thIFDOffset :: Word32
} deriving (Show)
-- IFD (Image File Directory) Fie... | duboisf/ymrefiler | src/Data/Exif/Types.hs | bsd-3-clause | 7,926 | 0 | 9 | 2,137 | 1,322 | 780 | 542 | 224 | 35 |
{-# LANGUAGE OverloadedStrings #-}
module Netsuite.Connect (
retrieveNS,
fetchSublistNS,
rawSearchNS,
searchNS,
createNS,
attachNS,
detachNS,
updateNS,
updateSublistNS,
deleteNS,
invoicePdfNS,
transformNS,
NsFilters,
NsFilter (..),
NsSearchOp (..),
Restle... | anchor/haskell-netsuite | lib/Netsuite/Connect.hs | bsd-3-clause | 8,133 | 0 | 14 | 2,269 | 1,862 | 985 | 877 | 202 | 2 |
{-# LANGUAGE FlexibleInstances, TemplateHaskell, TypeFamilies #-}
module GHC.Generics.Instances.TH where
import GHC.Generics
import Language.Haskell.TH
import Language.Haskell.TH.Lift
-- | Build a set of Generic instances for opaque types
buildOpaque :: Name -> DecsQ
buildOpaque n = do
let name = nameBase n
d... | mgsloan/generic-orphans | src/GHC/Generics/Instances/TH.hs | bsd-3-clause | 1,338 | 0 | 15 | 333 | 314 | 168 | 146 | 31 | 2 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, ScopedTypeVariables, UndecidableInstances, CPP #-}
-----------------------------------------------------------------------------
{- |
Module : Control.Parallel.MPI.Fast
Copyright : (c) 2010 Bernie Pope, Dmitry Astapov
License : BSD-style
Maintainer : florbi... | bjpop/haskell-mpi | src/Control/Parallel/MPI/Fast.hs | bsd-3-clause | 36,270 | 0 | 21 | 7,828 | 6,705 | 3,481 | 3,224 | -1 | -1 |
-----------------------------------------------------------------------------
-- Strict State Thread module
--
-- This library provides support for strict state threads, as described
-- in the PLDI '94 paper by John Launchbury and Simon Peyton Jones.
-- In addition to the monad ST, it also provides mutable variables S... | FranklinChen/Hugs | libraries/hugsbase/Hugs/ST.hs | bsd-3-clause | 4,728 | 45 | 12 | 1,197 | 1,387 | 730 | 657 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : GSL.Random.Gen
-- Copyright : Copyright (c) , Patrick Perry <patperry@stanford.edu>
-- License : BSD3
-- Maintainer : Patrick Perry <patperry@stanford.edu>
-- Stability : experimental
--
-- Random number generators.
... | patperry/hs-gsl-random | lib/GSL/Random/Gen.hs | bsd-3-clause | 441 | 0 | 5 | 67 | 39 | 30 | 9 | 3 | 0 |
module CommandLine.TransformFiles
( Result
, TransformMode(..), applyTransformation
, ValidateMode(..), validateNoChanges
) where
-- This module provides reusable functions for command line tools that
-- transform files.
import CommandLine.InfoFormatter (ExecuteMode(..))
import qualified CommandLine.I... | avh4/elm-format | elm-format-lib/src/CommandLine/TransformFiles.hs | bsd-3-clause | 4,823 | 0 | 19 | 1,338 | 1,424 | 719 | 705 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Service.BearyChat(
BearyChat(..)
, setBearyChat
, bearyChatService
,... | leptonyu/mint | corn-server/src/Service/BearyChat.hs | bsd-3-clause | 4,546 | 0 | 17 | 1,255 | 1,236 | 658 | 578 | 109 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleContexts #-}
module Scripts.ExpressionTest where
import ClassyPrelude hiding (assert)
import Appian
import Appian.Client
import Appian.Lens
import Appian.Types
import Appian.Instances... | limaner2002/EPC-tools | USACScripts/src/Scripts/ExpressionTest.hs | bsd-3-clause | 4,128 | 0 | 14 | 748 | 1,170 | 589 | 581 | -1 | -1 |
module Problem135 where
import qualified Data.Vector.Unboxed as Vector
main :: IO ()
-- x=a+d,y=a,z=a-d
-- (a+d)^2-a^2-(a-d)^2 = n
-- 4ad-a^2=n
-- a(4d-a)=n = xy (say)
-- a=x,d=(x+y)/4
-- a-d>0 ⇒ (3x-y)/4 > 0 ⇒ 3x>y ⇒ n = xy < 3x^2
main =
print
. Vector.length
. Vector.elemIndices 10
. Vec... | adityagupta1089/Project-Euler-Haskell | src/problems/Problem135.hs | bsd-3-clause | 610 | 0 | 15 | 203 | 207 | 122 | 85 | 14 | 1 |
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Types where
import Database.Redis
import Data.Aeson as A
import qualified Data.ByteString as BS
import Data.Text.Encoding
import qualified Data.Vecto... | MichelBoucey/IPv6DB | app/Types.hs | bsd-3-clause | 1,043 | 0 | 12 | 302 | 256 | 150 | 106 | 34 | 0 |
{-# LANGUAGE OverloadedStrings, ForeignFunctionInterface #-}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings ... | kejace/ethereum-data-sql | src/Blockchain/Data/Block.hs | bsd-3-clause | 2,085 | 0 | 5 | 408 | 115 | 81 | 34 | 27 | 0 |
{-# LINE 1 "Data.Bits.hs" #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns, MagicHash #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Bits
-- Copyright : (c) The University of Gl... | phischu/fragnix | builtins/base/Data.Bits.hs | bsd-3-clause | 21,764 | 0 | 14 | 6,675 | 3,635 | 2,021 | 1,614 | 255 | 2 |
{- DO NOT EDIT THIS FILE
THIS FILE IS AUTOMAGICALLY GENERATED AND YOUR CHANGES WILL BE EATEN BY THE GENERATOR OVERLORD
All changes should go into the Model file (e.g. App/Models/ExampleModel.hs)
-}
module App.Models.Bases.TmpFunctions where
import App.Models.Bases.Common
import qualified Database.HDBC as HDBC
... | alsonkemp/turbinado-website | App/Models/Bases/TmpFunctions.hs | bsd-3-clause | 4,179 | 10 | 32 | 1,130 | 1,459 | 750 | 709 | 56 | 1 |
{-# OPTIONS_GHC -cpp -fglasgow-exts -package hsgnutls -package Network.HaskellNet #-}
-- examples to connect server by hsgnutls
module DebugStream
( connectD
, connectDPort
, DebugStream
, withDebug
, module BS
)
where
import Network
import Network.HaskellNet.BSStream
import Data.ByteStri... | d3zd3z/HaskellNet-old | example/DebugStream.hs | bsd-3-clause | 2,508 | 0 | 11 | 828 | 733 | 340 | 393 | 77 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module IRTS.CodegenLLVM (codegenLLVM) where
import IRTS.CodegenCommon
import IRTS.Lang
import IRTS.Simplified
import IRTS.System
import qualified Idris.Core.TT as TT
import Idris.Core.TT (ArithTy(..), IntTy(..), NativeTy(..), nativeTyWidth)
import Util.System
import Paths_i... | ctford/Idris-Elba-dev | src/IRTS/CodegenLLVM.hs | bsd-3-clause | 54,387 | 0 | 25 | 14,771 | 22,213 | 11,069 | 11,144 | 1,143 | 10 |
split :: [a] -> Int -> ([a], [a])
split xs n = (take n xs, drop n xs)
| cjhveal/H-99 | 17.hs | mit | 70 | 0 | 8 | 18 | 55 | 30 | 25 | 2 | 1 |
{-|
Manipulate the time periods typically used for reports with Period,
a richer abstraction than DateSpan. See also Types and Dates.
-}
module Hledger.Data.Period
where
import Data.Time.Calendar
import Data.Time.Calendar.MonthDay
import Data.Time.Calendar.OrdinalDate
import Data.Time.Calendar.WeekDate
import Data.... | ony/hledger | hledger-lib/Hledger/Data/Period.hs | gpl-3.0 | 12,144 | 0 | 23 | 2,618 | 3,516 | 1,825 | 1,691 | 176 | 13 |
<?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="pt-BR">
<title>SOAP Scanner | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapre... | veggiespam/zap-extensions | addOns/soap/src/main/javahelp/org/zaproxy/zap/extension/soap/resources/help_pt_BR/helpset_pt_BR.hs | apache-2.0 | 974 | 80 | 66 | 160 | 415 | 210 | 205 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : Test.Vector.Dense
-- Copyright : Copyright (c) 2008, Patrick Perry <patperry@stanford.edu>
-- License : BSD3
-- Maintainer : Patrick Perry <patperry@s... | patperry/hs-linear-algebra | tests-old/Test/Vector/Dense.hs | bsd-3-clause | 1,866 | 0 | 13 | 579 | 556 | 297 | 259 | 54 | 1 |
-- Copyright (c) 2016 Eric McCorkle. 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
-- notice, this list of conditions... | saltlang/compiler-toolbox | src/Control/Monad/Symbols.hs | bsd-3-clause | 8,116 | 0 | 15 | 1,623 | 1,958 | 1,039 | 919 | 148 | 1 |
-- | This module defines the type 'Opts' and gives a function to parse commandline arguments.
{-# LANGUAGE BangPatterns #-}
module Euphs.Options
( Opts(..)
, parseOpts
, OptsList
, defaults
, options
, getOpts
) where
import System.Exit
import System.Console.GetOpt
import System.Environment... | MicheleCastrovilli/EuPhBot | Library/Euphs/Options.hs | bsd-3-clause | 3,712 | 0 | 13 | 1,224 | 871 | 498 | 373 | 89 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Vim.TestExCommandParsers (tests) where
import Data.List (inits)
import Data.Maybe
import Data.Monoid
import qualified Data.Text as T
import Test.QuickCheck
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.Qui... | yi-editor/yi | yi-keymap-vim/tests/Vim/TestExCommandParsers.hs | gpl-2.0 | 5,941 | 0 | 15 | 1,831 | 1,198 | 667 | 531 | 129 | 3 |
{-# LANGUAGE OverloadedStrings #-}
-- Module : Route53
-- Copyright : (c) 2013-2015 Brendan Hay <brendan.g.hay@gmail.com>
-- License : This Source Code Form is subject to the terms of
-- the Mozilla Public License, v. 2.0.
-- A copy of the MPL can be found in the LICENSE file or
... | romanb/amazonka | amazonka-route53/examples/src/Route53.hs | mpl-2.0 | 934 | 0 | 10 | 208 | 124 | 71 | 53 | 16 | 1 |
module Main where
import System
import Control.Monad (when)
main = do print 'b'
args <- getArgs
let isB = head args
when (isB /= "isB") (error "B is not B!")
| dcreager/cabal | tests/systemTests/twoMains/MainB.hs | bsd-3-clause | 188 | 0 | 10 | 60 | 68 | 34 | 34 | 7 | 1 |
{-
Querying for back/in links to a given page.
foo$ path/to/linksTo "Haskell"
...
foo$
-}
module Main(main) where
import MediaWiki.API.Base
import MediaWiki.API.Types ( PageTitle(..) )
import MediaWiki.API
import MediaWiki.API.Query.BackLinks.Import as Back
import Util.GetOpts
-- begin option handling
data... | HyperGainZ/neobot | mediawiki/examples/LinksTo.hs | bsd-3-clause | 2,310 | 9 | 19 | 560 | 782 | 412 | 370 | 60 | 3 |
module Main (main) where
import Text.PrettyPrint.ANSI.Leijen
import System.IO
main :: IO ()
main = do
-- Going directly to the console is portable across Unix and Windows...
putDoc $ red (text "Red") <> comma <+> white (text "white") <+> text "and" <+> blue (text "blue") <> char '!' <> linebreak
putDoc ... | seereason/ansi-wl-pprint | Text/PrettyPrint/ANSI/Example.hs | bsd-2-clause | 1,334 | 0 | 16 | 283 | 385 | 181 | 204 | 13 | 1 |
{-@ LIQUID "--no-termination" @-}
module GhcSort () where
import Language.Haskell.Liquid.Prelude
{-@ type OList a = [a]<{\fld v -> (v >= fld)}> @-}
---------------------------------------------------------------------------
--------------------------- Official GHC Sort ----------------------------
----------------... | ssaavedra/liquidhaskell | benchmarks/esop2013-submission/GhcListSort.hs | bsd-3-clause | 3,627 | 0 | 13 | 898 | 1,507 | 804 | 703 | 70 | 8 |
{-# LANGUAGE MagicHash #-}
module ShouldCompile where
-- exposed a bug in the NCG in 6.4.2
import GHC.Base
class Unboxable a where
writeUnboxable :: MutableByteArray# RealWorld -> a -> State# RealWorld -> State# RealWorld
writeUnboxable arr a s = writeInt8Array# arr 0# (getTag 0) s
| siddhanathan/ghc | testsuite/tests/codeGen/should_compile/cg006.hs | bsd-3-clause | 294 | 0 | 10 | 56 | 73 | 37 | 36 | 6 | 0 |
{-# LANGUAGE FlexibleInstances #-}
module Fib where
import Data.Bits
-- exercise 1
fib :: Integer -> Integer
fib 0 = 0
fib 1 = 1
fib n = fib (n-1) + fib (n-2)
fibs1 :: [Integer]
fibs1 = map fib [0..]
-- exercise 2
fibs2 :: [Integer]
fibs2 = map fst $ iterate stepper (0, 1)
where stepper (n0, n1) = (n1, n0 + ... | dirkz/haskell-cis-194 | 06/Fib.hs | isc | 3,262 | 0 | 13 | 919 | 1,564 | 810 | 754 | 80 | 3 |
module Hunch.Runner (
runSimulation
, runCreation
, printVersion
) where
import Hunch.Constants
import qualified Paths_hunch as Meta
import Hunch.Options.Data
import Hunch.Language.Syntax
import Hunch.Language.Parser
import Hunch.Language.PrettyPrinter
import Data.Version (showVersion)
import Data.List... | loganbraga/hunch | app/Hunch/Runner.hs | mit | 8,266 | 0 | 15 | 2,153 | 2,211 | 1,140 | 1,071 | 152 | 6 |
module Light.Film
( Film, film, filmDimensions, filmSampleBounds, filmFilter, filmPixels, addSample
, film1080, film720, film480, film2k, film4k, film8k, filmQVGA, filmVGA
, Pixel, pixelSum, pixelWeightSum
, toPNG
)
where
import qualified Codec.Picture as P
import Data.Array
import qualified Data.ByteString.... | jtdubs/Light | src/Light/Film.hs | mit | 2,396 | 0 | 15 | 713 | 1,121 | 634 | 487 | -1 | -1 |
{-# language NumDecimals #-}
{-# language OverloadedStrings #-}
module Main where
import Data.Foldable
import Data.Monoid
import Data.ByteString(ByteString)
import Data.ByteString.Char8(unpack)
import qualified Data.ByteString as Bytes
import Control.Concurrent (threadDelay)
import Control.Monad
import Control.Excepti... | danidiaz/tailfile-hinotify | tests/tests.hs | mit | 4,638 | 0 | 15 | 1,684 | 1,132 | 573 | 559 | 114 | 1 |
module Latte.Commons where
import Control.Monad.Except
import Control.Monad.State
import Latte.Errors
type Runner stateType returnType = StateT stateType (ExceptT LatteError IO) returnType
type ReturnType r s = IO (Either LatteError (r, s))
type RunReturnType r = IO (Either LatteError r)
runRunner :: Runner s r -> ... | mpsk2/LatteCompiler | src/Latte/Commons.hs | mit | 415 | 0 | 8 | 61 | 133 | 74 | 59 | 9 | 1 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.HTMLCollection
(item, item_, itemUnsafe, itemUnchecked, namedItem, namedItem_,
namedItemUnsafe, namedItem... | ghcjs/jsaddle-dom | src/JSDOM/Generated/HTMLCollection.hs | mit | 4,354 | 0 | 14 | 768 | 1,044 | 588 | 456 | -1 | -1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.ValidityState
(js_getValueMissing, getValueMissing, js_getTypeMismatch,
getTypeMismatch, js_getPatternMismatch, getPatternMismatch,
js_getTooLong, getTooLong, js_getRangeUnderflow, getRangeU... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/ValidityState.hs | mit | 5,002 | 60 | 8 | 649 | 982 | 559 | 423 | 64 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Text.XML.Light
import Text.Feed.Import
import Text.Feed.Query
import System.Environment
import System.Directory
import System.Process
import System.Exit
import Database.HDBC
import Database.HDBC.Sqlite3 (connectSqlite3)
import Data.Convertible.Base
import Data... | lucas8/cli_newsbeuter | rss.hs | mit | 16,954 | 0 | 17 | 6,090 | 5,696 | 2,836 | 2,860 | 304 | 5 |
{-# LANGUAGE DeriveDataTypeable #-}
module JavaScript.Web.ErrorEvent.Internal where
import GHCJS.Types
import Data.Typeable
newtype ErrorEvent = ErrorEvent JSRef deriving Typeable
| tavisrudd/ghcjs-base | JavaScript/Web/ErrorEvent/Internal.hs | mit | 184 | 0 | 5 | 22 | 30 | 20 | 10 | 5 | 0 |
module Examples.Tests.BranchingEuterpea where
import Euterpea
-- Test case generated with seed 0
branchingEuterpea = Modify (Tempo (1 / 1)) (Modify (Instrument AcousticGrandPiano) (Prim (Note (1 / 4) (C,4)) :+: Prim (Note (1 / 2) (Ef,4)))) :: Music Pitch
| michaelbjames/improb | Examples/Tests/BranchingEuterpea.hs | mit | 257 | 0 | 14 | 40 | 109 | 60 | 49 | 3 | 1 |
module Primitives where
import qualified Data.Text as T
data Prim = Text T.Text
| Number Integer
deriving (Eq, Ord, Show)
| imccoy/utopia | src/Primitives.hs | mit | 137 | 0 | 7 | 35 | 43 | 26 | 17 | 5 | 0 |
module Yage.Formats.AMDCubeMap where
import Yage.Prelude hiding ( toList, left, right )
import Yage.Rendering.GL
import System.Directory
import Data.List ( (!!) )
import Data.Foldable ... | MaxDaten/yage | src/Yage/Formats/AMDCubeMap.hs | mit | 2,558 | 1 | 15 | 680 | 614 | 331 | 283 | -1 | -1 |
strlen :: IO ()
strlen= do
putStr "Enter a string: "
xs <- getLine
putStrLn $ "The string has "++(show (length xs))++ " characters"
beep :: IO ()
beep =putStr "\BEL"
cls :: IO ()
cls =putStr "\ESC[2J"
-- By convention, the position of each character on the screen is given by a pair (x , y ) of positive integer... | SnowOnion/GrahamHaskellPractice | ch09/play.hs | mit | 1,693 | 2 | 12 | 454 | 302 | 168 | 134 | 21 | 1 |
{-
Let a, b and c be the length of the edges of the cuboide along the axis X, Y and
Z with a ≥ b ≥ c ≥ 1.
Suppose that the spider moves in straight line on the face XY and joins the edge
of length a opposite to its starting point at the location (λ a, b, 0) and
then continue its move up to its destination point (a, ... | dpieroux/euler | 0/0086.hs | mit | 1,569 | 0 | 12 | 338 | 263 | 142 | 121 | 8 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
module Hetcons.Parsable
(Parsable
,parse
) where
import Charlotte_Types
(Proposal_1a
,decode_Proposal_1a
,Public_Crypto_Key(Public_Crypto_Key
,public_Crypto_Key_public_crypto_key_x509)
,... | isheff/hetcons | src/Hetcons/Parsable.hs | mit | 2,398 | 0 | 10 | 446 | 407 | 237 | 170 | 37 | 0 |
import Data.Char
import Numeric
isPalindrome :: String -> Bool
isPalindrome s = s == reverse s
showIntInBinary :: Int -> String
showIntInBinary n = showIntAtBase 2 intToDigit n ""
solve :: Int
solve = sum nums
where
nums = [x | x <- [1..999999], isPalindrome $ show x, isPalindrome $ showIntInBinary x]
main ::... | jwtouron/haskell-play | ProjectEuler/Problem36.hs | mit | 346 | 0 | 10 | 70 | 135 | 69 | 66 | 11 | 1 |
{-|
Module : Dvx.Utils
Description : Utils functions
-}
module Dvx.Utils
( boolToInt
, isNumeric
, joinstr
, joinsub
, middle
, splitAndKeep
, splitOn
, trim
) where
import Data.Char (isSpace, isDigit)
import Data.List (intercalate)
-- |Trim whitespace from a string
trim :: String -> String
trim = f . f where f ... | Hamcha/dvx | Dvx/Utils.hs | mit | 2,367 | 0 | 11 | 729 | 826 | 429 | 397 | 46 | 1 |
-- Just code from the blog post http://stochastix.wordpress.com/2011/09/05/circular-convolution-in-haskell
--
--
circShiftR :: [a] -> [a]
circShiftR [] = []
circShiftR x = last x : init x
circShiftL :: [a] -> [a]
circShiftL [] = []
circShiftL xs = (tail xs) : [head xs]
--iterate :: (a -> a) -> a -> [a]
--iterate f x ... | softwaremechanic/Miscellaneous | Haskell/Circular_convolution.hs | gpl-2.0 | 690 | 0 | 9 | 198 | 258 | 136 | 122 | 14 | 1 |
module HoS.Network.Handler.FastCGI (
getResponseFromCGI,
getDataFrom,
) where
import HoS.Network.Base
import HoS.Network.Server
import HoS.System.Thread
import HoS.Network.Http
import HoS.Network.Util
import qualified Data.ByteString.Lazy.Char8 as BS
import qualified Data.ByteString.Internal as BSI
import Net... | Cofyc/hos | src/HoS/Network/Handler/FastCGI.hs | gpl-2.0 | 3,864 | 8 | 19 | 1,065 | 1,122 | 606 | 516 | 90 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module ParseArgs (
parseArgs
) where
import System.Console.CmdArgs
import System.Environment (getProgName)
data Options = Options
{ query :: String
, file :: [String]
, output :: String
, positional :: [String]
}
deriving (Data, Typeable)
options = Options
{... | nishiuramakoto/logiku | prolog/prolog-graph/ParseArgs.hs | gpl-3.0 | 958 | 0 | 13 | 242 | 313 | 172 | 141 | 24 | 3 |
{-|
--------------------------------------------------------------------------------
-----------------------------------Exercise 1-----------------------------------
--------------------------------------------------------------------------------
-}
newtype ZipList a = Z [a]
deriving (Show)
instance Fu... | mdipirro/functional-languages-homeworks | Week 8/zipList.hs | gpl-3.0 | 2,745 | 0 | 13 | 515 | 483 | 264 | 219 | 15 | 1 |
{-# OPTIONS_GHC -XOverloadedStrings #-}
module Folsolver.LP
( module Folsolver.LP.LPSolver
, module Folsolver.LP.Arithmetic
) where
import Folsolver.LP.LPSolver
import Folsolver.LP.Arithmetic | traeger/fol-solver | Folsolver/LP.hs | gpl-3.0 | 196 | 0 | 5 | 22 | 35 | 24 | 11 | 6 | 0 |
{-# Language GADTs #-}
{-# Language KindSignatures #-}
{-# LAnguage TypeOperators #-}
{-# Language ConstraintKinds #-}
{-# Language UndecidableInstances #-}
{-# Language ExistentialQuantification #-}
{-# Language Rank2Types #-}
{-# Language DataKinds #-}
{-# Language FlexibleInstances #-}
{-# Language FlexibleContexts ... | xenophobia/experimental-smt-solver | src/Data/SMT/Abstract/Types.hs | gpl-3.0 | 3,597 | 0 | 9 | 741 | 1,516 | 790 | 726 | 71 | 0 |
module Main where
import System.CPUTime
import System.FilePath
import Data.Maybe
import TagFS
import TagSet hiding (TagSet)
benchmark :: String -> IO a -> IO ()
benchmark name io = do
putStrLn $ "Starting " ++ name ++ "…"
start <- getCPUTime
_ <- io
end <- getCPUTime
let t = fromInteger (end - start) / (1000000... | ffwng/tagfs | Benchmark.hs | gpl-3.0 | 943 | 0 | 16 | 208 | 419 | 210 | 209 | 29 | 1 |
module HMail.TH where
import Control.Lens
import Language.Haskell.TH
myMakeLenses :: Name -> DecsQ
myMakeLenses = makeLensesWith
( lensRules & lensField .~ mappingNamer f )
where
f name = [name ++ "l"]
| xaverdh/hmail | HMail/TH.hs | gpl-3.0 | 213 | 0 | 8 | 41 | 65 | 36 | 29 | 7 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.KnowledgeGraphSearch
-- Copyright : (c) 2015-2016 Brendan Hay
-- License :... | rueshyna/gogol | gogol-kgsearch/gen/Network/Google/KnowledgeGraphSearch.hs | mpl-2.0 | 1,469 | 0 | 5 | 298 | 100 | 78 | 22 | 20 | 0 |
{-# LANGUAGE TypeOperators,DataKinds,TypeFamilies#-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE Rank2Types ... | rodsol/atomspace | tests/haskell/insertTest/Main.hs | agpl-3.0 | 999 | 0 | 12 | 214 | 227 | 117 | 110 | 32 | 2 |
module Development.Fex.Depend
( EnvVar, mkEnvVar, runEnvVar
, Exe, mkExe, runExe
, File, mkFile, runFile
, Dir, mkDir, runDir
, F.FlagSpec
, mkFlagBool, mkFlagString, mkFlagInt, mkFlagDouble, mkFlagFile, mkFlagDir
, runFlagBool, runFlagString, runFlagInt, runFlagDouble, runFlagFile, runFlagDir
)
where
... | BurntSushi/fex | Development/Fex/Depend.hs | unlicense | 7,381 | 0 | 12 | 1,824 | 1,778 | 929 | 849 | 128 | 2 |
module Problem037 where
import Data.List
main =
print $ sum $ take 11 $ filter isTruncatablePrime primes
isTruncatablePrime x = x > 7 && all isPrime (variants x)
variants x = sort $ nub $ map (read :: String -> Int) $ u
where s = show x
u = filter (\x -> length x > 0) $ tails s ++ inits s
isPrime x = i... | vasily-kartashov/playground | euler/problem-037.hs | apache-2.0 | 609 | 0 | 13 | 202 | 311 | 157 | 154 | 16 | 2 |
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
module Network.GRPC.LowLevel.GRPC.MetadataMap where
import Data.ByteString (ByteString)
import Data.Function (on)
import GHC.Exts (IsList(..))
import Data.List (sortBy, groupBy)
import Data.Ord (comparing)
import qualified Data.List.NonEmpty as NE
import qu... | awakenetworks/gRPC-haskell | core/src/Network/GRPC/LowLevel/GRPC/MetadataMap.hs | apache-2.0 | 2,135 | 0 | 15 | 440 | 454 | 250 | 204 | 34 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : Script.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:34
Warning : this file is machine generated - do not mo... | uduki/hsQt | Qtc/Classes/Script.hs | bsd-2-clause | 18,503 | 0 | 17 | 3,419 | 6,041 | 2,934 | 3,107 | 341 | 3 |
-- TODO
-- Read from config file rather than flag
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TupleSections #-}
module Main where
import Development.Ecstatic.CallGraph
import Development.Ecstatic.Utils
import Development.Ecstatic.StackUsage
import qualified Development.Ecstatic.Assumptions as A
import Language... | kovach/ecstatic | Development/Ecstatic.hs | bsd-2-clause | 5,416 | 19 | 18 | 1,384 | 1,592 | 839 | 753 | 139 | 6 |
{-# LANGUAGE CPP, NondecreasingIndentation, TupleSections, RecordWildCards #-}
{-# OPTIONS_GHC -fno-cse #-}
--
-- (c) The University of Glasgow 2002-2006
--
-- -fno-cse is needed for GLOBAL_VAR's to behave properly
-- | The dynamic linker for GHCi.
--
-- This module deals with the top-level issues of dynamic linking... | gridaphobe/ghc | compiler/ghci/Linker.hs | bsd-3-clause | 56,784 | 185 | 22 | 17,199 | 10,205 | 5,326 | 4,879 | -1 | -1 |
module Parser where
import qualified Text.ParserCombinators.Parsec as P
import HTTP
import System.Locale (defaultTimeLocale)
import Data.Time (UTCTime, parseTime, formatTime, getCurrentTime)
import Numeric (readHex)
char :: P.Parser Char
char = P.anyChar
upalpha = P.upper
loalpha = P.lower
alpha = upalpha <!> loalp... | manyoo/Morakot | Parser.hs | bsd-3-clause | 3,404 | 1 | 13 | 882 | 1,078 | 540 | 538 | -1 | -1 |
-- NaturalNumbers.hs
-- | A module implementating the Natural Numbers within the Haskell
-- type system using the Peano-Dedekind Axioms for arithmetic.
module NaturalNumber where
-- | Data structure representing the natural number 0,
-- or a successor of a natural number.
data NaturalNumber = Zero | S NaturalNu... | grscheller/scheller-linux-archive | grok/Haskell/haskellIntroProgramming/PeanoArithmetic/NaturalNumbers.hs | bsd-3-clause | 2,956 | 0 | 11 | 894 | 620 | 323 | 297 | 53 | 1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, StandaloneDeriving, UndecidableInstances, OverloadedStrings #-}
module Network.IRC.Bot.BotMonad
( BotPartT(..)
, BotMonad(..)
, BotEnv(..)
, runBotPartT
, mapBotPartT
, maybeZero
) where
imp... | eigengrau/haskell-ircbot | Network/IRC/Bot/BotMonad.hs | bsd-3-clause | 2,931 | 0 | 15 | 604 | 997 | 552 | 445 | 63 | 1 |
-- | The method of moments can be used to estimate a number of commonly used distributions. This module is still under construction as I work out the best way to handle morphisms from the Moments3 type to types of other distributions. For more information, see the wikipedia entry: <https://en.wikipedia.org/wiki/Metho... | ehlemur/HLearn | src/HLearn/Models/Distributions/Univariate/Exponential.hs | bsd-3-clause | 1,881 | 0 | 12 | 328 | 479 | 262 | 217 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
------------------------------------------------------------------------------
-- |
-- Module : Data.XML.DTD.Render
-- Copyright : Suite Solutions Ltd., Israel 2011
-- (c) 2013 Montez Fitzpatrick
--
-- Maintainer : Montez Fitzpatrick <montezf@gmail.com>
-- Po... | m15k/hs-dtd-text | Data/XML/DTD/Render.hs | bsd-3-clause | 9,117 | 0 | 16 | 2,144 | 2,115 | 1,099 | 1,016 | 158 | 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 GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
module Duckling.TimeGrain.CA.Rules
( rules ) where
... | facebookincubator/duckling | Duckling/TimeGrain/CA/Rules.hs | bsd-3-clause | 1,161 | 0 | 11 | 259 | 271 | 172 | 99 | 25 | 1 |
module Win32Key where
import Win32Types
import GDITypes
import StdDIS
type VKey = DWORD
vK_LBUTTON :: VKey
vK_LBUTTON =
unsafePerformIO(
prim_Win32Key_cpp_vK_LBUTTON >>= \ (res1) ->
(return (res1)))
primitive prim_Win32Key_cpp_vK_LBUTTON :: IO (Word32)
vK_RBUTTON :: VKey
vK_RBUTTON =
unsafePerformIO(
... | OS2World/DEV-UTIL-HUGS | libraries/win32/Win32Key.hs | bsd-3-clause | 13,868 | 170 | 16 | 2,346 | 4,381 | 2,357 | 2,024 | -1 | -1 |
module Hib.Plugins.Piato (plugin) where
import Data.List (find)
import Data.Char (toLower)
import Hib.Types
import Text.XML.Light
import Network.HTTP (simpleHTTP, getResponseBody, getRequest)
type Restaurant = (String,String)
name :: String
name = "piato"
f :: Message -> IO String
f (Msg _ _ _) = parseMenu
plugin ... | keveri/hib | src/Hib/Plugins/Piato.hs | bsd-3-clause | 2,101 | 0 | 14 | 431 | 690 | 363 | 327 | 48 | 2 |
module Main
( main
) where
import Protolude
import Control.Monad.Log (Severity(..))
import Servant.QuickCheck
((<%>), createContainsValidLocation, defaultArgs, not500,
notLongerThan, serverSatisfies,
unauthorizedContainsWWWAuthenticate, withServantServer)
import Test.Tasty (defaultMain, Tes... | zchn/hi-ckev-in-servant | hi-ckev-in-servant-server/tests/Main.hs | bsd-3-clause | 939 | 0 | 12 | 180 | 246 | 139 | 107 | 29 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Rachel.Primitive (
-- * Primitives
-- | The list of every primitive entity.
allPrimitives
) where
import Rachel.Types
import Rachel.TH
import Control.Arrow (second)
import Data.Sound -- wavy
import Data.Sound.Core.Chunked
a, b, c :: Type
a = TVar "a"
b = TVar ... | Daniel-Diaz/rachel | Rachel/Primitive.hs | bsd-3-clause | 4,263 | 0 | 15 | 994 | 1,176 | 661 | 515 | 93 | 3 |
module EFA.Signal.Colour where
import qualified Data.Colour.Names as Colour
import Data.Colour.SRGB (sRGB24show)
import Data.Colour (Colour)
import qualified Data.Stream as Stream
import Data.Stream (Stream)
import EFA.Utility (zipWithTraversable)
import Data.Traversable (Traversable)
newtype Name = Name { unpackN... | energyflowanalysis/efa-2.1 | src/EFA/Signal/Colour.hs | bsd-3-clause | 3,587 | 0 | 147 | 666 | 1,058 | 546 | 512 | 161 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Auth ( Assertion (..)
, VerifierResponse (..)
, AuthToken (..)
, checkAssertion
, checkAuthToken
, parseAuthToken
, encryptAndSerialise
) where
import Control.Applicative ((<$>), (<*>))
import... | asayers/TaskAgent-web | src/Auth.hs | bsd-3-clause | 3,543 | 0 | 13 | 869 | 882 | 471 | 411 | 69 | 3 |
{-# LANGUAGE OverloadedStrings, RankNTypes #-}
module EventToElement (
eventToElementAll,
eventToElement,
showElement,
convert,
) where
import Data.Conduit
-- import Control.Arrow
import Control.Applicative
import Data.XML.Types
-- import Data.Text (Text)
import qualified Data.Text as T
import Control.Monad.IO.... | YoshikuniJujo/forest | subprojects/xmpp-tls-analysis/EventToElement.hs | bsd-3-clause | 5,011 | 28 | 17 | 953 | 1,561 | 769 | 792 | 108 | 7 |
{-# LANGUAGE FlexibleInstances #-}
module Data.Json.Pretty where
import JPrelude
import Data.Json.Path
import Data.Aeson.Lens
import Data.Text (Text, pack)
import Data.Scientific (Scientific(..))
class Pretty a where
pretty :: a -> Text
instance Pretty Path where
pretty = toText
instance Pretty (Path, String)... | Prillan/haskell-jsontools | src/Data/Json/Pretty.hs | bsd-3-clause | 1,190 | 0 | 11 | 256 | 491 | 263 | 228 | 34 | 1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleContexts #-}
module Text.RegExp.Matching where
import Data.Semiring
import Text.RegExp.Data
import Text.RegExp.Matching.Leftmost.Type
import Text.RegExp.Matching.Longest.Type
import Text.RegExp.Matching.LeftLong.Type
-- |
-- Checks whether a regular expression matches the... | sebfisch/haskell-regexp | src/Text/RegExp/Matching.hs | bsd-3-clause | 3,908 | 0 | 11 | 826 | 766 | 412 | 354 | 51 | 1 |
module Main where
--import Data.IORef
import System.Exit
import Test.QuickCheck
import Data.Graph.Inductive.Tree
import Data.Graph.Inductive.Graph
import Data.List (delete)
-- | Runs the test suite for the replay library
main :: IO ()
main = do
results <- return [True]
if and results
then return ()
else e... | zydeon/fglext | test/Test.hs | bsd-3-clause | 1,474 | 1 | 16 | 547 | 539 | 275 | 264 | 35 | 2 |
module Matterhorn.Clipboard
( copyToClipboard
)
where
import Prelude ()
import Matterhorn.Prelude
import Control.Exception ( try )
import qualified Data.Text as T
import System.Hclip ( setClipboard, ClipboardException(..) )
import Matterhorn.Types
copyToClipboa... | matterhorn-chat/matterhorn | src/Matterhorn/Clipboard.hs | bsd-3-clause | 922 | 0 | 21 | 294 | 213 | 110 | 103 | 24 | 4 |
{-# LANGUAGE DeriveGeneric, OverloadedStrings #-}
module HW06 where
import Data.Aeson
import Data.Monoid
import GHC.Generics
import qualified Data.ByteString.Lazy.Char8 as B
import qualified Data.Text as T
import qualified Data.Text.IO as T
| sm-haskell-users-group/cis-194 | src/Cis194/Hw/Week6.hs | bsd-3-clause | 244 | 0 | 4 | 32 | 47 | 34 | 13 | 8 | 0 |
{-# LANGUAGE TypeSynonymInstances #-}
-- | Make a Num String instance to allow
-- overloading of (+) to be addition and
-- concatenation
module NumString where
import Data.Char
import Data.List
instance Num String where
(+) = (++)
(*) a b = b ++ a ++ b
(-) a b = isSuffixOf b a ? take (leng... | dterei/Scraps | haskell/NumString.hs | bsd-3-clause | 556 | 0 | 11 | 169 | 193 | 107 | 86 | 15 | 1 |
{-# LANGUAGE OverloadedStrings, RankNTypes #-}
{-# OPTIONS_GHC -Wwarn #-}
-- | For practical examples see "Qualys.Cookbook.WasSearchScans".
module Qualys.WasScan
(
-- * Actions
getWasScanCount
, runWasSearchScans
, getWasScanDetail
, getWasScanStatus
, getWasScanResult
-- * Filters
... | ahodgen/qualys | Qualys/WasScan.hs | bsd-3-clause | 4,410 | 0 | 11 | 983 | 937 | 527 | 410 | 100 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- Haskell imports
import qualified Snap.Core as SC
import qualified Snap.Http.Server as SHS
-- My imports
import qualified Routes.FileUploadRoute as FUR
site :: SC.Snap ()
site = SC.route [("fileUpload", FUR.handle)]
main :: IO ()
main = SHS.quickHttpServe site... | sudohalt/HaskellFileServer | src/Main.hs | bsd-3-clause | 321 | 0 | 8 | 65 | 82 | 50 | 32 | 8 | 1 |
module Util where
import qualified Control.Exception as E
import System.Process
import System.IO (hClose)
import System.Exit
import Data.Text
import Data.Text.IO
system :: String -> IO Text
system cmd = E.mask $ \restore -> do
(Nothing, Just h, Nothing, pid) <- cre... | beni55/inject | src/Util.hs | mit | 683 | 0 | 23 | 198 | 227 | 117 | 110 | 20 | 2 |
{- |
Module : ./atermlib/src/ATerm/Lib.hs
Description : reexports modules needed for ATC generation
Copyright : (c) Klaus Luettich, Uni Bremen 2002-2004
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : non-portable (via imports)... | spechub/Hets | atermlib/src/ATerm/Lib.hs | gpl-2.0 | 866 | 0 | 5 | 158 | 53 | 36 | 17 | 13 | 0 |
{-# 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-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreateJob.hs | mpl-2.0 | 7,338 | 0 | 13 | 1,601 | 1,095 | 659 | 436 | 122 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-codedeploy/gen/Network/AWS/CodeDeploy/DeleteApplication.hs | mpl-2.0 | 3,156 | 0 | 9 | 653 | 357 | 218 | 139 | 49 | 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="hi-IN">
<title>Support for the Open API Specification | ZAP Extension</title>
<maps>
<homeI... | veggiespam/zap-extensions | addOns/openapi/src/main/javahelp/org/zaproxy/zap/extension/openapi/resources/help_hi_IN/helpset_hi_IN.hs | apache-2.0 | 1,000 | 85 | 52 | 164 | 406 | 214 | 192 | -1 | -1 |
{-# LANGUAGE Safe #-}
-----------------------------------------------------------------------------
-- |
-- Module : Text.Parsec.ByteString
-- Copyright : (c) Paolo Martini 2007
-- License : BSD-style (see the LICENSE file)
--
-- Maintainer : derek.a.elkins@gmail.com
-- Stability : provisional
-- Po... | aslatter/parsec | src/Text/Parsec/ByteString.hs | bsd-2-clause | 1,346 | 0 | 10 | 288 | 161 | 99 | 62 | 12 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Stack.Setup
( ... | k-bx/stack | src/Stack/Setup.hs | bsd-3-clause | 31,313 | 0 | 30 | 10,294 | 7,738 | 3,853 | 3,885 | 650 | 15 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
module HsFirelib (standardSpread) where
import qualified Language.C.Inline as C (include)
import qualified Language.C.Inline.Unsafe as C
import Foreign.C.Types
import Foreign.Ptr
import System.I... | albertov/behave-hs | test/HsFirelib.hs | bsd-3-clause | 4,370 | 0 | 23 | 1,193 | 872 | 488 | 384 | 65 | 1 |
{-# LANGUAGE BangPatterns, NamedFieldPuns, GeneralizedNewtypeDeriving #-}
module Distribution.Server.Features.Search.ExtractNameTerms (
extractPackageNameTerms,
extractModuleNameTerms,
) where
import Data.Text (Text)
import qualified Data.Text as T
import Data.Char (isUpper, isDigit)
import Data.List
import... | snoyberg/hackage-server | Distribution/Server/Features/Search/ExtractNameTerms.hs | bsd-3-clause | 4,522 | 0 | 16 | 1,156 | 1,478 | 760 | 718 | 108 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module ConversionTest (tests) where
import Test.Tasty
import Test.Tasty.HUnit
import DBus.UDisks2.Internal
import qualified DBus.UDisks2.Types as U
tests :: TestTree
tests = testGroup "Conversions" [errorTests]
errorTests :: TestTree
errorTests = testGroup "Errors"
[ testCase "... | rootzlevel/device-manager | test/ConversionTest.hs | bsd-3-clause | 463 | 0 | 9 | 63 | 88 | 52 | 36 | 12 | 1 |
{-
(c) The University of Glasgow 2006
Functions for working with the typechecker environment (setters, getters...).
-}
{-# LANGUAGE CPP, ExplicitForAll, FlexibleInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module TcRnMonad(
module TcRnMonad,
module TcRnTypes,
module IOEnv
) where
#... | elieux/ghc | compiler/typecheck/TcRnMonad.hs | bsd-3-clause | 54,762 | 63 | 25 | 17,259 | 12,730 | 6,628 | 6,102 | 889 | 5 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-ses/gen/Network/AWS/SES/GetSendStatistics.hs | mpl-2.0 | 3,563 | 0 | 10 | 707 | 396 | 242 | 154 | 52 | 1 |
{-# LANGUAGE RecordWildCards, TupleSections, CPP #-}
-- | Implements HTTP Basic Authentication.
--
-- This module may add digest authentication in the future.
module Network.Wai.Middleware.HttpAuth
( -- * Middleware
basicAuth
, basicAuth'
, CheckCreds
, AuthSettings
, authRealm
, authOnNoA... | creichert/wai | wai-extra/Network/Wai/Middleware/HttpAuth.hs | mit | 4,037 | 0 | 14 | 1,046 | 737 | 420 | 317 | 79 | 4 |
--
-- 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... | eric-ch/idl | rpcgen/Template.hs | gpl-2.0 | 1,412 | 0 | 10 | 296 | 212 | 126 | 86 | 17 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.