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 D8Spec where
import Test.Hspec
import Test.QuickCheck
import Text.Megaparsec (parse, ParseError, Dec)
import D8Lib
-- `main` is here so that this module can be run from GHCi on its own. It is
-- not needed for automatic spec discovery.
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "todo"... | wfleming/advent-of-code-2016 | 2017/D8/test/D8Spec.hs | bsd-3-clause | 372 | 0 | 13 | 81 | 92 | 51 | 41 | 12 | 1 |
{-# LANGUAGE FlexibleInstances, OverlappingInstances, TypeSynonymInstances #-}
-- | Pretty printing typeclass
--
-- Mostly a class-based re-export of "Text.PrettyPrint", with a few conveniences such as precedence.
-- For precedence, we use the (extended) precedences listed at the top of base.duck, which range from 0 (a... | girving/duck | duck/Pretty.hs | bsd-3-clause | 5,541 | 0 | 11 | 1,349 | 2,310 | 1,213 | 1,097 | 153 | 1 |
-----------------------------------------------
-- This module deals with detecting whether --
-- parameters are changed or used in an LPPE --
-----------------------------------------------
module Usage where
import LPPE
import Expressions
import Auxiliary
import DataSpec
-- When using these types, [(i,j)] means t... | utwente-fmt/scoop | src/Usage.hs | bsd-3-clause | 15,318 | 0 | 17 | 4,033 | 4,180 | 2,215 | 1,965 | 165 | 2 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[Foreign]{Foreign calls}
-}
{-# LANGUAGE DeriveDataTypeable #-}
module ETA.Prelude.ForeignCall (
ForeignCall(..), isSafeForeignCall,
Safety(..), playSafe, playInterruptible,
CExportSpec(..), CLabelString, isCLabelString, pp... | alexander-at-github/eta | compiler/ETA/Prelude/ForeignCall.hs | bsd-3-clause | 11,955 | 0 | 15 | 4,021 | 2,186 | 1,098 | 1,088 | 204 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : [email protected]
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeFamilies #-}
module Fragment.If.Rules (
RIf
) where
import GHC.Exts (Constraint)
i... | dalaing/type-systems | src/Fragment/If/Rules.hs | bsd-3-clause | 1,323 | 1 | 8 | 245 | 389 | 219 | 170 | -1 | -1 |
module Main where
import Server (runBlog)
main :: IO ()
main = runBlog
| yemi/fabian-blog | server/Main.hs | bsd-3-clause | 73 | 0 | 6 | 15 | 27 | 16 | 11 | 4 | 1 |
{-# LANGUAGE ScopedTypeVariables, RankNTypes #-}
module Data.ExternalSort.Internal
where
import Control.Exception
import Control.Monad
import Data.IORef
import Pipes
import qualified Pipes.Prelude as P
import Pipes.Interleave
import System.Directory (removeF... | sseefried/external-sort | src/Data/ExternalSort/Internal.hs | bsd-3-clause | 4,755 | 0 | 16 | 1,287 | 1,273 | 644 | 629 | 92 | 2 |
module Main where
import Gittins.Config
import Gittins.Main
import Gittins.Process (ProcessResult(..))
import Gittins.Types
import Control.Monad.Free (Free(..))
import System.Exit (ExitCode(..))
import Test.Hspec
main :: IO ()
main = hspec $ do
describe "register" $
it "adds paths to the config" $
interp... | bmjames/gittins | tests/Tests.hs | bsd-3-clause | 1,575 | 0 | 16 | 352 | 610 | 314 | 296 | 38 | 7 |
module Exercises where
-- Exercise 0 --
foo = [1, 2, 3, 4, 5, 6]
bar = [1,2]
baz = []
-- Doesn't compile
-- halveA :: [a] -> ([a], [a])
-- halveA xs = (take n xs, drop n xs)
-- where n = length xs / 2
halveB :: [a] -> ([a], [a])
halveB xs = splitAt (length xs `div` 2) xs
halveC :: [a] -> ([a], [a])
halveC xs = (t... | paulkeene/FP101x | chapter03/Exercises.hs | bsd-3-clause | 3,126 | 0 | 11 | 789 | 1,336 | 737 | 599 | 76 | 3 |
{-# LANGUAGE UnicodeSyntax #-}
import Prelude.Unicode
import Data.List
data Tree a = Node a [Tree a]
deriving (Eq, Show)
tree1 = Node 'a' []
tree2 = Node 'a' [Node 'b' []]
tree3 = Node 'a' [Node 'b' [Node 'c' []]]
tree4 = Node 'b' [Node 'd' [], Node 'e' []]
tree5 = Node 'a' [
Node 'f... | m00nlight/99-problems | haskell/p-73.hs | bsd-3-clause | 609 | 0 | 11 | 193 | 290 | 150 | 140 | 17 | 1 |
--------------------------------------------------------------------------------
-- | Fast axis-aligned boxes
module Firefly.Math.Box
( Box (..)
, appendBox
, fitBox
, insideBox
, boxBoxCollision
, moveBox
, boxCenter
) where
------------------------------------------------------------... | jaspervdj/firefly | src/Firefly/Math/Box.hs | bsd-3-clause | 2,647 | 0 | 13 | 556 | 712 | 380 | 332 | 47 | 1 |
{- ------------------------------------------------------------------------
(c) The GHC Team, 1992-2012
DeriveConstants is a program that extracts information from the C
declarations in the header files (primarily struct field offsets)
and generates various files, such as a header file that can be #included
into non... | hferreiro/replay | utils/deriveConstants/DeriveConstants.hs | bsd-3-clause | 41,237 | 199 | 19 | 13,373 | 9,490 | 4,914 | 4,576 | 703 | 26 |
module MGRSRef.Tests where
import Test.HUnit
import HUnitExtensions
import Equals
import Datum
import MGRSRef
import UTMRef
mgrsrefTests = TestList [
TestLabel "mgrsref - to show with precision" testToShowWithPrecision
, TestLabel "mgrsref - to show" testToMGRSRef
, TestLabel "mgrsref - to mkMGRSRef" tes... | danfran/hcoord | test/MGRSRef/Tests.hs | bsd-3-clause | 3,158 | 0 | 13 | 588 | 1,001 | 521 | 480 | 44 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Database.DBCleaner.PostgreSQLSimpleSpec where
import Control.Applicative ((<$>), (<*>))
import Control.Monad (void)
import Data.Text (Text)
import ... | stackbuilders/dbcleaner | test/Database/DBCleaner/PostgreSQLSimpleSpec.hs | mit | 2,431 | 0 | 18 | 765 | 555 | 293 | 262 | 50 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- | Description : @ToJSON@ for Messages
--
-- This module contains the @ToJSON@ instance for @Message@.
module IHaskell.IPython.Message.Writer (ToJSON(..)) where
import Data.Aeson
import Data.Map (Map)
import Data.Text (Text, pack)
import Dat... | artuuge/IHaskell | ipython-kernel/src/IHaskell/IPython/Message/Writer.hs | mit | 4,918 | 0 | 13 | 1,450 | 1,261 | 668 | 593 | 108 | 1 |
module Test.Lamdu.FreshDb (readFreshDb) where
import qualified Data.Aeson as Aeson
import qualified Data.ByteString.Lazy as LBS
import Lamdu.Data.Export.JSON.Codec (Entity)
import qualified Lamdu.Paths as Paths
import Test.Lamdu.Prelude
readFreshDb :: IO [Entity]
readFreshDb =
Paths.getDataFi... | lamdu/lamdu | test/Test/Lamdu/FreshDb.hs | gpl-3.0 | 514 | 0 | 11 | 109 | 138 | 79 | 59 | -1 | -1 |
module BgImplicitVarBind where
f = True
g = if f then 3 else f
| roberth/uu-helium | test/typeerrors/Examples/BgImplicitVarBind.hs | gpl-3.0 | 64 | 0 | 5 | 15 | 22 | 14 | 8 | 3 | 2 |
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
import Language.C.Clang
import Language.C.Clang.Cursor.Typed
import Control.Lens
import qualified Data.ByteString.Char8 as BS
import System.Environment
import Data.Monoid ((... | chpatrick/clang-lens | examples/ListTypes.hs | apache-2.0 | 1,044 | 0 | 22 | 308 | 224 | 118 | 106 | 23 | 2 |
module Cassandra_Client(get_slice,get_column,get_column_count,insert,batch_insert,batch_insert_blocking,remove,get_slice_super,get_superColumn,batch_insert_superColumn,batch_insert_superColumn_blocking) where
import FacebookService_Client
import Data.IORef
import Thrift
import Data.Generics
import Control.Exception
imp... | toddlipcon/cassandra | interface/hs/Cassandra_Client.hs | apache-2.0 | 9,818 | 0 | 14 | 1,313 | 2,514 | 1,189 | 1,325 | 209 | 3 |
-- | Build instance tycons for the PData and PDatas type families.
--
-- TODO: the PData and PDatas cases are very similar.
-- We should be able to factor out the common parts.
module Vectorise.Generic.PData
( buildPDataTyCon
, buildPDatasTyCon )
where
import GhcPrelude
import Vectorise.Monad
import Vectoris... | shlevy/ghc | compiler/vectorise/Vectorise/Generic/PData.hs | bsd-3-clause | 6,840 | 0 | 14 | 2,363 | 1,390 | 695 | 695 | 132 | 5 |
{-
(c) The University of Glasgow, 2004-2006
Module
~~~~~~~~~~
Simply the name of a module, represented as a FastString.
These are Uniquable, hence we can build Maps with Modules as
the keys.
-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Eta.Basi... | rahulmutt/ghcvm | compiler/Eta/BasicTypes/Module.hs | bsd-3-clause | 49,019 | 0 | 18 | 10,875 | 8,138 | 4,423 | 3,715 | 674 | 3 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Build.Macros
-- Copyright : Simon Marlow 2008
--
-- Maintainer : [email protected]
-- Portability : portable
--
-- Generate cabal_macros.h - CPP macros for package version testing
--
-- W... | tolysz/prepare-ghcjs | spec-lts8/cabal/Cabal/Distribution/Simple/Build/Macros.hs | bsd-3-clause | 3,971 | 0 | 13 | 693 | 695 | 398 | 297 | 60 | 1 |
-- | Template Haskell functions for deriving "Mutable" instances.
module SubHask.TemplateHaskell.Mutable
( mkMutable
, mkMutablePrimRef
, mkMutableNewtype
)
where
import SubHask.TemplateHaskell.Common
import Prelude
import Control.Monad
import Language.Haskell.TH
showtype :: Type -> String
showty... | abailly/subhask | src/SubHask/TemplateHaskell/Mutable.hs | bsd-3-clause | 5,718 | 0 | 24 | 2,695 | 1,499 | 770 | 729 | 116 | 11 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS -fno-warn-unused-do-bind -fno-warn-type-defaults #-}
-- | A word cloud of all the nicknames participating in the time frame.
module Ircbrowse.View.NickCloud where
import Ircbrowse.View
import Ircbrowse.View.Template
import Ircbrowse.Vi... | plow-technologies/ircbrowse | src/Ircbrowse/View/NickCloud.hs | bsd-3-clause | 827 | 0 | 23 | 202 | 136 | 70 | 66 | 19 | 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="sk-SK">
<title>SVN Digger Files</title>
<maps>
<homeID>svndigger</homeID>
<mapref locat... | thc202/zap-extensions | addOns/svndigger/src/main/javahelp/help_sk_SK/helpset_sk_SK.hs | apache-2.0 | 967 | 77 | 66 | 157 | 409 | 207 | 202 | -1 | -1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleInstances,
MultiParamTypeClasses #-}
module Haste.Monad (
JSGen, genJS, dependOn, getModName, addLocal, getCfg, continue, isolate,
pushBind, popBind, getCurrentBinding, whenCfg, rename, getActualName
) where
import Control.Monad.State.Strict
import... | beni55/haste-compiler | src/Haste/Monad.hs | bsd-3-clause | 4,645 | 0 | 18 | 1,177 | 1,416 | 736 | 680 | 126 | 1 |
{-# Language PatternGuards #-}
module Blub
( blub
, foo
, bar
) where
import Ugah.Foo
import Control.Applicative
import qualified Control.Monad as CM
import Ugah.Blub
f :: Int -> Int
f = (+ 3)
g :: Int -> Int
g =
where
| jystic/hsimport | tests/inputFiles/ModuleTest24.hs | bsd-3-clause | 235 | 0 | 5 | 58 | 71 | 45 | 26 | -1 | -1 |
{-# LANGUAGE CPP #-}
#ifndef MIN_VERSION_profunctors
#define MIN_VERSION_profunctors(x,y,z) 0
#endif
#if (MIN_VERSION_profunctors(4,4,0)) && __GLASGOW_HASKELL__ >= 708
#define USE_COERCE
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
#else
{-# LANGUAGE Unsafe #-}
#endif
... | danidiaz/lens | src/Control/Lens/Internal/Coerce.hs | bsd-3-clause | 1,164 | 0 | 7 | 179 | 89 | 63 | 26 | 11 | 1 |
--
-- Sudoku solver using constraint propagation. The algorithm is by
-- Peter Norvig http://norvig.com/sudoku.html; the Haskell
-- implementation is by Manu and Daniel Fischer, and can be found on
-- the Haskell Wiki http://www.haskell.org/haskellwiki/Sudoku
--
-- The Haskell wiki license applies to this code:
--
-- ... | y-kamiya/parallel-concurrent-haskell | src/Sudoku-sample/Sudoku.hs | gpl-2.0 | 5,282 | 0 | 20 | 1,669 | 1,422 | 773 | 649 | 87 | 4 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-2015
-}
-- | Functions to computing the statistics reflective of the "size"
-- of a Core expression
module CoreStats (
-- * Expression and bindings size
coreBindsSize, exprSize,
CoreStats(..), coreBindsSt... | olsner/ghc | compiler/coreSyn/CoreStats.hs | bsd-3-clause | 4,393 | 0 | 12 | 1,152 | 1,558 | 838 | 720 | 87 | 1 |
module ShouldCompile where
-- This file contains several non-breaking space characters,
-- aka '\xa0'. The compiler should recognise these as whitespace.
f = ( + )
| urbanslug/ghc | testsuite/tests/parser/should_compile/read037.hs | bsd-3-clause | 244 | 3 | 7 | 56 | 19 | 10 | 9 | 2 | 1 |
module Network.Mail.ImapSpec (main, spec) where
import Test.Hspec
import Data.List (intercalate)
import Network.Mail
import Network.Mail.Imap
import Network.Mail.Imap.Types
import Network.Mail.ImapStub
prettyPrintCurrentDirectory :: Imap (Maybe [String])
prettyPrintCurrentDirectory =
getAllMails fetchHeader >>= p... | blackheaven/smoothmail | test/Network/Mail/ImapSpec.hs | isc | 12,326 | 0 | 28 | 3,389 | 2,903 | 1,377 | 1,526 | 227 | 1 |
{-# OPTIONS_HADDOCK hide #-}
module Graphics.Gloss.Internals.Interface.Backend.GLUT
(GLUTState)
where
import Data.IORef
import Control.Monad
import Control.Concurrent
import Graphics.UI.GLUT (get,($=))
import qualified Graphics.Rendering.OpenGL as GL
import qualified Graphics.UI.GLUT ... | gscalzo/HaskellTheHardWay | gloss-try/gloss-master/gloss/Graphics/Gloss/Internals/Interface/Backend/GLUT.hs | mit | 12,968 | 0 | 41 | 4,431 | 2,643 | 1,285 | 1,358 | 240 | 37 |
{-# htermination isDigit :: Char -> Bool #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_isDigit_1.hs | mit | 45 | 0 | 2 | 8 | 3 | 2 | 1 | 1 | 0 |
-- 4. Write a program that transposes the text in a file. For instance, it
-- should convert "hello\nworld\n" to "hw\neo\nlr\nll\nod\n".
import Test.HUnit
transposeFile :: String -> String
transposeFile [] = []
transposeFile xs = transposeLines $ lines xs
transposeLines :: [String] -> ??? FFffuu
transposeLines (x:xs... | supermitch/learn-haskell | real-world-haskell/ch04/Transpose.hs | mit | 661 | 2 | 9 | 119 | 173 | 90 | 83 | -1 | -1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
-- |
-- Helpers to string together parser and renderer by puzzle type.
module Data.Compose
( compose,
)
where
import Data.Lib
import Data.PuzzleTypes
... | robx/puzzle-draw | src/Data/Compose.hs | mit | 5,384 | 0 | 14 | 889 | 1,835 | 899 | 936 | 119 | 2 |
module LtsHs.Version where
import System.Directory (
getHomeDirectory,
getDirectoryContents,
doesDirectoryExist,
makeAbsolute
)
import System.FilePath (
pathSeparator
)
import Data.List.Split (splitOn)
import Data.List (find)
import Text.Read (readMaybe)
-- LTS Haskell version (major, minor)
data Versio... | tkawachi/ltshs | src/LtsHs/Version.hs | mit | 1,121 | 0 | 17 | 228 | 339 | 175 | 164 | 27 | 2 |
module Main where
import Test.Hspec
import Test.Hspec.Runner (defaultConfig, hspecWith)
import App
main :: IO ()
main = hspecWith defaultConfig specs >> return ()
specs :: Spec
specs = describe "App" $ do
it "foo is always a string with foo" $ do
foo `shouldBe` "foo"
it "inc should always increment" $ do
... | roman/testloop | examples/testloop-example/test/TestSuite.hs | mit | 481 | 0 | 12 | 110 | 117 | 63 | 54 | 12 | 1 |
import Data.Word
import Data.List(elemIndex)
import Data.Maybe
import Data.Complex
import qualified Data.Array.Repa as R
import Data.Array.Repa.IO.BMP
import System.Environment
type Number = Double
type ComplexNumber = Complex Number
type IterationCount = Integer
type PointData = (ComplexNumber, IterationCount)
type R... | jlubi333/newton-hs | Main.hs | mit | 5,507 | 0 | 16 | 1,503 | 2,251 | 1,197 | 1,054 | 127 | 2 |
{-# LANGUAGE DeriveGeneric, OverloadedStrings, TemplateHaskell #-}
{-|
Michelson's speed of light dataset - five repeated measurements of the speed of light.
Data from <https://github.com/datasets-io/michelson-speed-of-light>
The embedded dataset is Copyright (c) 2015 The Compute.io Authors.
-}
module Numeric.Dat... | glutamate/datasets | datasets/src/Numeric/Datasets/Michelson.hs | mit | 538 | 0 | 10 | 64 | 64 | 38 | 26 | 7 | 1 |
multThree :: (Num a) => a -> a -> a -> a
multThree x y z = x * y * z
compareWithHundred :: (Ord a, Num a) => a -> Ordering
compareWithHundred x = compare 100 x
compareWithHundredBetter :: (Ord a, Num a) => a -> Ordering
compareWithHundredBetter = compare 100
divideByTen :: (Floating a) => a -> a
divideByTen = (/10)
isU... | pegurnee/2015-01-341 | haskell/higherOrderFunctions.hs | mit | 387 | 0 | 8 | 72 | 168 | 92 | 76 | 10 | 1 |
-- |
-- Module: Math.NumberTheory.MoebiusInversion.IntTests
-- Copyright: (c) 2016 Andrew Lelechenko
-- Licence: MIT
-- Maintainer: Andrew Lelechenko <[email protected]>
-- Stability: Provisional
--
-- Tests for Math.NumberTheory.MoebiusInversion.Int
--
{-# OPTIONS_GHC -fno-warn-type-defaults #... | cfredric/arithmoi | test-suite/Math/NumberTheory/MoebiusInversion/IntTests.hs | mit | 1,765 | 0 | 13 | 313 | 415 | 228 | 187 | 30 | 1 |
-- Copyright (c) Microsoft. All rights reserved.
-- Licensed under the MIT license. See LICENSE file in the project root for full license information.
{-# LANGUAGE QuasiQuotes, OverloadedStrings #-}
module Language.Bond.Codegen.Cpp.Apply_cpp (apply_cpp) where
import Data.Text.Lazy (Text)
import Text.Shakespeare.Text... | ant0nsc/bond | compiler/src/Language/Bond/Codegen/Cpp/Apply_cpp.hs | mit | 1,235 | 0 | 10 | 183 | 163 | 111 | 52 | 14 | 1 |
module PreludData where
import DataP
-- data types from prelude, so we can derive things for these
-- as needed without parsing the whole prelude
-- users may want to add commonly-used datatypes to this list, to save
-- repeatedly searching for a type. The list data is generated using the
-- 'test' rule on the requi... | ajhc/drift | src/PreludData.hs | mit | 1,321 | 32 | 12 | 145 | 563 | 357 | 206 | 23 | 1 |
module Light.Geometry (module X)
where
import Light.Geometry.AABB as X
import Light.Geometry.Matrix as X
import Light.Geometry.Normal as X
import Light.Geometry.Point as X
import Light.Geometry.Quaternion as X
import Light.Geometry.Ray as X
import Light.Geometry.Transform as X
import Light.Geometry.Vector as X
| jtdubs/Light | src/Light/Geometry.hs | mit | 314 | 0 | 4 | 39 | 76 | 56 | 20 | 9 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Y2020.M11.D11.Exercise where
-- Okay, now, finally, we have alliances of the world in one structure:
import Y2020.M11.D10.Exercise (go)
-- so, convert that to graph-data and upload to our graph.
-- ... you do remember our graph of countries / continents / airbases, yes... | geophf/1HaskellADay | exercises/HAD/Y2020/M11/D11/Exercise.hs | mit | 1,272 | 0 | 7 | 243 | 151 | 97 | 54 | 18 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Holumbus.Index.Inverted.CompressedPrefixMem
( Inverted(..)
, Parts
, Part
, ... | ichistmeinname/holumbus | src/Holumbus/Index/Inverted/CompressedPrefixMem.hs | mit | 21,576 | 1 | 15 | 7,068 | 4,258 | 2,300 | 1,958 | 263 | 1 |
-- List Comprehensions
-- [(x,y) | x <- [1,2,3], y <- [4,5]]
-- [(x,y) | x <- [1..3], y <- [x..3]]
-- concat :: [[a]] <- [a]
fconcat xss = [x | xs <- xss, x <- xs]
-- factors :: Int -> [Int]
ffactors n = [x | x <- [1..n], n `mod` x == 0]
-- prime :: Int -> Bool
prime n = ffactors n == [1, n]
-- primes :: Int -> [I... | jugalps/edX | FP101x/week4/week4.hs | mit | 633 | 0 | 9 | 173 | 241 | 130 | 111 | 10 | 1 |
module Import.Utils where
import Prelude
import Data.Text (Text, pack, unpack)
import Data.Time (UTCTime, addUTCTime, secondsToDiffTime)
import qualified Data.Map.Strict as MapS
import Data.IP (IP)
import System.Random (randomRIO)
import Control.Monad (unless, when)
-- | Takes a random element from list
pick :: [a] -... | ahushh/Monaba | monaba/src/Import/Utils.hs | mit | 1,118 | 0 | 10 | 231 | 525 | 288 | 237 | -1 | -1 |
module PostgREST.ApiRequest where
import qualified Data.Aeson as JSON
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BL
import qualified Data.Csv as CSV
import Data.List (find)
import qualified Data.HashMap.Strict as M
... | NikolayS/postgrest | src/PostgREST/ApiRequest.hs | mit | 8,259 | 76 | 14 | 2,502 | 1,569 | 881 | 688 | 145 | 19 |
{-# LANGUAGE DeriveDataTypeable, TypeSynonymInstances, OverloadedStrings #-}
{-
Copyright (C) 2009 John MacFarlane <[email protected]>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 ... | jgm/texmath | src/Text/TeXMath/Types.hs | gpl-2.0 | 7,350 | 0 | 11 | 2,345 | 878 | 560 | 318 | 84 | 1 |
#!/usr/bin/env runhaskell
{-# LANGUAGE ScopedTypeVariables #-}
import Control.Applicative
import Control.Monad
import Control.Monad.Trans.List
import Control.Monad.Trans.Maybe
import Control.Monad.IO.Class
import Data.List
import System.FilePath
import System.Directory
import System.Environment
import System.Process
... | DanielG/ohs | scripts/add-sources.hs | gpl-3.0 | 1,257 | 1 | 15 | 279 | 363 | 178 | 185 | 36 | 2 |
module Handler.MovieDetailsSpec (spec) where
import TestImport
spec :: Spec
spec = withApp $ do
describe "getMovieDetailsR" $ do
error "Spec not implemented: getMovieDetailsR"
| Lionex/s16_mangohacks | JEGL/test/Handler/MovieDetailsSpec.hs | gpl-3.0 | 192 | 0 | 11 | 39 | 44 | 23 | 21 | 6 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-healthcare/gen/Network/Google/Resource/Healthcare/Projects/Locations/DataSets/Hl7V2Stores/Create.hs | mpl-2.0 | 6,706 | 0 | 18 | 1,434 | 862 | 502 | 360 | 136 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-bigtableadmin/gen/Network/Google/Resource/BigtableAdmin/Projects/Instances/Clusters/Delete.hs | mpl-2.0 | 5,417 | 0 | 15 | 1,164 | 713 | 419 | 294 | 108 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-glacier/gen/Network/AWS/Glacier/AbortMultipartUpload.hs | mpl-2.0 | 5,296 | 0 | 9 | 1,055 | 506 | 313 | 193 | 64 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.DataFusion.Types
-- Copyright : (c) 2015-2016 Brendan ... | brendanhay/gogol | gogol-datafusion/gen/Network/Google/DataFusion/Types.hs | mpl-2.0 | 5,608 | 0 | 7 | 1,494 | 643 | 446 | 197 | 181 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Decommission.hs | mpl-2.0 | 6,379 | 0 | 16 | 1,336 | 795 | 470 | 325 | 112 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-lambda/gen/Network/AWS/Lambda/Invoke.hs | mpl-2.0 | 9,303 | 0 | 14 | 1,881 | 1,116 | 678 | 438 | 123 | 1 |
module Freekick.Libsoccer.Region
where
import Freekick.Libsoccer.Stadium
data Region =
Region { name :: String,
stadiums :: [Stadium],
-- hostregion :: Entity,
-- country :: Entity,
-- clubs :: [Entity],
subregions :: [Regio... | anttisalonen/freekick | haskell/libfreekick/Freekick/Libsoccer/Region.hs | agpl-3.0 | 469 | 0 | 9 | 171 | 99 | 59 | 40 | 10 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QHeaderView_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:20
Warning : this file is machine generated - do... | keera-studios/hsQt | Qtc/Gui/QHeaderView_h.hs | bsd-2-clause | 78,368 | 0 | 18 | 16,767 | 25,826 | 12,432 | 13,394 | -1 | -1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QLine.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:32
Warning : this file is machine generated - do not mod... | keera-studios/hsQt | Qtc/Core/QLine.hs | bsd-2-clause | 7,320 | 0 | 15 | 1,414 | 2,671 | 1,376 | 1,295 | -1 | -1 |
{-|
Copyright : (C) 2012-2016, University of Twente
License : BSD2 (see the file LICENSE)
Maintainer : Christiaan Baaij <[email protected]>
Data Constructors in CoreHW
-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-#... | ggreif/clash-compiler | clash-lib/src/CLaSH/Core/DataCon.hs | bsd-2-clause | 3,632 | 0 | 12 | 1,124 | 674 | 389 | 285 | 69 | 1 |
module Elm.Package where
import Control.Applicative ((<$>), (<*>))
import Data.Aeson
import Data.Binary
import qualified Data.Char as Char
import Data.Function (on)
import qualified Data.List as List
import qualified Data.Text as T
import System.FilePath ((</>))
-- PACKGE NAMES
data Name = Name
{ user :: String... | Axure/elm-compiler | src/Elm/Package.hs | bsd-3-clause | 4,869 | 3 | 16 | 1,482 | 1,388 | 718 | 670 | 140 | 5 |
{-# LANGUAGE RecursiveDo #-}
module Expr where
import Control.Applicative
import Data.Char
import Test.Tasty
import Test.Tasty.QuickCheck as QC
import Text.Earley
tests :: TestTree
tests = testGroup "Expr"
[ QC.testProperty "Expr: parse . pretty = id" $
\e -> [e] === parseExpr (prettyExpr 0 e)
, QC.testProper... | sboosali/Earley | tests/Expr.hs | bsd-3-clause | 3,091 | 0 | 14 | 991 | 1,200 | 603 | 597 | 75 | 2 |
module PackageTests.TestSuiteExeV10.Check (checks) where
import qualified Control.Exception as E (IOException, catch)
import Control.Monad (when)
import Data.Maybe (catMaybes)
import System.Directory ( doesFileExist )
import System.FilePath
import Test.Tasty
import Test.Tasty.HUnit
import Distribution.Compiler (Compi... | ian-ross/cabal | Cabal/tests/PackageTests/TestSuiteExeV10/Check.hs | bsd-3-clause | 5,629 | 0 | 18 | 1,246 | 1,373 | 720 | 653 | 113 | 5 |
module Aws.Ddb.Commands.JTypes (
Attribute (..),
ExpectedAttribute (..),
AttrValue (..),
ConsumedCapacity (..),
ReturnConsumedCapacity (..),
ReturnCollectionMetrics (..)
) where
import qualified Data.Either as E
import qualified Data.Vector as V
import qualified Data.Text ... | RayRacine/aws | Aws/Ddb/Commands/JTypes.hs | bsd-3-clause | 4,689 | 0 | 13 | 1,945 | 1,202 | 668 | 534 | 95 | 3 |
module Problem104 where
import Data.Array
import Data.List
lim :: Int
lim = 500000
main :: IO ()
main =
print
. head
. filter
(\x -> isPandigital (take 9 . show . fst $ fib1 ! x)
&& isPandigital (show $ fib2 ! x)
)
$ [1 ..]
where
fib1 :: Array... | adityagupta1089/Project-Euler-Haskell | src/problems/Problem104.hs | bsd-3-clause | 1,141 | 0 | 18 | 489 | 569 | 301 | 268 | 32 | 1 |
module Air.Cli.Interpretation where
import Database.Persist
import System.Log.FastLogger (LoggerSet)
import Air.Cli
import qualified Air.Domain as D
import qualified Air.Persistence as P
-- The persistence layer interpretation of a given command. A branch is selected
-- for the given command, and with the resul... | andorp/air | src/Air/Cli/Interpretation.hs | bsd-3-clause | 3,193 | 0 | 15 | 774 | 824 | 405 | 419 | 80 | 3 |
module Main where
import qualified Lexer
import qualified Parser
main :: IO ()
main = do
input <- getContents
let parsed = Parser.parse "" =<< Lexer.lex "" input
either print (mapM_ print) parsed
| letsbreelhere/egg | app/Parsegg.hs | bsd-3-clause | 204 | 0 | 12 | 41 | 75 | 38 | 37 | 8 | 1 |
{-# LANGUAGE
DeriveGeneric
, LambdaCase
, MultiParamTypeClasses #-}
module Type.BindingFlag
( BindingFlag (..)
, flexible
, rigid
) where
import Control.Lens
import Data.Semigroup
import GHC.Generics (Generic)
import Text.PrettyPrint.Free (Pretty (pretty), char)
data BindingFlag... | sonyandy/mlf | src/Type/BindingFlag.hs | bsd-3-clause | 844 | 0 | 9 | 181 | 247 | 134 | 113 | 30 | 1 |
module Idris.Lexer where
import Data.Char
import Debug.Trace
import Idris.AbsSyntax
type LineNumber = Int
type P a = String -> String -> LineNumber -> Fixities -> Result a
getLineNo :: P LineNumber
getLineNo = \s fn l ops -> Success l
getFileName :: P String
getFileName = \s fn l ops -> Success fn
getContent :: ... | avsm/Idris | Idris/Lexer.hs | bsd-3-clause | 15,030 | 2 | 19 | 4,353 | 5,548 | 2,934 | 2,614 | 385 | 43 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
{-|
Module : Sig.Sign
Description : Haskell Package Signing Tool: Signing Package... | ekmett/sig-tool | src/Sig/Sign.hs | bsd-3-clause | 3,682 | 0 | 15 | 1,001 | 824 | 443 | 381 | 96 | 2 |
{-|
Module : IRTS.JavaScript.LangTransforms
Description : The JavaScript LDecl Transformations.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE DeriveDataTypeable, OverloadedStrings, StandaloneDeriving #-}
module IRTS.JavaScript.LangTransforms( removeDeadCode
... | uuhan/Idris-dev | src/IRTS/JavaScript/LangTransforms.hs | bsd-3-clause | 3,091 | 0 | 14 | 696 | 1,098 | 557 | 541 | 73 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Evalso.Cruncher.Unsandboxed (version) where
import Evalso.Cruncher.Language (Language, rpm)
import Control.Lens
import qualified Data.Text as T
import qualified Shelly as S
version :: Language -> IO (Maybe T.Text)
version l = S.shelly . S.errExit False . S.silently $ do
v... | eval-so/cruncher | src/Evalso/Cruncher/Unsandboxed.hs | bsd-3-clause | 497 | 0 | 13 | 100 | 165 | 91 | 74 | 13 | 2 |
module Module (constructModule, showNameError) where
import qualified Data.Map as Map
import Data.List
import Debug.Trace
import Tokenizer -- reservedOperators
import Annotation
import Ast
import Span
-- TODO: Add warnings
type PathS = [String]
data Module =
Module { moduleAliases :: Map.Map PathS PathS
... | nulldatamap/bastet | src/Module.hs | bsd-3-clause | 10,234 | 2 | 21 | 3,064 | 3,541 | 1,825 | 1,716 | 212 | 16 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RecordWildCards #-}
-- | Given a file, guess settings from it by looking at the hints.
module Config.Compute(computeSettings) where
import GHC.All
import GHC.Util
import Config.Type
import Fixity
import Data.Generics.Uniplate.DataOnly
import GHC.Hs hiding (Warning)
import ... | ndmitchell/hlint | src/Config/Compute.hs | bsd-3-clause | 3,469 | 0 | 24 | 704 | 1,262 | 648 | 614 | 63 | 4 |
{-|
Module : Idris.Elab.Clause
Description : Code to elaborate clauses.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# LANGUAGE PatternGuards #-}
module Idris.Elab.Clause where
import Idris.AbsSyntax
import Idris.ASTUtils
import Idris.DSL
import Idris.Error
import Idris.Delaborate
impo... | ozgurakgun/Idris-dev | src/Idris/Elab/Clause.hs | bsd-3-clause | 53,914 | 9 | 28 | 21,427 | 15,346 | 7,619 | 7,727 | 843 | 51 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
import Distribution.Simple
import Distribution.Simple.Program.Builtin
import Distribution.Simple.Program.Types
import Distribution.Simple.Program
import Distribution.PackageDescription
import Distribution.Simple.LocalBuildInfo
import D... | wellposed/vector-vectorized | Setup.hs | bsd-3-clause | 3,592 | 3 | 12 | 788 | 673 | 355 | 318 | 30 | 1 |
{-# LANGUAGE CPP #-}
#if MIN_VERSION_GLASGOW_HASKELL(8,0,0,0)
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-unused-top-binds #-}
module Test.C... | cjdev/test-fixture | test/Test/Control/Monad/TestFixture/THSpec.hs | bsd-3-clause | 2,054 | 2 | 14 | 398 | 420 | 242 | 178 | 5 | 1 |
module ColorSound where
import FFT
import Data.WAVE
import Data.Complex
import Graphics.Gloss
import Debug.Trace
windowSize :: Num a => a
windowSize = 1024
edge1Hz :: Num a => a
edge1Hz = 200
edge2Hz :: Num a => a
edge2Hz = 800
split3 :: (Int, Int) -> [a] -> ([a], [a], [a])
split3 (e1, e2) l = (x, y, z)
where
... | akru/ColorSound | src/ColorSound.hs | bsd-3-clause | 1,533 | 2 | 17 | 520 | 683 | 366 | 317 | 45 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
module FPNLA.Operations.BLAS.Strategies.SYRK.DefSeq () where
import FPNLA.Matrix (MatrixVector,
fol... | mauroblanco/fpnla-examples | src/FPNLA/Operations/BLAS/Strategies/SYRK/DefSeq.hs | bsd-3-clause | 1,833 | 0 | 15 | 965 | 409 | 222 | 187 | 28 | 0 |
{-# LANGUAGE Trustworthy,
TypeOperators,
PolyKinds, DataKinds,
TypeFamilies,
UndecidableInstances #-}
module Type.BST.Compare (
-- * Comparison
Compare, LargestK(Largest), SmallestK(Smallest), CompareUser
) where
import GHC.TypeLits
import Type.BST.Item
type family (a :: Order... | Kinokkory/type-level-bst | src/Type/BST/Compare.hs | bsd-3-clause | 3,359 | 6 | 15 | 869 | 1,608 | 855 | 753 | 67 | 0 |
{-# LANGUAGE TypeOperators, ScopedTypeVariables #-}
module Web.Routes.Regular where
import Control.Applicative hiding ((<|>))
import Data.Text (Text, pack, toLower)
import Generics.Regular
import Text.ParserCombinators.Parsec.Prim
import Text.ParserCombinators.Parsec.Combinator
import Web.Routes.PathInfo (PathInfo(fro... | Happstack/web-routes-regular | Web/Routes/Regular.hs | bsd-3-clause | 1,669 | 0 | 14 | 353 | 565 | 296 | 269 | 36 | 0 |
{-# LANGUAGE Arrows, FlexibleContexts, MultiParamTypeClasses #-}
module Karamaan.Opaleye.Operators2 where
import Prelude hiding (and, or, not)
import Karamaan.Opaleye.Wire (Wire(Wire), unWire)
import Karamaan.Opaleye.OperatorsPrimatives (binrel)
import Karamaan.Opaleye.QueryArr (Query, QueryArr(QueryArr), next, tagWi... | karamaan/karamaan-opaleye | Karamaan/Opaleye/Operators2.hs | bsd-3-clause | 7,410 | 2 | 11 | 1,494 | 2,207 | 1,203 | 1,004 | 134 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-| @happstack-lite@ provides a simplied introduction to
@happstack-server@. (Nearly) all the functions in @happstack-lite@ are simple re-exports from the @happstack-server@ package. @happstack-lite@ offers two
key advantages over @happstack-server@:
1. it only contains the most commo... | Happstack/happstack-lite | Happstack/Lite.hs | bsd-3-clause | 16,269 | 0 | 14 | 3,458 | 1,734 | 1,099 | 635 | 161 | 1 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE GADTs #-}
module CodeGen where
import Control.Arrow
import Control.Arrow.Operations
import Control.Arrow.Transformer.Writer
import Control.Monad.Identity
import Expr
import X86_64 hiding (push, pop)
type X86_64 a b = WriterArrow [Instr]... | faineance/minigen | src/CodeGen.hs | bsd-3-clause | 1,442 | 1 | 10 | 469 | 553 | 279 | 274 | 41 | 1 |
{-|
Module : Data.Blob
Stability : Experimental
Portability : non-portable (requires POSIX)
This module provides interface for handling large objects -
also known as blobs.
One of the use cases for bloc is storing large objects in databases.
Instead of storing the entire blob in the database, you... | TypeDB/bloc | src/Data/Blob.hs | bsd-3-clause | 4,112 | 0 | 11 | 1,011 | 768 | 403 | 365 | -1 | -1 |
{-# LANGUAGE TypeFamilies #-}
-- | Unit tests for 3D CSG Operations
module CSG where
import Diagrams.Prelude hiding (nearly)
import Diagrams.ThreeD.Shapes
import Linear.Epsilon
import Test.Tasty
import Test.Tasty.HUnit
import Data.Maybe
tests :: Te... | diagrams/diagrams-test | misc/CSG.hs | bsd-3-clause | 9,472 | 0 | 20 | 2,840 | 2,478 | 1,245 | 1,233 | 181 | 1 |
data T = T {-# UNPACK #-} !X
{-# UNPACK #-} !X
| itchyny/vim-haskell-indent | test/pragma/unpack.out.hs | mit | 58 | 0 | 6 | 23 | 19 | 11 | 8 | 2 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ParallelListComp #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE RecordWildCards #-}
{-|
The @roi@ command prints internal rate of return and time-weighted rate of return for and investment.
-}
module Hledger.Cli.Commands.Roi (... | simonmichael/hledger | hledger/Hledger/Cli/Commands/Roi.hs | gpl-3.0 | 13,971 | 39 | 29 | 3,590 | 3,405 | 1,762 | 1,643 | 229 | 7 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-route53-domains/gen/Network/AWS/Route53Domains/GetDomainDetail.hs | mpl-2.0 | 14,842 | 0 | 51 | 3,055 | 2,019 | 1,210 | 809 | 188 | 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="sq-AL">
<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_sq_AL/helpset_sq_AL.hs | apache-2.0 | 974 | 80 | 66 | 160 | 415 | 210 | 205 | -1 | -1 |
module Test.Machine.Heap (tests) where
import Data.Text.Prettyprint.Doc
import Stg.Language.Prettyprint
import qualified Stg.Machine.Heap as Heap
import Stg.Machine.Types
import Test.Orphans ()
import Test.Tasty
import Test.Tasty.QuickCheck
tests :: TestTree
tests = testGrou... | quchen/stg | test/Testsuite/Test/Machine/Heap.hs | bsd-3-clause | 1,470 | 0 | 18 | 479 | 393 | 205 | 188 | 31 | 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="ru-RU">
<title>Расширенный сканер SQLInjection </title>
<maps>
<homeID>sqliplugin</homeID>
... | kingthorin/zap-extensions | addOns/sqliplugin/src/main/javahelp/help_ru_RU/helpset_ru_RU.hs | apache-2.0 | 1,033 | 77 | 66 | 158 | 495 | 248 | 247 | -1 | -1 |
-- Simple example demonstrating the syntax - semantic interplay: search and print definitions
module Main where
import System.Environment ; import System.FilePath
import System.IO
import Control.Arrow ; import Control.Monad
import Control.Applicative
import Debug.Trace
import Data.Maybe
import Data.Map (Map) ;... | llelf/language-c | examples/SearchDef.hs | bsd-3-clause | 2,659 | 13 | 22 | 725 | 814 | 413 | 401 | 48 | 6 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ViewPatterns #-}... | harendra-kumar/stack | src/Stack/Build.hs | bsd-3-clause | 14,033 | 7 | 20 | 4,539 | 2,840 | 1,520 | 1,320 | 224 | 6 |
module T13600b where
f ! (Just x) = f !! x
f ! y = head f
x = [1,2,3] ! Just 1
where
f ! (Just x) = f !! x
f ! y = head f
| sdiehl/ghc | testsuite/tests/parser/should_compile/T13600b.hs | bsd-3-clause | 134 | 0 | 9 | 50 | 97 | 48 | 49 | 6 | 2 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
module T12102 where
import Data.Kind
import GHC.TypeLits
type family IsTypeLit a where
IsTypeLit Nat = 'True
IsTypeLit Symbol = 'True
IsTypeLit a = 'False
data T :: forall a. (IsTypeLi... | sdiehl/ghc | testsuite/tests/typecheck/should_fail/T12102.hs | bsd-3-clause | 402 | 0 | 9 | 88 | 103 | 59 | 44 | -1 | -1 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE CPP #-}
#ifdef __GLASGOW_HASKELL__
{-# LANGUAGE ForeignFunctionInterface #-}
#endif
-----------------------------------------------------------------------------
-- |
-- Module : System.Mem
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see th... | beni55/haste-compiler | libraries/ghc-7.8/base/System/Mem.hs | bsd-3-clause | 887 | 2 | 7 | 134 | 75 | 55 | 20 | 5 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.