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 Haskell2010 #-}
-- | Math (display) for 'normalDensity'
--
-- \[
-- \int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}
-- \]
--
-- \(\int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}\)
module Math where
-- | Math (inline) for 'normalDensity'
-- \(\int_{-\infty}^{\infty} e^{-x^2/2} = \sqrt{2\pi}\)
-- \[\int_... | haskell/haddock | html-test/src/Math.hs | bsd-2-clause | 372 | 0 | 4 | 50 | 20 | 17 | 3 | 3 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE CPP #-}
#if __GLASGOW_HASKELL__ >= 800
{-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
#endif
{-# OPTIONS_GHC -fno-warn-dodgy-exports #-}
module Text.RE.PCRE
(
-- * Tutorial
-- $tutorial
-- * The Overloaded Match Operators
... | cdornan/idiot | Text/RE/PCRE.hs | bsd-3-clause | 2,481 | 0 | 8 | 656 | 466 | 292 | 174 | 47 | 1 |
{-|
Module : Idris.IdeMode
Description : Idris' IDE Mode
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
{-# LANGUAGE FlexibleInstances, IncoherentInstances, PatternGuards #-}
module Idris.IdeMode(parseMessage, convSExp, WhatDocs(..), IdeModeC... | uuhan/Idris-dev | src/Idris/IdeMode.hs | bsd-3-clause | 17,331 | 0 | 16 | 5,164 | 5,563 | 2,850 | 2,713 | 279 | 3 |
-----------------------------------------------------------------------------
--
-- Module : GenerateForm
-- Copyright :
-- License : BSD3
--
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability :
--
-- |
--
--------------------------------------------------------------------... | agocorona/MFlow | Demos/GenerateForm.hs | bsd-3-clause | 5,448 | 0 | 21 | 1,518 | 1,700 | 845 | 855 | 120 | 8 |
{-# LANGUAGE ViewPatterns, PatternGuards, FlexibleContexts #-}
{-
Find and match:
<TEST>
yes = 1:2:[] -- [1,2]
yes = ['h','e','l','l','o'] -- "hello"
yes (1:2:[]) = 1 -- [1,2]
yes ['h','e'] = 1 -- "he"
-- [a]++b -> a : b, but only if not in a chain of ++'s
yes = [x] ++ xs -- x : xs
no = "x" ++ xs
no = [x] ++ xs ... | fpco/hlint | src/Hint/List.hs | bsd-3-clause | 3,163 | 0 | 11 | 898 | 1,149 | 578 | 571 | 51 | 4 |
{-# LANGUAGE FlexibleContexts #-}
module Jade.Part ( isTerm
, isSubModule
, removeTerms
, bundle
, getValsWithIdent
, getBundleWithIdent
, getBundleWithLit
, width
, hasVal
... | drhodes/jade2hdl | src/Jade/Part.hs | bsd-3-clause | 3,462 | 0 | 16 | 1,018 | 1,116 | 568 | 548 | 89 | 6 |
{-# LANGUAGE GADTs, PolyKinds, TypeOperators, CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans -fno-warn-warnings-deprecations #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.Glambda.Util
-- Copyright : (C) 2015 Richard Eisenberg
-- License : BSD-style... | goldfirere/glambda | src/Language/Glambda/Util.hs | bsd-3-clause | 2,186 | 0 | 8 | 387 | 387 | 234 | 153 | 36 | 1 |
{-# language CPP #-}
-- | = Name
--
-- VK_KHR_push_descriptor - device extension
--
-- == VK_KHR_push_descriptor
--
-- [__Name String__]
-- @VK_KHR_push_descriptor@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
-- 81
--
-- [__Revision__]
-- 2
--
-- [__Extension a... | expipiplus1/vulkan | src/Vulkan/Extensions/VK_KHR_push_descriptor.hs | bsd-3-clause | 31,852 | 0 | 20 | 6,849 | 2,424 | 1,543 | 881 | -1 | -1 |
{-# LANGUAGE ForeignFunctionInterface #-}
module OIS.OISObject(
object_delete,
object_type,
object_buffered,
object_getCreator,
object_setBuffered,
object_capture,
object_getID,
object_queryInterface,
object__initialize
)
where
import OIS.Types
import Control.Monad
import Foreign
import Foreign.C.String
impo... | ghorn/hois | OIS/OISObject.hs | bsd-3-clause | 2,080 | 0 | 9 | 287 | 512 | 264 | 248 | 43 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# L... | martyall/kafaka-test | src/Types.hs | bsd-3-clause | 9,181 | 0 | 14 | 2,415 | 1,683 | 954 | 729 | 143 | 2 |
{-# LANGUAGE
FlexibleInstances
, NoMonomorphismRestriction
, TypeFamilies
, UndecidableInstances
#-}
module Data.CRDT.Classes where
import Prelude hiding (null)
import Algebra.Enumerable (Enumerable(..))
import Control.Arrow ((***))
import qualified Data.Set as S
import qualified Data.IntSet as IS
impo... | mgsloan/crdt | src/Data/CRDT/Classes.hs | bsd-3-clause | 4,287 | 0 | 11 | 1,086 | 1,694 | 887 | 807 | 115 | 1 |
-------------------------------------------------------------------------------
-- |
-- Module : XMonad.Util.ClickableWorkspaces
-- Description : Make workspace tags clickable in XMobar (for switching focus).
-- Copyright : (c) Geoff deRosenroll <[email protected]>
-- License : BSD3-style (see L... | xmonad/xmonad-contrib | XMonad/Util/ClickableWorkspaces.hs | bsd-3-clause | 3,314 | 0 | 14 | 506 | 353 | 219 | 134 | 20 | 1 |
module BaristaSpec where
import Data.Aeson (Value(..), object, (.=))
import Test.Hspec
import Test.Hspec.Wai
import Test.Hspec.Wai.JSON
import Barista (app)
spec :: Spec
spec = with app $ do
describe "GET /test" $ do
it "responds with 200" $ do
get "/test" `shouldRespondWith` 200
it "responds with '... | semaj/espresso | test/BaristaSpec.hs | bsd-3-clause | 878 | 0 | 18 | 172 | 237 | 125 | 112 | 20 | 1 |
{- |
Module : Graphics.XDot.Viewer
Copyright : (c) Dennis Felsing
License : 3-Clause BSD-style
Maintainer : [email protected]
This module draws the operations of an xdot graph using Cairo and Pango on a
Gtk canvas.
-}
module Graphics.XDot.Viewer (
drawAll
)
where
import Graphics.XDot.... | FranklinChen/xdot | src/Graphics/XDot/Viewer.hs | bsd-3-clause | 6,518 | 0 | 16 | 1,672 | 2,418 | 1,256 | 1,162 | 157 | 15 |
module Main where
import Data.Maybe (fromMaybe)
import System.Environment (getEnv, lookupEnv)
import Config
import Api
import Db
main :: IO ()
main =
do
config <- loadConfig
let dbConfig = subconfig "db" config
connection <- createConnection dbConfig
migrate dbConfig connection
runApi config
| b0oh/heroku-docker-haskell-stack-example | app/Main.hs | isc | 318 | 0 | 10 | 66 | 96 | 49 | 47 | 14 | 1 |
{-| Contains miscellaneous utility functions such as functions for working with signals and signal generators. -}
module FRP.Helm.Utilities (
-- * Angles
radians,
degrees,
turns,
-- * Applying
(<|),
(|>),
) where
{-| Converts radians into the standard angle measurement (radians). -}
radians :: Double -> ... | didmar/helm | src/FRP/Helm/Utilities.hs | mit | 927 | 0 | 8 | 192 | 169 | 105 | 64 | 16 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE Arrows #-}
module Main where
import Opaleye
import Data.Profunctor.Product
import Data.Profunctor.Product.Default
import Data.Profunctor... | vacationlabs/haskell-webapps | doc/docs/opaleye/code/opaleye-enums-handling.hs | mit | 2,428 | 1 | 13 | 485 | 648 | 346 | 302 | 57 | 1 |
{- |
Module : ./Maude/Meta/AsSymbol.hs
Description : Viewing Maude data types as Symbols
Copyright : (c) Martin Kuehl, Uni Bremen 2008-2009
License : GPLv2 or higher, see LICENSE.txt
Maintainer : [email protected]
Stability : experimental
Portability : portable
Viewing Maude data type... | spechub/Hets | Maude/Meta/AsSymbol.hs | gpl-2.0 | 3,030 | 0 | 15 | 733 | 569 | 300 | 269 | 52 | 1 |
main :: String -> ()
main "hoi" = ()
main "" = ()
main (_:_) = () | roberth/uu-helium | test/staticwarnings/Complete5.hs | gpl-3.0 | 69 | 0 | 7 | 20 | 49 | 25 | 24 | 4 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-missing-fields #-}
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-------------------... | sinjar666/fbthrift | thrift/compiler/test/fixtures/includes/gen-hs/Includes_Types.hs | apache-2.0 | 4,291 | 0 | 15 | 690 | 1,113 | 661 | 452 | 73 | 2 |
module GHC.Coercion where
import GHC.Kind
import GHC.Var
import GHC.Type
import Utilities
data Coercion = CoVarCo CoVarId
| ReflCo Type
| AppCo Coercion Coercion
| SymCo Coercion
| TransCo Coercion Coercion
| NthCo Int Coercion
| Fo... | beni55/cps-core | GHC/Coercion.hs | bsd-3-clause | 2,022 | 0 | 14 | 503 | 723 | 385 | 338 | 48 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ScopedTypeVariables #-}
-- Load information on package sources
module S... | ant1441/stack | src/Stack/Build/Source.hs | bsd-3-clause | 20,978 | 0 | 27 | 7,268 | 4,831 | 2,506 | 2,325 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE RankNT... | advancedtelematic/quickcheck-state-machine-model | src/Test/StateMachine/Lockstep/Simple.hs | bsd-3-clause | 8,987 | 0 | 15 | 2,149 | 2,752 | 1,445 | 1,307 | -1 | -1 |
{-| Utility functions for MonadPlus operations
-}
{-
Copyright (C) 2014 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright n... | leshchevds/ganeti | src/Ganeti/Utils/Monad.hs | bsd-2-clause | 3,508 | 0 | 15 | 781 | 681 | 365 | 316 | 36 | 2 |
-- |
-- Module : Crypto.PubKey.RSA.Prim
-- License : BSD-style
-- Maintainer : Vincent Hanquez <[email protected]>
-- Stability : experimental
-- Portability : Good
--
module Crypto.PubKey.RSA.Prim
(
-- * Decrypt primitive
dp
-- * Encrypt primitive
, ep
) where
import Cr... | tekul/cryptonite | Crypto/PubKey/RSA/Prim.hs | bsd-3-clause | 2,507 | 0 | 11 | 618 | 720 | 379 | 341 | 32 | 1 |
{-# OPTIONS_GHC -Wall #-}
module Reporting.Error.Docs where
import qualified Reporting.Report as Report
data Error
= NoDocs
| OnlyInDocs String
| OnlyInExports String
| NoComment String
| NoType String
-- TO REPORT
toReport :: Error -> Report.Report
toReport err =
case err of
NoDocs ->
... | JoeyEremondi/elm-summer-opt | src/Reporting/Error/Docs.hs | bsd-3-clause | 2,294 | 0 | 16 | 649 | 250 | 132 | 118 | 42 | 5 |
yes = reverse xs `isPrefixOf` reverse ys | bitemyapp/apply-refact | tests/examples/Default18.hs | bsd-3-clause | 40 | 0 | 6 | 6 | 18 | 9 | 9 | 1 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-- Don't do the cunning new newtype-deriving thing
-- when the type constructor is recursive
module ShouldCompile where
newtype A = A [A] deriving (Eq)
test :: A -> A -> Bool
test x y = x == y
| hvr/jhc | regress/tests/1_typecheck/2_pass/ghc/tc159.hs | mit | 228 | 0 | 6 | 47 | 52 | 31 | 21 | 5 | 1 |
import System.IO
file = "readwrite003.txt"
main = do
writeFile file "ab\ncd\nef\ngh"
h <- openFile file ReadWriteMode
hGetLine h
hPutStrLn h "yz"
hClose h
h <- openBinaryFile file ReadMode
hSetNewlineMode stdout noNewlineTranslation
hGetContents h >>= putStr
| olsner/ghc | libraries/base/tests/IO/readwrite003.hs | bsd-3-clause | 277 | 0 | 8 | 53 | 86 | 36 | 50 | 11 | 1 |
{-# OPTIONS -XRecursiveDo #-}
-- test of user defined instance of MonadFix
module Main (main) where
import Control.Monad
import Control.Monad.Fix
data X a = X a deriving Show
instance Functor X where
fmap f (X a) = X (f a)
instance Applicative X where
pure = return
(<*>) = ap
instance Monad X where
retu... | olsner/ghc | testsuite/tests/mdo/should_compile/mdo002.hs | bsd-3-clause | 516 | 0 | 11 | 145 | 219 | 115 | 104 | -1 | -1 |
import Control.Concurrent
import Control.Exception
-- test blocking & unblocking of async exceptions.
-- the first exception "foo" should be caught by the "caught1" handler,
-- since async exceptions are blocked outside this handler.
-- the second exception "bar" should be caught by the outer "caught2" handler,
-- (... | ezyang/ghc | testsuite/tests/concurrent/should_run/conc015.hs | bsd-3-clause | 1,386 | 0 | 21 | 368 | 303 | 149 | 154 | 28 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module A where
import Data.Data
import Data.Typeable
data Foo = Foo Int
deriving (Show, Data, Typeable)
| olsner/ghc | testsuite/tests/quasiquotation/T4491/A.hs | bsd-3-clause | 145 | 0 | 6 | 25 | 39 | 23 | 16 | 6 | 0 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE BangPatterns, GeneralizedNewtypeDeriving, NoImplicitPrelude #-}
module GHC.Event.Unique
(
UniqueSource
, Unique(..)
, newSource
, newUnique
) where
import Data.Int (Int64)
import GHC.Base
import GHC.Conc.Sync (TVar, atomically, newTVarIO, readTVar, w... | tolysz/prepare-ghcjs | spec-lts8/base/GHC/Event/Unique.hs | bsd-3-clause | 1,121 | 0 | 11 | 217 | 254 | 146 | 108 | 27 | 1 |
笑 :: Int
笑 = 3
main = print 笑
| urbanslug/ghc | testsuite/tests/parser/should_compile/T3741.hs | bsd-3-clause | 37 | 6 | 4 | 11 | 20 | 10 | 10 | -1 | -1 |
{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
module NLP.Stemmer.Cistem (stem,stemCaseInsensitive,Segmentation(..),segment',segment,segment'CaseInsensitive,segmentCaseInsensitive) where
import Data.Char
import Data.Monoid
import Data.Text as T
-- | Guess the word stem. This module uses the CISTEM algorithm, pu... | LeonieWeissweiler/CISTEM | Cistem.hs | mit | 3,759 | 0 | 13 | 990 | 1,086 | 567 | 519 | 80 | 2 |
module Test.Expr.GroupBy
( groupByTests,
)
where
import qualified Control.Monad.IO.Class as MIO
import qualified Data.ByteString.Char8 as B8
import qualified Data.Int as Int
import qualified Data.List.NonEmpty as NE
import qualified Data.Pool as Pool
import qualified Data.Text as T
import qualified Orville.Postgr... | flipstone/orville | orville-postgresql-libpq/test/Test/Expr/GroupBy.hs | mit | 4,256 | 0 | 18 | 814 | 1,086 | 585 | 501 | 90 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Mattermost.Api
( Api
, MessagePayload(..)
, Attachment(..)
, Field(..)
, hook
, api
) where
import Data.Text (Text)
import Servant
import ... | UlfS/ghmm | src/Mattermost/Api.hs | mit | 765 | 0 | 10 | 197 | 141 | 85 | 56 | 20 | 1 |
module Prepare.Source.Output where
import Prelude hiding (Word, last)
import qualified Data.Char as Char
import qualified Data.List as List
import qualified Data.List.Split as Split
import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.IO as Text
import qualified System.Directory as Fil... | ancientlanguage/haskell-analysis | prepare/src/Prepare/Source/Output.hs | mit | 6,385 | 0 | 15 | 1,203 | 2,369 | 1,238 | 1,131 | 155 | 2 |
{-# LANGUAGE FlexibleInstances, TypeSynonymInstances, CPP, DeriveDataTypeable, DeriveFunctor #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.Python.Common.AST
-- Copyright : (c) 2009 Bernie Pope
-- License : BSD-style
-- Maintainer : [email protected]... | TOSPIO/pyn | lib/Language/Python/Common/AST.hs | mit | 27,628 | 0 | 15 | 5,916 | 5,210 | 3,149 | 2,061 | 453 | 0 |
module ProjectEuler.Problem104
( problem
) where
import qualified Data.Set as S
import ProjectEuler.Types
problem :: Problem
problem = pureProblem 104 Solved result
fibs :: [Integer]
fibs = 0:1:zipWith (+) (tail fibs) fibs
-- internal only. as we are only interest in some particular parts
-- of the "show" resu... | Javran/Project-Euler | src/ProjectEuler/Problem104.hs | mit | 763 | 0 | 11 | 148 | 251 | 136 | 115 | 19 | 1 |
module RecursiveContents (getRecursiveContents) where
import Control.Monad (forM)
import System.Directory (doesDirectoryExist, getDirectoryContents)
import System.FilePath ((</>))
getRecursiveContents :: FilePath -> IO [FilePath]
getRecursiveContents topdir = do
names <- getDirectoryContents topdir
let proper... | mithril1992/HaskellPractice | RecursiveContents.hs | mit | 614 | 0 | 15 | 131 | 177 | 93 | 84 | 15 | 2 |
{-# LANGUAGE QuasiQuotes #-}
module Y2018.M02.D06.Solution where
{--
What were the articles uploaded or updated today? How do we find that out?
We ... can determine this, given our current upload process: we look in the
logs. This, however, is not desireable: we simply want to answer a question
with no manual (parsi... | geophf/1HaskellADay | exercises/HAD/Y2018/M02/D06/Solution.hs | mit | 2,924 | 0 | 9 | 456 | 275 | 177 | 98 | 25 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
module AtnBot.UserTracker
( TrackerHandle
, newTrackerHandle
, trackUser
, getTrackedUsers
, lookupIMChannel
, channelIsIM
) where
import Control.Lens
import Con... | asayers/attendancebot | src/AtnBot/UserTracker.hs | mit | 1,544 | 0 | 12 | 288 | 448 | 232 | 216 | -1 | -1 |
module Runtime(
typeCast,
defaultVal,
toBool,
boolType,
true,
false,
isTrue,
isFalse,
voidType,
void,
intType,
makePtr
)where
import Grammar
import Parse
import Type
import Value
import Control.Applicative
-- Input: Target type, a RIGHT value
typeCast :: Type -> Value -> Value
typeCast t1 v@(RVal t2 x)
| t1 == t1... | sqd/haskell-C89-interpreter | Runtime.hs | mit | 1,027 | 0 | 8 | 200 | 406 | 216 | 190 | 39 | 2 |
{-
HAAP: Haskell Automated Assessment Platform
This module runs the @GHC@ plugin with the @-Wall@ flag to give all kinds of warnings on code quality.
-}
{-# LANGUAGE EmptyDataDecls, TypeFamilies, FlexibleInstances, FlexibleContexts, UndecidableInstances, MultiParamTypeClasses, OverloadedStrings #-}
module HAAP.Code... | hpacheco/HAAP | src/HAAP/Code/GHC.hs | mit | 3,039 | 0 | 27 | 749 | 751 | 388 | 363 | 56 | 1 |
{-# LANGUAGE GADTs, KindSignatures #-}
data List :: * -> * where
Nil :: List a
Cons :: a -> List a -> List a
concat' = \as bs -> case as of
[] -> bs
(:) a as -> (:) a (concat' as bs)
showPosInt = \n ->
let
showDigit = \d -> case d of
0 -> '0'
1 -> '1'
2 -> '2'
3 -> '3'
4 -... | CindyLinz/Haskell.js | trans/sample/fibs.hs | mit | 1,453 | 0 | 21 | 585 | 738 | 380 | 358 | 60 | 12 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TemplateHaskell #-}
module SoOSiM.Components.Thread.Behaviour where
import Control.Concurrent.STM
import Control.Concurrent.STM.TQueue
import Control.Lens
import Control.Monad
import Data.Maybe
import SoOSiM
import SoOSiM.Components.Common
import SoOSiM.Components.... | christiaanb/SoOSiM-components | src/SoOSiM/Components/Thread/Behaviour.hs | mit | 2,600 | 0 | 20 | 586 | 826 | 430 | 396 | 67 | 5 |
{-|
Module : Control.Arrow.Needle
Description : ASCII-fied arrow notation.
Copyright : (c) 2014 Josh Kirklin
License : MIT
Maintainer : [email protected]
Needle is a domain specific language for ASCII-fied arrow notation. This module enables the use of needle within Haskell by making use of Template Haskell.... | ScrambledEggsOnToast/needle | Control/Arrow/Needle.hs | mit | 1,796 | 0 | 5 | 537 | 43 | 29 | 14 | 6 | 0 |
-- generic functions can be defined
:t fast
:t head
| luisgepeto/HaskellLearning | 03 Types and Typeclasses/02_type_variables.hs | mit | 52 | 4 | 5 | 10 | 18 | 7 | 11 | -1 | -1 |
module Parser.Parser where
import Control.Monad (liftM)
import Numeric (readFloat)
import Text.ParserCombinators.Parsec hiding (spaces)
import Parser.Types.LispVal
parseExpr :: Parser LispVal
parseExpr = parseAtom
<|> parseString
<|> parseNumber
<|> parseQuasiQuoted
<|> parseQuoted
<|> par... | slogsdon/haskell-exercises | write-a-scheme/parsing/src/Parser/Parser.hs | mit | 2,561 | 0 | 15 | 627 | 866 | 416 | 450 | 91 | 3 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANG... | zenhack/haskell-capnp | lib/Capnp/New/Accessors.hs | mit | 7,708 | 0 | 16 | 2,080 | 2,396 | 1,236 | 1,160 | 169 | 4 |
-- xmobar configuration file
--
-- Mess with this file to change the appearance of the contents of the status
-- bar which are not directly controlled by xmonad. You can see your changes
-- immediately by recompiling xmonad using "super-q".
--
-- There's a lot you can do here. Refer to "man xmobar".
--
-- Author: David... | diminishedprime/dotfiles | .xmonad/xmobarrc.hs | mit | 3,657 | 0 | 9 | 1,157 | 284 | 184 | 100 | -1 | -1 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 [email protected]
--
-- This file is part of grid.
--
-- grid 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 Lice... | karamellpelle/grid | source/Game/LevelPuzzle/Helpers/PlayerPath.hs | gpl-3.0 | 3,046 | 0 | 14 | 726 | 706 | 362 | 344 | 58 | 2 |
module Lab2.Util.Ibans where
validIbans :: [String]
validIbans = [ "AL47212110090000000235698741",
"AD1200012030200359100100",
"AT611904300234573201",
"AZ21NABZ00000000137010001944",
"BH67BMAG00001299123456",
"BE62510007547061",
... | vdweegen/UvA-Software_Testing | Lab2/Util/Ibans.hs | gpl-3.0 | 2,513 | 0 | 5 | 923 | 194 | 129 | 65 | 60 | 1 |
module Main where
import System.Environment
import Data.Maybe
import Data.List
import Control.Monad
import Data.Char
split :: Eq a => a -> [a] -> [[a]]
split _ [] = []
split s w = takeWhile (/= s) w : (split s $ drop 1 $ dropWhile (/= s) w)
processFragment :: String -> String
processFragment inp = reverse $ takeWhil... | aauger/HaskellCoreUtils | HaskellCoreUtils/src/strings.hs | gpl-3.0 | 679 | 4 | 21 | 158 | 289 | 145 | 144 | 23 | 2 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 [email protected]
--
-- This file is part of grid.
--
-- grid 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 Lice... | karamellpelle/grid | source/Game/Grid/GridData/Plain/SoundPath.hs | gpl-3.0 | 2,021 | 0 | 9 | 452 | 268 | 145 | 123 | 37 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dataproc/gen/Network/Google/Resource/Dataproc/Projects/Regions/WorkflowTemplates/Update.hs | mpl-2.0 | 6,321 | 0 | 16 | 1,287 | 785 | 462 | 323 | 119 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.URLShortener.Types
-- Copyright : (c) 2015-2016 Brenda... | rueshyna/gogol | gogol-urlshortener/gen/Network/Google/URLShortener/Types.hs | mpl-2.0 | 2,067 | 0 | 7 | 510 | 219 | 152 | 67 | 55 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-cloudkms/gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Get.hs | mpl-2.0 | 6,206 | 0 | 15 | 1,245 | 701 | 411 | 290 | 115 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-containeranalysis/gen/Network/Google/Resource/ContainerAnalysis/Projects/Occurrences/BatchCreate.hs | mpl-2.0 | 5,682 | 0 | 17 | 1,238 | 781 | 456 | 325 | 117 | 1 |
module Network.Haskoin.Wallet.Block where
import Control.Exception (throw)
import Control.Monad.Catch (MonadThrow, throwM)
import Control.Monad.Trans (MonadIO)
import Data.Maybe (fromMaybe)
import D... | plaprade/haskoin | haskoin-wallet/src/Network/Haskoin/Wallet/Block.hs | unlicense | 2,513 | 0 | 16 | 856 | 797 | 412 | 385 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
-- |
-- Module : DNA.Logging
-- Copyright : (C) 2014-2015 Braam Research, LLC.
-- License : Apache-2.0
--
-- Logging and profiling facilities. Log messages are written to GHC's
-- eventlog in the following f... | SKA-ScienceDataProcessor/RC | MS3/lib/DNA/Logging.hs | apache-2.0 | 27,011 | 0 | 20 | 6,381 | 4,905 | 2,610 | 2,295 | 349 | 3 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module CloudTests (cloudTests) where
import Control.Monad
import Control.Monad.IO.Class
import Data.ByteArray as BA
import System.Directory
import System.Directory.Tree
import System.FilePath
import Sys... | rblaze/private-cloud | test/CloudTests.hs | apache-2.0 | 20,596 | 0 | 30 | 7,502 | 4,854 | 2,578 | 2,276 | 438 | 8 |
import Control.Concurrent
import Control.Exception
import System.Posix
main = do
pid <- forkProcess $ do
handle (\UserInterrupt{} -> putStrLn "caught")
$ threadDelay 2000000
signalProcess sigINT pid
threadDelay 2000000
| mettekou/ghc | testsuite/tests/rts/T12903.hs | bsd-3-clause | 255 | 0 | 15 | 63 | 74 | 35 | 39 | 9 | 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.
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE NoReb... | facebookincubator/duckling | Duckling/Distance/Types.hs | bsd-3-clause | 3,600 | 0 | 13 | 783 | 1,096 | 604 | 492 | 90 | 1 |
{-# LANGUAGE TupleSections #-}
module Value (
Infix(..),
Value(..),
Pattern(..),
patVars,
match,
Env,
Var(V),
initialize,
setVars,
setPat,
setPats,
getVal,
getVars,
mapEnv
) where
import Prelude hiding (showList)
import Env (Var(V), getVars, mapEnv)
import qualified Env (Env, initialize, setVars, setP... | YoshikuniJujo/toyhaskell_haskell | src/Value.hs | bsd-3-clause | 4,069 | 168 | 13 | 902 | 1,998 | 1,056 | 942 | 127 | 1 |
-- |
-- Module : Data.Git.Pack
-- License : BSD-style
-- Maintainer : Vincent Hanquez <[email protected]>
-- Stability : experimental
-- Portability : unix
--
module Data.Git.Pack
( PackedObjectInfo(..)
, PackedObjectRaw
-- * Enumerators of packs
, packEnumerate
-- * Helpers to process packs
, packOpe... | Twinside/hit-simple | Data/Git/Pack.hs | bsd-3-clause | 5,767 | 228 | 9 | 1,097 | 1,566 | 896 | 670 | 113 | 6 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{... | MichielDerhaeg/stack | src/Stack/Package.hs | bsd-3-clause | 58,229 | 0 | 24 | 17,291 | 12,798 | 6,653 | 6,145 | 1,102 | 12 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Network.Wai.Lens where
import Control.Lens
import Data.ByteString (ByteString)
import Data.Foldable
import Data.Monoid
import ... | webcrank/wai-lens | src/Network/Wai/Lens.hs | bsd-3-clause | 3,201 | 0 | 12 | 643 | 1,021 | 556 | 465 | 81 | 1 |
module Day23.Test where
import qualified Data.Map.Strict as M
import Day23
import Test.Hspec
tests :: SpecWith ()
tests = do
describe "Part1" $ do
it "Test1" $ do
part1 M.empty 'a' test1 `shouldBe` 3
describe "Part2" $ do
it "Test1" $ do
part2 M.empty 'a' test1 `shouldBe` 3... | z0isch/aoc2016 | test/Day23/Test.hs | bsd-3-clause | 321 | 0 | 15 | 93 | 114 | 58 | 56 | 12 | 1 |
module TTT.MinimaxSpec where
import Control.Monad.State (evalState)
import qualified Data.Map as M (empty)
import Test.Hspec
import TTT.Minimax (getMove)
import TTT.Minimax.Internal (minimax)
import TTT.GameState (GameState(..), Space(..), Token(..), availableMoves,initialState, makeMove, isWinFor, choose)
playAllGa... | jcg3challenges/haskell_ttt | test/TTT/MinimaxSpec.hs | bsd-3-clause | 7,793 | 0 | 22 | 2,901 | 2,106 | 1,088 | 1,018 | 110 | 2 |
-- | Various functions
module Misc.Stuff (fact,len) where
-- | Calculates the fatorial
fact :: Int -> Int
fact 0 = 1
fact n = n * fact (n-1)
-- | Calculates the length of a list
len :: [a] -> Int
len [] = 0
len (_:xs) = 1 + len xs
| emaphis/Haskell-Practice | testing-project/src/Misc/Stuff.hs | bsd-3-clause | 235 | 0 | 8 | 57 | 100 | 55 | 45 | 7 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-|
Module : Numeric.AERN.RealArithmetic.Basis.MPFR
Description : Instances for MPFR as interval endpoints.
Copyright : (c) Michal Konecny
License : BSD3
Maintainer : [email protected]
Stability : experimental
Portability : portable (i... | michalkonecny/aern | aern-mpfr/src/Numeric/AERN/RealArithmetic/Basis/MPFR.hs | bsd-3-clause | 2,914 | 0 | 10 | 496 | 545 | 342 | 203 | 55 | 0 |
module Problem14
( p14
) where
import Data.List (maximum, maximumBy)
import Data.Ord (comparing)
collatz' :: Int -> Int -> Int
collatz' i n
| n == 1 = i
| n `mod` 2 == 0 = collatz' (i + 1) $ n `div` 2
| otherwise = collatz' (i + 1) $ (3 * n) + 1
collatz :: Int -> Int
collatz = collatz' 0
p14 = show . maxi... | anup-2s/project-euler | src/Problem14.hs | bsd-3-clause | 363 | 0 | 10 | 91 | 183 | 98 | 85 | 12 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
module Distribution.Nixpkgs.Haskell.Derivation
( Derivation, pkgid, revision, src, isLibrary, isExecutable
, extraFunctionArgs, libraryDepends, executableDepend... | gridaphobe/cabal2nix | distribution-nixpkgs/src/Distribution/Nixpkgs/Haskell/Derivation.hs | bsd-3-clause | 6,944 | 0 | 18 | 1,601 | 1,511 | 822 | 689 | 123 | 0 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE BangPatterns #-}
{-# OPTIONS_GHC -fno-warn-incomplete-patterns #-}
module CmmContFlowOpt
( cmmCfgOpts
, cmmCfgOptsProc
, removeUnreachableBlocksProc
, replaceLabels
)
where
import GhcPrelude hiding (succ, unzip, zip)
import Hoopl.Block
import Hoopl.Collections
i... | shlevy/ghc | compiler/cmm/CmmContFlowOpt.hs | bsd-3-clause | 16,886 | 0 | 18 | 4,657 | 2,593 | 1,391 | 1,202 | 174 | 8 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
--
-- Copyright (c) 2009-2011, ERICSSON AB
-- All rights reserved.
--
-- Redistribution and use in source and binary forms,... | emwap/feldspar-language | src/Feldspar/Core/Constructs/Literal.hs | bsd-3-clause | 2,521 | 0 | 11 | 437 | 242 | 147 | 95 | -1 | -1 |
module Main where
import Types
import Game
import AI
import Control.Monad
import Control.Monad.Random
randIndex :: RandomGen r => Int -> Rand r Int
randIndex len = getRandomR (0, len - 1)
randMove :: RandomGen r => Game -> Rand r Move
randMove g = do
let ls = legalSquares g
n = length ls
idx <- randInde... | reedrosenbluth/othello | tests/Test.hs | bsd-3-clause | 1,232 | 0 | 14 | 340 | 494 | 244 | 250 | 38 | 3 |
{-
Purely Functional Queue with Amortised Linear Cost
Based on section 3 of
Christoph Herrmann, Edwin Brady and Kevin Hammond. 2011.
Dependently-typed Programming by Composition from Functional
Building Blocks.
In Draft Proceedings of the 12th International Symposium on Trends
in Functional ... | adamgundry/inch | examples/Queue.hs | bsd-3-clause | 2,405 | 63 | 16 | 686 | 944 | 516 | 428 | -1 | -1 |
--------------------------------------------------------------------------------
-- | A store for storing and retreiving items
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Hakyll.Core.Store
( Store
, Result (..)
, toMaybe
, new
, set
, get
, de... | bergmark/hakyll | src/Hakyll/Core/Store.hs | bsd-3-clause | 5,742 | 0 | 17 | 1,384 | 1,230 | 659 | 571 | 95 | 3 |
module ScrabbleScoreKata.Day4Spec (spec) where
import Test.Hspec
import ScrabbleScoreKata.Day4 (score)
spec :: Spec
spec = do
it "is zero when empty input" $ do
score "" `shouldBe` 0
it "is 1 when given lowercase 'a'" $ do
score "a" `shouldBe` 1
it "is... | Alex-Diez/haskell-tdd-kata | old-katas/test/ScrabbleScoreKata/Day4Spec.hs | bsd-3-clause | 1,071 | 0 | 11 | 389 | 268 | 128 | 140 | 26 | 1 |
{-# LANGUAGE DeriveDataTypeable, TypeFamilies #-}
module Main where
import Graphics.QML.Test.Framework
import Graphics.QML.Test.Harness
import Graphics.QML.Test.SimpleTest
import Test.QuickCheck
import Data.Proxy
main :: IO ()
main = checkProperty $ TestType (Proxy :: Proxy SimpleMethods)
| drhodes/HsQML | test/Test1.hs | bsd-3-clause | 293 | 0 | 8 | 34 | 67 | 41 | 26 | 9 | 1 |
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module : Data.String.Parse
-- License : BSD-style
-- Maintainer : Vincent Hanquez <[email protected]>
-- Stability : experimental
-- Portability : portable
--
-- A very simple string parser related to Parsec... | NicolasDP/hop | Data/String/Parse.hs | bsd-3-clause | 6,100 | 0 | 15 | 1,699 | 1,807 | 946 | 861 | 113 | 5 |
-----------------------------------------------------------------------------
-- |
-- Module : Text.JSON.ToJSON
-- Copyright : (c) Scrive 2011
-- License : BSD-style (see the LICENSE file in the distribution)
--
-- Maintainer : [email protected]
-- Stability : development
-- Portability : portable
... | scrive/fields-json | src/Text/JSON/ToJSValue.hs | bsd-3-clause | 2,157 | 0 | 8 | 376 | 538 | 284 | 254 | 47 | 0 |
module Validations where
import Data.Text (Text)
import qualified Data.Text as T (null)
-- isAdult :: Monad m => Validator m String User
isNotEmpty :: Text -> Bool
isNotEmpty = not . T.null
isPhone :: Text -> Bool
isPhone _ = True
| vyorkin-archive/assignment | api/src/Validations.hs | mit | 235 | 0 | 6 | 45 | 65 | 39 | 26 | 7 | 1 |
{- | Module : ./GMP/GMP-CoLoSS/GMP/Logics/C.hs
- Description : Implementation of logic instance Coalition Logic
- Copyright : (c) Daniel Hausmann & Georgel Calin & Lutz Schroeder, DFKI Lab Bremen,
- Rob Myers & Dirk Pattinson, Department of Computing, ICL
- License : GPLv2 or higher, see... | spechub/Hets | GMP/GMP-CoLoSS/GMP/Logics/C.hs | gpl-2.0 | 6,773 | 0 | 19 | 2,351 | 1,573 | 803 | 770 | 85 | 2 |
--
-- Data vault for metrics
--
-- Copyright © 2013-2014 Anchor Systems, Pty Ltd and Others
--
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms of
-- the 3-clause BSD licence.
--
{-... | afcowie/vaultaire | tests/ContentsTest.hs | bsd-3-clause | 3,651 | 0 | 20 | 1,027 | 850 | 444 | 406 | 79 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
-- | This module only exports orphan 'Store.Store' instances. Import as:
--
-- @
-- import "... | k0001/haskell-money | safe-money-store/src/Money/Store.hs | bsd-3-clause | 3,699 | 0 | 13 | 660 | 1,117 | 560 | 557 | 80 | 2 |
module Tyckiting.AI.Timid (timidAI) where
import Prelude ()
import Prelude.Compat
import Control.Monad.Random (uniform)
import Data.List (nub)
import Data.Monoid (First (..))
import Tyckiting.Action
import Tyckiting.AI
import Tyckiting.Event
import Tyckiting.Position
import Tyckiting.Types... | vvmann/tyckiting-bot | clients/haskell/src/Tyckiting/AI/Timid.hs | mit | 1,869 | 0 | 14 | 436 | 534 | 271 | 263 | 45 | 2 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RankNTypes #-}
{- |
Module : Data.ML.Model
Description : Model class.
Copyright : (c) Paweł Nowak
License : MIT
Maintai... | bitemyapp/machine-learning | src/Data/ML/Model.hs | mit | 1,517 | 6 | 11 | 327 | 430 | 238 | 192 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-redshift/gen/Network/AWS/Redshift/DescribeOrderableClusterOptions.hs | mpl-2.0 | 7,915 | 0 | 12 | 1,502 | 814 | 490 | 324 | 85 | 1 |
--
-- Copyright (c) 2014 Citrix Systems, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This progra... | jean-edouard/manager | xenmgr/XenMgr/PowerManagement.hs | gpl-2.0 | 20,373 | 0 | 18 | 5,303 | 4,705 | 2,318 | 2,387 | 409 | 6 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_HADDOCK hide #-}
-- #hide
-----------------------------------------------------------------------------
-- |
-- Module : Data.Sequence
-- Copyright : (c) Ross Paterson 2005
-- License : BSD-style
-- Maintainer : [email protected]
-- Stability : experimental
-- Porta... | juhp/gtk2hs | gtk/Graphics/UI/Gtk/ModelView/Sequence.hs | lgpl-3.0 | 39,001 | 722 | 18 | 9,286 | 18,049 | 9,274 | 8,775 | 704 | 2 |
-----------------------------------------------------------------------------
-- Standard Library: System operations
--
-- Note: on Windows 9x, system always yields ExitSuccess.
--
-- Suitable for use with Hugs 98
-----------------------------------------------------------------------------
module Hugs.System (
getAr... | kaoskorobase/mescaline | resources/hugs/packages/hugsbase/Hugs/System.hs | gpl-3.0 | 1,777 | 25 | 11 | 421 | 397 | 206 | 191 | -1 | -1 |
module Lint where
import Control.Applicative
import Data.List
import Language.Haskell.HLint
import Types
lintSyntax :: Options -> String -> IO String
lintSyntax opt file = pretty <$> lint opt file
where
pretty = unlines . map (intercalate "\0" . lines)
lint :: Options -> String -> IO [String]
lint opt file = m... | syohex/ghc-mod | Lint.hs | bsd-3-clause | 375 | 0 | 11 | 68 | 137 | 72 | 65 | 10 | 1 |
{- $Id: AFRPTestsPSwitch.hs,v 1.2 2003/11/10 21:28:58 antony Exp $
******************************************************************************
* A F R P *
* *
* Module: ... | ony/Yampa-core | tests/AFRPTestsPSwitch.hs | bsd-3-clause | 9,592 | 68 | 20 | 2,925 | 3,663 | 2,206 | 1,457 | 250 | 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>DOM XSS Active Scan Rule | ZAP Extension</title>
<maps>
<homeID>top</homeID>
... | kingthorin/zap-extensions | addOns/domxss/src/main/javahelp/org/zaproxy/zap/extension/domxss/resources/help_sk_SK/helpset_sk_SK.hs | apache-2.0 | 985 | 83 | 52 | 162 | 402 | 212 | 190 | -1 | -1 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="pt-BR">
<title>Highlighter</title>
<maps>
<homeID>highlighter</homeID>
<mapref location... | thc202/zap-extensions | addOns/highlighter/src/main/javahelp/help_pt_BR/helpset_pt_BR.hs | apache-2.0 | 964 | 82 | 52 | 155 | 387 | 205 | 182 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for ganeti-htools.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software ... | narurien/ganeti-ceph | test/hs/Test/Ganeti/HTools/PeerMap.hs | gpl-2.0 | 2,618 | 0 | 10 | 569 | 422 | 227 | 195 | 38 | 2 |
#!/usr/bin/env runghc
-- delink.hs
import Text.Pandoc.JSON
main = toJSONFilter delink
delink :: Inline -> [Inline]
delink (Link _ txt _) = txt
delink x = [x]
| heroxbd/SHTOOLS | src/pydoc/delink.hs | bsd-3-clause | 171 | 0 | 7 | 39 | 58 | 32 | 26 | 5 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.