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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
import qualified Data.ByteString as B
import Control.Monad
import Microbench
import Commit
main = microbench "commit parsing" parseOneCommit where
parseOneCommit = do
text <- B.readFile "testdata/commit"
let Right commit = parseCommit text
unless (length (commit_parents commit) > 0) $
fail "mispar... | martine/gat | Commit_perftest.hs | gpl-2.0 | 338 | 0 | 15 | 68 | 102 | 49 | 53 | 11 | 1 |
{-# OPTIONS_GHC -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.Tuple
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- ... | kaoskorobase/mescaline | resources/hugs/packages/base/Data/Tuple.hs | gpl-3.0 | 1,095 | 0 | 4 | 402 | 45 | 37 | 8 | 7 | 0 |
module Graphics.Forensics.Analyser.Demosaic where
import Prelude hiding (zipWith3)
import Graphics.Forensics.Algorithms.Convolve
import Graphics.Forensics.Analyser
import Graphics.Forensics.Color
import Graphics.Forensics.Image
import Graphics.Forensics.Report
import Graphics.Forensics.Utilities (zipWith3)
import Dat... | Purview/purview | src/Graphics/Forensics/Analyser/Demosaic.hs | gpl-3.0 | 1,317 | 0 | 13 | 262 | 329 | 179 | 150 | -1 | -1 |
module Main where
import Command
import Hardware1
import Hardware2
main = do
run start
run stop
print $ getInfo start
print $ getInfo stop
run rotate
print ""
| graninas/Haskell-Algorithms | Tests/Types/Test.hs | gpl-3.0 | 197 | 0 | 8 | 66 | 62 | 28 | 34 | 11 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Data.Cellular where
import Data.Subset
import Data.DecidableSubset
import Data.Maybe
import Data.Monoid
import Data.List
import Data.Function.MemoM
import Control.Monad.Identity
newtype CellularT m g a = Cellular { delta :: (g -> m a) -> m a }
-- This type is quite annoying... | gallais/potpourri | haskell/cellular/Data/Cellular.hs | gpl-3.0 | 1,626 | 0 | 11 | 387 | 578 | 308 | 270 | 26 | 1 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
-- |
-- Copyright : (c) 2010-2012 Benedikt Schmidt & Simon Meier
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
-- Portability : GHC only
--
-- A monad for writing constraint ... | ekr/tamarin-prover | lib/theory/src/Theory/Constraint/Solver/Reduction.hs | gpl-3.0 | 29,399 | 297 | 29 | 9,124 | 6,287 | 3,284 | 3,003 | 459 | 14 |
{-|
Module : Fuzzball.Algorithm
Description : Implementation of a fuzzy matching algorithm
The Fuzzball.Algorithm module implements the actual fuzzy matching algorithm.
-}
module Fuzzball.Algorithm
( fuzzyMatch
, MatchRating(..)
) where
-- | The rating of the quality of a fuzzy match
data MatchRatin... | froozen/fuzzball | src/Fuzzball/Algorithm.hs | gpl-3.0 | 1,119 | 0 | 13 | 306 | 315 | 167 | 148 | 19 | 2 |
module Lambda.Types.Either where
import Lambda.Variable
import Lambda.Engine
-- Introduction
inl :: Term -> Term
inl a = Lambda onleft (Lambda onright (Apply (VarTerm onleft) a))
where onleft = head unusedVars
onright = unusedVars !! 1
unusedVars = notUsed $ allVar a
inr :: Term ->... | fpoli/lambda | src/Lambda/Types/Either.hs | gpl-3.0 | 1,384 | 0 | 17 | 503 | 448 | 225 | 223 | 32 | 3 |
{-# LANGUAGE NoImplicitPrelude #-}
module My.XMonad.Config.Mods.Amixer (alsaKeys) where
import Control.Arrow ((***))
import Data.Function ((.), ($))
import Data.List (map)
import Data.Map.Lazy (fromList)
import qualified Graphics.X11.ExtraTypes.XF86 as XF86
import XMonad (noModMask)
import My.XMonad.Core (KeyConfig,... | xkollar/my-xmonad | src/My/XMonad/Config/Mods/Amixer.hs | gpl-3.0 | 605 | 0 | 11 | 91 | 194 | 121 | 73 | 15 | 1 |
{-# LANGUAGE ForeignFunctionInterface #-}
{-----------------------------------------------------------------
(c) 2008-2009 Markus Dittrich
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License Version 3 as published by the Free Software ... | markusle/husky | src/ExtraFunctions.hs | gpl-3.0 | 4,946 | 0 | 15 | 1,424 | 941 | 508 | 433 | 64 | 2 |
{-
- Copyright (C) 2015-2016 Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
-
- This file is part of FuncTorrent.
-
- FuncTorrent 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 ... | vu3rdd/functorrent | src/FuncTorrent/Metainfo.hs | gpl-3.0 | 6,258 | 0 | 16 | 2,811 | 1,210 | 650 | 560 | 123 | 4 |
module Pause where
import DataTypes
import Graphics.Gloss
import Graphics.Gloss.Interface.Pure.Game
-- | Update the pause screen.
updatePause :: Float -> AsteroidsGame -> AsteroidsGame
updatePause seconds game = game
-- | Handle the key events on the pause screen.
handlePauseKeys :: Event -> AsteroidsGame -> Asteroid... | kareem2048/Asteroids | Pause.hs | gpl-3.0 | 1,704 | 0 | 13 | 335 | 327 | 181 | 146 | 18 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
-- Module : Gen.Types.Ann
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : This Source ... | fmapfmapfmap/amazonka | gen/src/Gen/Types/Ann.hs | mpl-2.0 | 4,409 | 0 | 11 | 1,323 | 1,173 | 646 | 527 | 141 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-cloudsearch/gen/Network/Google/Resource/CloudSearch/Settings/SearchApplications/List.hs | mpl-2.0 | 6,472 | 0 | 19 | 1,439 | 896 | 519 | 377 | 131 | 1 |
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Network.AWS.Kinesis
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Br... | olorin/amazonka | amazonka-kinesis/gen/Network/AWS/Kinesis.hs | mpl-2.0 | 5,708 | 0 | 5 | 1,220 | 443 | 329 | 114 | 85 | 0 |
{-# 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/ConsentStores/ConsentArtifacts/Get.hs | mpl-2.0 | 6,125 | 0 | 15 | 1,213 | 698 | 409 | 289 | 114 | 1 |
-- {-# LANGUAGE #-}
{-# OPTIONS_GHC -Wall -fno-warn-missing-signatures #-}
----------------------------------------------------------------------
-- |
-- Module : Shady.Play.CseTest
-- Copyright : (c) Conal Elliott 2009
-- License : AGPLv3
--
-- Maintainer : conal@conal.net
-- Stability : experiment... | conal/shady-gen | src/Shady/Play/CseTest.hs | agpl-3.0 | 2,583 | 0 | 11 | 723 | 586 | 348 | 238 | 46 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Model.Notification.SQL
( selectNotifyDelivery
, selectTargetNotification
, selectNotification
, selectPartyAuthorizationNotify
) where
import qualified Language.Haskell.TH as TH
import Has
import Model.SQL.Select
import Model.Time
import Model.Id.Types
import Model.Pe... | databrary/databrary | src/Model/Notification/SQL.hs | agpl-3.0 | 2,548 | 0 | 19 | 356 | 599 | 339 | 260 | 52 | 1 |
{-# LANGUAGE GADTs #-}
-----------------------------------------------------------------------------
-- Copyright 2018, Ideas project team. This file is distributed under the
-- terms of the Apache License 2.0. For more information, see the files
-- "LICENSE.txt" and "NOTICE.txt", which are included in the distribution... | ideas-edu/ideas | src/Ideas/Encoding/NewEncoderJSON.hs | apache-2.0 | 16,205 | 0 | 19 | 4,580 | 2,343 | 1,196 | 1,147 | 128 | 11 |
module TestSuite1 ( tests ) where
import Distribution.TestSuite
import Kind.Assumption
tests :: IO [Test]
tests = return [ Test test1 ]
where
test1 = TestInstance
{ run = return $ Finished
$ if kgammaIsEmpty kgammaEmpty
then Pass
... | lpeterse/koka | src/TestSuite1.hs | apache-2.0 | 517 | 0 | 11 | 216 | 119 | 68 | 51 | 14 | 2 |
module Actions.LoginScreen.RegistrationConfirmation.Url where
url :: String
url = "/registrationConfirmation"
| DataStewardshipPortal/ds-wizard | DSServer/app/Actions/LoginScreen/RegistrationConfirmation/Url.hs | apache-2.0 | 112 | 0 | 4 | 11 | 18 | 12 | 6 | 3 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
module SoftwareRenderer where
import Point
import Circle
import Rectangle
import Renderer
import Shape
import Data.Matrix
import Data.Colour
import Data.Colour.Names
import Data.Colour.SRGB
data SoftwareBuffer = SoftwareBuffer { w,h :: Integer, frame :: Point -> Colour Double}
s... | marcelhollerbach/hrem | src/SoftwareRenderer.hs | apache-2.0 | 1,446 | 0 | 16 | 312 | 492 | 252 | 240 | 32 | 1 |
-- Copyright 2010 Google Inc.
--
-- 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 agreed to... | mzero/barley | seed/Source.hs | apache-2.0 | 6,332 | 0 | 15 | 1,871 | 1,617 | 858 | 759 | 131 | 3 |
-- (C) 2013 Pepijn Kokke & Wout Elsinghorst
-- Adapted by Jurriaan Hage
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleContexts #-}
module FunFlow.Parsing where
import FunFlow.Ast
import Prelude hiding ( abs, sum )
import Data.Char (isSpace)
import Text.ParserCombinators.UU
import Text.ParserCombinators.UU.Utils
i... | aochagavia/CompilerConstruction | funflow/src/FunFlow/Parsing.hs | apache-2.0 | 2,595 | 0 | 16 | 545 | 892 | 481 | 411 | 46 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QPolygon.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:31
Warning : this file is machine generated - do not ... | uduki/hsQt | Qtc/Core/QPolygon.hs | bsd-2-clause | 10,379 | 0 | 16 | 1,797 | 3,535 | 1,818 | 1,717 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
module Tests.Properties.Mul (tests) where
import Control.Applicative ((<$>), pure)
import Control.Exception as E (SomeException, catch, evaluate)
import Data.Int (Int32, Int64)
import Data.Text.Internal (mul, mul32, mul64)
import System.IO.Unsafe (unsafePerformIO)
import Test.Tast... | bgamari/text | tests/Tests/Properties/Mul.hs | bsd-2-clause | 1,261 | 0 | 11 | 254 | 500 | 273 | 227 | 31 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module SimpleParams where
import Data.List.Split
import Data.String.Utils (endswith, replace)
import Safe
import Data.Char
parseEmbedded :: String -> String
parseEmbedded str =
case splitOn "#" str of
[k, v] ->
if endswith "@" v
then "{\"key\":\"" ++ k ++ "\",\"... | dbushenko/trurl | src/SimpleParams.hs | bsd-3-clause | 1,056 | 0 | 12 | 253 | 291 | 153 | 138 | 27 | 3 |
module Network.Raptr.StorageSpec where
import Control.Exception (bracket)
import Control.Monad.Trans (liftIO)
import Data.Binary
import Data.ByteString.Lazy (fromStrict, toStrict)
import Network.Raptr.Raptr hiding (run)
import Network.Raptr.T... | capital-match/raptr | test/Network/Raptr/StorageSpec.hs | bsd-3-clause | 4,535 | 0 | 14 | 1,444 | 1,487 | 759 | 728 | 97 | 4 |
import Distribution.PackageDescription
import Distribution.PackageDescription.Parse
import Distribution.Verbosity
import Distribution.System
import Distribution.Simple
import Distribution.Simple.Utils
import Distribution.Simple.Setup
import Distribution.Simple.Command
import Distribution.Simple.Program
import Distribut... | bmsherman/magma-gpu | Setup.hs | bsd-3-clause | 5,030 | 0 | 16 | 1,307 | 1,180 | 616 | 564 | 98 | 3 |
module Game where
import Commands (FieldItem(..), MoveDirection(..))
import Data.Array (Array, listArray, bounds, (!), assocs)
import Data.List (find)
import Data.Maybe (fromJust)
import Data.Text (Text, empty)
data Game
= Game
{ gameSettings :: GameSettings
, gameState :: GameState
} deriving (... | asvyazin/starapple-haskell-starter | app/Game.hs | bsd-3-clause | 2,054 | 0 | 14 | 564 | 766 | 440 | 326 | 63 | 1 |
{-# LANGUAGE TypeFamilies, FlexibleContexts, FlexibleInstances #-}
module QueryArrow.DB.NoConnection where
import QueryArrow.DB.DB
-- interface
class INoConnectionDatabase2 db where
type NoConnectionQueryType db
type NoConnectionRowType db
noConnectionDBStmtExec :: db -> NoConnectionQueryType d... | xu-hao/QueryArrow | QueryArrow-common/src/QueryArrow/DB/NoConnection.hs | bsd-3-clause | 2,447 | 6 | 12 | 408 | 304 | 244 | 60 | 35 | 0 |
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
-- |
--
-- This module contains exports a single function, 'substituteNames',
-- for performing name substitution in an Futhark expression.
module Futhark.Transform.Substitute
(S... | CulpaBS/wbBach | src/Futhark/Transform/Substitute.hs | bsd-3-clause | 6,404 | 0 | 10 | 1,411 | 1,690 | 862 | 828 | 131 | 1 |
{-# LANGUAGE OverloadedStrings, FlexibleContexts #-}
module SampleWorld where
import Control.Lens
import Control.Monad.State as State
import qualified Data.Aeson as A
import qualified Data.ByteString.Lazy.Char8 as B
import qualified Data.Map as M
import qualified Data.Text as T
import qualified Data.IntMap as I
impo... | ojw/taskpals | src/SampleWorld.hs | bsd-3-clause | 2,109 | 0 | 13 | 527 | 731 | 396 | 335 | 39 | 4 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE OverlappingInstances #-}
{-# LANGUAGE UndecidableInstances #-}
... | jcristovao/system-lifted | example/main.hs | bsd-3-clause | 1,474 | 0 | 13 | 278 | 342 | 169 | 173 | 45 | 3 |
{-# OPTIONS_GHC -fno-warn-tabs #-}
import Common
import MT19937
import Control.Concurrent
import Control.Monad
import Data.Time.Clock.POSIX
import Data.Word
import System.Random hiding (next)
wait :: Int -> IO ()
wait n = do
putStr "Waiting"
replicateM_ n $ do
threadDelay 1000000
putStr "."
putStr "\n"
crack... | andrewcchen/matasano-cryptopals-solutions | set3/Challange22.hs | bsd-3-clause | 741 | 0 | 13 | 140 | 293 | 143 | 150 | 27 | 2 |
{-# LANGUAGE PatternGuards, ViewPatterns #-}
{-# LANGUAGE RecordWildCards #-}
{-
map f [] = []
map f (x:xs) = f x : map f xs
foldr f z [] = z
foldr f z (x:xs) = f x (foldr f z xs)
foldl f z [] = z
foldl f z (x:xs) = foldl f (f z x) xs
-}
{-
<TEST>
f (x:xs) = negate x + f xs ; f [] = 0 -- f xs = foldr ((+) . negate)... | ndmitchell/hlint | src/Hint/ListRec.hs | bsd-3-clause | 8,869 | 0 | 27 | 2,330 | 2,996 | 1,570 | 1,426 | 151 | 2 |
module Logo.Builtins.Turtle (turtleBuiltins) where
import Prelude hiding (tan)
import qualified Data.Map as M
import Control.Monad.Trans (lift)
import Diagrams.TwoD.Path.Turtle
import Diagrams.TwoD.Types (p2)
import Data.Colour (Colour)
import Data.Colour.Names
import Logo.Types
updateTurtle :: TurtleIO a -> Logo... | deepakjois/hs-logo | src/Logo/Builtins/Turtle.hs | bsd-3-clause | 2,933 | 0 | 12 | 657 | 1,029 | 523 | 506 | 87 | 17 |
module Win32File
{-
( AccessMode, ShareMode, CreateMode, FileAttributeOrFlag
, CreateFile, CloseHandle, DeleteFile, CopyFile
, MoveFileFlag, MoveFile, MoveFileEx,
)
-}
where
import Win32Types
import StdDIS
----------------------------------------------------------------
-- Enumeration types
--------------------... | OS2World/DEV-UTIL-HUGS | libraries/win32/Win32File.hs | bsd-3-clause | 32,747 | 307 | 18 | 4,441 | 8,308 | 4,541 | 3,767 | -1 | -1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
{-# LANGUAGE GADT... | rfranek/duckling | Duckling/TimeGrain/SV/Rules.hs | bsd-3-clause | 1,317 | 0 | 11 | 277 | 272 | 173 | 99 | 25 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
module Data.API.Subledger.Error
( SubledgerError(..)
, SubledgerErrorType(..)
, SubledgerErrorHTTPCode(..)
, mkErrorHTTP
, setErrorHTTP
) where
import Control.Exception
import Data.Aeson
import Data.Defaul... | whittle/subledger | subledger-core/src/Data/API/Subledger/Error.hs | bsd-3-clause | 2,332 | 0 | 11 | 727 | 421 | 239 | 182 | 54 | 7 |
{-# LANGUAGE FlexibleInstances, FlexibleContexts, TypeFamilies #-}
-----------------------------------------------------------------------------
-- |
-- Module : Data.FingerTree
-- Copyright : (c) Ross Paterson, Ralf Hinze, Paweł Nowak 2014
-- License : BSD-style
-- Maintainer : pawel834@gmail.com
-- St... | pawel-n/fingertree-tf | Data/FingerTree.hs | bsd-3-clause | 32,775 | 0 | 16 | 8,838 | 15,731 | 7,754 | 7,977 | 611 | 2 |
{-
This is the Main module for the HaCoTeB project. It is separated from the
HaCoTeB module to allow for later reuse and to differentiate between the tool
and its usage.
-}
{-# LANGUAGE RecordWildCards #-}
module Main where
import System.Console.CmdArgs
import HaCoTeB
main = do
Options {..} <- cmdArgs options --... | mihaimaruseac/HaCoTeB | src/Main.hs | bsd-3-clause | 367 | 0 | 9 | 68 | 43 | 24 | 19 | 7 | 1 |
{-# LANGUAGE GADTs, StandaloneDeriving, KindSignatures #-}
import System.Environment
import System.Directory
import System.FilePath.Find
import System.FilePath.Posix as FilePath
import qualified Graphics.Exif as Ex
data Field
data Exif :: * -> * where
Manufacturer :: Exif String
Model :: Exif String
Or... | gregor-samsa/hs.test | iyd1.hs | bsd-3-clause | 2,102 | 0 | 11 | 493 | 631 | 329 | 302 | -1 | -1 |
import ZuriHac.Plays.XSink
main :: IO ()
main = run
| bitonic/zurihac-plays | app/xsink.hs | bsd-3-clause | 53 | 0 | 6 | 10 | 22 | 12 | 10 | 3 | 1 |
module Reactive.Bacon.Core where
import Control.Monad
import Prelude hiding (map, filter)
class Observable s where
(==>) :: s a -> (a -> IO()) -> IO ()
(>>=!) :: IO (s a) -> (a -> IO()) -> IO ()
(>>=!) action f = action >>= \observable -> (observable ==> f)
infixl 1 >>=!
data EventStream a = EventStream { su... | raimohanska/reactive-bacon | src/Reactive/Bacon/Core.hs | bsd-3-clause | 2,133 | 0 | 12 | 464 | 759 | 397 | 362 | 47 | 2 |
module Valkyrie.Valkyrie where
import Valkyrie.Types
import Control.Applicative
import Control.Monad
import Control.Monad.Trans
instance Monad m => Functor (ValkyrieM m) where
fmap = liftM
instance Monad m => Applicative (ValkyrieM m) where
pure = return
(<*>) = ap
instance Monad m => Monad (Valkyr... | Feeniks/valkyrie | src/Valkyrie/Valkyrie.hs | bsd-3-clause | 998 | 0 | 14 | 241 | 456 | 237 | 219 | 26 | 1 |
import Test.Cabal.Prelude
main = cabalTest $
cabal' "new-run" ["foo"] >>= assertOutputContains "Hello World"
| themoritz/cabal | cabal-testsuite/PackageTests/NewBuild/CmdRun/Datafiles/cabal.test.hs | bsd-3-clause | 114 | 0 | 8 | 18 | 31 | 16 | 15 | 3 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE BangPatterns #-}
module ECC.Code.LDPC.GPU.CUDA.TwoArrays where
import ECC.Code.LDPC.Utils
import ECC.Types
import ECC.Puncture
import Data.Char (isDigit)
import qualified Data.Matrix as M
import Data.Bit
import Data.Bits
imp... | ku-fpg/ecc-ldpc | src/ECC/Code/LDPC/GPU/CUDA/TwoArrays.hs | bsd-3-clause | 9,684 | 91 | 17 | 3,172 | 2,267 | 1,213 | 1,054 | 204 | 3 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE UnicodeSyntax #-}
{-|
[@ISO639-1@] -
[@ISO639-2@] -
[@ISO639-3@] kap
[@Native name@] бежкьалас миц
[@English name@] Bezhta
-}
module Text.Numeral.Language.KAP.TestDa... | telser/numerals | src-test/Text/Numeral/Language/KAP/TestData.hs | bsd-3-clause | 5,198 | 0 | 8 | 1,373 | 1,219 | 815 | 404 | 137 | 1 |
{-# LANGUAGE BangPatterns, CPP, NondecreasingIndentation, ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-warnings-deprecations #-}
-- NB: we specifically ignore deprecations. GHC 7.6 marks the .QSem module as
-- deprecated, although it became un-deprecated later. As a result, using 7.6
-- as your bootstrap compiler ... | urbanslug/ghc | compiler/main/GhcMake.hs | bsd-3-clause | 87,718 | 25 | 37 | 27,814 | 14,542 | 7,438 | 7,104 | -1 | -1 |
module ETA.CodeGen.Expr where
import ETA.Core.CoreSyn
import ETA.Types.Type
import ETA.Types.TyCon
import ETA.BasicTypes.Id
import ETA.Prelude.PrimOp
import ETA.StgSyn.StgSyn
import ETA.BasicTypes.DataCon
import ETA.Utils.Panic
import ETA.Util
import ETA.Debug
import ETA.CodeGen.Utils
import ETA.CodeGen.Monad
import E... | pparkkin/eta | compiler/ETA/CodeGen/Expr.hs | bsd-3-clause | 12,571 | 0 | 22 | 3,163 | 4,182 | 2,062 | 2,120 | 273 | 6 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
-- {-# OPTIONS_GHC -cpp -DPiForallInstalled #-}
--------------------------------------------------------------------
-- |
-- Copyright : (c) Andreas Reuleaux 2015
-- License : BSD2
-- Maintainer: Andreas Reuleaux <rx@a-rx.info>
-- Stability : experimen... | reuleaux/pire | tests/ParserTests/SigmaTypes.hs | bsd-3-clause | 2,500 | 0 | 24 | 734 | 563 | 308 | 255 | 34 | 1 |
module Spec where
import Test.Hspec
import Challenge ( ranges )
main :: IO ()
main = hspec $ do
describe "Challenge.ranges" $ do
it "will return an empty list when no ranges exist" $ do
ranges [] `shouldBe` ([] :: [String])
it "will return a single range" $ do
ranges [1, 2] `shouldBe` ["1->2"]
... | mindm/2017Challenges | challenge_6/haskell/halogenandtoast/src/Spec.hs | mit | 589 | 0 | 16 | 148 | 216 | 119 | 97 | 14 | 1 |
module Pos.Infra.Discovery
( module Pos.Infra.Discovery.Model.Class
, module Pos.Infra.Discovery.Model.Neighbours
) where
import Pos.Infra.Discovery.Model.Class
import Pos.Infra.Discovery.Model.Neighbours
| input-output-hk/pos-haskell-prototype | infra/src/Pos/Infra/Discovery.hs | mit | 247 | 0 | 5 | 56 | 43 | 32 | 11 | 5 | 0 |
{-# LANGUAGE RankNTypes #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
module Math.NumberTheory.PrimitiveRootsBench
( benchSuite
) where
import Gauge.Main
import Data.Constraint
import Data.Maybe
import Math.NumberTheory.Moduli.Multiplicative
import Math.NumberTheory.Moduli.Singleton
import Math.NumberTheory.P... | cartazio/arithmoi | benchmark/Math/NumberTheory/PrimitiveRootsBench.hs | mit | 2,106 | 0 | 16 | 520 | 613 | 320 | 293 | 37 | 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="tr-TR">
<title>Tak-ve-Hackle | ZAP Uzantısı</title>
<maps>
<homeID>top</homeID>
<mapre... | veggiespam/zap-extensions | addOns/plugnhack/src/main/javahelp/org/zaproxy/zap/extension/plugnhack/resources/help_tr_TR/helpset_tr_TR.hs | apache-2.0 | 983 | 80 | 68 | 159 | 431 | 217 | 214 | -1 | -1 |
{-# LANGUAGE Unsafe #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.ST.Imp
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libr... | rahulmutt/ghcvm | libraries/base/Control/Monad/ST/Imp.hs | bsd-3-clause | 1,339 | 0 | 5 | 344 | 107 | 77 | 30 | 16 | 0 |
module PPrint where
import Text.PrettyPrint
type Var a = Int
type Exp a = Int -> Doc
lit :: (Show a) => a -> Exp a
lit x i = text (show x)
var :: Var a -> Exp a
var x i = text ("x" ++ show x)
dirac :: Exp a -> Exp b
dirac p i = text "dirac" <> parens (p i)
bern :: Exp a -> Exp b
bern p i = text "bern" <> parens (... | bitemyapp/hakaru | Historical/PPrint.hs | bsd-3-clause | 2,013 | 0 | 14 | 831 | 950 | 457 | 493 | 58 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Hooks.DebugKeyEvents
-- Copyright : (c) 2011 Brandon S Allbery <allbery.b@gmail.com>
-- License : BSD
--
-- Maintainer : Brandon S Allbery <allbery.b@gmail.com>
-- Stability : unstable
-- Portability... | kmels/xmonad-launcher | XMonad/Hooks/DebugKeyEvents.hs | bsd-3-clause | 4,265 | 0 | 15 | 1,874 | 675 | 388 | 287 | 56 | 3 |
-- |
-- Copyright : (c) 2010-2012 Benedikt Schmidt
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Benedikt Schmidt <beschmi@gmail.com>
--
-- Computing and checking the variants of a term.
module Term.Narrowing.Variants (
computeVariantsCheck
, module Term.Narrowing.Variants.Compute
, module Term.N... | rsasse/tamarin-prover | lib/term/src/Term/Narrowing/Variants.hs | gpl-3.0 | 1,326 | 0 | 11 | 273 | 205 | 117 | 88 | 20 | 1 |
{-# LANGUAGE DataKinds, PolyKinds, TypeFamilies, GADTs, ConstraintKinds #-}
module T12919 where
import Data.Kind
data N = Z
data V :: N -> Type where
VZ :: V Z
type family VC (n :: N) :: Type where
VC Z = Type
type family VF (xs :: V n) (f :: VC n) :: Type where
VF VZ f = f
data Dict c where
Dict :: c =>... | sdiehl/ghc | testsuite/tests/typecheck/should_compile/T12919.hs | bsd-3-clause | 379 | 0 | 9 | 101 | 151 | 87 | 64 | 14 | 1 |
main :: IO ()
main = putStrLn "T15261b"
| sdiehl/ghc | testsuite/tests/rts/T15261/T15261b.hs | bsd-3-clause | 40 | 0 | 6 | 8 | 19 | 9 | 10 | 2 | 1 |
module UnitTests.Distribution.Client.Tar (
tests
) where
import Distribution.Client.Tar ( filterEntries
, filterEntriesM
)
import Codec.Archive.Tar ( Entries(..)
, foldEntries
)
import ... | mydaum/cabal | cabal-install/tests/UnitTests/Distribution/Client/Tar.hs | bsd-3-clause | 2,760 | 0 | 17 | 867 | 772 | 392 | 380 | 59 | 2 |
<?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>Início rápido | Extensão ZAP</title>
<maps>
<homeID>top</homeID>
<mapref... | thc202/zap-extensions | addOns/diff/src/main/javahelp/org/zaproxy/zap/extension/diff/resources/help_pt_BR/helpset_pt_BR.hs | apache-2.0 | 982 | 78 | 66 | 159 | 422 | 213 | 209 | -1 | -1 |
import ObjLink
library_name = "libfoo_script_T2615.so" -- this is really a linker script
main = do
initObjLinker
result <- loadDLL library_name
case result of
Nothing -> putStrLn (library_name ++ " loaded successfully")
Just x -> putStrLn ("error: " ++ x)
| urbanslug/ghc | testsuite/tests/rts/T2615.hs | bsd-3-clause | 273 | 0 | 12 | 56 | 70 | 34 | 36 | 8 | 2 |
module ShouldFail where
| ezyang/ghc | testsuite/tests/plugins/T11244.hs | bsd-3-clause | 24 | 0 | 2 | 3 | 4 | 3 | 1 | 1 | 0 |
module T9776 where
| urbanslug/ghc | testsuite/tests/driver/T9776.hs | bsd-3-clause | 19 | 0 | 2 | 3 | 4 | 3 | 1 | 1 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Cenary.Codegen.CodegenState where
import Cenary.Codegen.Address
import Cenary.Codegen.Env
import Cenary.Codegen.FuncRegistry
import qualified Cenary.Codegen.MappingOrder as MO
import Cenary.EvmAPI.Program
import Control.Lens
da... | yigitozkavci/ivy | src/Cenary/Codegen/CodegenState.hs | mit | 830 | 0 | 11 | 234 | 149 | 92 | 57 | 35 | 0 |
{-# LANGUAGE DeriveGeneric, CPP #-}
module Data.KdMap.Dynamic
( -- * Usage
-- $usage
-- * Reference
-- ** Types
PointAsListFn
, SquaredDistanceFn
, KdMap
-- ** Dynamic /k/-d map construction
, empty
, singleton
, emptyWithDist
... | giogadi/kdt | lib-src/Data/KdMap/Dynamic.hs | mit | 8,486 | 0 | 13 | 2,165 | 2,022 | 1,102 | 920 | 117 | 3 |
module Proteome.Path where
import qualified Data.Text as Text
import Path (
Abs,
Dir,
File,
Path,
Rel,
parseAbsDir,
parseAbsFile,
parseRelDir,
parseRelFile,
toFilePath,
(</>),
)
import Path.IO (doesFileExist)
parsePathMaybe ::
(FilePath -> Either a (Path b t)) ->
Text ->
Maybe (Path b t)... | tek/proteome | packages/proteome/lib/Proteome/Path.hs | mit | 1,906 | 0 | 12 | 452 | 593 | 306 | 287 | 85 | 2 |
module Parser (LispVal(..)
,ParseError
,parseLispVal
) where
import Control.Applicative ((*>), (<*))
import Control.Monad
import Text.ParserCombinators.Parsec hiding (spaces)
import System.Environment
import Data.Char (isDigit)
import Data.Maybe (fromJust, fromMaybe)
import... | shouya/thinking-dumps | wys48h/code/Parser.hs | mit | 5,660 | 0 | 16 | 1,811 | 1,611 | 810 | 801 | 140 | 8 |
{-# LANGUAGE DeriveGeneric, OverloadedStrings #-}
{-|
Anscombe's quartet
Four datasets with nearly identical statistical properties
Wikipedia article: <https://en.wikipedia.org/wiki/Anscombe%27s_quartet>
-}
module Numeric.Datasets.Anscombe where
anscombe :: [[(Double,Double)]]
anscombe = [anscombe1, anscombe2, a... | glutamate/datasets | datasets/src/Numeric/Datasets/Anscombe.hs | mit | 1,018 | 0 | 7 | 201 | 479 | 320 | 159 | 53 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Tikz.DSL
-- Copyright :
-- License : MIT
--
-- Maintainer : -
-- Stability :
-- Portability :
--
-- |
--
{-# LANGUAGE ExistentialQuantification, TypeSynonymInstances, FlexibleInstances #-}
module Tikz.DSL (
... | fehu/hneuro | src/Tikz/DSL.hs | mit | 8,830 | 0 | 18 | 3,529 | 1,948 | 1,064 | 884 | -1 | -1 |
module Hate.Math.OpenGL where
import Data.Vect.Float
import qualified Graphics.Rendering.OpenGL as GL
toOpenGLVertex :: Vec4 -> GL.Vertex4 Float
toOpenGLVertex (Vec4 x y z w) = GL.Vertex4 x y z w | bananu7/Hate | src/Hate/Math/OpenGL.hs | mit | 203 | 0 | 7 | 35 | 67 | 38 | 29 | 5 | 1 |
import qualified Data.ByteString.Lazy.Char8 as L
closing = readPrice . (!!4) . L.split ','
readPrice :: L.ByteString -> Maybe Int
readPrice str =
case L.readInt str of
Nothing -> Nothing
Just (dollars, rest) ->
case L.readInt (L.tail rest) of
Nothing -> Nothing
Just (cent, more) -> Jus... | zhangjiji/real-world-haskell | ch8/highestClose.hs | mit | 495 | 0 | 14 | 113 | 195 | 100 | 95 | 14 | 3 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE OverloadedStrings #-}
-- | A pretty-printer for a small subset of LLVM
module LlvmPrinter where
import Data.String
( fromString
, IsString
)
import Data.List
( intercalate
)
import Data.Monoid
( (<>)
, mempty
, mconcat
, Monoid
)
import LlvmData
-- | A typeclas... | garious/hopt | LlvmPrinter.hs | mit | 2,992 | 0 | 16 | 902 | 1,061 | 538 | 523 | 58 | 1 |
module MLUtil.Folding
( columnHead
, foldColumn
) where
import MLUtil.Imports
columnHead :: Matrix -> Int -> R
columnHead m c = m `atIndex` (0, c)
foldColumn :: (R -> b -> b) -> b -> Matrix -> Int -> b
foldColumn f acc m c = foldr (\r acc' -> f (m `atIndex` (r, c)) acc') acc [0..rows m - 1]
| rcook/mlutil | mlutil/src/MLUtil/Folding.hs | mit | 317 | 0 | 11 | 86 | 149 | 83 | 66 | 8 | 1 |
{-# LANGUAGE TupleSections #-}
module Main where
import Data.Bool (bool)
import Data.Either (fromRight)
import Data.List (unfoldr)
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Data.Text.Read as T
import Data.Vector (Vector)
import qualified Data.Vector as... | genos/online_problems | advent_of_code_2019/day02/src/Main.hs | mit | 1,342 | 0 | 11 | 356 | 678 | 368 | 310 | 46 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE BangPatterns #-}
-- | This module provides the ability to create reapers: dedicated cleanup
-- threads. These threads will automatically spawn and die based on the
-- presence of a workload to process on.
module Control.Reaper (
-- * Settings
ReaperSet... | erikd/wai | auto-update/Control/Reaper.hs | mit | 6,832 | 0 | 16 | 1,868 | 1,296 | 697 | 599 | 106 | 4 |
import Data.Char
cap :: String -> String
cap = map toUpper
rev :: String -> String
rev = reverse
tupled :: String -> (String, String)
tupled = (,) <$> cap <*> rev
tupled' :: String -> (String, String)
tupled' = do
c <- cap
r <- rev
return (c,r)
tupled'' :: String -> (String, String)
tupled'' = cap >>= ... | JustinUnger/haskell-book | ch22/ex.hs | mit | 393 | 0 | 10 | 124 | 161 | 89 | 72 | 16 | 1 |
-- Power function. Primitive Recursion.
module Power where
import Test.QuickCheck
power :: Integer -> Integer -> Integer
power basis exponent
| exponent < 0 = error "Power.hs: Negative exponent."
| otherwise = power' basis exponent
where
power' :: Integer -> Integer -> Integer
power' _ 0 = 1
... | pascal-knodel/haskell-craft | Examples/· Recursion/· Primitive Recursion/Calculations/Power.hs | mit | 1,160 | 0 | 11 | 300 | 253 | 131 | 122 | 18 | 2 |
module Scorer.Emit where
import Scorer.Config
import Scorer.Einsendung
import Scorer.Aufgabe
import Scorer.Util hiding ( size )
--import Prelude hiding (unwords, map, head, null, all, filter, foldr1)
import Control.Types hiding ( size )
import qualified Control.Vorlesung as V
import qualified Control.Aufgabe as A
i... | marcellussiegburg/autotool | db/src/Scorer/Emit.hs | gpl-2.0 | 5,434 | 128 | 22 | 1,759 | 1,736 | 939 | 797 | 123 | 3 |
{-# LANGUAGE FlexibleInstances, UndecidableInstances, TypeSynonymInstances #-}
{-# LANGUAGE LambdaCase #-}
module Data.Binary.StringRef
( ListOfStringable(..)
, StringReferencingBinary(..)
, IntLen(..)
, ls_encode
, ls_decode
) where
import Data.Binary
import Data.Binar... | nomeata/darcs-mirror-arbtt | src/Data/Binary/StringRef.hs | gpl-2.0 | 5,618 | 0 | 15 | 1,384 | 1,759 | 913 | 846 | 84 | 2 |
module Coloring (
livenessAnalysis, livenessGraph, graphColoring,
registerAllocate,
dotAllocationGraph,
) where
import Data.Maybe
import Data.List
import Data.Function
import Data.Ord
import Data.Graph.Inductive.Graph
import Data.Graph.Inductive.PatriciaTree
import Data.Graph.Inductive.Dot
import System.Process
im... | orchid-hybrid/bee | Bee/Coloring.hs | gpl-3.0 | 3,119 | 2 | 18 | 826 | 1,581 | 824 | 757 | 72 | 10 |
import Tree (isLeaf, fringe)
| evolutics/haskell-formatter | testsuite/resources/source/orders_parts/root_import_entities/Input.hs | gpl-3.0 | 29 | 0 | 5 | 4 | 12 | 7 | 5 | 1 | 0 |
module ScopalVerbs (rules) where
import AbsAST
rules = [
"(ComplVV manage_to $1) -> $1"
, "(UseCl $3 PPos (PredVP $2 (ComplVV forget_to $1) ^ (UseCl $3 PPos (PredVP $2 $1))"
, "(UseCl $3 PPos (PredVP $2 (ComplVV forget_to $1) -> (UseCl $3 PNeg (PredVP $2 $1))"
, "(UseCl $3 PPos ... | cunger/mule | src/rules/ScopalVerbs.hs | gpl-3.0 | 496 | 0 | 5 | 137 | 32 | 21 | 11 | 8 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/Repair.hs | mpl-2.0 | 5,882 | 0 | 19 | 1,503 | 941 | 548 | 393 | 130 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-adsense-host/gen/Network/Google/Resource/AdSenseHost/Accounts/List.hs | mpl-2.0 | 2,848 | 0 | 12 | 613 | 318 | 196 | 122 | 50 | 1 |
import CanvasHs
import CanvasHs.Data
import Widgets
data State = State Int
initState = State 3
-- | call widgetHandler with your personal state
main = widgetHandler handler initState
-- | Be wary, you get CombinedState here containing your state
handler state StartEvent = (state, shape $ Container 900 600 [check... | CanvasHS/Widgets | demo.hs | lgpl-2.1 | 2,478 | 1 | 8 | 636 | 110 | 59 | 51 | 8 | 1 |
-- Solutions to H99 problems
--
import System.Random
--
-- Exercises 1 to 28: Lists
--Ex 1
myLast :: [a] -> a
myLast [x] = x
myLast (x:xs) =
myLast xs
--Ex 2
myButLast :: [a] -> a
myButLast [x,_] = x
myButLast (x:xs) =
myButLast xs
--Ex 3
elementAt :: (Integral b) => [a] -> b -> a
elementAt (x:xs) 0 = x
ele... | bananu7/H99-solutions | ex-01-28-lists.hs | unlicense | 4,163 | 6 | 15 | 1,221 | 2,255 | 1,194 | 1,061 | 93 | 2 |
module EitherMonad where
import Control.Applicative
-- years ago
type Founded = Int
-- number of programmers
type Coders = Int
data SoftwareShop =
Shop {
founded :: Founded
, programmers :: Coders
} deriving (Eq, Show)
data FoundedError = NegativeYears Founded
| TooManyYears F... | dmvianna/haskellbook | src/Ch18-EitherMonad.hs | unlicense | 1,618 | 0 | 9 | 448 | 547 | 269 | 278 | 45 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Haskoin.Crypto.SignatureSpec (spec) where
import Control.Monad
import Data.Bits (testBit)
import Data.ByteString (ByteString)
import qualified Data.ByteString as BS
import Data.Map.Strict (Map)
impor... | haskoin/haskoin | test/Haskoin/Crypto/SignatureSpec.hs | unlicense | 21,190 | 0 | 20 | 4,130 | 2,472 | 1,282 | 1,190 | 246 | 3 |
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE CPP #-}
{-# OPTIONS_HADDOCK hide #-}
module ... | fimad/scalpel | scalpel-core/src/Text/HTML/Scalpel/Internal/Serial.hs | apache-2.0 | 9,371 | 0 | 17 | 1,942 | 1,771 | 963 | 808 | 123 | 2 |
<?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="id-ID">
<title>Browser View | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapre... | 0xkasun/security-tools | src/org/zaproxy/zap/extension/browserView/resources/help_id_ID/helpset_id_ID.hs | apache-2.0 | 976 | 80 | 66 | 160 | 415 | 210 | 205 | -1 | -1 |
-- cabal-helper: Simple interface to Cabal's configuration state
-- Copyright (C) 2015-2017 Daniel Gröber <cabal-helper@dxld.at>
--
-- SPDX-License-Identifier: Apache-2.0
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may... | DanielG/cabal-helper | src/CabalHelper/Compiletime/Data.hs | apache-2.0 | 3,553 | 0 | 26 | 739 | 862 | 461 | 401 | 69 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Barc.FutharkGen (genFuthark) where
import Data.List
import qualified Data.Text as T
import Prelude
import Barc.ExpInner
genFuthark :: Prog -> T.Text
genFuthark (Prog w h e) =
T.concat [ "let board_is_okay(board: "
, board_t
, "): bool =\n"
... | Athas/banko | barc/Barc/FutharkGen.hs | bsd-2-clause | 5,910 | 0 | 12 | 2,111 | 1,857 | 940 | 917 | 137 | 13 |
module Handler.GoogleVerify where
import Import
getGoogleVerifyR :: Handler RepHtml
getGoogleVerifyR = sendFile "text/html" "config/googled672395359cbd0e8.html"
| pbrisbin/devsite | Handler/GoogleVerify.hs | bsd-2-clause | 163 | 0 | 5 | 16 | 27 | 15 | 12 | 4 | 1 |
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module System.EtCetera.Internal where
import Control.Category (id, (.))
import Control.Lens (Lens', over, set, view)
import Data.Monoid ((<>))
import ... | paluh/et-cetera | src/System/EtCetera/Internal.hs | bsd-3-clause | 6,589 | 0 | 21 | 1,775 | 1,718 | 933 | 785 | -1 | -1 |
module Main (main) where
import System.Environment
import Data.List
import Data.Ord
import Data.Function
collatz :: Int -> [Int] -> [Int]
collatz n xs | n == 1 = xs ++ [1]
collatz n xs | even n = collatz (n `div` 2) $ xs ++ [n]
collatz n xs | otherwise = collatz (n * 3 + 1) $ xs ++ [n]
main :: IO ()
main = do [x] <-... | lnds/programando.org | siracusa/damowe-2.hs | bsd-3-clause | 451 | 0 | 13 | 116 | 250 | 131 | 119 | 13 | 1 |
module ChatData where
import Control.Distributed.STM.DSTM
type CmdTVar = TVar (Maybe ServerCmd)
data ServerCmd = Join String CmdTVar
| Msg String String
| Leave String
deriving (Show,Read)
instance Dist ServerCmd where
finTVars (Join _ cmd) = finTVars cmd
finTVars _ = return ()
regTVars e... | proger/haskell-dstm | Chat/ChatData.hs | bsd-3-clause | 382 | 0 | 8 | 90 | 138 | 72 | 66 | 12 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.