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 XMonad
import Data.Default (def)
import Data.List (isPrefixOf)
import Data.Monoid (All, mempty)
import Data.Map (Map, fromList)
import System.Environment (lookupEnv)
import System.Exit (exitSuccess)
import System.Process (CmdSpec (RawCommand))
import XMonad.Actions.CycleWS (WSType(AnyWS))
import XMonad.Acti... | nathantypanski/my-xmonad | my-xmonad.hs | bsd-3-clause | 14,363 | 0 | 14 | 5,808 | 2,744 | 1,656 | 1,088 | 318 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module ReadmeGen.Views.Index where
import Text.Blaze.Html5 as H
import Text.Blaze.Html5.Attributes as A
import Text.Blaze.Html.Renderer.Text
import Data.Monoid ((<>))
render items isSearch =
H.html $ do
H.head $ do
H.title "Readme Generator"
H.link ! A.rel "styles... | kmerz/readmegen | src/ReadmeGen/Views/Index.hs | bsd-3-clause | 1,233 | 2 | 22 | 321 | 484 | 237 | 247 | 29 | 2 |
{-# OPTIONS_GHC -fno-warn-tabs #-}
module Word24
( Word24
, toWord24
) where
import Common
import Data.Bits
import Data.Word
import GHC.Enum
newtype Word24 = Word24 { toWord32 :: Word32 } deriving (Eq, Ord)
toWord24 :: Integral a => a -> Word24
toWord24 i = Word24 $ fromIntegral i .&. 0xffffff
instance Bounded W... | andrewcchen/matasano-cryptopals-solutions | modules/Word24.hs | bsd-3-clause | 2,713 | 47 | 15 | 757 | 1,095 | 553 | 542 | 71 | 1 |
-- | Debug FRP networks by inspecting their behaviour inside.
module FRP.Yampa.Debug where
import Debug.Trace
import FRP.Yampa
import System.IO.Unsafe
-- | Signal Function that prints the value passing through using 'trace'.
traceSF :: Show a => SF a a
traceSF = traceSFWith show
-- | Signal Function that prints the ... | ivanperez-keera/Yampa | yampa-test/src/FRP/Yampa/Debug.hs | bsd-3-clause | 674 | 0 | 12 | 122 | 167 | 90 | 77 | 10 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Scripts.FCCForm471Common where
import ClassyPrelude
import qualified Data.Csv as Csv
newtype Form471Num = Form471Num Int
deriving (Show, Eq, Num)
instance Csv.FromField Form471Num where
parse... | limaner2002/EPC-tools | USACScripts/src/Scripts/FCCForm471Common.hs | bsd-3-clause | 364 | 0 | 8 | 50 | 70 | 41 | 29 | 10 | 0 |
module PolyGraph.Buildable.Graph (
(@+~~@)
, (^+~~^)
, toSimpleGraph
) where
import PolyGraph.Common (UOPair(..), toPair)
import PolyGraph.Buildable
import qualified PolyGraph.ReadOnly as Base
import PolyGraph.ReadOnly.Graph (EdgeSemantics (..))
import Data.List (nub)
import Data.Foldable (toList)
(@+~~@) :: ... | rpeszek/GraphPlay | src/PolyGraph/Buildable/Graph.hs | bsd-3-clause | 1,504 | 0 | 17 | 416 | 542 | 298 | 244 | -1 | -1 |
--------------------------------------------------------------------------------
module Language.Haskell.Stylish.Parse.Tests
( tests
) where
--------------------------------------------------------------------------------
import Test.Framework (Test, testGroup)
import Test.... | eigengrau/stylish-haskell | tests/Language/Haskell/Stylish/Parse/Tests.hs | bsd-3-clause | 2,409 | 0 | 9 | 463 | 358 | 201 | 157 | 39 | 1 |
module Game.Innovation
( module X
) where
import Game.Innovation.Cards as X
import Game.Innovation.Rules as X
import Game.Innovation.ActionTokens as X
| maximilianhuber/innovation | lib/Game/Innovation.hs | bsd-3-clause | 160 | 0 | 4 | 28 | 36 | 26 | 10 | 5 | 0 |
{-# LANGUAGE DeriveGeneric, TypeSynonymInstances, FlexibleInstances, DeriveDataTypeable, StandaloneDeriving #-}
module XMonad.TimeTracker.Types where
import Control.Applicative
import Data.Typeable
import Data.Time
import Data.Binary as Binary
import GHC.Generics (Generic)
deriving instance Generic TimeZone
instanc... | portnov/xtt | XMonad/TimeTracker/Types.hs | bsd-3-clause | 1,650 | 0 | 12 | 412 | 531 | 278 | 253 | -1 | -1 |
{-# LANGUAGE FlexibleContexts, OverloadedStrings, RecordWildCards, ScopedTypeVariables, ConstraintKinds, PatternGuards, CPP #-}
-- |The HTTP/JSON plumbing used to implement the 'WD' monad.
--
-- These functions can be used to create your own 'WebDriver' instances, providing extra functionality for your application if d... | kallisti-dev/hs-webdriver | src/Test/WebDriver/Internal.hs | bsd-3-clause | 9,159 | 0 | 21 | 2,267 | 2,188 | 1,156 | 1,032 | 171 | 26 |
{-# LANGUAGE MagicHash,
UnboxedTuples, FlexibleInstances #-}
module TokenDef where
import UU.Scanner.Token
import UU.Scanner.GenToken
import UU.Scanner.Position
import UU.Parsing.MachineInterface(Symbol(..))
import Data.Char(isPrint,ord)
import HsToken
import CommonTypes
instance Symbol Token where
de... | norm2782/uuagc | src/TokenDef.hs | bsd-3-clause | 3,057 | 0 | 18 | 1,151 | 1,124 | 589 | 535 | 73 | 6 |
{-# LANGUAGE OverloadedStrings,
GeneralizedNewtypeDeriving,
FlexibleInstances,
MultiParamTypeClasses #-}
module Main (main) where
import Data.IntMap (IntMap)
import qualified Data.IntMap as IntMap
import qualified Data.Set as Set
import Control.Monad.Reader
import Network.Kon... | NicolasT/kontiki | bin/demo.hs | bsd-3-clause | 1,244 | 0 | 12 | 382 | 335 | 188 | 147 | 33 | 1 |
{-# LANGUAGE BangPatterns, CPP #-}
#if __GLASGOW_HASKELL__ >= 701
{-# LANGUAGE Safe #-}
{-# LANGUAGE DeriveGeneric #-}
#endif
-----------------------------------------------------------------------------
-- |
-- Module : Text.PrettyPrint.MarkedHughesPJ
-- Copyright : (c) The University of Glasgow 2001
-- Lice... | ku-fpg/marked-pretty | src/Text/PrettyPrint/MarkedHughesPJ.hs | bsd-3-clause | 34,684 | 0 | 26 | 11,156 | 8,688 | 4,515 | 4,173 | 490 | 18 |
-- {-# LANGUAGE #-}
{-# OPTIONS_GHC -Wall -fno-warn-missing-signatures #-}
----------------------------------------------------------------------
-- |
-- Module : Play.CseTest
-- Copyright : (c) Conal Elliott 2009
-- License : GPL-3
--
-- Maintainer : conal@conal.net
-- Stability : experimental
--
... | conal/shady-gen | src/Shady/Play/Simplify.hs | agpl-3.0 | 1,001 | 0 | 7 | 185 | 242 | 144 | 98 | 24 | 1 |
module FP.DerivingPrism where
import FP.Core
import FP.TH
import Language.Haskell.TH
import Data.Char
-- makePrismLogic [C, D] ty [a, b] Con [fty, gty] := [|
-- fieldL :: (C, D) => Prism (ty a b) (fty, bty)
-- fieldL := Prism
-- { view = \ v -> case v of
-- Con f g -> Just (f, g)
-- _ -> Noth... | davdar/maam | src/FP/DerivingPrism.hs | bsd-3-clause | 1,655 | 0 | 23 | 539 | 575 | 290 | 285 | -1 | -1 |
{-# LANGUAGE TypeSynonymInstances, TemplateHaskell, QuasiQuotes, MultiParamTypeClasses, FlexibleInstances, DeriveDataTypeable, NamedFieldPuns, ScopedTypeVariables #-}
module Pnm where
import qualified Data.Char as Char
import Language.Pads.Padsc
import Control.Monad
_ws = one_or_more Char.isSpace
where one_or_more =... | GaloisInc/pads-haskell | Examples/Pnm.hs | bsd-3-clause | 1,217 | 0 | 9 | 318 | 136 | 77 | 59 | -1 | -1 |
module Idris.Imports where
import Control.Applicative ((<$>))
import Data.List (isSuffixOf)
import Idris.AbsSyntax
import Idris.Error
import Idris.Core.TT
import IRTS.System (getIdrisLibDir)
import System.FilePath
import System.Directory
import Control.Monad.State.Strict
data IFileType = IDR FilePath | LIDR FileP... | bkoropoff/Idris-dev | src/Idris/Imports.hs | bsd-3-clause | 4,614 | 0 | 15 | 1,785 | 1,155 | 584 | 571 | 88 | 4 |
-- |
-- Module : Graphics.Formats.Assimp
-- Copyright : (c) Joel Burget 2011-2012
-- License : BSD3
--
-- Maintainer : Joel Burget <joelburget@gmail.com>
-- Stability : experimental
-- Portability : non-portable
module Graphics.Formats.Assimp (
module Graphics.Formats.Assimp.Anim
, module Graphics.... | haraldsteinlechner/assimp | Graphics/Formats/Assimp.hs | bsd-3-clause | 1,479 | 0 | 5 | 161 | 242 | 179 | 63 | 31 | 0 |
module Plugins (
FrontendPlugin(..), defaultFrontendPlugin,
Plugin(..), CommandLineOption,
defaultPlugin
) where
-- import CoreMonad ( CoreToDo, CoreM )
-- import TcRnTypes ( TcPlugin )
-- import GhcMonad
-- import DriverPhases
type CoreM a = Maybe a
type Ghc a = Maybe a
type CoreToDo = Int
type P... | tolysz/prepare-ghcjs | spec-lts8/ghc/main/Plugins.hs | bsd-3-clause | 1,892 | 0 | 12 | 385 | 254 | 160 | 94 | 22 | 1 |
{-# LANGUAGE NoMonomorphismRestriction, FlexibleContexts, FlexibleInstances, TypeSynonymInstances, DeriveDataTypeable #-}
module PTS.Error
( Errors
, PTSError (..)
, Position (..)
, annotatePos
, annotateCode
, showErrors
, strMsg
) where
import Control.Applicative
import Control.Monad
import Control.M... | Toxaris/pts | src-lib/PTS/Error.hs | bsd-3-clause | 3,249 | 0 | 13 | 727 | 1,318 | 707 | 611 | 75 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeSynonymInstances #-}
module IHaskell.Display.Widgets.Output (
-- * The Output Widget
OutputWidget,
-- * Constructor
mkOutputWidget,
-- * Using the output widget
appendOutput,
cl... | FranklinChen/IHaskell | ihaskell-display/ihaskell-widgets/src/IHaskell/Display/Widgets/Output.hs | mit | 2,349 | 0 | 13 | 509 | 454 | 244 | 210 | 50 | 1 |
{-# LANGUAGE RankNTypes, FlexibleInstances, FlexibleContexts, TypeOperators, MultiParamTypeClasses, ConstraintKinds, ScopedTypeVariables #-}
{- |
Module : ApplyTransCFJava
Description : Translation of FCore to Java with Apply-opt
Copyright : (c) 2014—2015 The F2J Project Developers (given in AUTHORS.txt)
Lice... | bixuanzju/fcore | lib/ApplyTransCFJava.hs | bsd-2-clause | 5,629 | 0 | 25 | 2,030 | 1,601 | 825 | 776 | 95 | 5 |
{-# LANGUAGE TemplateHaskell #-}
{-| Implementation of the Ganeti Ssconf interface.
-}
{-
Copyright (C) 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 are
met:
1. Redistributions of source ... | bitemyapp/ganeti | src/Ganeti/Ssconf.hs | bsd-2-clause | 8,257 | 0 | 14 | 1,665 | 1,458 | 786 | 672 | 135 | 2 |
module Foo where
import Prelude hiding (putStr)
import qualified System.IO
import Data.Maybe
import qualified ValidSubs
ps :: String -> IO ()
ps = putStrLn
test :: [Maybe a] -> [a]
test = _
test2 :: Integer -> ValidSubs.Moo
test2 = _
main :: IO ()
main = _ "hello, world"
| ezyang/ghc | testsuite/tests/typecheck/should_compile/valid_substitutions.hs | bsd-3-clause | 278 | 0 | 7 | 56 | 104 | 60 | 44 | 13 | 1 |
main = do
print (sqrt (-7 :: Double))
print (sqrt (-7 :: Float))
| sdiehl/ghc | libraries/base/tests/Numeric/sqrt.hs | bsd-3-clause | 73 | 1 | 11 | 21 | 49 | 23 | 26 | 3 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Foreign
-- Copyright : (c) The University of Glasgow, 2008-2011
-- License : see libraries/base/LICENSE
--
-- Maintainer : libraries@h... | mightymoose/liquidhaskell | benchmarks/ghc-7.4.1/Foreign.hs | bsd-3-clause | 10,706 | 0 | 25 | 2,740 | 2,052 | 1,076 | 976 | 137 | 5 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
module Cook.Ci.Process
( runInteractiveProcess
)
where
import Control.Concurrent
import Control.Monad (when)
import System.Exit (ExitCode(..))
import System.IO
import qualified Control.Exception as C
import qualified Data.ByteString as BS
... | factisresearch/cookci | src/Cook/Ci/Process.hs | mit | 2,860 | 0 | 19 | 1,032 | 716 | 363 | 353 | 64 | 1 |
module Misc(anyValue) where
-- just like Prelude.any but returns the item as Maybe a
anyValue :: (a -> Maybe b) -> [a] -> Maybe b
anyValue _ [] = Nothing
anyValue predicate (i:rest) = case predicate i of
Nothing -> anyValue predicate rest
x -> x
| Noeda/Megaman | src/Misc.hs | mit | 318 | 0 | 8 | 118 | 92 | 48 | 44 | 6 | 2 |
-- Copyright 2013 Thomas Szczarkowski
import Network.HTTP.Server
import Network.HTTP.Server.Logger
import Network.URI
import Codec.Binary.UTF8.String
import Data.Word
import Data.List
import Control.Concurrent
import Control.DeepSeq
import Control.Applicative
import Control.Arrow
import Control.Monad
import System.En... | tom-szczarkowski/matasano-crypto-puzzles-solutions | set4/TimingLeakServer.hs | mit | 2,992 | 2 | 17 | 935 | 852 | 435 | 417 | 65 | 4 |
{-# LANGUAGE
RecordWildCards ,
OverloadedStrings,
GADTs
#-}
{- |
Module : HSat.Problem.Internal
Description : Internal representation of Problem
Copyright : (c) Andrew Burnett 2014-2015
Maintainer : andyburnett88@gmail.com
Stability : experimental
Portability : Unknown
Exports the underlyin... | aburnett88/HSat | src/HSat/Problem/Internal.hs | mit | 1,594 | 0 | 9 | 425 | 284 | 158 | 126 | 41 | 3 |
{- |
Module : Language.Javascript.JMacro
Copyright : (c) Gershom Bazerman, 2010
License : BSD 3 Clause
Maintainer : gershomb@gmail.com
Stability : experimental
Simple DSL for lightweight (untyped) programmatic generation of Javascript.
A number of examples are available in the source of "Language.J... | ghcjs/ghcjs | src/Compiler/JMacro.hs | mit | 3,334 | 0 | 5 | 564 | 55 | 38 | 17 | 7 | 0 |
module Language.MSH.CodeGenMonad where
import Control.Monad.State
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
import Language.MSH.CodeGen.Shared
type CodeGen = StateT StateEnv Q | mbg/monadic-state-hierarchies | Language/MSH/CodeGenMonad.hs | mit | 198 | 0 | 5 | 20 | 44 | 29 | 15 | 6 | 0 |
module Text.Pandoc.TikZ.Hash (hash) where
import Data.ByteString.Char8 (pack, unpack)
import Data.ByteString.Base16 (encode)
import qualified Crypto.Hash.SHA256 as SHA256
hash :: String -> String
hash = unpack . encode . SHA256.hash . pack
| claudio-mattera/pandoc-tikz | src/Text/Pandoc/TikZ/Hash.hs | mit | 252 | 0 | 7 | 41 | 75 | 47 | 28 | 6 | 1 |
{-# OPTIONS_GHC -fno-warn-missing-fields #-}
{-# OPTIONS_GHC -fno-warn-incomplete-uni-patterns #-}
module GetOpt.Declarative.EnvironmentSpec (spec) where
import Prelude ()
import Helper
import GetOpt.Declarative.Types
import GetOpt.Declarative.Environment
spec :: Spec
spec = d... | hspec/hspec | hspec-core/test/GetOpt/Declarative/EnvironmentSpec.hs | mit | 2,555 | 0 | 23 | 694 | 690 | 352 | 338 | 53 | 1 |
module Pangram
( isPangram
) where
import Data.Char (toLower, isLetter)
import Data.HashSet (fromList, isSubsetOf)
isPangram :: String -> Bool
isPangram text = alphabet `isSubsetOf` letters
where
letters = fromList [toLower c | c <- text, isLetter c]
alphabet = fromList ['a' .. 'z'] | enolive/exercism | haskell/pangram/src/Pangram.hs | mit | 299 | 0 | 10 | 58 | 103 | 58 | 45 | 8 | 1 |
{-# LANGUAGE RecordWildCards #-}
module Hogldev.Mesh (
Mesh
, loadMesh
, renderMesh
) where
import Control.Monad (when)
import Data.Foldable (forM_)
import Data.Maybe (fromJust, isJust)
import Foreign.Storable (sizeOf)
import Foreign.Marshal.Array (withArray)
i... | triplepointfive/hogldev | common/Hogldev/Mesh.hs | mit | 6,524 | 0 | 19 | 1,824 | 1,895 | 954 | 941 | 156 | 2 |
{-# OPTIONS -Wall #-}
{-# LANGUAGE NamedFieldPuns #-}
import Helpers.Parse
import Text.Parsec
data Command = Forward Int | Down Int | Up Int
deriving (Show)
data Position = Position {horizontal :: Int, depth :: Int}
main :: IO ()
main = do
commands <- parseInput
let Position {horizontal, depth} = foldl move i... | SamirTalwar/advent-of-code | 2021/AOC_02_1.hs | mit | 1,001 | 8 | 14 | 203 | 386 | 190 | 196 | 28 | 1 |
{-# LANGUAGE LambdaCase, ViewPatterns,ScopedTypeVariables, NoMonomorphismRestriction #-}
module Syntax.ShellQQ.Pipes where
import Language.Haskell.TH
import Language.Haskell.TH.Quote
| ducis/shqq | Syntax/ShellQQ/Pipes.hs | mit | 186 | 0 | 4 | 16 | 21 | 15 | 6 | 4 | 0 |
module UtilSpec
( main
, spec
) where
import Ch06SVM.Util
import Test.Hspec
spec :: Spec
spec = return ()
main :: IO ()
main = hspec spec
| rcook/mlutil | ch06-svm/spec/UtilSpec.hs | mit | 173 | 0 | 6 | 62 | 55 | 31 | 24 | 9 | 1 |
-- https://projecteuler.net/problem=40
-- Champernowne's constant
-- An irrational decimal fraction is created by concatenating the positive integers:
-- 0.123456789101112131415161718192021...
-- It can be seen that the 12th digit of the fractional part is 1.
-- If dn represents the nth digit of the fractional part, fi... | kirhgoff/haskell-sandbox | euler40/euler40.hs | mit | 656 | 0 | 11 | 133 | 137 | 78 | 59 | 8 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.CSSKeyframeRule
(js_setKeyText, setKeyText, js_getKeyText, getKeyText, js_getStyle,
getStyle, CSSKeyframeRule, castToCSSKeyframeRule,
gTypeCSSKeyframeRule)
where
import Prelude ((.), ... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/CSSKeyframeRule.hs | mit | 2,248 | 20 | 10 | 299 | 552 | 331 | 221 | 35 | 1 |
module XML where
import Data.Maybe
import Text.XML.Light
import Data.Tree
import Data.List
import Data.List.Split
import Data.Char
import qualified Data.Set as Set
import qualified Data.Map as Map
import Control.Monad
import Parsers hiding (trim)
import DataStructures
parseXMLOutput :: FilePath -> IO [(CStructure,FS... | gianlucagiorgolo/glue-xle | XML.hs | mit | 14,547 | 0 | 22 | 4,044 | 4,635 | 2,351 | 2,284 | 231 | 9 |
-- Fibonacci number. Tail Recursion.
module Fibonacci where
fibonacci :: Integer -> Integer
fibonacci index
| index < 0 = error "Negative index."
| otherwise = fibonacci' index 0 1
where
fibonacci' :: Integer -> Integer -> Integer -> Integer
fibonacci' 0 _ _ = 0 ... | pascal-knodel/haskell-craft | Examples/· Recursion/· Tail Recursion/Calculation/Fibonacci.hs | mit | 708 | 0 | 10 | 203 | 136 | 72 | 64 | 10 | 3 |
import qualified Control.Monad as C
import qualified Data.Map.Strict as M
import qualified Data.Ratio as R
import qualified Text.Printf as T
newtype PList a = PList { pList :: [(a, Rational)] }
instance Functor PList where
fmap = C.liftM
instance Applicative PList where
pure = return
(<*>) = C.ap
instance Mo... | candide-guevara/programming_challenges | haskell_learning/probabilistic_monad.hs | gpl-2.0 | 1,260 | 1 | 12 | 278 | 633 | 334 | 299 | 35 | 2 |
import System.IO (readFile)
import System.Environment (getArgs)
main :: IO ()
main = do
paths <- getArgs
conts <- mapM readFile paths
let cat = concat conts
putStr cat
| friedbrice/Haskell | ch09/cat.hs | gpl-2.0 | 178 | 1 | 10 | 38 | 76 | 35 | 41 | 8 | 1 |
{- |
Module : $Header$
Description : basic ShATermConvertible instances
Copyright : (c) Christian Maeder, Uni Bremen 2005-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : portable
a few basic 'ShATermConvertible' instances... | nevrenato/Hets_Fork | Haskell/BaseATC.hs | gpl-2.0 | 1,259 | 0 | 22 | 289 | 366 | 194 | 172 | 24 | 1 |
module System.DevUtils.Base.Url.ZMQ (
ZMQ(..),
defaultZMQConnection,
defaultZMQ
) where
import qualified System.DevUtils.Base.Url.Connection as C
data ZMQ = ZMQ {
_con :: C.Connection
} deriving (Show, Read)
defaultZMQConnection :: C.Connection
defaultZMQConnection = C.Connection {
C._dest = "localhost", C._po... | adarqui/DevUtils-Base | src/System/DevUtils/Base/Url/ZMQ.hs | gpl-3.0 | 418 | 0 | 9 | 67 | 123 | 78 | 45 | 14 | 1 |
{-|
Module : To87
Description : Converts 8 bits to 7 bits
Copyright : (c) Frédéric BISSON, 2014
License : GPL-3
Maintainer : zigazou@free.fr
Stability : experimental
Portability : POSIX
This module converts 8 bits bytes to 7 bits bytes.
-}
module Minitel.Generate.Photo.To87 ( to87 ) where
import Data.Wo... | Zigazou/HaMinitel | src/Minitel/Generate/Photo/To87.hs | gpl-3.0 | 864 | 0 | 12 | 229 | 222 | 117 | 105 | 16 | 1 |
{-- SecPAL language spec -}
module Logic.SecPAL.Language where
import Logic.General.Entities
import Logic.General.Constraints
data D = Zero
| Infinity
deriving (Eq,Show)
data VerbPhrase = Predicate { predicate :: String, args :: [E] }
| CanSay { delegation :: D, what :: Fact }
... | bogwonch/SecPAL | src/Logic/SecPAL/Language.hs | gpl-3.0 | 764 | 0 | 9 | 228 | 258 | 155 | 103 | 20 | 1 |
{-# OPTIONS -Wall #-}
module Codec.TPTP.Import(parse,parseFile
,parseWithComment,parseWithCommentFile
,Token(..)) where
import Lexer
import Parser
import ParserC
import Codec.TPTP.Base
parse :: String -> [TPTP_Input]
parse = parseTPTP . map snd . alexScanTokens
parse... | DanielSchuessler/logic-TPTP | Codec/TPTP/Import.hs | gpl-3.0 | 623 | 0 | 7 | 125 | 164 | 94 | 70 | 16 | 1 |
import Data.Char as DC
main =
if hIsEOF linea
then
do
putStrLn "Hola"
else
do
linea <- getLine
putStrLn $ mayusculas linea
putStrLn $ minusculas linea
main
mayusculas :: [Char] -> [Char]
mayusculas (x:xs) = [DC.toUpper x] ++ (mayusculas xs)
mayusculas [] = []
minusc... | rysard/cursos | haskell/problemas/cadenas.hs | gpl-3.0 | 418 | 1 | 9 | 115 | 183 | 92 | 91 | 16 | 2 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
-- |
-- Module : Network.AWS.S3.Encryption.Decrypt
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <b... | olorin/amazonka | amazonka-s3-encryption/src/Network/AWS/S3/Encryption/Decrypt.hs | mpl-2.0 | 1,753 | 0 | 20 | 537 | 407 | 224 | 183 | 34 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module BookIndexer.BookMetadataReader where
import Codec.Epub (getPkgPathXmlFromBS, getMetadata, getPackage)
import Codec.Epub.Data.Metadata (Metadata(..), Creator(..), Title(..))
import Codec.Epub.Data.Package (Package(pkgVersion))
import Control.M... | asvyazin/my-books.purs | server/my-books/BookIndexer/BookMetadataReader.hs | mpl-2.0 | 1,539 | 0 | 14 | 292 | 475 | 260 | 215 | 40 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeSynonymInstances #-}
module Network.TelegramBot.Files where
import Control.Monad.IO.Class
import Control.Monad.Trans.Either
import Control.Mo... | bb010g/telegram-bot | src/Network/TelegramBot/Files.hs | agpl-3.0 | 2,314 | 0 | 13 | 504 | 419 | 232 | 187 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
-- | Various splices used in the job board
module Snap.Snaplet.JobBoard.Splices where
import Data.Text (Text)
import Data.Text.Lazy as TL (toStrict, take)
import Data.Text.Format as TF (format, Only(..))
import qualified Text.XmlHtml as X
import Database.PostgreSQL.Simple.Time
impor... | statusfailed/snaplet-job-board | src/Snap/Snaplet/JobBoard/Splices.hs | agpl-3.0 | 1,738 | 0 | 11 | 307 | 544 | 300 | 244 | 33 | 2 |
{-
Bustle.Monitor: Haskell binding for pcap-monitor.c
Copyright © 2012 Collabora Ltd.
Copyright © 2018 Will Thompson
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the L... | wjt/bustle | Bustle/Monitor.hs | lgpl-2.1 | 4,124 | 0 | 14 | 1,089 | 819 | 426 | 393 | 85 | 3 |
-- | Backend specific glue for platform
module ViperVM.Platform.Peer.PlatformPeer (
PlatformPeer(..),initPlatform
) where
import qualified ViperVM.Backends.Host.Driver as Host
import qualified ViperVM.Backends.OpenCL.Driver as CL
import qualified ViperVM.Platform.Peer.MemoryPeer as Peer
import qualified ViperVM.Pl... | hsyl20/HViperVM | lib/ViperVM/Platform/Peer/PlatformPeer.hs | lgpl-3.0 | 1,516 | 0 | 12 | 257 | 398 | 229 | 169 | 32 | 1 |
{-# LANGUAGE RecordWildCards, TypeOperators, StandaloneDeriving, FlexibleContexts, UndecidableInstances #-}
module Language.Pascal.Parser (parseSource, pProgram) where
import Control.Applicative ((<$>))
import qualified Data.Map as M
import Text.Parsec
import qualified Text.Parsec.Token as P
import Text.Parsec.Languag... | portnov/simple-pascal-compiler | Language/Pascal/Parser.hs | lgpl-3.0 | 8,092 | 0 | 15 | 2,068 | 2,781 | 1,351 | 1,430 | 258 | 5 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
module HW05 where
import Data.ByteString.Lazy (ByteString)
import Data.Bits (xor)
import Data.Map.Strict (Map)
import System.Environment (getArgs)
import qualified Data.ByteString.Lazy as BS
import qualified Data.Map.Strict as Map
import qu... | redongjun/haskellschool | homework/HW05/HW05.hs | unlicense | 4,482 | 0 | 20 | 1,014 | 1,407 | 723 | 684 | 84 | 3 |
module Network.JSONRPC
( -- * Introduction
-- $introduction
module Network.JSONRPC.Interface
, module Network.JSONRPC.Data
) where
import Network.JSONRPC.Arbitrary ()
import Network.JSONRPC.Data
import Network.JSONRPC.Interface
-- $introduction
--
-- This JSON-RPC library is fully-c... | xenog/json-rpc | src/Network/JSONRPC.hs | unlicense | 835 | 0 | 5 | 155 | 56 | 42 | 14 | 7 | 0 |
-- Copyright 2020-2021 Google LLC
--
-- 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 t... | google/hs-dependent-literals | dependent-literals-plugin/tests/TestUtils.hs | apache-2.0 | 1,392 | 0 | 10 | 288 | 323 | 180 | 143 | -1 | -1 |
{-# LANGUAGE DeriveFunctor #-}
-- |CmdLine.hs
--
-- Command-line options parsing, using optparser-applicative.
--
--
--
-- Copyright (C) 2014 Braa Research, LLC.
module DNA.CmdOpts (
StartOpt(..)
, UnixStart(..)
, CommonOpt(..)
, dnaParseOptions
) where
import Control.Monad
import Options.Applica... | SKA-ScienceDataProcessor/RC | MS2/lib/DNA/CmdOpts.hs | apache-2.0 | 3,821 | 8 | 20 | 1,421 | 704 | 386 | 318 | 92 | 5 |
module Delahaye.A338034Spec (main, spec) where
import Test.Hspec
import Delahaye.A338034 (a338034)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A338034" $
it "correctly computes the first 20 elements" $
take 20 (map a338034 [1..]) `shouldBe` expectedValue where
expectedValue = [0, 0, 0, 0... | peterokagey/haskellOEIS | test/Delahaye/A338034Spec.hs | apache-2.0 | 374 | 0 | 10 | 78 | 160 | 95 | 65 | 10 | 1 |
module Database.Sophia.Types where
import qualified Bindings.Sophia as S
newtype Db = Db { unDb :: S.Db }
newtype Env = Env { unEnv :: S.Env }
newtype Cursor = Cursor { unCursor :: S.Cursor }
| Peaker/hssophia | Database/Sophia/Types.hs | bsd-2-clause | 194 | 0 | 7 | 37 | 60 | 41 | 19 | 5 | 0 |
{-# OPTIONS -Wall #-}
----------------------------------------------------------------------
-- |
-- Module : Data.ZoomCache
-- Copyright : Conrad Parker
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Conrad Parker <conrad@metadecks.org>
-- Stability : unstable
-- Portability : unknown
--
-- API... | kfish/zoom-cache | Data/ZoomCache.hs | bsd-2-clause | 3,009 | 0 | 8 | 653 | 572 | 383 | 189 | 80 | 1 |
{-
(c) The University of Glasgow 2006
(c) The AQUA Project, Glasgow University, 1993-1998
This is useful, general stuff for the Native Code Generator.
Provide trees (of instructions), so that lists of instructions
can be appended in linear time.
-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE BangPatterns #-}
modul... | sdiehl/ghc | compiler/utils/OrdList.hs | bsd-3-clause | 5,746 | 0 | 10 | 1,691 | 2,526 | 1,276 | 1,250 | 148 | 6 |
module Main where
#if ! MIN_VERSION_base(4,6,0)
import Prelude hiding (catch)
#endif
import Control.Monad (forever)
import Control.Concurrent.MVar
( newEmptyMVar
, putMVar
, takeMVar
, withMVar
)
import qualified Network.Transport as NT (Transport)
import Network.Transport.TCP()
import Control.Distributed.Pr... | haskell-distributed/distributed-process-platform | tests/TestTimer.hs | bsd-3-clause | 5,568 | 0 | 21 | 1,564 | 1,355 | 658 | 697 | 136 | 2 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE RankNTypes #-}
module Fragment.TyAll.Rules.Type (
TyAllNormalizeConstraint
, tyAllNormalizeRules
) where
import ... | dalaing/type-systems | src/Fragment/TyAll/Rules/Type.hs | bsd-3-clause | 948 | 0 | 10 | 213 | 221 | 119 | 102 | 22 | 1 |
module ArbitraryCards where
import Game.Cards.CardSuit
import Game.Cards.CardValue
import Game.Cards.Card
import Test.QuickCheck
instance Arbitrary CardSuit where
arbitrary = elements [Spades, Clubs, Hearts, Diamonds]
instance Arbitrary CardValue where
arbitrary = elements [Two .. Ace]
| erm0l0v/Cards | test/ArbitraryCards.hs | bsd-3-clause | 295 | 0 | 7 | 40 | 77 | 46 | 31 | 9 | 0 |
{-# LANGUAGE ConstraintKinds, DataKinds, FlexibleContexts, FlexibleInstances, GADTs, MultiParamTypeClasses, PolyKinds, RankNTypes, ScopedTypeVariables, TypeFamilies, TypeOperators #-}
module Data.Functor.Union where
import qualified Control.Concurrent as CC
import qualified Control.Exception as E
import Control.Monad.... | robrix/ui-effects | src/Data/Functor/Union.hs | bsd-3-clause | 5,127 | 0 | 11 | 1,154 | 2,614 | 1,358 | 1,256 | 113 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
-- Module : Hasmin.Parser.Selector
-- Copyright : (c) 2017 Cristian Adrián Ontivero
-- License : BSD3
-- Stability : experimental
-- Portability : unknown
--
-------------------------------... | contivero/hasmin | src/Hasmin/Parser/Selector.hs | bsd-3-clause | 8,248 | 0 | 21 | 2,152 | 1,891 | 1,007 | 884 | 127 | 4 |
import Network
import Char
import Control.Concurrent
import System.IO (hGetChar, hGetLine, hClose, hPutStr, hSetBuffering, BufferMode(..), Handle,stdout)
main = withSocketsDo $ do
putStrLn "Welcome to my haskell websocket example"
hSetBuffering stdout NoBuffering
server --or client
putStrLn "Done"
... | fos/fos-legacy | scratch/very_scratch/server/example2/Wsocket.hs | bsd-3-clause | 1,973 | 15 | 12 | 422 | 645 | 299 | 346 | 60 | 3 |
module MSF.Event.Handler where
import qualified Control.Exception as X
import qualified Data.Map as Map
type Handler a = HandlerRef -> a -> IO ()
type HandlerRef = Int
data HandlerMap a = HandlerMap
{ handlers :: Map.Map HandlerRef (Handler a)
, handlerNextId :: HandlerRef
}
-- | An empty map of handle... | GaloisInc/msf-haskell | src/MSF/Event/Handler.hs | bsd-3-clause | 1,330 | 0 | 11 | 296 | 392 | 211 | 181 | 29 | 1 |
module Type.Effect.Literal where
import qualified AST.Literal as L
import qualified Data.Map as Map
import qualified Reporting.Region as R
--import qualified Type.Environment as Env
import Type.Effect
constrain
:: Environment
-> R.Region
-> L.Literal
-> TypeAnnot
-> IO AnnotConstr
constrain _ re... | JoeyEremondi/elm-pattern-effects | src/Type/Effect/Literal.hs | bsd-3-clause | 793 | 0 | 10 | 301 | 218 | 115 | 103 | 26 | 5 |
-----------------------------------------------------------------------------
-- |
-- Module : System.FilePath.Lens
-- Copyright : (C) 2012-16 Edward Kmett
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : experimental
-- Portability : Rank2... | ddssff/lens | src/System/FilePath/Lens.hs | bsd-3-clause | 9,006 | 0 | 10 | 1,685 | 1,280 | 775 | 505 | 64 | 1 |
{-# OPTIONS_GHC -fno-warn-tabs #-}
{- $Id: TestsWFG.hs,v 1.2 2003/11/10 21:28:58 antony Exp $
******************************************************************************
* Y A M P A *
* ... | ivanperez-keera/Yampa | yampa/tests/TestsWFG.hs | bsd-3-clause | 3,128 | 0 | 8 | 1,047 | 859 | 498 | 361 | 64 | 1 |
{-|
Copyright : (c) Dave Laing, 2017
License : BSD3
Maintainer : dave.laing.80@gmail.com
Stability : experimental
Portability : non-portable
-}
{-# LANGUAGE ConstraintKinds #-}
module Fragment.Record.Rules.Kind.Infer.SyntaxDirected (
RecordInferKindContext
, recordInferKindRules
) where
import Data.Fo... | dalaing/type-systems | src/Fragment/Record/Rules/Kind/Infer/SyntaxDirected.hs | bsd-3-clause | 1,344 | 0 | 14 | 277 | 396 | 216 | 180 | 30 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, TemplateHaskell #-}
module Kerchief
( Kerchief
, getDeck
, getDecksDir
, getKerchiefDir
, getSoundbytesDir
, isDeckLoaded
, isModified
, loadDeck
, readSoundbyte
, runKerchief
, saveDeck
, saveSoundbyte
, setDeck
) where
... | mitchellwrosen/kerchief | src/Kerchief.hs | bsd-3-clause | 4,522 | 0 | 15 | 1,120 | 1,059 | 569 | 490 | 95 | 2 |
module Storage (
module Storage
, module Exports
) where
import Din
import Storage.Db as Exports
import Storage.Schema (dinSchema)
import Control.Monad (when)
import Database.SQL (SQLTable,tabName)
import Database.SQLite (defineTable)
-- Initialization -------------------------------------------------------... | elliottt/din | src/Storage.hs | bsd-3-clause | 853 | 0 | 13 | 159 | 227 | 118 | 109 | 22 | 2 |
module Slack
( slack
, slackA
, runRtmBot
, debug
, Channel
) where
import Control.Lens ((.~), (&), (^?), (^.))
import Control.Monad (forever, unless)
import Control.Monad.IO.Class (liftIO)
import Control.Monad.Reader (ask)
import... | jamesdabbs/zorya | src/Slack.hs | bsd-3-clause | 4,420 | 0 | 24 | 1,258 | 1,459 | 764 | 695 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module DatabaseApi (getSumFromDb) where
import Database.PostgreSQL.Simple
getSumFromDb :: Connection -> IO Int
getSumFromDb connection = do
xs <- query_ connection "select 2 + 2"
return $ (fromOnly $ head xs :: Int)
| jorgen/scotty-postgres | src/DatabaseApi.hs | bsd-3-clause | 261 | 0 | 10 | 46 | 68 | 36 | 32 | 7 | 1 |
module Monadic where
import Language.Haskell.Liquid.Prelude ((==>))
class MyMonad m where
unit :: Arrow a (m a)
bind :: Arrow (m a) (Arrow (Arrow a (m b)) (m b))
instance MyMonad L where
unit = lunit
bind = lbind
lunit = A $ \x -> C x N -- axiom: runFun unit x == C x N
lbind = A $ \xs -> A $ \f ->
... | abakst/liquidhaskell | tests/equationalproofs/todo/MonadicLaws.hs | bsd-3-clause | 4,140 | 0 | 15 | 1,292 | 922 | 495 | 427 | 48 | 2 |
module Network.Protocol.Uri.Printer where
import Network.Protocol.Uri.Data
instance Show Path where
showsPrec _ (Path ("":xs)) = sc '/' . shows (Path xs)
showsPrec _ (Path xs) = intersperseS (sc '/') (map ss xs)
instance Show IPv4 where
showsPrec _ (IPv4 a b c d) = intersperseS (sc '.') (map shows [a, b, ... | sebastiaanvisser/salvia-protocol | src/Network/Protocol/Uri/Printer.hs | bsd-3-clause | 1,304 | 0 | 14 | 377 | 638 | 323 | 315 | 34 | 1 |
{-# LANGUAGE TypeOperators, FlexibleContexts #-}
-- | An instance of the 'MonadIO' class for a zipper:
--
-- @
-- instance ('MonadIO' (t2 m), 'MonadT' t1, 'MonadT' t2, 'Monad' m) => 'MonadIO' ((t1 ':>' t2) m)
-- @
--
-- Re-exports "Control.Monad.IO.Class" for convenience.
module Control.Monatron.Zipper.IO (m... | TobBrandt/Monatron-IO | Control/Monatron/Zipper/IO.hs | bsd-3-clause | 610 | 0 | 9 | 98 | 134 | 84 | 50 | 7 | 0 |
--------------------------------------------------------------------------------
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE Rank2Types #-}
module DB
( DB (..)
, initDB
, extendID
, sql
)
where
import Control.Monad (void)
import Data.String (fromString)
import Data.Text (Text)
import Database.Post... | mietek/untitled-wai | src/DB.hs | bsd-3-clause | 2,965 | 0 | 14 | 767 | 1,050 | 554 | 496 | 68 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Config where
import qualified Data.ByteString as BS
import Control.Applicative
import Data.Map
import Data.Yaml
import Types
--------------------------------------------------------------------------------
instance FromJSON Colour where
parseJSON (Object v) = Colour <... | Ornedan/dom3conquestmaptool | Config.hs | bsd-3-clause | 935 | 0 | 12 | 331 | 213 | 109 | 104 | 24 | 2 |
{-# 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 ... | sarahn/ganeti | test/hs/Test/Ganeti/HTools/Instance.hs | gpl-2.0 | 7,162 | 0 | 13 | 1,461 | 1,779 | 935 | 844 | 136 | 2 |
module LayoutOk13 where
x = id (case x of { 3 -> 4 }) | roberth/uu-helium | test/parser/LayoutOk13.hs | gpl-3.0 | 61 | 0 | 9 | 21 | 27 | 16 | 11 | 2 | 1 |
module Isotope.IonSpec (spec) where
import Isotope
import Isotope.Ion
import Test.Hspec
spec :: Spec
spec = do
describe "mz" $ do
it "The mass-to-charge ratio of protonated water should be 19.01838971626" $
mz (Protonated water) `shouldBe` Mz {getMz = 19.01838971626}
it "The mass-to-charge ratio of de... | Michaelt293/Element-isotopes | test/Isotope/IonSpec.hs | gpl-3.0 | 769 | 0 | 14 | 150 | 201 | 106 | 95 | 18 | 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 #-}
-- ... | olorin/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/StartStack.hs | mpl-2.0 | 3,304 | 0 | 12 | 720 | 403 | 245 | 158 | 57 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-directconnect/gen/Network/AWS/DirectConnect/AllocateConnectionOnInterconnect.hs | mpl-2.0 | 9,166 | 0 | 25 | 1,936 | 1,329 | 793 | 536 | 138 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Network.HTTP.Download
( verifiedDownload
, DownloadRequest(..)
, drRetryPolicyDefault
, HashCheck(..)
, DownloadException(..)
, CheckHexDi... | AndrewRademacher/stack | src/Network/HTTP/Download.hs | bsd-3-clause | 7,084 | 0 | 23 | 2,500 | 1,411 | 771 | 640 | 132 | 2 |
module Main where
import MidiSynth
import qualified Codec.SoundFont as SF
import Player.Gtk
import SynthParams
import Numeric
import System.Environment
import System.Console.GetOpt
data Flag =
SampleRate String
| SoundFontFile FilePath
| MidiFile FilePath
| Output FilePath
deriving Show
options :: [OptD... | todesking/YampaSynth | src/Main/Gtk.hs | bsd-3-clause | 1,333 | 0 | 18 | 288 | 383 | 195 | 188 | 41 | 4 |
{-
worms - a very simple FunGEn example.
http://www.cin.ufpe.br/~haskell/fungen
Copyright (C) 2001 Andre Furtado <awbf@cin.ufpe.br>
This code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.... | haskell-game/fungen | examples/worms/worms.hs | bsd-3-clause | 19,289 | 0 | 26 | 6,039 | 8,914 | 5,335 | 3,579 | 361 | 11 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE CPP #-}
-- | This is a legacy module from the pre-GHC HaRe, and will disappear
-- eventually.
module Language.Haskell.Refact.Utils.TypeSyn where
-- Modules from GHC
import qualified GHC as GHC
import qualified Name as... | RefactoringTools/HaRe | src/Language/Haskell/Refact/Utils/TypeSyn.hs | bsd-3-clause | 3,353 | 0 | 10 | 940 | 817 | 419 | 398 | 49 | 0 |
<?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>Image Locaiton and Privacy Scanner | ZAP Extension</title>
<maps>
<homeID>top... | kingthorin/zap-extensions | addOns/imagelocationscanner/src/main/javahelp/org/zaproxy/zap/extension/imagelocationscanner/resources/help_sq_AL/helpset_sq_AL.hs | apache-2.0 | 995 | 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="it-IT">
<title>GraphQL Support Add-on</title>
<maps>
<homeID>graphql</homeID>
<mapref l... | thc202/zap-extensions | addOns/graphql/src/main/javahelp/org/zaproxy/addon/graphql/resources/help_it_IT/helpset_it_IT.hs | apache-2.0 | 971 | 82 | 53 | 157 | 396 | 209 | 187 | -1 | -1 |
module RefacIntroThreshold (refacIntroThreshold) where
import PrettyPrint
import PosSyntax
import Data.Maybe
import TypedIds
import UniqueNames hiding (srcLoc)
import PNT
import TiPNT
import Data.List
import RefacUtils
import PFE0 (findFile)
import MUtils(( # ))
import AbstractIO
import Debug.Trace
import RefacMvDefBtw... | RefactoringTools/HaRe | old/refactorer/RefacIntroThreshold.hs | bsd-3-clause | 6,806 | 0 | 18 | 1,760 | 1,999 | 1,028 | 971 | -1 | -1 |
{-# LANGUAGE CPP #-}
------------------------------------------------------------------------------
-- |
-- Module: ColorCache
-- Copyright: (c) 2012 Jose Antonio Ortega Ruiz
-- License: BSD3-style (see LICENSE)
--
-- Maintainer: jao@gnu.org
-- Stability: unstable
-- Portability: unportable
-- Created: Mon Sep 10, 2012... | dsalisbury/xmobar | src/ColorCache.hs | bsd-3-clause | 3,516 | 0 | 15 | 767 | 1,033 | 526 | 507 | 34 | 2 |
module A5 where
import D5
main
= (sumFun [1 .. 4]) + (sum (map (f f_gen) [1 .. 7]))
| kmate/HaRe | old/testing/generaliseDef/A5_AstOut.hs | bsd-3-clause | 89 | 0 | 11 | 24 | 54 | 31 | 23 | 4 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.