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 OverloadedStrings #-}
import Data.Monoid (mappend)
import Control.Monad (liftM)
import Data.Char (toUpper)
import Hakyll
---------------------------------------------------------------... | i-amd3/didy-xyz | site.hs | bsd-3-clause | 3,681 | 0 | 27 | 1,189 | 830 | 394 | 436 | 77 | 1 |
module Game where
import Graphics.Gloss
import Graphics.Gloss.Interface.Pure.Game
import System.Random
import Block
import Tile
import KeyPress
data Game = Game
{
currentBlock :: Block,
nextBlock :: Block,
landedBlocks :: [Block],
keyPress :: KeyPress,
score :: Int,
level :: Int,
gen ::... | bmh10/haskell-tetris | Game.hs | bsd-3-clause | 5,492 | 6 | 17 | 1,144 | 1,938 | 1,011 | 927 | 110 | 3 |
{-# LANGUAGE NoImplicitPrelude, MultiParamTypeClasses #-}
import qualified Data.Foldable as F
import Data.Semigroup
import qualified Numeric.Natural as N
class F.Foldable f => SemiFoldable f where
fold :: Semigroup r => f r -> r
fold_map :: Semigroup a => (a -> r) -> f a -> r
class Multiplicative r whe... | flux0r/random-variable | algebra.hs | bsd-3-clause | 999 | 0 | 10 | 271 | 423 | 217 | 206 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses, TypeSynonymInstances #-}
{- |
Module : XMonad.Layout.TrackFloating
Description : Track focus in the tiled layer.
Copyright : (c) 2010 & 2013 Adam Vogt
2011 Willem Vanlint
License : BSD-style (see xmonad/LICENSE)
Maintainer : vogt.adam@gmail.com
Stabi... | xmonad/xmonad-contrib | XMonad/Layout/TrackFloating.hs | bsd-3-clause | 4,841 | 0 | 17 | 1,104 | 694 | 364 | 330 | 43 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DeriveGeneric #-}
module Distribution.Nixpkgs.Fetch
( Source(..)
, Hash(..)
, DerivationSource(..), fromDerivationSource
, fetch
, fetchWith
) where
import Control.Applicative
import Contr... | Fuuzetsu/cabal2nix | src/Distribution/Nixpkgs/Fetch.hs | bsd-3-clause | 6,386 | 0 | 26 | 1,555 | 1,603 | 859 | 744 | 116 | 5 |
module Main where
import Network.Socket
import System.Environment
myHints::AddrInfo
myHints = defaultHints {addrSocketType = Stream}
main :: IO ()
main = do
args <- getArgs
case args of
[] -> putStrLn "Usage: showIP hostname"
(h:_) -> do
addrInfoList <- get... | danplubell/showip | src/Main.hs | bsd-3-clause | 511 | 0 | 17 | 170 | 159 | 80 | 79 | 14 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiWayIf #-}
module Render.Fast.Surf where
import Control.Lens ((.=), (^.), zoom, use, preuse, ix, (+=), (%=), _1, _2)
import Control.Monad (when, liftM, unless)
import Data.Bits ((.&.), (.|.), shiftR, shiftL)
import Data.Char (toUpper)
import Data.IORef (newIORef, IOR... | ksaveljev/hake-2 | src/Render/Fast/Surf.hs | bsd-3-clause | 45,948 | 9 | 27 | 14,313 | 12,394 | 6,220 | 6,174 | -1 | -1 |
{-# OPTIONS_GHC -fdefer-type-errors #-}
------------------------------------------------------------------------------
-- |
-- Module : Main
-- Stability : experimental
-- Portability : POSIX
--
------------------------------------------------------------------------------
module Main where
import Data.Proxy (P... | stepcut/safe-length | tests/Main.hs | bsd-3-clause | 1,326 | 0 | 14 | 228 | 292 | 164 | 128 | 22 | 1 |
----------------------------------------------------------------------------
-- |
-- Module : Import1NoListImport2WithListChildrenWildcardsReexportModule.ImportsEViaReexports
-- Copyright : (c) Sergey Vinokurov 2018
-- License : BSD3-style (see LICENSE)
-- Maintainer : serg.foo@gmail.com
---------------... | sergv/tags-server | test-data/0012resolve_reexport_import_cycles/import1NoListImport2WithListChildrenWildcardsReexportModule/ImportsEViaReexports.hs | bsd-3-clause | 505 | 0 | 6 | 57 | 49 | 36 | 13 | 3 | 0 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TemplateHaskell #-}
module Ling.Rename where
import Control.Lens
import Ling.Norm
import Ling.Prelude
data K = V | C | D
deriving (Eq)
data Ren f = Ren { _renName :: Ren f -> K -> EndoM f Name
... | np/ling | Ling/Rename.hs | bsd-3-clause | 8,062 | 0 | 16 | 2,227 | 3,299 | 1,599 | 1,700 | -1 | -1 |
--------------------------------------------------------------------------------
module Main
( main
) where
--------------------------------------------------------------------------------
import Control.Arrow (first)
import Control.Monad (forM_)
import Data.Char ... | beni55/hakyll | src/Hakyll/Init.hs | bsd-3-clause | 3,273 | 0 | 19 | 1,084 | 724 | 372 | 352 | 66 | 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. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
module Duckling.N... | rfranek/duckling | tests/Duckling/Numeral/Tests.hs | bsd-3-clause | 2,132 | 0 | 7 | 322 | 451 | 327 | 124 | 60 | 1 |
module Main (main) where
import Control.Monad
import Language.Haskell.HLint3
import System.Environment
import System.Exit
main :: IO ()
main = do
args <- getArgs
hints <- hlint $ ["src", "tests"] ++ args
unless (null hints) exitFailure
| xngns/lens-toml-parser | tests/HLint.hs | isc | 245 | 0 | 10 | 43 | 87 | 47 | 40 | 10 | 1 |
module Rendering
( -- * General rendering functions
render
, renderBlock
, renderBlocks
, renderHeader
) where
import qualified Data.Text as T
import Formatting hiding (bytes)
import Options (CLIOptions (..), PrintMode (..), UOM (..))
import Pos.Bina... | input-output-hk/pos-haskell-prototype | tools/src/blockchain-analyser/Rendering.hs | mit | 7,370 | 0 | 17 | 2,096 | 2,024 | 1,078 | 946 | -1 | -1 |
{- |
Module : ./Common/Percent.hs
Description : precent encode and decode
Copyright : (c) Christian Maeder, DFKI GmbH 2014
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
precent encode or decode URLs, URIs and IRSs vi... | spechub/Hets | Common/Percent.hs | gpl-2.0 | 2,007 | 0 | 16 | 375 | 453 | 243 | 210 | 39 | 3 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
----------------------------------------------... | spacekitteh/compdata | src/Data/Comp/Multi/HTraversable.hs | bsd-3-clause | 1,427 | 0 | 11 | 317 | 169 | 105 | 64 | 16 | 0 |
module Main where
-- This program is provided to convert an XML file containing a DTD
-- into a Haskell module containing data/newtype definitions which
-- mirror the DTD. Once you have used this program to generate your type
-- definitions, you should import Xml2Haskell wherever you intend
-- to read and write XML f... | alexbaluta/courseography | dependencies/HaXml-1.25.3/src/tools/DtdToHaskell.hs | gpl-3.0 | 2,869 | 0 | 20 | 679 | 796 | 425 | 371 | 59 | 5 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{- COPIED FROM http://hackage.haskell.org/package/altfloat-0.3.1
- Disabled Sortable instances for instances of Prelude.Ord -}
{-
- Copyright (C) 2009-2010 Nick Bowler.
-
- License BSD2: 2-clause BSD license. See LICENSE for full terms.
- This is free software: you are free ... | guoy34/ampersand | src/Database/Design/Ampersand/Core/Poset/Instances.hs | gpl-3.0 | 1,686 | 3 | 7 | 312 | 211 | 121 | 90 | -1 | -1 |
{-
Copyright 2015 Google Inc. 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 applicable law or a... | Ye-Yong-Chi/codeworld | codeworld-base/src/Foreign/Marshal/Alloc.hs | apache-2.0 | 757 | 0 | 4 | 136 | 25 | 19 | 6 | 4 | 0 |
-- | Utilities related to Monad and Applicative classes
-- Mostly for backwards compatability.
module MonadUtils
( Applicative(..)
, (<$>)
, MonadFix(..)
, MonadIO(..)
, liftIO1, liftIO2, liftIO3, liftIO4
, zipWith3M, zipWith3M_, zipWithAndUnzipM
, mapAndUn... | green-haskell/ghc | compiler/utils/MonadUtils.hs | bsd-3-clause | 6,010 | 6 | 12 | 1,630 | 2,492 | 1,332 | 1,160 | 105 | 2 |
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
-----------------------------------------------------------------------------
-- |
-- Module : Haddock.Backends.LaTeX
-- Copyright : (c) Simon Marlow 2010,
-- Mateusz Kowalczyk 2013
-- License : BSD-like
--
-- Maintainer : haddock@proj... | DavidAlphaFox/ghc | utils/haddock/haddock-api/src/Haddock/Backends/LaTeX.hs | bsd-3-clause | 42,632 | 0 | 22 | 10,169 | 12,041 | 6,082 | 5,959 | 743 | 10 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- | Generate haddocks
module Stack.Build.Haddock
... | juhp/stack | src/Stack/Build/Haddock.hs | bsd-3-clause | 12,665 | 0 | 30 | 4,167 | 2,434 | 1,243 | 1,191 | 249 | 6 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Language.Haskell.TH.Syntax
import Foreign.C.String
$(do
-- some targets (e.g. Darwin) require a "_" symbol prefix. Ideally we
-- could reuse FP_LEADING_UNDERSCORE from aclocal.m4 for this
-- somehow, but this hopefully is OK for ... | sdiehl/ghc | testsuite/tests/th/T16180.hs | bsd-3-clause | 767 | 0 | 11 | 166 | 96 | 55 | 41 | 14 | 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="fa-IR">
<title>Directory List v1.0</title>
<maps>
<homeID>directorylistv1</homeID>
<map... | thc202/zap-extensions | addOns/directorylistv1/src/main/javahelp/help_fa_IR/helpset_fa_IR.hs | apache-2.0 | 976 | 78 | 66 | 157 | 412 | 209 | 203 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import qualified Data.Text as Text
import Criterion.Main
import Turtle
boundedNaive :: Int -> Int -> Pattern a -> Pattern [a]
boundedNaive m n p = do
x <- choice (map pure [m..n])
count x p
main :: IO ()
main = defaultMain
[ bgroup "Pattern"
[ let ... | rpglover64/Haskell-Turtle-Library | bench/Main.hs | bsd-3-clause | 1,382 | 0 | 21 | 496 | 478 | 238 | 240 | 33 | 1 |
{-
(c) The University of Glasgow 2006
(c) The University of Glasgow, 1997-2006
Buffers for scanning string input stored in external arrays.
-}
{-# LANGUAGE CPP, MagicHash, UnboxedTuples #-}
{-# OPTIONS_GHC -O #-}
-- We always optimise this, otherwise performance of a non-optimised
-- compiler is severely affected
m... | ml9951/ghc | compiler/utils/StringBuffer.hs | bsd-3-clause | 8,320 | 0 | 21 | 1,983 | 1,965 | 1,026 | 939 | 149 | 3 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleInstances #-}
-- | Shared types for various stackage packages.
module ... | mathhun/stack | src/Stack/Types/BuildPlan.hs | bsd-3-clause | 14,546 | 0 | 17 | 4,344 | 3,662 | 1,960 | 1,702 | 344 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving, TemplateHaskell #-}
module Data.Store.Rev.Version
( VersionData, depth, parent, changes
, preventUndo
, Version, versionIRef, versionData
, makeInitialVersion, newVersion, mostRecentAncestor
, walkUp, walkDown, versionsBetween
) where
import Control.Applicative ((<$... | sinelaw/lamdu | bottlelib/Data/Store/Rev/Version.hs | gpl-3.0 | 4,326 | 0 | 15 | 850 | 1,345 | 684 | 661 | 86 | 5 |
-- Caused a crash in GHC 6.4 when optimising, due to inlining of runST too early.
-- Spectral Norm benchmark
import Data.Array
import System.Environment (getArgs)
main = do
--[arg] <- getArgs
--let n = (read arg) - 1
let n = 80
let init = listArray (0,n) (repeat 1.0)
let (v:u... | urbanslug/ghc | testsuite/tests/array/should_run/arr017.hs | bsd-3-clause | 900 | 0 | 14 | 266 | 460 | 242 | 218 | 18 | 1 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, TypeFamilies, OverloadedStrings #-}
module Aws.DynamoDb.Core.Conduit
( ConduitResponse
) where
import Data.Conduit (ConduitM)
import Control.Monad.Trans.Resource (ResourceT)
import Aws.Core
import Aws.DynamoDb.Core
import Aws.DynamoDb.Commands.Query
type C... | srijs/haskell-aws-dynamodb-conduit | src/Aws/DynamoDb/Core/Conduit.hs | mit | 372 | 0 | 7 | 45 | 79 | 50 | 29 | 9 | 0 |
module Crypto
(
bsSplit
,toHex
,fromHex
,toBase64
,fromBase64
,fixedXor
,fixedXorByte
,decodeSingleByteXor
,repeatingKeyXor
,hammingDistance
,decodeRepeatingKeyXor
,aesKey
,aesECBEncrypt
,aesECBDecrypt
,isAESInECB
,pkcs7Pad
,aesCBCEncrypt
,aesCBCDecrypt
,aesRandIV
,aesEncryptRandom
,aesByteAtATimeECBEncryptSimple
,aesB... | asib/cryptopals-haskell | Crypto.hs | mit | 20,432 | 0 | 17 | 5,668 | 7,384 | 3,908 | 3,476 | 439 | 4 |
module Gratte.Options.Add where
import Data.Char
import Data.List
import Gratte.Tag
import Gratte.Document
import Options.Applicative
import qualified Data.List.Split as SPL
import qualified Filesystem.Path.CurrentOS as FS
data AddOptions = AddOptions
{ pdfMode ... | ostapneko/gratte-papier | src/Gratte/Options/Add.hs | mit | 3,862 | 0 | 16 | 1,405 | 980 | 506 | 474 | 88 | 4 |
module BackEnd.MkJson
( assetList
, value
, showValue ) where
import Data.Aeson
import qualified Data.ByteString.Lazy.Char8 as LC (unpack)
import qualified Data.Text as T
import BackEnd.CalcSHA
assetList :: FilePath -> Value
assetList path = do
object [ T.pack path .= (unsafeShowSHA path) ]
value :: [FilePath... | cosmo0920/FileDeliverServer | src/BackEnd/MkJson.hs | mit | 466 | 0 | 11 | 84 | 159 | 90 | 69 | 16 | 1 |
import Data.QLearn
import System.Random
import qualified Data.Vector as V
main = do
let alpha = 0.4
gamma = 1
totalTime = 1000
numStates = 16 -- we are operating in a 4x4 grid
numActions = 4 -- up, down, left and right
-- epsilon = (\timeRemaining -> 1.0/(fromIntegral $ totalTime - ti... | Poincare/QLearn | QLearn_example.hs | mit | 719 | 0 | 11 | 171 | 139 | 76 | 63 | 16 | 1 |
module Document.Tests.GarbageCollector where
import Document.Tests.Suite
import Logic.Names
import Logic.Proof
import Logic.Theories.RelationTheory
import Control.Arrow
import Control.Lens
import Data.List as L
import Data.Map as M
import Test.UnitTest
test_case :: TestCase
test_case = test_cases
"Garbage c... | literate-unitb/literate-unitb | src/Document/Tests/GarbageCollector.hs | mit | 86,541 | 0 | 17 | 38,765 | 5,690 | 3,718 | 1,972 | -1 | -1 |
import Control.Monad
main
= do allLines <- getLines "Euler-067.txt"
let splitLines = map words allLines
let triangle = map (\ws -> map (\w -> read w ::Int) ws) splitLines
let maxTriangle = maxPath triangle
print maxTriangle
where getLines = liftM lines . readFile
ma... | stu-smith/project-euler-haskell | Euler-067.hs | mit | 634 | 0 | 16 | 178 | 256 | 131 | 125 | 18 | 1 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.HTMLFontElement (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.HTMLFontElement
#else
module Graphics.UI.Gtk.WebKit.DOM.HTMLFontElement
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFF... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/HTMLFontElement.hs | mit | 460 | 0 | 5 | 39 | 33 | 26 | 7 | 4 | 0 |
import Annodate
import Data.Char (toUpper, toLower)
import GHC.IO.Handle
import Options.Applicative
import System.IO (stdin, stdout)
import Text.Read (readMaybe)
parseColor :: String -> Either String Color
parseColor color = maybe (Left $ "Invalid color: " <> color) Right $ readMaybe (capitalize color)
where capital... | myme/annodate | app/Main.hs | mit | 1,409 | 0 | 16 | 428 | 399 | 195 | 204 | 34 | 2 |
module Control.Continuations where
import Control.Applicative
import Control.Monad
import Data.Either
data DCont r e a = DCont {run :: (a -> r) -> (e -> r) -> r}
throw :: e -> DCont r e a
throw x = DCont (\_ g -> g x)
instance Monad (DCont r e) where
return x = DCont (\f _ -> f x)
c >>= f = DCont (\btr etr... | MarcusVoelker/Recolang | Control/Continuations.hs | mit | 727 | 0 | 14 | 189 | 384 | 200 | 184 | 20 | 1 |
module Database.PostgreSQL.Driver.Query
( Query(..)
-- * Connection
, sendBatchAndFlush
, sendBatchAndSync
, sendSync
, readNextData
, waitReadyForQuery
-- * Connection common
, sendSimpleQuery
, describeStatement
, collectUntilReadyForQuery
) where
import Control.Concu... | postgres-haskell/postgres-wire | src/Database/PostgreSQL/Driver/Query.hs | mit | 6,037 | 0 | 20 | 1,600 | 1,496 | 773 | 723 | -1 | -1 |
-- Intermission: Exercises
-- All you can really do with a parametrically polymorphic value is pass or not
-- pass it to some other expression. Prove that to yourself with these small
-- demonstrations.
-- 1. Given the type a -> a, which is the type for id - attempt to make it do
-- something other than returning the... | diminishedprime/.org | reading-list/haskell_programming_from_first_principles/05_06.hs | mit | 980 | 0 | 6 | 213 | 81 | 50 | 31 | 6 | 1 |
{-# OPTIONS_GHC -Wall #-}
module DataStructures where
data BTree a = L
| N (BTree a) a (BTree a)
deriving (Show)
sumTree :: (Num a) => BTree a -> a
sumTree (N L v L) = v
sumTree (N left v right) = v + sumTree left + sumTree right
sumTree _ = 0
intTree :: BTree Int
intTree = (N (N L 2 L) 1 (... | harrisi/on-being-better | list-expansion/Haskell/Learning/DataStructures.hs | cc0-1.0 | 1,701 | 0 | 17 | 789 | 734 | 375 | 359 | 51 | 3 |
{- Piffle, Copyright (C) 2007, Jaap Weel. 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 program is distribut... | jaapweel/piffle | src/Piffle.hs | gpl-2.0 | 890 | 0 | 4 | 208 | 22 | 16 | 6 | 5 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Fun.Matrix where
import Autolib.Reader
import Autolib.ToDoc
import Autolib.Reporter
import Data.Array
import Data.List
data ( Reader a, ToDoc a ) => Matrix a =
Matrix { width :: Integer
, height :: Integer
, contents :: [[a]]
}
examplematrix n = Matrix
... | marcellussiegburg/autotool | collection/src/Fun/Matrix.hs | gpl-2.0 | 1,157 | 8 | 15 | 303 | 441 | 233 | 208 | 30 | 2 |
{-# LANGUAGE MultiParamTypeClasses #-}
import Visitor
import Data.Monoid
example = TranslUnit([
FunDef 1 Stmt
, FunDef 2 (NestedStmt [Call 1])
])
data DownState = DownState ()
data UpState = UpState ()
instance Monoid UpState where
mempty = UpState ()
_ `mappend` _ = mempty
instance VisitorDown DownStat... | copton/ocram | try/rw_visitor/simplify.hs | gpl-2.0 | 585 | 0 | 12 | 111 | 231 | 120 | 111 | 17 | 1 |
extract (Cons a _) = a | hmemcpy/milewski-ctfp-pdf | src/content/3.7/code/haskell/snippet18.hs | gpl-3.0 | 22 | 0 | 7 | 5 | 17 | 8 | 9 | 1 | 1 |
module HEP.Automation.MadGraph.Dataset.Set20110317set1 where
import HEP.Automation.MadGraph.Model
import HEP.Automation.MadGraph.Machine
import HEP.Automation.MadGraph.UserCut
import HEP.Automation.MadGraph.Cluster
import HEP.Automation.MadGraph.SetupType
import HEP.Automation.MadGraph.Dataset.Common
my_ssetup :: S... | wavewave/madgraph-auto-dataset | src/HEP/Automation/MadGraph/Dataset/Set20110317set1.hs | gpl-3.0 | 1,691 | 0 | 10 | 411 | 356 | 219 | 137 | 46 | 1 |
-- | Some simple tests for the database backend.
import Control.Monad.IO.Class (liftIO)
import Control.Monad
import qualified Data.Map as Map
import qualified Data.Vector.Generic as V
import Database.Persist
import qualified Mescaline.Analysis as Analysis
import Mescaline.Databas... | kaoskorobase/mescaline | lib/mescaline-database/runtests.hs | gpl-3.0 | 3,698 | 0 | 22 | 872 | 986 | 524 | 462 | 47 | 1 |
{-# LANGUAGE CPP, FlexibleContexts, DeriveDataTypeable, OverloadedStrings #-}
module Database.PostgreSQL.ORM.Validations where
import Control.Exception
import Data.Aeson
import qualified Data.HashMap.Strict as H
#if __GLASGOW_HASKELL__ < 710
import Data.Monoid
#endif
import qualified Data.Text as T
import Data.Typeabl... | charles-cooper/postgresql-orm | Database/PostgreSQL/ORM/Validations.hs | gpl-3.0 | 1,476 | 0 | 9 | 287 | 361 | 198 | 163 | 36 | 2 |
module Japex.Quiz (
quizCommand
) where
import Control.Monad
import Data.List
import Japex.Common
import Japex.Quiz.Common
import Japex.Quiz.File
import Paths_japex
import System.Console.GetOpt
import System.Environment(getProgName)
import System.Exit
import System.IO
import System.Random
import qualified Da... | kewne/japex | src/Japex/Quiz.hs | gpl-3.0 | 2,519 | 0 | 15 | 734 | 797 | 427 | 370 | 65 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-useraccounts/gen/Network/Google/Resource/CloudUserAccounts/Linux/GetAuthorizedKeysView.hs | mpl-2.0 | 5,108 | 0 | 18 | 1,205 | 631 | 372 | 259 | 101 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Messages/Untrash.hs | mpl-2.0 | 3,196 | 0 | 15 | 759 | 383 | 231 | 152 | 61 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Messages/Trash.hs | mpl-2.0 | 3,126 | 0 | 15 | 757 | 383 | 231 | 152 | 61 | 1 |
module HEP.Jet.FastJet.Class.TDictionary
(
ITDictionary
) where
-- import HEP.Jet.FastJet.Class.Interface
-- import HEP.Jet.FastJet.Class.Implementation ()
import HEP.Jet.FastJet.Class.TDictionary.RawType
import HEP.Jet.FastJet.Class.TDictionary.Interface
import HEP.Jet.FastJet.Class.TDictionary.Implementati... | wavewave/HFastJet | oldsrc/HEP/Jet/FastJet/Class/TDictionary.hs | lgpl-2.1 | 324 | 0 | 4 | 31 | 43 | 33 | 10 | 6 | 0 |
module Git.Hash (
-- The 'Hash' type
Hash, hashData,
-- Creating hashes
nullHash, fromObject, fromString, fromBinaryByteString, fromHexByteString,
-- Parsers
binaryHash, stringHash,
-- Miscellaneous
abbrev
) where
import Data.ByteString.Internal (c2w, w2c)
import qualified Data.By... | wereHamster/yag | Git/Hash.hs | unlicense | 3,429 | 0 | 14 | 700 | 743 | 415 | 328 | 47 | 1 |
-- http://learnyouahaskell.com/for-a-few-monads-more
import Control.Monad.Writer
gcd' :: Int -> Int -> Writer [String] Int
gcd' a b
| b == 0 = do
tell ["Finished with " ++ show a]
return a
| otherwise = do
tell [show a ++ " mod " ++ show b ++ " = " ++ show (a `mod` b)]
... | egaburov/funstuff | Haskell/monads/writer.hs | apache-2.0 | 2,276 | 0 | 16 | 730 | 1,024 | 506 | 518 | 62 | 1 |
Config { font = "xft:Terminess\ Powerline:size=8"
, bgColor = "#1c1c1c"
, fgColor = "#9e9e9e"
, position = BottomW C 100
, commands = [ -- Run Com "echo" ["$USER"] "username" 864000
Run Com "hostname" ["-s"] "hostname" 864000
-- , Run Com "uname" ["-sr"] "os" 864000
, Ru... | skinnr/xbsd-xmonad | .xmonad/xmobarrc.hs | bsd-2-clause | 973 | 3 | 9 | 320 | 185 | 102 | 83 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module WeatherTool.JsonScheme where
import Control.Monad (mzero)
import Control.Applicative ((<$>), (<*>))
import qualified Data.Text as T
import Control.Lens (makeLenses)
import Data.Aeson (FromJSON, parseJSON, (.:), Value(Object))
-- JSONをパースするため... | kazeula/haskell-json-sample | src/WeatherTool/JsonScheme.hs | bsd-3-clause | 1,645 | 0 | 13 | 294 | 416 | 235 | 181 | 46 | 0 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns #-}
module Compiler.IR where
import Control.Applicative
import Contr... | mthom/abominable-klambda-compiler | Compiler/IR.hs | bsd-3-clause | 8,140 | 5 | 21 | 3,030 | 2,963 | 1,512 | 1,451 | 272 | 22 |
{-# LANGUAGE FlexibleContexts #-}
module JArchiveParser.Regex
( matchAllSubgroups
, mkRegex
) where
import Text.Regex.TDFA
import Data.List (unfoldr)
mkRegex :: RegexMaker Regex CompOption ExecOption String => String -> Regex
mkRegex str =
makeRegex str
matchAllSubgroups :: Regex -> String -> [[Stri... | joshuaclayton/j-archive-parser | src/JArchiveParser/Regex.hs | bsd-3-clause | 561 | 0 | 12 | 136 | 182 | 101 | 81 | 17 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
module Data.Map.Syntax.Tests where
------------------------------------------------------------------------------
import qualified Data.List as L
import Data.Function (on)
import qualified Data.Map as M
import Data.Monoid (mem... | 23Skidoo/map-syntax | test/Data/Map/Syntax/Tests.hs | bsd-3-clause | 8,633 | 0 | 17 | 2,726 | 2,342 | 1,287 | 1,055 | 165 | 3 |
-- * Implements an argumentation dependency graph.
-- | In the structured argumentation model, the dependency graph of propositions
-- is the central part of the reasoning operations, so this module implements
-- the dependency graph.
module DSL.Structured.Core
( Proposition(..)
, negate
, Argument(..)
... | shingoOKAWA/hsarg-haskell | src/DSL/Structured/Core.hs | bsd-3-clause | 7,558 | 0 | 13 | 1,636 | 1,635 | 960 | 675 | 107 | 2 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Main where
import Control.Concurrent (threadDelay, forkIO)
import Control.Monad (forever, mzero, when, void)
import Control.Exception (Exception, SomeException, throw, catch)
import Data.Char (toLower)
import Data.Functor
import Data.List (nub... | dwb/roger-haskell | src/roger.hs | bsd-3-clause | 7,167 | 6 | 21 | 2,552 | 1,950 | 1,004 | 946 | 151 | 3 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# OPTIONS_GHC -funbox-strict-fields #-}
module WebPSpec
(spec)
where
import Data.ByteString (ByteString)
import qualified Data.ByteString as Bytes
import Data.Word
import Test.Hs... | pbogdan/webp | test/WebPSpec.hs | bsd-3-clause | 3,137 | 0 | 23 | 854 | 1,024 | 521 | 503 | 96 | 2 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveLift #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
module P... | tau-tao/FPGAIPFilter | app/PacketProcessor.hs | bsd-3-clause | 2,721 | 0 | 16 | 658 | 938 | 529 | 409 | 75 | 4 |
-- | This module stores the Program type as required in the assignment, except here
-- it is labeled as TProgram to stand for Turtle Program, since Program is a more
-- general type defined in TimeStepProgram.hs
module TProgram (
-- * The turtle type(s)
TProgram,
TUnits,
Degrees,
PColor(..),
-- * Pri... | ekinan/HaskellTurtleGraphics | src/TProgram/TProgram.hs | bsd-3-clause | 9,120 | 0 | 23 | 2,064 | 1,870 | 1,054 | 816 | 151 | 3 |
class Pointed t where
point :: a -> t a
| davdar/quals | writeup-old/sections/04MonadicAAM/01Generalizing/04Pointed.hs | bsd-3-clause | 42 | 0 | 8 | 12 | 22 | 10 | 12 | 2 | 0 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeFamilies #-}
module Zero.KeyFetchToken.Model where
import GHC.Generics
import Control.Monad (when, unless)
import ... | et4te/zero | server/src/Zero/KeyFetchToken/Model.hs | bsd-3-clause | 3,668 | 0 | 17 | 849 | 919 | 473 | 446 | -1 | -1 |
{-# language GeneralizedNewtypeDeriving #-}
{-# language RankNTypes #-}
module Examples
where
import Data.Map.Strict as M (fromListWith,toList)
import Data.List
import Data.Maybe
import Data.Monoid
import Data.Function
import Data.Ratio
import Control.Applicative
import Control.Monad
import System.Random
import Data.C... | mmisamore/probabilities | src/Examples.hs | bsd-3-clause | 14,469 | 0 | 16 | 3,263 | 4,385 | 2,351 | 2,034 | 244 | 4 |
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module Fold where
import qualified Control.Foldl as L
import qualified Data.Map as M
import Test.Hspec
import Test.Hspec.QuickCheck
import Test.QuickCheck
import Ceilometer.Fold
import Ceilometer.T... | anchor/ceilometer-common | tests/Fold.hs | bsd-3-clause | 4,544 | 0 | 13 | 943 | 727 | 359 | 368 | 71 | 1 |
module Histo.Enumerator where
| thsutton/histo | src/Histo/Enumerator.hs | bsd-3-clause | 30 | 0 | 3 | 3 | 6 | 4 | 2 | 1 | 0 |
-- arithmeticfunctions.hs
module MPS.Math.ArithmeticFunctions where
import MPS.Math.NumberTheoryFundamentals (divides)
import MPS.Math.Primes
-- import Bits ( (.&.) )
-- EULER'S TOTIENT FUNCTION
eulerTotient n =
let factors = primePowerFactors n
in product (map (\(p,a) -> p^(a-1) * (p-1)) factors)... | nfjinjing/mps | src/MPS/Math/ArithmeticFunctions.hs | bsd-3-clause | 2,956 | 4 | 15 | 722 | 960 | 511 | 449 | 39 | 1 |
module Imp.Syntax where
type Program = [Statement]
data Statement = Var Id Expr
| Assign Id Expr
| If Expr [Statement] [Statement]
| While Expr [Statement]
| Return Expr
| Expr Expr
deriving (Show)
data Expr = Const Const
... | amutake/imp | src/Imp/Syntax.hs | bsd-3-clause | 1,007 | 0 | 7 | 431 | 337 | 192 | 145 | 39 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
--
-- Type check to ensure there are no empty blocks in procedures, for non-void
-- procedures, a value is returned, there is no dead code (cod... | GaloisInc/ivory | ivory-opts/src/Ivory/Opts/TypeCheck.hs | bsd-3-clause | 8,248 | 0 | 19 | 2,444 | 2,272 | 1,183 | 1,089 | 180 | 13 |
-- |
-- Module : $Header$
-- Copyright : (c) 2013-2014 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
{-# LANGUAGE Safe, PatternGuards #-}
module Cryptol.TypeCheck.Solver.CrySAT
(debug
, Prop(..)
, Expr(..)
, PropSet
... | dylanmc/cryptol | src/Cryptol/TypeCheck/Solver/CrySAT.hs | bsd-3-clause | 20,716 | 0 | 21 | 8,445 | 7,827 | 3,901 | 3,926 | 485 | 26 |
{-# LANGUAGE QuasiQuotes, TemplateHaskell #-}
module Data.PolyLensTH (
mkPolyLenses
, mkPolyLensesBy
, derivePolyLens
) where
import Language.Haskell.TH
mkPolyLenses :: Name -> Q [Dec]
mkPolyLenses = mkPolyLensesBy (drop 1)
mkPolyLensesBy :: (String -> String) -> Name -> Q [Dec]
mkPolyLensesBy nameTransfo... | DanBurton/polylens | Data/PolyLensTH.hs | bsd-3-clause | 1,803 | 4 | 17 | 452 | 501 | 273 | 228 | 37 | 5 |
{-# LANGUAGE CPP #-}
-- #define DEBUG
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-|
Module : AERN2.MP.Dyadic
Description : Dyadics with exact ring operations
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portab... | michalkonecny/aern2 | aern2-mp/src/AERN2/MP/Dyadic.hs | bsd-3-clause | 17,281 | 0 | 19 | 3,765 | 4,964 | 2,540 | 2,424 | -1 | -1 |
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
module Data.Generic.Diff.TH.Types where
--import Control.Lens
import Data.Data
import Language.Haskell.TH
data FamConType = Concrete
| Abstract
deriving(Data, Typeable, Show, Eq)
data FamCon = FamCon {
_famConHardness :: Fam... | jfischoff/gdiff-th | src/Data/Generic/Diff/TH/Types.hs | bsd-3-clause | 845 | 0 | 9 | 257 | 195 | 118 | 77 | 21 | 0 |
module Hint.Typecheck (
typeOf, typeChecks, kindOf, normalizeType, onCompilationError, typeChecksWithDetails
) where
import Control.Monad.Catch
import Hint.Base
import Hint.Parsers
import Hint.Conversions
import qualified Hint.GHC as GHC
-- | Returns a string representation of the type of the expression.
type... | int-e/hint | src/Hint/Typecheck.hs | bsd-3-clause | 3,073 | 0 | 11 | 793 | 563 | 296 | 267 | 44 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MonadComprehensions #-}
module Util.Closures
( transitiveClosure
, reflexiveClosure
, reflexiveAndTransitiveClosure
, relationDomain
, relationImage
, setToMonad
, monadToSet
)
where
import qualified Data.Set as S
import Data.Set.Monad
import ... | rodrigo-machado/verigraph | src/library/Util/Closures.hs | gpl-3.0 | 1,564 | 0 | 13 | 356 | 593 | 307 | 286 | 47 | 2 |
module Main where
import Control.Applicative ((<$>))
import Control.Arrow (second)
import Control.Monad (forM_, forM)
import Data.List (isPrefixOf, isSuffixOf, sortBy)
import Data.Map (findWithDefault)
import Data.Ord (comparing)
import Dat... | ryoia/bneijt.nl | hakyll.hs | gpl-3.0 | 5,590 | 0 | 20 | 1,514 | 1,430 | 706 | 724 | 116 | 1 |
module Main
( main )
where
import Control.Monad (liftM)
import Control.Monad.Reader (forM_, runReaderT, when)
import Data.Configurator
import Data.List (intercalate)
import Data.Maybe (fromMaybe)
import Database.HDBC (SqlError, catchSql, seErrorMsg)
import Prelude hiding (lookup)
import System.Environment... | anton-dessiatov/dbmigrations | src/Moo.hs | bsd-3-clause | 3,427 | 0 | 20 | 971 | 872 | 435 | 437 | 78 | 4 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Utility functions on @Core@ syntax
-}
{-# LANGUAGE CPP #-}
-- | Commonly useful utilites for manipulating the Core language
module CoreUtils (
-- * Constructing expressions
mkCast,
mkTick, mkTicks... | snoyberg/ghc | compiler/coreSyn/CoreUtils.hs | bsd-3-clause | 89,578 | 0 | 21 | 26,049 | 15,008 | 7,737 | 7,271 | 862 | 14 |
{-
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2001-2003
--
-- Access to system tools: gcc, cp, rm etc
--
-----------------------------------------------------------------------------
-}
{-# LANGUAGE CPP, ScopedTypeVariables #-}
module Eta.Main.Sys... | rahulmutt/ghcvm | compiler/Eta/Main/SysTools.hs | bsd-3-clause | 43,979 | 0 | 22 | 13,858 | 7,919 | 4,099 | 3,820 | 646 | 7 |
{-# LANGUAGE DeriveGeneric #-}
-- | Frontend-independent keyboard input operations.
module Game.LambdaHack.Client.Key
( Key(..), showKey, handleDir, dirAllKey
, moveBinding, mkKM, keyTranslate
, Modifier(..), KM(..), toKM, showKM
, escKM, spaceKM, returnKM, pgupKM, pgdnKM, leftButtonKM, rightButtonKM
) where
... | Concomitant/LambdaHack | Game/LambdaHack/Client/Key.hs | bsd-3-clause | 9,172 | 0 | 16 | 2,177 | 2,629 | 1,397 | 1,232 | -1 | -1 |
module Main (main) where
import Control.Exception
import Data.List
import System.Directory
import System.IO
-- like copyFile001, but moves a file in the current directory
-- See bug #1652
main :: IO ()
main = do d <- getCurrentDirectory
flip finally (setCurrentDirectory d) $ do
setCurrentDirector... | DavidAlphaFox/ghc | libraries/directory/tests/copyFile002.hs | bsd-3-clause | 760 | 0 | 11 | 216 | 202 | 97 | 105 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module Ros.Sensor_msgs.Joy where
import qualified Prelude as P
import Prelude ((.), (+), (*))
import qualified Data.Typeable as T
import Control.Applicative
import Ros.Internal.RosBinar... | acowley/roshask | msgs/Sensor_msgs/Ros/Sensor_msgs/Joy.hs | bsd-3-clause | 1,364 | 1 | 10 | 246 | 399 | 232 | 167 | 36 | 0 |
-- | Convenient operator.
module Data.Monoid.Operator where
import Data.Monoid
(++) :: (Monoid a) => a -> a -> a
(++) = mappend | chrisdone/named-formlet | src/Data/Monoid/Operator.hs | bsd-3-clause | 130 | 0 | 7 | 24 | 44 | 28 | 16 | 4 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-route53/gen/Network/AWS/Route53/DeleteReusableDelegationSet.hs | mpl-2.0 | 3,925 | 0 | 9 | 751 | 370 | 226 | 144 | 49 | 1 |
module Usage where
import qualified Definition.Definition
test :: Int
test = Definition.D<caret>efinition.seven + 1
| charleso/intellij-haskforce | tests/gold/codeInsight/QualifiedImport_QualifierResolvesMultipleCons_Cons2_NoAs/Usage.hs | apache-2.0 | 119 | 0 | 8 | 17 | 36 | 21 | 15 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
----------------------------------------------------------------------------
-- |
-- Module : Haddock.Interface.Rename
-- Copyright : (c) Simon Marlow 2003-2006,
-- David Waern 2006-2009
-- License : BSD-like
--
-- Maintainer : haddock@projects.haskel... | lamefun/haddock | haddock-api/src/Haddock/Interface/Rename.hs | bsd-2-clause | 19,988 | 0 | 17 | 4,885 | 6,199 | 3,084 | 3,115 | 391 | 24 |
module Bar where
bar = undef {- error -}
| abuiles/turbinado-blog | tmp/dependencies/hs-plugins-1.3.1/testsuite/make/remake001_should_fail/Bar.hs | bsd-3-clause | 42 | 0 | 4 | 10 | 10 | 7 | 3 | 2 | 1 |
-- | A collection of small functions to help retrieve
-- information from Glade files.
module Graphics.UI.Gtk.Extra.Builder
( fromBuilder
, loadInterface
)
where
import Graphics.UI.Gtk
-- | Graphics.UI.Gtk.builderGetObject with the arguments flipped
-- (Builder goes last).
fromBuilder :: (GObjectClass cls... | keera-studios/gtk-helpers | gtk3/src/Graphics/UI/Gtk/Extra/Builder.hs | bsd-3-clause | 1,249 | 0 | 10 | 244 | 200 | 117 | 83 | 11 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module ApiAnnotation (
getAnnotation, getAndRemoveAnnotation,
getAnnotationComments,getAndRemoveAnnotationComments,
ApiAnns,
ApiAnnKey,
AnnKeywordId(..),
AnnotationComment(..),
LRdrName -- Exists for haddocks only
) where
import RdrName
import Outputable
import SrcL... | forked-upstream-packages-for-ghcjs/ghc | compiler/parser/ApiAnnotation.hs | bsd-3-clause | 9,165 | 0 | 11 | 2,102 | 922 | 575 | 347 | 130 | 2 |
{-
types:
Nat :: (*, data)
values:
f :: Nat -> Nat
prec :: Nat -> Nat
Suc :: Nat -> Nat
Zero :: Nat
scope:
Prelude.Nat |-> Prelude.Nat, Type [Suc, Zero] []
Prelude.Suc |-> Prelude.Suc, con of Nat
Prelude.Zero |-> Prelude.Zero, con of Nat
Prelude.f |-> Prelude.f, Value
Prelude.prec |-> Prelude.prec, Value
Nat |-> Pre... | mariefarrell/Hets | ToHaskell/test/NatEx.hascasl.hs | gpl-2.0 | 587 | 0 | 7 | 114 | 61 | 33 | 28 | 8 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}
module GHC.Exts.Heap.ClosureTypes
( ClosureType(..)
, closureTypeHeaderSize
) where
import Prelude -- See note [Why do we import Prelude here?]
import GHC.Generics
{- ---------------------------------------------
-- Enum representing closure types
-- Th... | sdiehl/ghc | libraries/ghc-heap/GHC/Exts/Heap/ClosureTypes.hs | bsd-3-clause | 2,132 | 0 | 13 | 602 | 382 | 231 | 151 | 85 | 5 |
<?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="sl-SI">
<title>Active Scan Rules - Blpha | ZAP Extension</title>
<maps>
<homeID>top</homeID... | 0xkasun/security-tools | src/org/zaproxy/zap/extension/wavsepRpt/resources/help_sl_SI/helpset_sl_SI.hs | apache-2.0 | 987 | 80 | 67 | 163 | 422 | 213 | 209 | -1 | -1 |
module API(
ExampleAPI
) where
import Servant.API
import Servant.API.Auth.Token
type ExampleAPI = "test"
:> TokenHeader' '["test-permission"]
:> Get '[JSON] ()
| NCrashed/servant-auth-token | example/persistent/src/API.hs | bsd-3-clause | 172 | 0 | 9 | 32 | 55 | 32 | 23 | -1 | -1 |
module Distribution.Client.Dependency.Modular.Index
( Index
, PInfo(..)
, defaultQualifyOptions
, mkIndex
) where
import Data.List as L
import Data.Map as M
import Prelude hiding (pi)
import Distribution.Client.Dependency.Modular.Dependency
import Distribution.Client.Dependency.Modular.Flag
import... | tolysz/prepare-ghcjs | spec-lts8/cabal/cabal-install/Distribution/Client/Dependency/Modular/Index.hs | bsd-3-clause | 2,024 | 0 | 14 | 538 | 461 | 271 | 190 | 28 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Hooks.Script
-- Copyright : (c) Trevor Elliott <trevor@galois.com>
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Trevor Elliott <trevor@galois.com>
-- Stability : unstable
-- Portability : unpo... | pjones/xmonad-test | vendor/xmonad-contrib/XMonad/Hooks/Script.hs | bsd-2-clause | 1,394 | 0 | 10 | 265 | 114 | 76 | 38 | 8 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.