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 Purecoin.Network.TestNet
( magic, port, difficulty
, Chain, startBlockChain
) where
import Data.Word (Word8)
import Purecoin.Core.DataTypes (Difficulty, fromTarget)
import Purecoin.Core.BlockChain (BlockChain, newChain)
magic :: [Word8]
magic = [0xFA, 0xBF, 0xB5, 0xDA]
port :: Num a => a
... | laanwj/Purecoin | Purecoin/Network/TestNet.hs | mit | 557 | 0 | 8 | 97 | 169 | 99 | 70 | 15 | 1 |
module Util.Tuple where
mapSnd :: (b -> c) -> [(a,b)] -> [(a,c)]
mapSnd f [] = []
mapSnd f ((a,b):xs) = (a,f b):(mapSnd f xs)
mapFst :: (a -> c) -> [(a,b)] -> [(c,b)]
mapFst f [] = []
mapFst f ((a,b):xs) = (f a,b):(mapFst f xs)
fork :: (a -> b) -> (a -> c) -> a -> (b, c)
fork f g x = (f x, g x)
| sgord512/Utilities | Util/Tuple.hs | mit | 300 | 0 | 8 | 74 | 259 | 145 | 114 | 9 | 1 |
--
--
import Data.Char (isNumber,isSpace)
import Data.List (partition)
import Control.Monad (liftM,liftM2)
--- maybe2: returns Just if both maybes are a Just or nothing otherwise
maybe2 :: Maybe a -> Maybe b -> Maybe (a,b)
maybe2 = liftM2 (,)
--- expressions
data Expr = Var | Value Int | Cval Int Expr |
... | rawlep/EQS | esit2.hs | mit | 25,990 | 0 | 18 | 12,857 | 9,856 | 4,848 | 5,008 | 420 | 22 |
{-# LANGUAGE QuasiQuotes #-}
module View.Memberships where
import Model
import View.Helpers
import View.Layout
membershipsShowView :: Entity Person -> Entity Membership -> Html
membershipsShowView (Entity personId person) (Entity id m) = layout [shamlet|
^{membershipHeader person}
<div>
$if membershipActive ... | flipstone/glados | src/View/Memberships.hs | mit | 1,430 | 0 | 8 | 262 | 222 | 121 | 101 | 15 | 1 |
module Sllar.Heredoc where
import Language.Haskell.TH
import Language.Haskell.TH.Quote
heredoc :: QuasiQuoter
heredoc = QuasiQuoter stringE undefined undefined undefined
| grsmv/sllar | src/Sllar/Heredoc.hs | mit | 172 | 0 | 5 | 19 | 38 | 23 | 15 | 5 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticbeanstalk-application-maxcountrule.html
module Stratosphere.ResourceProperties.ElasticBeanstalkApplica... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/ElasticBeanstalkApplicationMaxCountRule.hs | mit | 3,065 | 0 | 12 | 254 | 356 | 203 | 153 | 32 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-|
Module : PostgREST.Auth
Description : PostgREST authorization functions.
This module provides functions to deal with the JWT authorization (http://jwt.io).
It also can be used to define other authorization functions,
in the future Oauth, LDAP and similar integrations can be c... | calebmer/postgrest | src/PostgREST/Auth.hs | mit | 3,286 | 0 | 11 | 937 | 582 | 322 | 260 | 45 | 3 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE DataKinds #-}
module Web.Apiary.Authenticate
( I.Auth
, I.AuthConfig(..), I.Provider(..)
, I.OpenId_(..), I.OpenId, pOpenId
-- * initi... | philopon/apiary | apiary-authenticate/src/Web/Apiary/Authenticate.hs | mit | 3,112 | 0 | 14 | 606 | 981 | 548 | 433 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Lexer where
import Prelude hiding (takeWhile)
import qualified Data.Text as Text
import qualified Data.Text.IO as Text
import Data.Text(Text)
import Control.Applicative((<|>))
import Data.Functor(($>))
import Data.Char(isSpace, isUpper, isAlphaNum)
import Data.Traversable(mapA... | kindl/Hypatia | src/Lexer.hs | mit | 7,519 | 0 | 15 | 1,521 | 2,507 | 1,294 | 1,213 | 162 | 2 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.VideoTrackList
(js_item, item, js_getTrackById, getTrackById, js_getLength,
getLength, js_getSelectedIndex, getSelectedIndex, change, addTrack,
removeTrack, VideoTrackList, castToVideoTrackL... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/VideoTrackList.hs | mit | 3,471 | 28 | 11 | 452 | 741 | 428 | 313 | 51 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE UnicodeSyntax #-}
modul... | jonsterling/hs-monad-open | src/Control/Monad/Open/Class.hs | mit | 2,692 | 0 | 9 | 504 | 818 | 457 | 361 | 56 | 0 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE StandaloneDeriving #-}
module RPG.Spell where
import qualified Data.Map.Strict as Map
data SpellType a where
MagicMissile :: SpellType ()
Drain :: SpellType ()
Shield :: SpellType Int
Poison :: SpellType Int
Recharge :: SpellType Int
deriving instance Show (SpellType a)
... | corajr/adventofcode2015 | 22/src/RPG/Spell.hs | mit | 3,016 | 0 | 16 | 1,050 | 777 | 431 | 346 | 60 | 5 |
{-# LANGUAGE DeriveDataTypeable, OverloadedStrings #-}
import XMonad
import qualified XMonad.StackSet as W
import qualified XMonad.Actions.Search as S
import XMonad.Actions.Promote
import XMonad.Actions.UpdatePointer
import XMonad.Config.Desktop
import XMonad.Config.Xfce
import XMonad.Hooks.DBusLog
import XMonad.Ho... | jdpage/xmonad-config | xmonad.hs | mit | 4,938 | 0 | 14 | 1,168 | 1,363 | 772 | 591 | 123 | 1 |
module Irg.Lab3.Initialize (initialize) where
--import qualified Graphics.GL.Compatibility33 as GL
import qualified Graphics.UI.GLUT as GLUT
import Graphics.UI.GLUT (($=))
--import Data.IORef
import Irg.Lab3.Utility
initialize :: GameState -> ReshapeCallback -> DisplayCallback -> KeyboardCallback -> MouseCallback -> ... | DominikDitoIvosevic/Uni | IRG/src/Irg/Lab3/Initialize.hs | mit | 1,040 | 0 | 11 | 135 | 288 | 142 | 146 | 20 | 1 |
{-# LANGUAGE ForeignFunctionInterface #-}
module Printf (printfHack) where
-- This module is an evil hack to get printf in haskell.
-- Text.Printf doesn't work, because variable numbers of arguments (at run
-- time) aren't possible (I think).
import Foreign
import Foreign.C
import Foreign.LibFFI
printfHack :: String... | tomjnixon/Whilecmp | src/Printf.hs | mit | 549 | 4 | 11 | 95 | 129 | 68 | 61 | 12 | 1 |
module Feature.QueryLimitedSpec where
import Network.Wai (Application)
import Network.Wai.Test (SResponse (simpleHeaders, simpleStatus))
import Network.HTTP.Types
import Test.Hspec
import Test.Hspec.Wai
import Test.Hspec.Wai.JSON
import Protolude hiding (get)
import SpecHelper
spec :: SpecWith Application
spe... | diogob/postgrest | test/Feature/QueryLimitedSpec.hs | mit | 1,483 | 0 | 15 | 345 | 295 | 168 | 127 | -1 | -1 |
module Main where
import qualified Data.ByteString.Lazy as BL
import Mozart.Composition
main :: IO ()
main = do
configuration <- BL.getContents
template <- BL.readFile "test/template.html"
page <- compose configuration template
putStrLn page
| wildlyinaccurate/mozart | src/Main.hs | mit | 261 | 0 | 9 | 50 | 72 | 37 | 35 | 9 | 1 |
-- sum two numbers
import Haste.HPlay.View
import Control.Applicative
main= runBody sumTwo
sumTwo :: Widget ()
sumTwo = p "This widget sum two numbers and append the result. Using applicative and monadic expressions" ++>
(p <<< do
r <- (+) <$> fromStr "first number" ++> br
++> inputInt N... | agocorona/tryhplay | examples/sumtwonumbers-copy.hs | gpl-3.0 | 681 | 0 | 21 | 191 | 210 | 106 | 104 | 12 | 2 |
{-
This file is part of The Simple Nice Manual Generator.
The Simple Nice Manual Generator is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation,
either version 3 of the License, or any later version.
... | elginer/snm | Text/Syntax/Simple.hs | gpl-3.0 | 3,350 | 0 | 15 | 863 | 528 | 295 | 233 | 50 | 2 |
{-# LANGUAGE OverloadedStrings #-}
----------------------------------------------------------------------
-- |
-- Module : Text.Doc.Writer.Core
-- Copyright : 2015-2017 Mathias Schenner,
-- 2015-2016 Language Science Press.
-- License : GPL-3
--
-- Maintainer : mschenner.dev@gmail.com
-- ... | synsem/texhs | src/Text/Doc/Writer/Core.hs | gpl-3.0 | 2,965 | 0 | 10 | 564 | 736 | 427 | 309 | 57 | 1 |
{-|
A ledger-compatible @register@ command.
-}
{-# LANGUAGE CPP, OverloadedStrings #-}
module Hledger.Cli.Commands.Register (
registermode
,register
,postingsReportAsText
,postingsReportItemAsText
-- ,showPostingWithBalanceForVty
,tests_Hledger_Cli_Commands_Register
) where
import Data.List
import Data.Mayb... | ony/hledger | hledger/Hledger/Cli/Commands/Register.hs | gpl-3.0 | 8,872 | 0 | 18 | 2,258 | 2,016 | 1,103 | 913 | 130 | 6 |
-- Eval.hs
-- Copyright 2015 Remy E. Goldschmidt <taktoa@gmail.com>
-- This file is part of HsCalculator.
-- HsCalculator 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... | taktoa/HsCalculator | src/Eval.hs | gpl-3.0 | 4,105 | 0 | 11 | 1,457 | 1,516 | 763 | 753 | 65 | 9 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Docs (docsApp) where
import Data.Aeson (toJSON)
import ... | Southern-Exposure-Seed-Exchange/Order-Manager-Prototypes | servant/src/Docs.hs | gpl-3.0 | 4,538 | 0 | 15 | 1,159 | 1,179 | 616 | 563 | 94 | 1 |
-- Simple Fay program for drawing a barnsley fern
-- values are hardcoded because I'm lazy and still
-- trying to work out how to use Fay
--
-- Robert 'Probie' Offner
import Prelude
import FFI
data IFS = IFS [(Probability, Transition)]
deriving Show
data Transition = Affine Double Double Double Double Double Dou... | LudvikGalois/Fay-IFS | Snowflake.hs | gpl-3.0 | 3,106 | 0 | 18 | 768 | 1,252 | 650 | 602 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module SimpleRequestTest where
import Data.ByteString.Char8 ( ByteString )
import qualified Data.ByteString.Char8 as BS
import Data.Maybe
import Network.HTTP
import Network.URI
import Test.HUnit
makeRequest :: String -> Request ByteString
makeRequest url =
Request { rqURI = fr... | scvalex/dissemina2 | Test/SimpleRequestTest.hs | gpl-3.0 | 710 | 0 | 14 | 182 | 187 | 100 | 87 | 23 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-tagmanager/gen/Network/Google/Resource/TagManager/Accounts/Containers/Workspaces/Folders/Delete.hs | mpl-2.0 | 5,459 | 0 | 16 | 1,168 | 706 | 413 | 293 | 109 | 1 |
module Game.Toliman.Internal.Lens (
module Control.Lens,
use,
assign, (.=),
(%=),
access,
store, (.*=),
(%*=),
accessPrism
) where
import Data.Monoid as Monoid (First)
import Data.Functor ((<$>))
import Monad.State as State (MonadState(..), gets, modify)
import Control.Lens hiding (use, assign, (.=... | duncanburke/toliman-core | src/Game/Toliman/Internal/Lens.hs | mpl-2.0 | 1,196 | 0 | 10 | 283 | 661 | 363 | 298 | 32 | 1 |
{-# LANGUAGE GADTs, KindSignatures, DeriveDataTypeable,
FlexibleInstances, ConstraintKinds,
PatternGuards, TemplateHaskell #-}
module EnvTypes where
import Nat
import Data.Function (on)
import Data.Typeable (Typeable)
import Test.QuickCheck
import Test.Feat
type EqShow a = (Eq a,Show a,Arbitrary a)
... | danr/structural-induction | test/EnvTypes.hs | lgpl-3.0 | 4,261 | 95 | 9 | 1,423 | 1,783 | 906 | 877 | 130 | 12 |
module List where
import Prelude hiding (Fractional, Functor, fmap)
import Functor
data List a = Nil | Cons a (List a) deriving (Read, Show)
data Fractional = Fraction Int Int
| SPbAU-ProgrammingParadigms/materials | haskell_2/List.hs | unlicense | 178 | 0 | 8 | 32 | 65 | 39 | 26 | 5 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Point
-- License : Unlicense
--
-- Maintainer : mail@johannesewald.de
-- Stability : unstable
-- Portability : portable
--
-- The Point data type.
--
----------------------------------------------------------... | jhnns/haskell-experiments | src/Point.hs | unlicense | 486 | 0 | 5 | 90 | 34 | 27 | 7 | 3 | 0 |
module Git.Command.ShSetup (run) where
run :: [String] -> IO ()
run args = return () | wereHamster/yag | Git/Command/ShSetup.hs | unlicense | 85 | 0 | 7 | 15 | 42 | 23 | 19 | 3 | 1 |
{- |
Module : Codec.Goat.ValueFrame.Decode
Description : Value decompression
Copyright : (c) Daniel Lovasko, 2016-2017
License : BSD3
Maintainer : Daniel Lovasko <daniel.lovasko@gmail.com>
Stability : stable
Portability : portable
Decoding of the compressed frame form into raw value points.
-}
module C... | lovasko/goat | src/Codec/Goat/ValueFrame/Decode.hs | bsd-2-clause | 2,578 | 0 | 11 | 648 | 717 | 413 | 304 | 43 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Haddock.Backends.Html
-- Copyright : (c) Simon Marlow 2003-2006,
-- David Waern 2006-2009,
-- Mark Lentczner 2010,
-- Mateusz Kowalczyk 2013
-- L... | randen/haddock | haddock-api/src/Haddock/Backends/Xhtml.hs | bsd-2-clause | 26,014 | 1 | 21 | 6,739 | 7,047 | 3,632 | 3,415 | 497 | 7 |
{-# LANGUAGE FlexibleInstances, DeriveDataTypeable #-}
module Model (
-- Model
infoHashByName,
Torrent (..),
torrentByName,
purgeTorrent,
DirectoryEntry (..),
getDirectory,
-- Model.Query
QueryPage (..),
-- Model.Stats
StatsValue (..),
getCounter,
addCounter,
getGauge,
-- Model.Download
... | jannschu/bitlove-ui | Model.hs | bsd-2-clause | 3,837 | 0 | 15 | 745 | 845 | 486 | 359 | -1 | -1 |
module Yesod.FeedTypes
( Feed (..)
, FeedEntry (..)
) where
import Text.Hamlet (Html)
import Data.Time.Clock (UTCTime)
import Data.Text (Text)
-- | The overal feed
data Feed url = Feed
{ feedTitle :: Text
, feedLinkSelf :: url
, feedLinkHome :: url
-- | note: cur... | chreekat/yesod | yesod-newsfeed/Yesod/FeedTypes.hs | bsd-2-clause | 788 | 0 | 10 | 233 | 150 | 98 | 52 | 19 | 0 |
{-# LANGUAGE GADTs, Rank2Types, TypeOperators, ViewPatterns #-}
module NuElim (
NuElimProof(..),
NuElimDataProof(),
NuElim(..), mkNuElimData,
mapNames
) where
--import Data.Data
import Data.Binding.Hobbits
import Language.Haskell.TH hiding (Name)
import qualified Language.Haskell.TH as TH
--import Unsafe.Coer... | eddywestbrook/hobbits | archival/NuElim.hs | bsd-3-clause | 11,687 | 0 | 19 | 4,104 | 3,262 | 1,718 | 1,544 | -1 | -1 |
sumOfDigit :: Integer -> Integer
sumOfDigit 0 = 0
sumOfDigit x = (x `mod` 10) + (sumOfDigit (x `div` 10))
main = print (sumOfDigit (2 ^ 1000))
| foreverbell/project-euler-solutions | src/16.hs | bsd-3-clause | 144 | 0 | 9 | 28 | 75 | 41 | 34 | 4 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE JavaScriptFFI #-}
{-# LANGUAGE PackageImports #-}
-- |Crypto algorithms of the Keccak family (SHA3/SHAKE), with support for GHCJS.
module Data.Digest.Keccak (sha3_256, shak... | tittoassini/typed | src/Data/Digest/Keccak.hs | bsd-3-clause | 3,172 | 7 | 13 | 633 | 397 | 214 | 183 | 23 | 1 |
{-|
Module : Data.DepthElement
Description : A `DepthElement` is a `Text` object with 'depth' so that it can
be unfolded into a `Tree`
Copyright : (c) Michael Klein, 2016
License : BSD3
Maintainer : lambdamichael(at)gmail.com
-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewty... | michaeljklein/git-details | src/Data/DepthElement.hs | bsd-3-clause | 5,654 | 0 | 12 | 1,849 | 1,132 | 626 | 506 | 91 | 1 |
{-# LANGUAGE DeriveGeneric, KindSignatures,
FlexibleInstances, TypeOperators, TypeSynonymInstances,
MultiParamTypeClasses, FunctionalDependencies, OverlappingInstances,
ScopedTypeVariables, EmptyDataDecls, DefaultSignatures,
UndecidableInstances, FlexibleContexts, StandaloneDeriving, IncoherentInstance... | jfischoff/simple-c-value | src/Language/C/Simple/CValue.hs | bsd-3-clause | 21,305 | 0 | 14 | 4,592 | 5,573 | 2,868 | 2,705 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
import Language.Porter
import Control.Applicative
main :: IO ()
main = (unlines . map stem . lines) <$> getContents >>= putStr
| mwotton/porter | Tests/TestPorter.hs | bsd-3-clause | 168 | 0 | 10 | 28 | 49 | 26 | 23 | 5 | 1 |
import Lseed.Data
import Lseed.Data.Functions
import Lseed.DB
import Lseed.Grammar.Parse
import Lseed.Mainloop
import Control.Applicative
import Control.Monad
import Text.Printf
import System.Environment
getDBGarden conf = spread <$> map compileDBCode <$> getCodeToRun conf
where spread gs = zipWith (\(u,n,g) p ->
... | nomeata/L-seed | src/dbscorer.hs | bsd-3-clause | 1,416 | 29 | 18 | 312 | 476 | 239 | 237 | 44 | 2 |
{-# OPTIONS -cpp #-}
module API where
import AltData.Typeable
data Interface = Interface {
function :: String
}
instance Typeable Interface where
#if __GLASGOW_HASKELL__ >= 603
typeOf i = mkTyConApp (mkTyCon "API.Interface") []
#else
typeOf i = mkAppTy (mkTyCon "API.Interface") []
#endif
plugin... | abuiles/turbinado-blog | tmp/dependencies/hs-plugins-1.3.1/testsuite/dynload/simple/api/API.hs | bsd-3-clause | 380 | 0 | 8 | 80 | 75 | 44 | 31 | 9 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeApplications #-}
-- | Directory
module Haskus.System.Linux.FileSystem.Directory
... | hsyl20/ViperVM | haskus-system/src/lib/Haskus/System/Linux/FileSystem/Directory.hs | bsd-3-clause | 5,336 | 0 | 20 | 1,443 | 1,169 | 631 | 538 | 119 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Stashh.Table where
import Stashh.AnsiColor
import Data.Time.Clock.POSIX
import Data.Time.Clock
import Data.Time.Format
import System.Locale
import System.IO.Unsafe
import Control.Applicative
import Data.Maybe
import Data.Monoid
import Data.List (transpose, intercalate, inte... | yuroyoro/stashh | src/Stashh/Table.hs | bsd-3-clause | 4,340 | 0 | 14 | 1,211 | 1,570 | 825 | 745 | 93 | 8 |
{-# LANGUAGE DeriveFunctor #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Tests (
tests
, testId
) where
import Control.Applicative
import Data.Increments
import Data.IntMap (IntMap)
import qualified Data.IntMap as IntMap
import Data.IntSet (IntSet)
import qualified Data.IntSet as IntSet
import Data.Map (Ma... | JohnLato/increments | tests/Tests.hs | bsd-3-clause | 2,727 | 0 | 11 | 600 | 913 | 473 | 440 | 72 | 1 |
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving #-}
module Oracles.LookupInPath (
lookupInPath, lookupInPathOracle
) where
import Base
newtype LookupInPath = LookupInPath String
deriving (Show, Typeable, Eq, Hashable, Binary, NFData)
-- | Fetches the absolute FilePath to a given FilePath from... | quchen/shaking-up-ghc | src/Oracles/LookupInPath.hs | bsd-3-clause | 1,099 | 0 | 17 | 253 | 280 | 140 | 140 | 22 | 1 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
-}
module VarEnv (
-- * Var, Id and TyVar environments (maps)
VarEnv, IdEnv, TyVarEnv, CoVarEnv, TyCoVarEnv,
-- ** Manipulating these environments
emptyVarEnv, unitVarEnv, mkVarEnv, mkVarEnv... | vikraman/ghc | compiler/basicTypes/VarEnv.hs | bsd-3-clause | 20,922 | 0 | 14 | 5,513 | 4,643 | 2,563 | 2,080 | 314 | 2 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-|
Module: Control.Remote.Haxl
Copyright: (C) 2016, The University of Kansas
License: BSD-style (see the file LICENSE)
Maintainer: Justin Dawson (jdawson@ku.ed... | jtdawso/remote-haxl | src/Control/Remote/Haxl.hs | bsd-3-clause | 4,843 | 0 | 16 | 1,161 | 1,433 | 747 | 686 | 74 | 13 |
{-# LANGUAGE OverloadedStrings #-}
module Variants where
import Types (
Repository,
Package(Package),
Version(Version),VersionNode,
Variant(Variant),VariantNode,
PackageDescription,Configuration(Configuration),
FinalizedPackageDescription)
import Web.Neo (NeoT,newNode,addNodeLabel,setNodePrope... | phischu/cabal-analysis | src/Variants.hs | bsd-3-clause | 2,967 | 0 | 13 | 400 | 815 | 450 | 365 | 59 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module LocalDiscoverySpec where
import Test.Hspec
import Ssb.Discovery
import Ssb.Address
import Ssb.Key
import Data.Maybe
import Data.ByteString
peerDiscoveryMessage = "net:192.168.25.11:8008~shs:opBinLmYiID9SMEoZJPH60LmduSYAR7J00P7/Gj9vHw="
spec :: Spec
spec =
describe "LocalP... | bkil-syslogng/haskell-scuttlebutt | test/LocalDiscoverySpec.hs | bsd-3-clause | 662 | 0 | 15 | 91 | 128 | 68 | 60 | 16 | 1 |
-- ------------------------------------------------------------
{- |
Module : Yuuko.Text.XML.HXT.DOM.MimeTypes
Copyright : Copyright (C) 2008 Uwe Schmidt
License : MIT
Maintainer : Uwe Schmidt (uwe@fh-wedel.de)
Stability : experimental
Portability: portable
mime type related data and fu... | nfjinjing/yuuko | src/Yuuko/Text/XML/HXT/DOM/MimeTypes.hs | bsd-3-clause | 3,134 | 78 | 11 | 673 | 631 | 365 | 266 | 60 | 2 |
{- |
Copyright: 2002, Simon Marlow.
Copyright: 2006, Bjorn Bringert.
Copyright: 2009, Henning Thielemann.
-}
module Network.MoHWS.Part.UserDirectory (Configuration, desc, ) where
import qualified Network.MoHWS.Module as Module
import qualified Network.MoHWS.Module.Description as ModuleDesc
import qualified Network.MoH... | xpika/mohws | src/Network/MoHWS/Part/UserDirectory.hs | bsd-3-clause | 2,354 | 0 | 14 | 428 | 638 | 361 | 277 | 55 | 1 |
{-# LANGUAGE
TypeOperators
, OverloadedStrings
#-}
module Xml.Tonic.Transform
( (:~>)
, construct
, destruct
, transform
)
where
import Control.Arrow.List
import Control.Category
import Data.Text.Lazy (Text)
import Prelude hiding ((.), id)
import Xml.Tonic.Arrow
import Xml.Tonic.Types (Node)
import qualified ... | sebastiaanvisser/tonic | src/Xml/Tonic/Transform.hs | bsd-3-clause | 1,636 | 0 | 9 | 294 | 252 | 156 | 96 | 22 | 1 |
--{-# LANGUAGE TypeFamilies #-}
module ExistentialFamilies where
import Control.Monad.ST (runST,ST)
un :: ()
un = runST f where
f = return un :: ST s ()
| phischu/fragnix | tests/quick/ExistentialFamilies/ExistentialFamilies.hs | bsd-3-clause | 159 | 0 | 8 | 32 | 54 | 31 | 23 | 5 | 1 |
{-#LANGUAGE MagicHash, TemplateHaskell, DeriveDataTypeable, StandaloneDeriving, GeneralizedNewtypeDeriving #-}
-- BangPatterns, ScopedTypeVariables, ViewPatterns, KindSignatures
import Language.Haskell.TH.Syntax
( Exp(..), Pat(..), Stmt(..), Type(..), Dec(..),
Range(..), Lit(..), Kind(..),
Body(..), Guard(.... | patrikja/testing-feat | examples/template-haskell/th.hs | bsd-3-clause | 12,070 | 25 | 14 | 2,599 | 3,662 | 1,976 | 1,686 | 277 | 1 |
module Debug.PacketParsing.Parsing
( restruct ) where
import Net.Packet (InPacket, toInPack, listArray)
import qualified Data.ByteString as B
restruct :: B.ByteString -> InPacket
restruct pk = toInPack $ listArray (0, B.length pk - 1) (B.unpack pk)
| rlupton20/vanguard-dataplane | app/Debug/PacketParsing/Parsing.hs | gpl-3.0 | 252 | 0 | 10 | 37 | 87 | 50 | 37 | 6 | 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-efs/gen/Network/AWS/EFS/ModifyMountTargetSecurityGroups.hs | mpl-2.0 | 4,941 | 11 | 13 | 894 | 469 | 292 | 177 | 68 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
-- import Data.Default (def)
-- import qualified Text.Pandoc.Writers.Native as P
-- import System.Environment (getArgs)
import qualified Data.ByteString.Lazy as B hiding (putStrLn)
import qualified Data.ByteString.Lazy.Char8 as B (putStrLn)
import qualified Data.Tex... | raazesh-sainudiin/scalable-data-science | babel/pinot/src/Main.hs | unlicense | 4,453 | 0 | 16 | 1,119 | 1,125 | 606 | 519 | 84 | 4 |
<?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>Python Scripting</title>
<maps>
<homeID>top</homeID>
<mapref location="... | veggiespam/zap-extensions | addOns/jython/src/main/javahelp/org/zaproxy/zap/extension/jython/resources/help_sq_AL/helpset_sq_AL.hs | apache-2.0 | 962 | 79 | 66 | 157 | 409 | 207 | 202 | -1 | -1 |
module Backtracking where
fun = do (\x -> do renderWithDrawable)
| Atsky/haskell-idea-plugin | data/haskellParserTests/Backtracking.hs | apache-2.0 | 66 | 0 | 10 | 11 | 23 | 13 | 10 | 2 | 1 |
-- |
-- Module : Crypto.Internal.Imports
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : unknown
--
{-# LANGUAGE CPP #-}
module Crypto.Internal.Imports
( module X
) where
import Data.Word as X
#if !(MIN_VERSION_ba... | vincenthz/cryptonite | Crypto/Internal/Imports.hs | bsd-3-clause | 571 | 0 | 6 | 137 | 94 | 68 | 26 | 9 | 0 |
{-# LANGUAGE TemplateHaskell #-}
-- | Game rules and assorted game setup data.
module Content.RuleKind ( cdefs ) where
import Language.Haskell.TH.Syntax
import System.FilePath
-- Cabal
import qualified Paths_LambdaHack as Self (getDataFileName, version)
import Game.LambdaHack.Common.ContentDef
import Game.LambdaHack... | Concomitant/LambdaHack | GameDefinition/Content/RuleKind.hs | bsd-3-clause | 2,884 | 0 | 15 | 620 | 384 | 237 | 147 | 46 | 1 |
module BuckConverter where
import Tuura.Concept.STG
--ZC late scenario definition using concepts
circuit uv oc zc gp gp_ack gn gn_ack =
chargeFunc <> uvFunc <> uvReact <> zcLate <> initialise zc False
where
interface = inputs [uv, oc, zc, gp_ack, gn_ack] <> outputs [gp, gn]
zcLate = rise uv ~> rise zc ... | tuura/concepts | examples/zcLate_scenario.hs | bsd-3-clause | 1,094 | 0 | 13 | 270 | 373 | 186 | 187 | 17 | 1 |
main = drop 0 x | mpickering/hlint-refactor | tests/examples/Default77.hs | bsd-3-clause | 15 | 0 | 5 | 4 | 11 | 5 | 6 | 1 | 1 |
{-
******************************************************************************
* H M T C *
* *
* Module: MTIR *
*... | jbracker/supermonad-plugin | examples/monad/hmtc/original/MTIR.hs | bsd-3-clause | 7,692 | 0 | 10 | 3,128 | 904 | 601 | 303 | 121 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
module Database.Persist.Types.Base where
import qualified Data.Aeson as A
import Control.Exception (Exception)
import Web.PathPieces (PathPiece (..))
import Control.Monad.Trans.Error (Error (..))
import Data.Typeable (Typeable)... | mitchellwrosen/persistent | persistent/Database/Persist/Types/Base.hs | mit | 17,328 | 0 | 18 | 4,633 | 3,793 | 2,070 | 1,723 | 347 | 4 |
{-# LANGUAGE ExplicitForAll #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE TypeApplications #-}
module ExplicitForAllRules1 where
import Data.Proxy
import Data.Kind
-- From Proposal 0007 (w/ fix to "example")
{-# RULES
"example" fora... | sdiehl/ghc | testsuite/tests/rename/should_compile/ExplicitForAllRules1.hs | bsd-3-clause | 1,119 | 0 | 7 | 252 | 107 | 67 | 40 | 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="ar-SA">
<title>Sequence Scanner | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<ma... | thc202/zap-extensions | addOns/sequence/src/main/javahelp/org/zaproxy/zap/extension/sequence/resources/help_ar_SA/helpset_ar_SA.hs | apache-2.0 | 977 | 78 | 66 | 159 | 413 | 209 | 204 | -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="it-IT">
<title>Active Scan Rules - Alpha | ZAP Extension</title>
<maps>
<homeID>top</homeID>... | thc202/zap-extensions | addOns/ascanrulesAlpha/src/main/javahelp/org/zaproxy/zap/extension/ascanrulesAlpha/resources/help_it_IT/helpset_it_IT.hs | apache-2.0 | 987 | 78 | 67 | 162 | 420 | 212 | 208 | -1 | -1 |
module PatternMatch6 where
g = (\(y:ys) -> (case y of
p | p == 45 -> 12
_ -> 52))
f x = (\(p:ps) -> (case p of
x | x == 45 -> 12
_ -> 52))
| kmate/HaRe | old/testing/foldDef/PatternMatch6.hs | bsd-3-clause | 205 | 0 | 14 | 104 | 105 | 56 | 49 | 7 | 2 |
module FunIn4 where
main :: Int
main
= sum [x + 4 | let foo y = [1 .. 4]
foo_y = undefined,
x <- (foo foo_y)]
| kmate/HaRe | old/testing/addOneParameter/FunIn4_AstOut.hs | bsd-3-clause | 136 | 6 | 12 | 53 | 60 | 34 | 26 | 6 | 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 ... | vladimir-ipatov/ganeti | test/hs/Test/Ganeti/HTools/Loader.hs | gpl-2.0 | 3,565 | 0 | 20 | 704 | 780 | 423 | 357 | 60 | 2 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for ganeti-htools.
-}
{-
Copyright (C) 2009, 2010, 2011, 2012 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions a... | apyrgio/snf-ganeti | test/hs/Test/Ganeti/HTools/CLI.hs | bsd-2-clause | 5,256 | 0 | 16 | 1,335 | 1,039 | 606 | 433 | 87 | 2 |
module HiddenInstancesB (Foo, Bar) where
import HiddenInstancesA
| DavidAlphaFox/ghc | utils/haddock/html-test/src/HiddenInstancesB.hs | bsd-3-clause | 65 | 0 | 4 | 7 | 15 | 10 | 5 | 2 | 0 |
{-# LANGUAGE ForeignFunctionInterface, MagicHash #-}
module T12076lit where
-- This test-case demonstrates that cpeApp's collect_args can
-- be invoked on a literal
import Foreign.C
import Foreign
import GHC.Exts
main = do let y = Ptr "LOL"#
x <- strlen y
x2 <- strlen y -- don't inline y
... | olsner/ghc | testsuite/tests/simplCore/should_compile/T12076lit.hs | bsd-3-clause | 470 | 0 | 10 | 131 | 119 | 62 | 57 | 13 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Control.Applicative
import Control.Monad
import qualified Data.ByteString.Char8 as B8
import System.Environment
import System.Exit
import qualified System.IO as IO
import Kafka
main :: IO ()
main = ... | abhinav/kafka-client | examples/consoleProducer.hs | mit | 766 | 0 | 15 | 222 | 254 | 129 | 125 | 25 | 1 |
-- Copyright 2017 Maximilian Huber <oss@maximilian-huber.de>
-- SPDX-License-Identifier: MIT
-- stolen from: https://wiki.haskell.org/Xmonad/Config_archive/adamvo's_xmonad.hs
module XMonad.MyConfig.ToggleFollowFocus
( applyMyFollowFocus
) where
import XMonad
import qualified XMonad.Util.Extensib... | maximilianhuber/myconfig | xmonad/lib/XMonad/MyConfig/ToggleFollowFocus.hs | mit | 1,788 | 0 | 10 | 350 | 387 | 217 | 170 | 27 | 1 |
module Backend.PrettyPrint (prettyPrint) where
import Control.Monad.Reader
import Control.Monad.State
import Control.Monad.Writer
import Data.List
import Frontend.Values
import Frontend.Primitives
import Backend.AST
import Internal
-- Pretty print
prettyPrint :: LProgram -> String
prettyPrint decls = intercalate ... | alpicola/mel | src/Backend/PrettyPrint.hs | mit | 3,325 | 0 | 17 | 805 | 1,579 | 767 | 812 | 98 | 3 |
{-# LANGUAGE NamedFieldPuns, RecordWildCards, GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE BangPatterns #-}
module Galua.Micro.Type.Monad
( -- * Analysis
AnalysisM, GlobalBlockName(..)
, allPaths, singlePath
--... | GaloisInc/galua | galua-jit/src/Galua/Micro/Type/Monad.hs | mit | 17,200 | 0 | 24 | 5,397 | 4,592 | 2,384 | 2,208 | 352 | 4 |
module Hogldev.RandomTexture (
RandomTexture(..)
, textureBind
, textureLoad
) where
import Control.Monad (replicateM)
import Foreign.Marshal.Array (withArray)
import System.Random
import Graphics.Rendering.OpenGL
newtype RandomTexture = RandomTexture TextureObject
textureBind :: RandomTexture -> TextureUni... | triplepointfive/hogldev | common/Hogldev/RandomTexture.hs | mit | 1,152 | 0 | 11 | 224 | 337 | 172 | 165 | 28 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module OrderByTest where
import qualified Data.Map as M
import qualified Data.Text as T
import qualified Database.Orville.PostgreSQL as O
import qualified Database.Orville.PostgreSQL.Select as S
import qualified TestDB as TestDB
import Control.Monad (void)
import Data.Int (Int64)
i... | flipstone/orville | orville-postgresql/test/OrderByTest.hs | mit | 6,039 | 0 | 18 | 1,390 | 1,486 | 796 | 690 | 159 | 3 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
module Dupes.Actions (
update,
listAll,
listDuplicates,
removeInPaths,
removeSuffixes,
testGroup,
DuplicateAction,
) where
import Control.Monad
import Data.List (isPrefixOf)
import ... | danstiner/dupes | src/Dupes/Actions.hs | mit | 6,713 | 0 | 14 | 1,570 | 1,648 | 867 | 781 | 124 | 2 |
module Dusky.IntensityRater
( determineRegionalIntensity
) where
import Codec.Picture.Types
import Data.List
import qualified Data.Map.Strict as Map
import Dusky.Locality
toPercent :: Float -> Int
toPercent = round . (* 100)
takeWeightedAverage :: [(Float, Int)] -> Float
takeWeightedAverage values = foldr wei... | cmwilhelm/dusky | src/Dusky/IntensityRater.hs | mit | 2,602 | 0 | 13 | 818 | 764 | 397 | 367 | 50 | 1 |
module Graphics.Urho3D.Scene(
module X
) where
import Graphics.Urho3D.Scene.Component as X
import Graphics.Urho3D.Scene.CustomLogicComponent as X
import Graphics.Urho3D.Scene.Events as X
import Graphics.Urho3D.Scene.LogicComponent as X
import Graphics.Urho3D.Scene.Node as X
import Graphics.Urho3D.Scene.Scene as ... | Teaspot-Studio/Urho3D-Haskell | src/Graphics/Urho3D/Scene.hs | mit | 321 | 0 | 4 | 36 | 67 | 51 | 16 | 8 | 0 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.SVGFECompositeElement (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.SVGFECompositeElement
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
import GHCJS... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/SVGFECompositeElement.hs | mit | 376 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
module ByteString.TreeBuilder.Poker where
import ByteString.TreeBuilder.Prelude
import Foreign hiding (void)
import qualified Data.ByteString as A
import qualified Data.ByteString.Internal as B
import qualified Foreign as D
import qualified ByteString.TreeBuilder.Tree as E
-- |
-- Write the given bytes into the poin... | nikita-volkov/bytestring-tree-builder | library/ByteString/TreeBuilder/Poker.hs | mit | 1,309 | 0 | 11 | 244 | 353 | 184 | 169 | 27 | 3 |
-- Just some built-in test scenes for debugging purposes
module TestScenes where
import Colour
import Light
import SparseVoxelOctree
import Vector
import BoundingBox
import Primitive
import Matrix
import Material
import Camera
testSvo :: SparseOctree
testSvo = build (sphereOverlapsBox spherePos sphereRadius) (sphere... | TomHammersley/HaskellRenderer | app/src/TestScenes.hs | gpl-2.0 | 1,415 | 0 | 12 | 281 | 465 | 247 | 218 | 32 | 1 |
import Fay.Builder (defaultFayHook)
main = defaultFayHook
| bneijt/fay-builder-example | Setup.hs | gpl-3.0 | 58 | 0 | 5 | 6 | 16 | 9 | 7 | 2 | 1 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- 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/Helpers/Camera.hs | gpl-3.0 | 9,677 | 0 | 13 | 2,733 | 1,936 | 1,051 | 885 | 207 | 4 |
module Portage.Host
( getInfo -- :: IO [(String, String)]
, LocalInfo(..)
) where
import Util (run_cmd)
import Data.Maybe (fromJust, isJust, catMaybes)
import Control.Applicative ( (<$>) )
import qualified System.Directory as D
import System.FilePath ((</>))
import System.IO
data LocalInfo =
Loc... | Heather/hackport | Portage/Host.hs | gpl-3.0 | 4,121 | 0 | 16 | 1,334 | 1,104 | 590 | 514 | 91 | 4 |
module GameTypes
( Common (..),
Game (..),
State (..),
Status (..)
) where
import UI.NCurses
import Data.ConfigFile
import Space
import Keyboard
import LevelMap
import Beast
import Dialogue
data Common = Common {
stdscr :: Window,
mainWin :: Window,
msgWin :: Window,
mapPath :: FilePath,
... | nobrakal/TheBlackCurse | src/GameTypes.hs | gpl-3.0 | 783 | 0 | 10 | 183 | 227 | 145 | 82 | 32 | 0 |
{-# LANGUAGE NamedFieldPuns #-}
module Language.Slicer.Monad.Repl
( ReplM, runRepl, getTyCtx, getGamma, getEvalState, setEvalState
, addDataDefn, addBinding
) where
import Language.Slicer.Absyn
import qualified Language.Slicer.Core as C ( Value, Type )
import Langu... | jstolarek/slicer | src/Language/Slicer/Monad/Repl.hs | gpl-3.0 | 2,310 | 0 | 11 | 661 | 544 | 305 | 239 | 48 | 1 |
-- This module is loaded as part of the Prelude
module Pic(
Pic(NoPic, Line, Rect, Poly, Ellipse, PicText, PicImage, SelRect, PicAction,
Trans, Super, Animation, Interaction),
Font(Serif, SansSerif, Monospaced, Dialog, DialogInput),
Format(NoFormat, Format),
C... | ckaestne/CIDE | CIDE_Language_Haskell/test/fromviral/Pic.hs | gpl-3.0 | 4,707 | 43 | 10 | 1,896 | 992 | 638 | 354 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-resourcemanager/gen/Network/Google/Resource/CloudResourceManager/TagValues/List.hs | mpl-2.0 | 5,592 | 0 | 18 | 1,325 | 889 | 515 | 374 | 123 | 1 |
module RunnerX where
import TrmX
import qualified Data.List as L
import qualified Data.Set as S
import RewritingX
import AlphaX (solveAlpha)
import ConstraintsX
import SetofSets
import AuxFnRwX
runAlpha:: ProbCtx -> String
runAlpha (ctx, prob) = case solveAlpha prob of
S.Set Nothin... | susoDominguez/eNominalTerms-Alpha | RunnerX.hs | unlicense | 863 | 0 | 14 | 313 | 276 | 149 | 127 | 23 | 3 |
foldl' :: (a -> b -> a) -> a -> [b] -> a
foldl' _ zero [] = zero
foldl' step zero (x:xs) =
let new = step zero x
in new `seq` foldl' step new xs
| EricYT/Haskell | src/strictFoldl.hs | apache-2.0 | 154 | 0 | 9 | 46 | 94 | 48 | 46 | 5 | 1 |
import Sandbox.Partitions (Partition, partitionsWithMaxPart)
import Helpers.Subsets (eachPair)
data HeightSequence = EdgeRooted (Partition, Partition) | VertexRooted Partition deriving (Show)
-- A000677
-- heightSequenceOfEdgeRootedTree :: Int -> Int -> [(Partition, Partition)]
heightSequenceOfEdgeRootedTree n k = ma... | peterokagey/haskellOEIS | src/Sandbox/Greta/DegreeSequence.hs | apache-2.0 | 1,407 | 0 | 13 | 221 | 623 | 336 | 287 | 21 | 1 |
{- Math.hs
- Direct implementation of Linear algebra routines.
- Specific sizes (3x1,4x1,3x3,4x4) allow us to do fast analytical implementations.
-
- Timothy A. Chagnon
- CS 636 - Spring 2009
-}
module Math where
import Control.Parallel.Strategies hiding (dot)
import Control.DeepSeq
import Debug.Trace
tshow :: S... | tchagnon/cs636-raytracer | a3/Math.hs | apache-2.0 | 6,859 | 0 | 19 | 1,847 | 2,919 | 1,531 | 1,388 | 159 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Main where
import Control.Applicative
import Control.Error
import Control.Monad (forM_)
import qualified Data.ByteString.Char8 as BS
import qualified Data.Configurator as C... | erochest/gitreview | GitReview.hs | apache-2.0 | 8,146 | 0 | 20 | 2,752 | 1,940 | 997 | 943 | 194 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.