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 DeriveGeneric #-}
module Distribution.Solver.Types.OptionalStanza
( OptionalStanza(..)
, enableStanzas
) where
import GHC.Generics (Generic)
import Distribution.Compat.Binary (Binary(..))
import Distribution.Simple.LocalBuildInfo (ComponentEnabledSpec(..), defaultComponentEnabled)
import Data.... | sopvop/cabal | cabal-install/Distribution/Solver/Types/OptionalStanza.hs | bsd-3-clause | 874 | 0 | 8 | 127 | 180 | 107 | 73 | 17 | 2 |
-- 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 #-}
module Duckling.Rules.MN
( defaultRules
, langRules
, localeRules
) where
impor... | facebookincubator/duckling | Duckling/Rules/MN.hs | bsd-3-clause | 1,806 | 0 | 9 | 236 | 488 | 280 | 208 | 39 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad.IO.Class
import Data.Aeson hiding (json)
import Network.HTTP.Types
import Web.Scotty
chrstmsly :: ScottyM ()
chrstmsly = do
get "/" showLandingPage
post "/register" register
post "/register" registrationFailure
showLandingPage :... | pfcuttle/twentyfour-2013 | src/scotty/Main.hs | bsd-3-clause | 1,129 | 0 | 15 | 260 | 328 | 165 | 163 | 35 | 2 |
module Eta.FFI
(module Eta.FFI
,module Eta.FFI.Spec
)
where
import Java
import Eta.FFI.Types
import Eta.FFI.Spec
import qualified Data.Text as T
import Data.Text.Lazy.Builder
import Data.Monoid
import Data.Maybe
import Data.Char
import Control.Monad
import qualified Data.Map as M
generateFFI :: FFISpec -> Class... | typelead/eta-ffi | src/Eta/FFI.hs | bsd-3-clause | 3,147 | 0 | 18 | 862 | 810 | 414 | 396 | 67 | 1 |
-- boilerplate {{{1
{-# LANGUAGE DeriveGeneric, DeriveDataTypeable, DeriveFoldable, DeriveFunctor, DeriveTraversable, FlexibleInstances, TypeSynonymInstances #-}
module Language.PiEtaEpsilon.Syntax where
import Control.Applicative
import Control.Monad.State
import Control.Monad.Trans
import Control.Monad.Writer hiding ... | dmwit/pi-eta-epsilon | src/Language/PiEtaEpsilon/Syntax.hs | bsd-3-clause | 4,487 | 42 | 17 | 1,335 | 1,376 | 789 | 587 | 115 | 1 |
{-# LANGUAGE FlexibleInstances, FlexibleContexts, GeneralizedNewtypeDeriving #-}
module Data.SGF.Parse.Encodings (guessEncoding, decodeWordStringExplicit) where
import Control.Exception.Extensible
import Control.Monad.State
import Control.Throws
import Data.Encoding
import Data.Word
type MyIHateGHC = MyEither Decodin... | dmwit/sgf | Data/SGF/Parse/Encodings.hs | bsd-3-clause | 1,843 | 0 | 13 | 393 | 523 | 273 | 250 | 35 | 2 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Run commands in a nix-shell
module Stack.Nix
(reexecWithOptionalShell
,nixCmdName
,nixHelpOptName
) where
i... | martin-kolinek/stack | src/Stack/Nix.hs | bsd-3-clause | 7,207 | 0 | 20 | 2,435 | 1,334 | 718 | 616 | 132 | 6 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
-------------------------------------------------------... | spinda/liquidhaskell | src/Language/Haskell/Liquid/Pipeline/ANFTransform.hs | bsd-3-clause | 9,483 | 0 | 18 | 2,629 | 2,755 | 1,399 | 1,356 | 188 | 3 |
{-# LANGUAGE TemplateHaskell, QuasiQuotes, NamedFieldPuns #-}
module Valkyria.Repo where
import Air.Extra
import Air.TH
import Air.UTF8 (mkdir_p, rm_rf)
import Control.Concurrent.STM
import Control.Monad hiding (join)
import Data.List hiding (length)
import Data.Map (Map)
import Database.HDBC
import Database.HDBC.Sq... | nfjinjing/source-code-server | src/Valkyria/Repo.hs | bsd-3-clause | 11,854 | 6 | 20 | 2,728 | 3,441 | 1,702 | 1,739 | -1 | -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.
module Duckling.Numeral.CA.Tests
( tests ) where
import Data.String
import Test.Tasty
import Duckling.Dimensi... | facebookincubator/duckling | tests/Duckling/Numeral/CA/Tests.hs | bsd-3-clause | 489 | 0 | 9 | 76 | 76 | 48 | 28 | 10 | 1 |
{-# LANGUAGE BangPatterns, RecordWildCards, NamedFieldPuns,
DeriveGeneric, DeriveDataTypeable, GeneralizedNewtypeDeriving,
ScopedTypeVariables #-}
-- | An experimental new UI for cabal for working with multiple packages
-------------------------------------------------------------------------... | gbaz/cabal | cabal-install/Distribution/Client/ProjectPlanOutput.hs | bsd-3-clause | 4,146 | 0 | 18 | 1,103 | 697 | 383 | 314 | 61 | 7 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE StandaloneDeriving #-}
module Data.TCache.ID
( ID(ID)
, WithID(WithID, _object, __ID)
, object, _ID
, fromKey
, new
, addNew
, Ref
, ... | ariep/TCache | src/Data/TCache/ID.hs | bsd-3-clause | 4,229 | 0 | 16 | 1,007 | 1,880 | 990 | 890 | 124 | 2 |
module Event where
import Data.ByteString
import Data.Serialize
data Event = Event {
aggregateId :: Integer
, aggregateVersion :: Integer
, uniqueId :: Integer
, timestamp :: Integer
, eventTypeId :: Int
, payload :: ByteString
} deriving (Show, Eq)
... | fatlazycat/eventjournal | src/Event.hs | bsd-3-clause | 600 | 0 | 10 | 222 | 207 | 103 | 104 | 27 | 0 |
import System.Environment (getArgs)
import Data.Bits (clearBit, setBit, testBit)
import Data.List (elemIndex)
import Data.Maybe (fromJust)
lowes :: Int -> Int
lowes i | testBit i 1 = 1
| otherwise = succ (lowes (div i 2))
lowest :: Int -> Int -> [[Int]] -> Int
lowest 0 _ [_, []] = 0
lowest i _ [w... | nikai3d/ce-challenges | easy/lowest_unique.hs | bsd-3-clause | 891 | 0 | 15 | 297 | 443 | 227 | 216 | 23 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Monad (forM_,
when)
import qualified Data.IntMap as IntMap (fromList)
import Syste... | ulricha/algebra-sql | src/Database/Algebra/SQL/Tools/Gen.hs | bsd-3-clause | 22,720 | 0 | 28 | 13,345 | 1,551 | 982 | 569 | 146 | 11 |
{-# LANGUAGE BangPatterns #-}
module Ant.Point where
data Point = Point
{ pointX :: {-# UNPACK #-} !Int
, pointY :: {-# UNPACK #-} !Int
}
deriving (Show, Ord, Eq)
data Size = Size {-# UNPACK #-} !Int
{-# UNPACK #-} !Int deriving (Show, Ord, Eq)
... | Saulzar/Ants | Ant/Point.hs | bsd-3-clause | 1,390 | 0 | 9 | 402 | 640 | 338 | 302 | 30 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Main where
import System.IO (stderr, hPutStrLn)
import System.Environment (getArgs)
import System.Exit (exitFailure)
import Control.Monad (when)
import Control.Lens
import qualified MiniC.Print as C
import Ling.Lex (Token)
import Ling.Par
import Ling.Abs
import Ling.Print
imp... | jyp/ling | Ling.hs | bsd-3-clause | 4,734 | 0 | 16 | 1,080 | 1,542 | 801 | 741 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
module JavaScript.Web.MessageEvent.Internal where
import Data.Typeable
import GHCJS.Types
newtype MessageEvent = MessageEvent JSVal deriving (Typeable)
| ghcjs/ghcjs-base | JavaScript/Web/MessageEvent/Internal.hs | mit | 192 | 0 | 6 | 22 | 34 | 22 | 12 | 5 | 0 |
module HyLoRes.Core.Serial ( runHyLoRes )
where
import Data.Foldable ( foldMap )
import Data.List ( sortBy )
import HyLoRes.Clause.BasicClause ( BasicClause )
import HyLoRes.Clause.SelFunction ( fromSelFuncString )
import HyLoRes.Clause ( size )
import HyLo.Signature ( getSignature )
import HyLoRes.Config ... | nevrenato/HyLoRes_Source | src/HyLoRes/Core/Serial.hs | gpl-2.0 | 1,396 | 0 | 14 | 332 | 349 | 200 | 149 | 30 | 1 |
module Log where
import System.IO.Unsafe (unsafePerformIO)
import System.IO (putStrLn)
slog :: (Show a) => String -> a -> a
slog s var = unsafePerformIO $ do
putStrLn $ s ++ ": " ++ show var
return var
nlog :: String -> a -> a
nlog s var = unsafePerformIO $ do
putStrLn s
return var
... | Chase-C/Flocking-Haskell | src/Log.hs | gpl-2.0 | 412 | 0 | 10 | 122 | 166 | 83 | 83 | 15 | 1 |
-- A strict general trie for types with orderings
module Trie
(
Trie,
-- * Construction
empty,
fromList, fromListWith,
insert, insertWith,
-- * Query
lookup, member,
-- * Destruction
toList
) where
import qualified Data.Map as Map
import Data.Maybe (fromMayb... | isido/functional-morphology-for-koine-greek | lib/Trie.hs | gpl-3.0 | 3,714 | 5 | 13 | 1,058 | 1,046 | 561 | 485 | 58 | 4 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- Load ... | AndrewRademacher/stack | src/Stack/Build/Source.hs | bsd-3-clause | 27,463 | 0 | 24 | 8,650 | 6,435 | 3,336 | 3,099 | -1 | -1 |
module Parser.Irssi.Log (
module A
) where
import Parser.Irssi.Log.JSON as A
import Parser.Irssi.Log.Regex as A
import Parser.Irssi.Log.Streaming.Raw as A
import Parser.Irssi.Log.Types as A
import Parser.Irssi.Log.Util.Export as A
import ... | redfish64/IrcScanner | src/Parser/Irssi/Log.hs | bsd-3-clause | 364 | 0 | 4 | 123 | 70 | 54 | 16 | 8 | 0 |
{-# OPTIONS -Wall #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Database.PostgreSQL.Base.Types
(ConnectInfo(..)
,Connection(..)
,Field(..)
,Result(..)
,Type(..)
,MessageType(..)
,Size(..)
,FormatCode(..)
,Modifier(..)
,ObjectId
,Pool(..)
,PoolState(..)
,ConnectionError(..))
where
import Co... | chrisdone/pgsql-simple | Database/PostgreSQL/Base/Types.hs | bsd-3-clause | 3,945 | 0 | 12 | 883 | 685 | 438 | 247 | 98 | 0 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE DeriveFunctor #-}
-----------------------------------------------------------------------------
-- |
-- Module : Text.ParserCombinators.ReadP
-- Copyright : (c) The University of... | rahulmutt/ghcvm | libraries/base/Text/ParserCombinators/ReadP.hs | bsd-3-clause | 14,780 | 1 | 17 | 3,863 | 3,796 | 1,958 | 1,838 | 221 | 6 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, FlexibleContexts, TypeOperators #-}
module Numeric.Additive.Group
( -- * Additive Groups
Group(..)
) where
import Data.Int
import Data.Word
import Prelude hiding ((*), (+), (-), negate, subtract,zipWith)
import qualified Prelude
import Numeric.Additive.Cla... | athanclark/algebra | src/Numeric/Additive/Group.hs | bsd-3-clause | 4,061 | 2 | 14 | 1,012 | 2,200 | 1,205 | 995 | 117 | 0 |
-------------------------------------------------------------------------------
-- |
-- Module : CCO.Tree.Parser.Validation
-- Copyright : (c) 2008 Utrecht University
-- License : All rights reserved
--
-- Maintainer : stefan@cs.uu.nl
-- Stability : provisional
-- Portability : portable
--
-- Provid... | UU-ComputerScience/uu-cco | uu-cco/src/CCO/Tree/Parser/Validation.hs | bsd-3-clause | 6,791 | 0 | 14 | 1,596 | 1,247 | 682 | 565 | 82 | 3 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="hi-IN">
<title>Linux WebDrivers</title>
<maps>
<homeID>top</homeID>
<mapref location="m... | kingthorin/zap-extensions | addOns/webdrivers/webdriverlinux/src/main/javahelp/org/zaproxy/zap/extension/webdriverlinux/resources/help_hi_IN/helpset_hi_IN.hs | apache-2.0 | 961 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
--------------------------------------------------------------------------------
-- | Top-level module exporting all modules that are interesting for the user
{-# LANGUAGE CPP #-}
module Hakyll
( module Hakyll.Core.Compiler
, module Hakyll.Core.Configuration
, module Hakyll.Core.File
, module Hakyll.Cor... | oldmanmike/hakyll | src/Hakyll.hs | bsd-3-clause | 2,189 | 0 | 5 | 523 | 362 | 256 | 106 | 54 | 0 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for the types representing DRBD status -}
{-
Copyright (C) 2012 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions ... | leshchevds/ganeti | test/hs/Test/Ganeti/Storage/Drbd/Types.hs | bsd-2-clause | 5,882 | 0 | 18 | 1,446 | 1,308 | 663 | 645 | 132 | 1 |
module ShouldFail where
-- !!! inadvertently using -> instead of =>
f :: (RealFrac a) -> a -> a
f x = x
| forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/typecheck/should_fail/tcfail057.hs | bsd-3-clause | 106 | 0 | 7 | 25 | 32 | 18 | 14 | 3 | 1 |
{-# LANGUAGE TemplateHaskell
, TypeFamilies
, OverloadedStrings #-}
-- This model defines the structure of the source model. The root is `Model`.
-- It is assumed that the put behaviour updating this model will not directly
-- modify model elements, but add them to the `Addition` or `Deletion` lists,
-- as appropriate... | prl-tokyo/MAPE-knowledge-base | Haskell/source/SourceModel.hs | mit | 5,840 | 0 | 21 | 2,023 | 1,219 | 657 | 562 | -1 | -1 |
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
module Main where
import Control.Monad
import Control.Monad.State.Strict
import qualified Data.Vector as V
import qualified Data.Vector.Unboxed as U
import Numeric.MCMC.Flat
lRosenbrock :: Density
lRosenbrock xs =
let [x0, x1] = U.toList xs
in (-1) * (5 * (x1 - x0 ^ 2... | jtobin/flat-mcmc | test/Tests.hs | mit | 876 | 0 | 16 | 179 | 323 | 188 | 135 | 26 | 1 |
import XMonad
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageHelpers
import XMonad.Util.EZConfig
import XMonad.Util.NamedScratchpad
import qualified XMonad.StackSet as W
main :: IO ()
main = xmonad $ defaultConfig
{ terminal = "urxvtc" }
| KyleOndy/.dotfiles | tag-gui/xmonad/xmonad.hs | mit | 254 | 0 | 7 | 33 | 63 | 39 | 24 | 9 | 1 |
-- | Implementation of the post processing step to calculate
-- tangents and bitangents for all imported meshes.
module Codec.Soten.PostProcess.CalcTangents (
apply
) where
import Control.Lens ((&), (^.), (%~), (.~))
import qualified Data.Vector as V
import Linear (V3(..), normalize, cross)
im... | triplepointfive/soten | src/Codec/Soten/PostProcess/CalcTangents.hs | mit | 3,371 | 0 | 18 | 1,088 | 1,058 | 582 | 476 | 61 | 1 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
import Library
import Test.Hspec
import Control.Monad.State
data MockArgsAndResult = MockArgsAndResult [String] String
deriving(Eq, Show)
instance SystemMonad (State MockArgsAndResult) where
getArgs = do
MockArgsAndResult args _ <... | michalc/hprintarg | test/LibrarySpec.hs | mit | 709 | 0 | 19 | 146 | 203 | 102 | 101 | 20 | 1 |
{-# LANGUAGE NoOverloadedStrings, NoImplicitPrelude, TypeSynonymInstances, GADTs, CPP #-}
{- | Description : Wrapper around GHC API, exposing a single `evaluate` interface that runs
a statement, declaration, import, or directive.
This module exports all functions used for evaluation of IHaskell inp... | gibiansky/IHaskell | src/IHaskell/Eval/Evaluate.hs | mit | 57,971 | 0 | 32 | 16,613 | 11,004 | 5,544 | 5,460 | 920 | 29 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.CryptoNote.Transaction.Input where
import Network.CryptoNote.Crypto.Types (KeyImage)
import Data.Word (Word64)
import Data.Aeson
import Data.Aeson.Types (typeMismatch)
import GHC.Generics
-- cryptonote_core/cryptonote_basic.h
data T... | nvmd/hs-cryptonote | src/Network/CryptoNote/Transaction/Input.hs | mit | 2,867 | 0 | 13 | 613 | 413 | 236 | 177 | 37 | 0 |
module Day6.Day6 where
import Control.Monad (forM, forM_)
import Control.Monad.Primitive (PrimMonad (..), PrimState (..))
import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.Unboxed.Mutable as VM
data LightAction = TurnOn | TurnOff | Toggle deriving Sho... | brsunter/AdventOfCodeHaskell | src/Day6/Day6.hs | mit | 1,946 | 0 | 15 | 535 | 692 | 360 | 332 | 45 | 2 |
module Y2018.M11.D02.Solution where
{--
From @fermatslibrary:
Every odd integer is the difference of 2 squares
Proof:
1) Pick an odd number
░░ ░░ ░░ ░░ ░░
2) Bend it in half
░░ ░░ ░░
░░
░░
3) Fill in the rest
░░ ░░ ░░
░░ ▓▓ ▓▓
░░ ▓▓ ▓▓
The odd nbr is the area difference of the big and small squares
tweet url: htt... | geophf/1HaskellADay | exercises/HAD/Y2018/M11/D02/Solution.hs | mit | 1,140 | 0 | 13 | 182 | 126 | 71 | 55 | 10 | 1 |
module GHCJS.DOM.MediaTrackConstraints (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/MediaTrackConstraints.hs | mit | 51 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
{-|
Copyright: (c) Guilherme Azzi, 2014
License: MIT
Maintainer: ggazzi@inf.ufrgs.br
Stability: experimental
A 'Monitor' used for synchronization/timing.
This module is meant to be imported qualified, e.g.:
> import qualified Reactive.Banana.Monitors.Tick as T
-}
{-# LANGUAGE TypeFamilies #-}
module Reactive.Bana... | ggazzi/hzen | src/Reactive/Banana/Monitors/Tick.hs | mit | 892 | 0 | 9 | 169 | 158 | 92 | 66 | 15 | 1 |
{-# LANGUAGE BangPatterns #-}
module Okasaki (ordNub, ordNubStrictAcc) where
data Color = R | B deriving Show
data RB a = E | T Color (RB a) a (RB a) deriving Show
{- Insertion and membership test as by Okasaki -}
insertRB :: (a -> a -> Ordering) -> a -> RB a -> RB a
insertRB cmp x s =
T B a z b
where
T _... | nh2/haskell-ordnub | Okasaki.hs | mit | 1,751 | 0 | 12 | 618 | 1,018 | 509 | 509 | 44 | 7 |
module Bippy.Test.Proto
( arbitraryPaymentDetails
) where
import Data.ByteString (pack)
import Data.String (fromString)
import Haskoin.Constants (Network)
import Bippy (createPaymentDetails)
import Bippy.Proto
import Bippy.Types
import Bippy.Test.Types
import Test.QuickCheck
( Gen
, arbitrary
, listOf
)
imp... | aftok/bippy | src/Bippy/Test/Proto.hs | mit | 861 | 0 | 10 | 129 | 229 | 124 | 105 | 24 | 1 |
{-
-}
module Main
( main )
where
{- Standard Library Modules Imported -}
import Control.Arrow
( second )
import Control.Monad
( unless )
import Data.List
( intercalate
, find
)
import System.Cmd
( system )
import System.Console.GetOpt
( getOpt
, usageInfo
, ArgOrder ( .. )
, OptDescr ( .. )... | allanderek/ipclib | size/Sizes.hs | gpl-2.0 | 24,040 | 0 | 17 | 9,796 | 4,210 | 2,327 | 1,883 | 436 | 8 |
module Tests.Old (tests) where
import Test.Framework (testGroup, Test )
import Test.Framework.Providers.HUnit
import Test.HUnit ( assertBool )
import System.Environment.Executable (getExecutablePath)
import System.IO ( openTempFile, stderr )
import System.Process ( runProcess, waitForProcess )
import System.FilePath (... | bgamari/pandoc | tests/Tests/Old.hs | gpl-2.0 | 11,521 | 0 | 20 | 3,368 | 2,926 | 1,587 | 1,339 | 217 | 5 |
{- |
mtlstats
Copyright (C) 1984, 1985, 2019, 2020, 2021 Rhéal Lamothe
<rheal.lamothe@gmail.com>
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) ... | mtlstats/mtlstats | src/Mtlstats/Control/NewGame/GoalieInput.hs | gpl-3.0 | 1,969 | 0 | 14 | 321 | 316 | 168 | 148 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- Copyright (C) 2010-2012 John Millikin <jmillikin@gmail.com>
--
-- 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 v... | tmishima/haskell-dbus | tests/DBusTests/Serialization.hs | gpl-3.0 | 5,902 | 50 | 13 | 1,145 | 1,653 | 894 | 759 | 142 | 1 |
-- This file is part of KSQuant2.
-- Copyright (c) 2010 - 2011, Kilian Sprotte. All rights reserved.
-- 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
-- (... | kisp/ksquant2 | Measure.hs | gpl-3.0 | 10,750 | 0 | 19 | 3,336 | 3,427 | 1,835 | 1,592 | 216 | 5 |
{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
module Web where
import Control.Monad (mzero)
import Control.Monad.Trans (liftIO)
import Data.Text.Lazy (unpack)
import Happstack.Lite (ServerPart, Response, toResponse, ok, lookText)
import Text.Blaze.Html5 (Html)
import qualified Helpers as H
import qualified... | phunehehe/cmanager | src/Web.hs | mpl-2.0 | 2,523 | 0 | 15 | 560 | 663 | 335 | 328 | 46 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-datastore/gen/Network/Google/Resource/Datastore/Projects/AllocateIds.hs | mpl-2.0 | 5,960 | 0 | 19 | 1,484 | 939 | 545 | 394 | 134 | 1 |
module Main (main) where
import Graphics.UI.Gtk
import Control.Monad.IO.Class (liftIO)
main :: IO ()
main = do
initGUI
-- Create a new window
window <- windowNew
-- Here we connect the "destroy" event to a signal handler.
on window objectDestroy mainQuit
-- Sets the border width of the window.
set wi... | juhp/gtk2hs | gtk/demo/buttonbox/ButtonBox.hs | lgpl-3.0 | 1,575 | 0 | 11 | 337 | 210 | 110 | 100 | 20 | 1 |
module Instance00002 where
newtype FooT m a = FooT { unFooT :: ReaderT Foo m a }
deriving newtype (Functor, MonadIO, Applicative, Monad, MonadTrans, MonadThrow, MonadCatch, MonadLogger, MonadMask, MonadResource)
deriving newtype instance MonadBase IO m => MonadBase IO (FooT m)
deriving newtype instance MonadBaseCon... | carymrobbins/intellij-haskforce | tests/gold/parser/Instance00002.hs | apache-2.0 | 428 | 0 | 7 | 66 | 152 | 79 | 73 | -1 | -1 |
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-}
module Case2 where
import Data.Either
import Debug.Trace
--------------------------
-- import LPTypes --
--------------------------
data Term = Const String
| Var String
deriving (Show, Eq)
type Atom = (String... | wouwouwou/2017_module_8 | src/haskell/FP_project/Case2.hs | apache-2.0 | 8,160 | 0 | 17 | 2,537 | 1,977 | 1,070 | 907 | 113 | 3 |
import Data.Char
-- increments counter for word in dictionary
-- if word doesn't exist then function adds it with counter equal to 1
-- in: [("First", 1), ("Second", 2)] "Second"
-- out: [("First", 1), ("Second", 3)]
increment_counter ((a,b):tail) word
| a==word = [(a, b+1)] ++ tail
| otherwise = [(a, b)] ++ i... | rybycy/HaskellStringSimilarity | projekt.hs | apache-2.0 | 2,646 | 32 | 12 | 429 | 795 | 411 | 384 | 46 | 2 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QAbstractItemModel_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:31
Warning : this file is machine generat... | uduki/hsQt | Qtc/Core/QAbstractItemModel_h.hs | bsd-2-clause | 130,290 | 363 | 19 | 29,240 | 42,092 | 20,136 | 21,956 | -1 | -1 |
-- http://www.codewars.com/kata/55192f4ecd82ff826900089e
module Codewars.Kata.Watermelon where
import Control.Arrow
divide :: Integer -> Bool
divide = uncurry (&&) . ((> 2) &&& even)
| Bodigrim/katas | src/haskell/8-Watermelon.hs | bsd-2-clause | 185 | 0 | 8 | 23 | 47 | 29 | 18 | 4 | 1 |
--
-- Copyright (c) 2013, Carl Joachim Svenn
-- 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... | karamellpelle/MEnv | source/Game.hs | bsd-2-clause | 1,832 | 0 | 5 | 384 | 121 | 87 | 34 | 18 | 0 |
module Mbrot where
import Codec.Picture.Types
import Coloring
import Control.Arrow ((***))
import Data.Complex
import ImageOutput
-- |Size parameters
size :: (Int,Int)
size = (1400,800)
-- |Floating point size, calculated
sizef :: (Float,Float)
sizef = (fromInte... | veniversum/fractal-haskell | src/Mbrot.hs | bsd-3-clause | 3,614 | 0 | 17 | 1,262 | 1,071 | 564 | 507 | 72 | 2 |
{-# LANGUAGE MultiParamTypeClasses, GeneralizedNewtypeDeriving, DeriveDataTypeable #-}
-- | These are the additional rule types required by Makefile
module Development.Make.Rules(
need_, want_,
defaultRuleFile_,
(??>), Phony(..)
) where
import Control.Monad.IO.Class
import System.Directory
import Dev... | nh2/shake | Development/Make/Rules.hs | bsd-3-clause | 1,877 | 0 | 15 | 360 | 542 | 293 | 249 | 36 | 3 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Astro.Trajectory.Cropped ( Cropped
, cropStart, cropEnd, crop
, cropStart', cropEnd', crop'
) where
import Data.Maybe (fromMaybe)
import As... | bjornbm/astro | src/Astro/Trajectory/Cropped.hs | bsd-3-clause | 3,094 | 0 | 11 | 860 | 1,199 | 597 | 602 | 52 | 1 |
module SampleInput
where
-- |The input provided by the specification.
-- (Implemented as a list of strings rather than a multiline string with back slashes)
overallInput :: String
overallInput = unlines [
"5 5",
"1 2 N",
"LMLMLMLMM",
"3 3 E",
"MMRMMRMRRM"
... | garethrowlands/marsrover | src/SampleInput.hs | bsd-3-clause | 323 | 0 | 6 | 108 | 34 | 22 | 12 | 8 | 1 |
-- | Various helper functions used to read/write module files.
module Util (
getAtOffset
, getByMask
, getToLimit
) where
import Data.Binary.Get
import Data.Bits
-- | Run the given decoder at an offset (counting from the start) without consuming its input.
getAtOffset :: ... | riottracker/modfile | src/Util.hs | bsd-3-clause | 1,033 | 0 | 13 | 292 | 289 | 151 | 138 | 16 | 2 |
{-# LANGUAGE TemplateHaskell #-}
module MC.Protocol.Fields
( byte
, ubyte
, short
, int
, long
, float
, double
, string
, bool
, point
, intPoint
, blockPos
, blockPosShortY
, blockPosIntY
, playerPos
, playerPosXSYZ
, chunkPos
, direction
, byteDirection
, byteOrientation
, ... | ehird/mchost | MC/Protocol/Fields.hs | bsd-3-clause | 5,512 | 0 | 6 | 1,133 | 1,454 | 949 | 505 | 182 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Cauterize.Crucible.Prototypes
( PrototypeVariant(..)
, parsePrototypeVariant
, parsePrototypeVariants
, protoVarToStr
, allPrototypeVariants
) where
import qualified Data.Text as T
import Cauterize.Generate
import Data.String
parsePrototypeVariant :: Monad m => T.... | cauterize-tools/crucible | lib/Cauterize/Crucible/Prototypes.hs | bsd-3-clause | 1,430 | 0 | 11 | 203 | 327 | 167 | 160 | 35 | 1 |
module Singletons.Classes2 where
import Data.Ord.Singletons (EQSym0, LTSym0, GTSym0, Sing(..))
import Data.Singletons.Base.TH
import Language.Haskell.TH.Desugar
import Prelude hiding (const)
import Singletons.Classes
import Singletons.Nat
$(singletons [d|
-- tests promotion of class instances when the class was de... | goldfirere/singletons | singletons-base/tests/compile-and-dump/Singletons/Classes2.hs | bsd-3-clause | 632 | 0 | 7 | 110 | 77 | 50 | 27 | -1 | -1 |
module Main.Hoge where
hoge :: String
hoge = "hoge"
| YoshikuniJujo/papillon | test/Main/Hoge.hs | bsd-3-clause | 53 | 0 | 4 | 10 | 16 | 10 | 6 | 3 | 1 |
{-# OPTIONS_GHC -fno-warn-tabs #-}
import Common
import Padding
import Data.Maybe
import Test.QuickCheck
main = do
putStrLn "=== Challange9 ==="
quickCheck $ \bs v -> bs > 0 ==> fromJust (pkcs7Unpad (pkcs7Pad bs v)) === v
| andrewcchen/matasano-cryptopals-solutions | set2/Challange09.hs | bsd-3-clause | 228 | 0 | 15 | 41 | 72 | 37 | 35 | 8 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.Monitors.Cpu
-- Copyright : (c) Andrea Rossato
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Andrea Rossato <andrea.rossato@unibz.it>
-- Stability : unstable
-- Portability : unportable
... | neglectedvalue/xmobar-freebsd | Plugins/Monitors/Cpu.hs | bsd-3-clause | 1,523 | 0 | 12 | 384 | 424 | 228 | 196 | 32 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.PackageDescription.PrettyPrint
-- Copyright : Jürgen Nicklisch-Franken 2010
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Stability : provisional
-- Portability : portable
--
--... | sopvop/cabal | Cabal/Distribution/PackageDescription/PrettyPrint.hs | bsd-3-clause | 16,250 | 0 | 17 | 4,157 | 4,232 | 2,155 | 2,077 | 276 | 6 |
--------------------------------------------------------------------------------
-- Haskinator.hs --
-- --
-- Autor: Carlos Aponte 09-10041 ... | donatorolo/haskinator | Haskinator.hs | bsd-3-clause | 12,105 | 4 | 17 | 2,834 | 1,719 | 838 | 881 | -1 | -1 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.Core31
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portab... | haskell-opengl/OpenGLRaw | src/Graphics/GL/Core31.hs | bsd-3-clause | 48,011 | 0 | 5 | 6,765 | 7,890 | 4,875 | 3,015 | 1,841 | 0 |
{-# LANGUAGE QuasiQuotes #-}
import LiquidHaskell
import qualified ResolveA as RA
import qualified ResolveB as RB
[lq| x :: {v:RB.Bar | ((v = RB.B) && (NotA v))} |]
x = RB.B
| spinda/liquidhaskell | tests/gsoc15/unknown/pos/Resolve.hs | bsd-3-clause | 181 | 0 | 5 | 38 | 31 | 22 | 9 | 6 | 1 |
module HuttonRazor where
data Expr = Lit Integer | Add Expr Expr
eval :: Expr -> Integer
eval (Lit n) = n
eval (Add expr1 expr2) = eval expr1 + eval expr2
instance Show Expr where
show (Lit n) = show n
show (Add expr1 expr2) = show expr1 ++ " + " ++ show expr2
printExpr :: Expr -> String
printExpr = show
| chengzh2008/hpffp | src/ch11-AlgebraicDataTypes/huttonRazor.hs | bsd-3-clause | 314 | 0 | 8 | 72 | 138 | 70 | 68 | 10 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
-- only instances are exported
module Web.Leo.Json(encode) where
import Web.Leo.Types
import Data.Aeson
import Data.Aeson.Types
import qualified Data.Text as T
instance ToJSON Language where
toJSON l = String $ T.pack $ show l
instance ToJSON... | krgn/leo | src/Web/Leo/Json.hs | bsd-3-clause | 1,229 | 0 | 12 | 364 | 418 | 223 | 195 | 25 | 0 |
module Day6 where
import Data.List (group, maximumBy, minimumBy, sort,
transpose)
import Data.Ord
import Text.Megaparsec
import Text.Megaparsec.String
messagesP :: Parser [String]
messagesP = many lowerChar `endBy` newline
... | liff/adventofcode-2016 | app/Day6.hs | bsd-3-clause | 732 | 0 | 13 | 204 | 237 | 123 | 114 | 19 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
-- Module : Hasmin.Types.RepeatStyle
-- Copyright : (c) 2017 Cristian Adrián Ontivero
-- License : BSD3
-- Stability : experimental
-- Portability : unknown
--
-----------------------------... | contivero/hasmin | src/Hasmin/Types/RepeatStyle.hs | bsd-3-clause | 3,037 | 0 | 11 | 652 | 761 | 377 | 384 | 57 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeFamilies #-}
#if __GLASGOW_HASKELL__ >= 702
{-# LANGUAGE DeriveGeneric #-}
#endif
-- | A data type similar to @Data.Either@ that accumulates failures.
module Data.Validation
(
-- * Data type
Validation(..)... | NICTA/validation | src/Data/Validation.hs | bsd-3-clause | 10,602 | 0 | 14 | 2,382 | 2,823 | 1,508 | 1,315 | 244 | 2 |
{-# language CPP #-}
-- | = Name
--
-- XR_KHR_composition_layer_cube - instance extension
--
-- = Specification
--
-- See
-- <https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html#XR_KHR_composition_layer_cube XR_KHR_composition_layer_cube>
-- in the main specification for complete information.
--
-- = Re... | expipiplus1/vulkan | openxr/src/OpenXR/Extensions/XR_KHR_composition_layer_cube.hs | bsd-3-clause | 8,768 | 0 | 14 | 1,490 | 1,541 | 908 | 633 | -1 | -1 |
factor :: Integer -> Integer
factor n
| n < 2 = 1
| otherwise = head $ filter ((== 0) . (n `mod`)) [2 ..]
squares :: [Integer]
squares = map (^ 2) [0 ..]
| YoshikuniJujo/funpaala | samples/10_repetition/infinite.hs | bsd-3-clause | 157 | 0 | 10 | 39 | 93 | 52 | 41 | 6 | 1 |
module Text.ICalendar
( fromFile
, fromString
) where
import Text.Parsec
import Text.Parsec.Error
import Text.ICalendar.Parser (iCalendar)
import Text.ICalendar.Component.VCalendar (VCalendar)
type ICalendar = Either ParseError VCalendar
fromFile :: String -> IO ICalendar
fromFile path = readFile path >>= return . ... | begriffs/iCalendar | src/Text/ICalendar.hs | bsd-3-clause | 407 | 0 | 7 | 54 | 109 | 62 | 47 | 12 | 1 |
isInt :: RealFrac a => a -> Bool
isInt n = fromInteger (round n) == n
penta :: Fractional a => a -> a
penta n = (n * ((n * 3) - 1)) / 2
unpenta :: Floating a => a -> a
unpenta n = ((sqrt (1 + (24 * n)) + 1) / 6)
pentas :: [Double]
pentas = [(penta x) | x <- [1..]]
minimize :: [Integer]
minimize = [round (abs $ k - ... | JacksonGariety/euler.hs | 044.hs | bsd-3-clause | 504 | 0 | 15 | 142 | 311 | 163 | 148 | 14 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Generics.Pointless.RecursionPatterns
-- Copyright : (c) 2008 University of Minho
-- License : BSD3
--
-- Maintainer : hpacheco@di.uminho.pt
-- Stability : experimental
-- Portability : non-portable
--
-- ... | d-day/relation | include/pointfree-style/pointless-haskell-0.0.8/src/Generics/Pointless/RecursionPatterns.hs | bsd-3-clause | 10,437 | 0 | 16 | 2,077 | 2,633 | 1,407 | 1,226 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Copyright : (c) 2014 Ricky Elrod
-- License : BSD3
--
-- Maintainer : Ricky Elrod <ricky@elrod.me>
-- Stability : experimental
--
-- Provides a Haskell interface to the
-- <https://apps.fedoraproject.org/packages Fedora Packages> API.... | relrod/fedora-packages-hs | src/Fedora/Packages.hs | bsd-3-clause | 1,794 | 0 | 4 | 266 | 101 | 85 | 16 | 8 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Language.JavaScript.LexerUtils
-- Based on language-python version by Bernie Pope
-- Copyright : (c) 2009 Bernie Pope
-- License : BSD-style
-- Stability : experimental
-- Portability : ghc
--
-- Various utilitie... | alanz/language-javascript | src/Language/JavaScript/Parser/LexerUtils.hs | bsd-3-clause | 1,818 | 0 | 10 | 322 | 456 | 248 | 208 | 33 | 1 |
-- | Generate bootstrap transactions for the DSL
module UTxO.Bootstrap (
bootstrapTransaction
, isBootstrapTransaction
) where
import Data.Bifunctor (bimap)
import qualified Data.Set as Set
import Universum
import Pos.Core
import UTxO.Context
import qualified UTxO.DSL ... | input-output-hk/pos-haskell-prototype | utxo/src/UTxO/Bootstrap.hs | mit | 4,431 | 0 | 12 | 1,016 | 310 | 203 | 107 | -1 | -1 |
import System.IO
--main = do
-- handle <- openFile "girlfriend.txt" ReadMode
-- contents <- hGetContents handle
-- putStr contents
-- hClose handle
--main = do
-- withFile "girlfriend.txt" ReadMode (\handle -> do
-- contents <- hGetContents handle
-- putStr contents)
withFile' :: FilePat... | zxl20zxl/learnyouahaskell | girlfriend.hs | mit | 552 | 0 | 10 | 138 | 112 | 55 | 57 | 10 | 1 |
module Grasph.Algorithm.MWST where
import Data.List ( nub
, sortBy )
import qualified Data.Map.Strict as M
import Grasph.Graph
import Grasph.Misc.Infinity
kruskal :: (Ord w, Eq w, Eq v, Eq d) => Graph v w d -> Graph v w d
kruskal g = kruskal' sortedEdges (g {vertices = [], edges = []})
wher... | MortimerMcMire315/grasph | src/Grasph/Algorithm/MWST.hs | gpl-3.0 | 2,253 | 0 | 13 | 764 | 1,054 | 540 | 514 | 48 | 2 |
{-# LANGUAGE Trustworthy #-}
module Network.Tox.Protocol.PacketSpec where
import Test.Hspec
import Data.Proxy (Proxy (..))
import Data.Word (Word64)
import Network.Tox.EncodingSpec
import Network.Tox.Protocol.Packet (Pac... | iphydf/hs-toxcore | test/Network/Tox/Protocol/PacketSpec.hs | gpl-3.0 | 752 | 0 | 14 | 197 | 201 | 112 | 89 | 17 | 1 |
-----------------------------------------------------------------------------
-- |
-- License : BSD-3-Clause
-- Maintainer : Oleg Grenrus <oleg.grenrus@iki.fi>
--
module GitHub.Data.Comments where
import GitHub.Data.Definitions
import GitHub.Data.Id (Id)
import GitHub.Data.URL (URL)
import GitH... | jwiegley/github | src/GitHub/Data/Comments.hs | bsd-3-clause | 2,751 | 0 | 29 | 735 | 760 | 407 | 353 | 103 | 0 |
module FailureSpec ( failureSpec ) where
import TestInit
failureSpec :: Spec
failureSpec = do
let discardException action = shellyFailDir $ catchany_sh action (\_ -> return ())
describe "failure set to stderr" $
it "writes a failure message to stderr" $ do
shellyFailDir $ discardException $
lif... | adinapoli/Shelly.hs | test/src/FailureSpec.hs | bsd-3-clause | 900 | 0 | 16 | 275 | 239 | 107 | 132 | 24 | 1 |
module Main where
import Graphics.X11.Turtle
import System.Environment
import Control.Concurrent
import Control.Monad
import Data.Word
type Color = String
main :: IO ()
main = do
n <- fmap (read . head) getArgs
f <- openField
onkeypress f $ return . (/= 'q')
t <- newTurtle f
penup t
threadDelay 1000000
h <- w... | YoshikuniJujo/wxturtle | tests/fizzBuzzColorName.hs | bsd-3-clause | 1,026 | 0 | 13 | 242 | 539 | 268 | 271 | 41 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
module Test.Foundation.Array
( testArrayRefs
) where
import Control.Monad
import Foundation
import Foundation.Collection
impor... | vincenthz/hs-foundation | foundation/tests/Test/Foundation/Array.hs | bsd-3-clause | 3,485 | 0 | 17 | 703 | 1,131 | 586 | 545 | 54 | 1 |
caesar :: [Char] -> [Char]
caesar s = [if i /= 'z' then (if i /= 'Z' then (succ i) else 'A') else 'a'| i <- s]
caesarn s n = iterate caesar s !! n
main = print (caesarn "zbcd" 5) | manikTharaka/al-go-rithms | cryptography/caesar_cipher/haskell/caesar_cipher.hs | mit | 179 | 0 | 10 | 42 | 103 | 55 | 48 | 4 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-sqs/gen/Network/AWS/SQS/ChangeMessageVisibility.hs | mpl-2.0 | 6,201 | 0 | 9 | 1,243 | 493 | 312 | 181 | 60 | 1 |
-- | This package provides extensive control of page headers and footers.
--
-- CTAN page for fancyhdr: <http://www.ctan.org/pkg/fancyhdr>.
module Text.LaTeX.Packages.Fancyhdr (
-- * fancyhdr package
fancyhdr
-- * Simple interface
, HdrSettings (..)
, defaultHdrSettings
, applyHdrSettings
-- * Raw inter... | dmcclean/HaTeX | Text/LaTeX/Packages/Fancyhdr.hs | bsd-3-clause | 3,884 | 0 | 16 | 884 | 707 | 408 | 299 | 72 | 1 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.IndexUtils
-- Copyright : (c) Duncan Coutts 2008
-- License : BSD-like
--
-- Maintainer : duncan@community.haskell.org
-- Stability : provisional
-- Portability : p... | corngood/cabal | cabal-install/Distribution/Client/IndexUtils.hs | bsd-3-clause | 24,210 | 0 | 21 | 6,367 | 4,971 | 2,583 | 2,388 | 413 | 11 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
module Aws.Iam.Commands.ListUsers
( ListUsers(..)
, ListUsersResponse(..)
, User(..)
) where
import Aws.Core
import Aws.Iam.Cor... | RayRacine/aws | Aws/Iam/Commands/ListUsers.hs | bsd-3-clause | 2,751 | 0 | 13 | 750 | 445 | 254 | 191 | 50 | 0 |
module T10279 where
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
-- NB: rts-1.0 is used here because it doesn't change.
-- You do need to pick the right version number, otherwise the
-- error message doesn't recognize it as a source package ID,
-- (This is OK, since it will look obviously wrong when t... | ezyang/ghc | testsuite/tests/th/T10279.hs | bsd-3-clause | 473 | 0 | 13 | 76 | 70 | 41 | 29 | -1 | -1 |
{-# OPTIONS_GHC -XRecordWildCards -XNamedFieldPuns #-}
-- This is a very partial test of the record-wildcard extension
-- but better than nothing
module Main where
data T = C { x :: Int, y :: Int }
| D { x :: Int, b :: Bool }
select :: T -> Int
select = x
f :: (T,T) -> Int
f v = let (C {..}, d) = v in Main.... | urbanslug/ghc | testsuite/tests/deSugar/should_run/dsrun015.hs | bsd-3-clause | 613 | 0 | 13 | 206 | 322 | 170 | 152 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.