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 Ch30.TryExcept where
import Control.Exception
onlyReportError :: Show e => IO (Either e a) -> IO ()
onlyReportError action = do
res <- action
case res of
Left e -> print e
Right _ -> return ()
willFail :: Integer -> IO ()
willFail denom =
onlyReportError $ willIFail denom
willIFail :: Intege... | andrewMacmurray/haskell-book-solutions | src/ch30/TryExcept.hs | mit | 401 | 0 | 11 | 91 | 163 | 78 | 85 | 14 | 2 |
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module JsonLogViewer.Filtration where
import Control.Monad (mzero)
import Data.Aeson ((.:), (.=))
import qualified Data.Aeson as Aeson
import Data.Aes... | radix/json-log-viewer | src/JsonLogViewer/Filtration.hs | mit | 3,333 | 0 | 14 | 741 | 955 | 509 | 446 | 70 | 1 |
-- Algorithms/Dynamic Programming/The Maximum Subarray
module Main where
import qualified HackerRank.Algorithms.MaximumSubarray as M
main :: IO ()
main = M.main
| 4e6/sandbox | haskell/hackerrank/MaximumSubarray.hs | mit | 164 | 0 | 6 | 23 | 31 | 20 | 11 | 4 | 1 |
module Graphics.D3D11Binding.Shader.D3D11PixelShader where
import Graphics.D3D11Binding.Interface.Unknown
data ID3D11PixelShader = ID3D11PixelShader
instance UnknownInterface ID3D11PixelShader | jwvg0425/d3d11binding | src/Graphics/D3D11Binding/Shader/D3D11PixelShader.hs | mit | 195 | 0 | 5 | 14 | 29 | 18 | 11 | 4 | 0 |
-- Copyright (c) 2016-present, SoundCloud Ltd.
-- All rights reserved.
--
-- This source code is distributed under the terms of a MIT license,
-- found in the LICENSE file.
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
module Kubern... | soundcloud/haskell-kubernetes | lib/Kubernetes/Model/V1/Probe.hs | mit | 2,428 | 0 | 14 | 823 | 431 | 254 | 177 | 59 | 1 |
{-# LANGUAGE ForeignFunctionInterface #-}
module Paths_ls (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import Foreign
import Foreign.C
import qualified Control.Exception as Exception
import Data.Version (Version(..))
import System.Environment (getEnv)... | nadyac/haskell-gol | dist/build/autogen/Paths_ls.hs | mit | 3,072 | 0 | 21 | 736 | 889 | 467 | 422 | 72 | 5 |
import Data.List
import Network
import System.IO
import System.Time
import System.Exit
import Control.Arrow
import Control.Monad.Reader
import Control.Exception
import Text.Printf
server = "irc.freenode.org"
port = 6667
chan = "#qutcode"
nick = "qutcodebot"
-- 'Net' monad, a wrapper over IO, carrying the bot's immuta... | qutcode/qutcodebot | bot.hs | gpl-2.0 | 3,003 | 0 | 13 | 818 | 1,006 | 524 | 482 | 73 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{- |
Module : ./Common/Id.hs
Description : positions, simple and mixfix identifiers
Copyright : (c) Klaus Luettich and Christian Maeder and Uni Bremen 2002-2003
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provision... | gnn/Hets | Common/Id.hs | gpl-2.0 | 15,217 | 0 | 22 | 3,808 | 4,502 | 2,376 | 2,126 | 310 | 5 |
{-# LANGUAGE ScopedTypeVariables #-}
-- Copyright (c) 2012, Diego Souza
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyri... | dgvncsz0f/sssfs | src/SSSFS/Filesystem/ReplicationStorage.hs | gpl-3.0 | 4,414 | 0 | 15 | 1,331 | 1,016 | 528 | 488 | 49 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Blog.Instances() where
import Database.BlobStorage (BlobId)
import qualified Data.Binary as B
import Data.Hashable
import qualified Data.HashMap.Strict as H
import qualified Data.HashSet as HS
import Data.SafeCopy
import qualified Data.Serialize as C
import qualified Data.... | aslatter/blog | Blog/Instances.hs | gpl-3.0 | 1,242 | 0 | 10 | 227 | 399 | 224 | 175 | 31 | 1 |
module RayMarch.Types where
import Control.Monad.Trans.State
import Control.Applicative hiding ((<*>))
import System.Random
type Float3 = (Float, Float, Float)
newtype Vector = Vector Float3
type Point = Vector
newtype Color = Color Float3
type Quaternion = (Vector, Float)
class Arith a where
(<+>) :: a -> a -> a
... | phi16/RayMarch | RayMarch/Types.hs | gpl-3.0 | 3,627 | 0 | 12 | 836 | 2,196 | 1,218 | 978 | 115 | 1 |
{-# LANGUAGE RankNTypes, MultiParamTypeClasses, TypeFamilies, FlexibleContexts, CPP #-}
-- |
--
-- Module : Parsek
-- Copyright : Koen Claessen 2003
-- License : GPL
--
-- Maintainer : JP Bernardy
-- Stability : provisional
-- Portability : portable
--
-- This module provides the /Parsek/ library de... | jyp/Parsek | Text/ParserCombinators/Parsek.hs | gpl-3.0 | 10,201 | 0 | 16 | 3,183 | 4,055 | 2,084 | 1,971 | 204 | 12 |
{-# LANGUAGE OverloadedStrings #-}
-- | Pretty-printing the functional language, parameterised on how to
-- pretty-print variables.
module HipSpec.Lang.PrettyFO where
import Text.PrettyPrint
import HipSpec.Lang.FunctionalFO
import HipSpec.Lang.Type hiding ((:::))
import HipSpec.Lang.PrettyUtils
type Id a = a -> D... | danr/hipspec | src/HipSpec/Lang/PrettyFO.hs | gpl-3.0 | 2,244 | 0 | 18 | 646 | 1,097 | 551 | 546 | 50 | 5 |
module L.Pure where
import qualified L.Type as S
import qualified S.Type as S
import L.Eval.Generic ( pure )
import L.Eval.Monadic ( eval )
import L.Reduce (imo)
import Control.Monad ( forM_, when )
import qualified Data.Map.Strict as M
import System.IO
find_pure = do
forM_ ( concat S.normalforms ) $ \ t -> do
... | jwaldmann/s | L/Pure.hs | gpl-3.0 | 584 | 0 | 19 | 211 | 175 | 98 | 77 | 17 | 2 |
{-# LANGUAGE TemplateHaskell, TypeFamilies, MultiParamTypeClasses, UndecidableInstances, DataKinds, GADTs, ConstraintKinds, FlexibleInstances #-}
module Lamdu.Sugar.Types.Expression
( Expr, Body
, Term(..)
, _BodyLam, _BodyLabeledApply, _BodySimpleApply
, _BodyRecord, _BodyFragment, _BodyLeaf, _... | lamdu/lamdu | src/Lamdu/Sugar/Types/Expression.hs | gpl-3.0 | 11,527 | 0 | 14 | 2,819 | 3,649 | 2,117 | 1,532 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
-- | Some misc utility functions
module PasteWatch.Utils
(
sendEmail,
stripQuotes
) where
import qualified Data.Text.Lazy as T
import Network.Socket
import Network.Mail.SMTP
import Data.Monoid ( (<>) )
import PasteWatch.Types (MatchText (..)... | ArthurClune/pastewatch | src/PasteWatch/Utils.hs | gpl-3.0 | 1,167 | 0 | 11 | 330 | 288 | 156 | 132 | 24 | 1 |
{-# LANGUAGE CPP #-}
module Import.NoFoundation
( module Import
) where
#if MIN_VERSION_classy_prelude(1,0,0)
import ClassyPrelude.Yesod as Import hiding (Handler)
#else
import ClassyPrelude.Yesod as Import
#endif
import Control.Error.Safe as Import (justZ)
import Database.Persist.Sql as Import
import... | alexeyzab/cards-with-comrades | backend/src/Import/NoFoundation.hs | gpl-3.0 | 582 | 0 | 5 | 126 | 89 | 65 | 24 | 11 | 0 |
-- Parse module.
-- By Gregory W. Schwartz
--
{- | Collection of functions for the parsing of a fasta file. Uses the lazy
- ByteString type.
-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE BangPatterns #-}
module Data.Fasta.ByteString.Lazy.Parse ( parsecFasta
, parsecCLIPFas... | GregorySchwartz/fasta | src/Data/Fasta/ByteString/Lazy/Parse.hs | gpl-3.0 | 6,784 | 0 | 15 | 2,108 | 1,953 | 1,051 | 902 | 150 | 2 |
module AST where
import Data.Text
type Identifier = Text
data CompareOp = Eq | Neq | Gt | Lt | Gte | Lte
deriving (Show,Eq)
data Expr a = LValueId Identifier a
| LValueField (Expr a) Identifier a
| LValueSubscript (Expr a) (Expr a) a
| Nil a
| Seq [Expr a] a ... | joelwilliamson/modern-compilers-exercises | AST.hs | gpl-3.0 | 2,202 | 0 | 9 | 726 | 712 | 398 | 314 | 44 | 0 |
module Example.Eg12 (eg12) where
import Graphics.Radian
import ExampleUtils
eg12 :: IO Html
eg12 = do
let x = [0, 4 * pi / 100 .. 4 * pi]
plot = Plot [l1, l2] # [height.=300, aspect.=3, strokeWidth.=2,
axisXLabel.="Time", axisYLabel.="sin(x) / cos(x)"]
l1 = Lines x (map sin... | openbrainsrc/hRadian | examples/Example/Eg12.hs | mpl-2.0 | 518 | 4 | 13 | 145 | 195 | 105 | 90 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/RegionTargetHTTPSProxies/Insert.hs | mpl-2.0 | 5,277 | 0 | 17 | 1,152 | 559 | 335 | 224 | 89 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-gmail/gen/Network/Google/Resource/Gmail/Users/Settings/Filters/Delete.hs | mpl-2.0 | 5,176 | 0 | 20 | 1,245 | 785 | 457 | 328 | 115 | 1 |
-- |
-- Module : Xine.Internal.Handle
-- Copyright : (c) Joachim Fasting 2010
-- License : LGPL (see COPYING)
--
-- Maintainer : Joachim Fasting <joachim.fasting@gmail.com>
-- Stability : unstable
-- Portability : not portable
--
-- A 'Handle'-like interface for a Xine engine instance.
module Xine.Intern... | joachifm/hxine | Xine/Internal/Handle.hs | lgpl-2.1 | 1,951 | 0 | 11 | 404 | 494 | 269 | 225 | 46 | 2 |
module Paths_happstack_test (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
import Data.Version (Version(..))
import System.Environment (getEnv)
import Prelude
catchIO :: IO a -> (Exception.IOException -> ... | wginolas/playground | haskell/happstack-test/dist/build/autogen/Paths_happstack_test.hs | lgpl-3.0 | 1,406 | 0 | 10 | 182 | 371 | 213 | 158 | 28 | 1 |
module Sound.Analysis.Vamp.Feature (
Vector
, Feature(..)
, FeatureList
, TimeStamp(..)
, peekFeature
, peekFeatureList
) where
import Control.Monad
import Bindings.Sound.Analysis.Vamp
import Bindings.Sound.Analysis.Vamp.Version2
import qualified Data.Vector.Storable as SV
i... | kaoskorobase/hvamp | Sound/Analysis/Vamp/Feature.hs | lgpl-3.0 | 2,292 | 0 | 19 | 673 | 635 | 333 | 302 | 53 | 4 |
{-#LANGUAGE ForeignFunctionInterface#-}
{-#LANGUAGE RankNTypes#-}
-----------------------------------------------------------------------------
-- |
-- Module : Bindings.Verba.FFI
-- Copyright : (c) Macil 2014
-- License : PublicDomain
--
-- Maintainer : Macil.dev@gmail.com
-- Stability : experiment... | Macil-dev/verhface-ll | src/Bindings/Verba/C/FFI.hs | unlicense | 12,378 | 0 | 13 | 7,070 | 1,235 | 690 | 545 | -1 | -1 |
{-# LANGUAGE DeriveAnyClass #-}
--------------------------------------------------------------------------------
-- |
-- Module : Blockchain.Node.Transaction
-- Copyright : (c) carbolymer
-- License : Apache-2.0
--
-- Stability : experimental
-- Portability : POSIX
--
-- Transactions model
--
--------... | carbolymer/blockchain | blockchain-node/src/Blockchain/Node/Transaction.hs | apache-2.0 | 3,722 | 0 | 10 | 807 | 783 | 448 | 335 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE NamedFieldPuns #-}
module Ldap.Client.Internal
( Host(..)
, PortNumber
, Ldap(..)
, ClientMessage(..)
, Type.ResultCode(..)
, Async(..)
, AttrList
-- * Waiting for Request Completion
, wait
, waitSTM
-- * Misc
, Response
, ResponseError(..)
... | VictorDenisov/ldap-client | src/Ldap/Client/Internal.hs | bsd-2-clause | 4,900 | 0 | 13 | 1,025 | 1,050 | 601 | 449 | 92 | 1 |
{-|
Module: HaskHOL.Lib.Quot
Copyright: (c) Evan Austin 2015
LICENSE: BSD3
Maintainer: e.c.austin@gmail.com
Stability: unstable
Portability: unknown
-}
module HaskHOL.Lib.Quot
( defineQuotientType
, getQuotientType
, liftTheorem
, liftFunction
, getLiftedFunction
) where
im... | ecaustin/haskhol-deductive | src/HaskHOL/Lib/Quot.hs | bsd-2-clause | 11,261 | 4 | 31 | 4,432 | 3,096 | 1,530 | 1,566 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE BinaryLiterals #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
import GHC.Exts
import Data.Array.IO
import System.Directory
import Data.Word
import FileSystems
import System.Posix.Terminal
import Data.Ti... | dpiponi/Bine | app/Main.hs | bsd-3-clause | 5,144 | 0 | 18 | 1,468 | 1,344 | 701 | 643 | 122 | 6 |
{-|
Module : Game.GoreAndAsh.Math
Description : Common mathematic utilities in games
Copyright : (c) Anton Gushcha, 2015-2016
Oganyan Levon, 2016
License : BSD3
Maintainer : ncrashed@gmail.com
Stability : experimental
Portability : POSIX
Defines common math transformations for world, ca... | Teaspot-Studio/gore-and-ash | src/Game/GoreAndAsh/Math.hs | bsd-3-clause | 2,333 | 2 | 13 | 630 | 942 | 478 | 464 | 61 | 1 |
module MAAM.Classes.MonadStep where
import FP
class (Bind m) => MonadStep m where
type SS m :: * -> *
type SSC m :: * -> Constraint
mstep :: (SSC m a, SSC m b) => (a -> m b) -> SS m a -> SS m b
munit :: (SSC m a) => P m -> a -> SS m a
| davdar/quals | src/MAAM/Classes/MonadStep.hs | bsd-3-clause | 245 | 0 | 11 | 71 | 134 | 72 | 62 | -1 | -1 |
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- |
-- Types... | jiayuanmark/Haxl | Haxl/Core/Stats.hs | bsd-3-clause | 5,701 | 0 | 19 | 1,145 | 1,157 | 667 | 490 | 126 | 3 |
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE DataKinds #-}
import Test.Hspec
import Data
import DanceView
import Control.Monad
import Data.Generics.Record
rawKps1 = [ 0,0,0,442.1,209.347,0.695157,412.838
, 219.106,0.479542 , 262.192,217.143,0.473475,189.773,268.065
, 0... | silky/DanceView | tests/Differences.hs | bsd-3-clause | 2,335 | 9 | 22 | 803 | 764 | 471 | 293 | 48 | 1 |
module Programmers where
data OperatingSystem =
GnuPlusLinux
| OpenBSDPlusNevermindJustBSDStill
| Mac
| Windows
deriving (Eq, Show)
data ProgrammingLanguage =
Haskell
| Agda
| Idris
| PureScript
deriving (Eq, Show)
data Programmer =
Programmer { os :: OperatingSystem
, lang :: ... | dsaenztagarro/haskellbook | src/chapter11/Programmers.hs | bsd-3-clause | 715 | 0 | 8 | 140 | 177 | 106 | 71 | 27 | 1 |
{-# LANGUAGE ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Salsa.CLR
-- Copyright : (c) 2007-2008 Andrew Appleyard
-- Licence : BSD-style (see LICENSE)
--
-- Provides convenient functions for accessing the CLR, including: ... | unfoldr/Salsa | Foreign/Salsa/CLR.hs | bsd-3-clause | 11,491 | 0 | 14 | 1,863 | 1,850 | 976 | 874 | 154 | 2 |
{-# LANGUAGE DataKinds #-}
-- | This module provides parts of the JQuery API (<http://api.jquery.com/>).
module Language.Sunroof.JS.JQuery
(
-- * General JQuery API
dollar
, jQuery, jq
-- * DOM
, append
, html, setHtml
, text, setText
-- * CSS
, css, setCss
, addClass, removeClass
-- * Attrib... | ku-fpg/sunroof-compiler | Language/Sunroof/JS/JQuery.hs | bsd-3-clause | 5,504 | 0 | 12 | 800 | 1,014 | 561 | 453 | 79 | 1 |
-- | Program to replace everything between brackets by spaces
--
-- This program was originally contributed by Petr Prokhorenkov.
--
module Data.Text.Benchmarks.Micro.StripBrackets
( benchmark
) where
import Criterion.Main (Benchmark, bench)
import qualified Data.Text as T
import Data.Text.Benchmarks.Mic... | JensTimmerman/text-benchmarks | src/Data/Text/Benchmarks/Micro/StripBrackets.hs | bsd-3-clause | 747 | 0 | 16 | 204 | 218 | 120 | 98 | 19 | 5 |
{-# LANGUAGE CPP, BangPatterns, Rank2Types #-}
-- |
-- Module : FastPut
-- Copyright : (c) 2010 Simon Meier
-- License : BSD3-style (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
-- Stability : experimental
-- Portability : tested on GHC only
--
-- Implementation of a 'Put' monad with ... | meiersi/blaze-builder | benchmarks/FastPut.hs | bsd-3-clause | 25,067 | 0 | 28 | 7,520 | 4,932 | 2,518 | 2,414 | 351 | 5 |
-- | Utilities related to Monad and Applicative classes
-- Mostly for backwards compatibility.
module MonadUtils
( Applicative(..)
, (<$>)
, MonadFix(..)
, MonadIO(..)
, zipWith3M, zipWith3M_, zipWith4M, zipWithAndUnzipM
, mapAndUnzipM, mapAndUnzip3M, mapAndUnzip4M, ... | sdiehl/ghc | compiler/utils/MonadUtils.hs | bsd-3-clause | 8,383 | 0 | 12 | 1,842 | 2,238 | 1,204 | 1,034 | 98 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Panpipes.HTTP.RequestParser (
method
, Method(..)
, version
, Version(..)
, headers
, request
) where
import Control.Applicative
import Data.Attoparsec
import Data.Attoparsec.Char8 hiding (satisfy, takeTill)
import qualified Data.ByteString as ByteStri... | quantumman/Panpipes | Network/Panpipes/HTTP/RequestParser.hs | bsd-3-clause | 2,126 | 0 | 18 | 488 | 686 | 377 | 309 | 54 | 1 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Heed.Query
( addSubscription
, allFeedInfo
, allFeeds
, allItemsRead
, feedUpdateInterval
,... | Arguggi/heed | heed-backend/src/Heed/Query.hs | bsd-3-clause | 11,986 | 14 | 16 | 2,434 | 3,574 | 1,769 | 1,805 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Graphics.VR.OpenVR
import Graphics.GL.Pal
import Graphics.UI.GLFW.Pal
import Data.Time
import Control.Monad.State
import Control.Lens.Extra
import Halive.Utils
import CubeUniforms
import Cube
import Data.Maybe
data World = Wor... | lukexi/openvr-hs | app/Main.hs | bsd-3-clause | 7,182 | 0 | 24 | 2,170 | 2,282 | 1,139 | 1,143 | 147 | 4 |
{-# LANGUAGE TupleSections, OverloadedStrings, QuasiQuotes, TemplateHaskell, TypeFamilies, RecordWildCards,
DeriveGeneric ,MultiParamTypeClasses ,FlexibleInstances #-}
module Protocol.ROC.PointTypes.PointType93 where
import GHC.Generics
import qualified Data.ByteString as BS
import Data.Word
import Data... | jqpeterson/roc-translator | src/Protocol/ROC/PointTypes/PointType93.hs | bsd-3-clause | 3,462 | 0 | 9 | 1,352 | 353 | 196 | 157 | 71 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE BangPatterns #-}
module Quote
( QOption(..)
, proccess
) where
import Control.Monad.State
import Data.ByteString (ByteString)
import Data.Enumerator as E hiding (map, span)
imp... | cutsea110/tsr-test | Quote.hs | bsd-3-clause | 2,099 | 0 | 20 | 581 | 749 | 388 | 361 | 60 | 2 |
module ProjectEuler (
euler
) where
import qualified Problem1
import qualified Problem2
import qualified Problem3
import qualified Problem4
import qualified Problem5
import qualified Problem6
import qualified Problem7
import qualified Problem8
import qualified Problem9
import qualified Problem10
import qualified... | quchen/HaskellEuler | src/ProjectEuler.hs | bsd-3-clause | 3,123 | 0 | 6 | 445 | 847 | 450 | 397 | 100 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Program.Controllers.GUI
-- Copyright : (c) Artem Chirkin
-- License : MIT
--
-- Maintainer : Artem Chirkin <chirkin@arch.ethz.ch>
-- Stability : experimental
--
-- Foreign imports for all GUI html elements ... | achirkin/ghcjs-modeler | src/Program/Controllers/GUI.hs | bsd-3-clause | 9,736 | 97 | 13 | 1,551 | 1,867 | 1,003 | 864 | 95 | 2 |
module Game.Bullet(
Bullet(..)
, BulletId(..)
, CreateBullet(..)
, bulletCollectionId
, bulletVelId
, bulletPosId
, bulletPlayerId
, bulletLifeTimeId
) where
import Data.Store
import Game.Player
import GHC.Generics
import Linear
import Game.GoreAndAsh.Sync
-- | Bullet information
data Bullet s = ... | Teaspot-Studio/gore-and-ash-demo | src/shared/Game/Bullet.hs | bsd-3-clause | 1,508 | 0 | 11 | 309 | 334 | 201 | 133 | 58 | 1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, GADTs #-}
-- | The @esqueleto@ EDSL (embedded domain specific language).
-- This module replaces @Database.Persist@, so instead of
-- importing that module you should just import this one:
--
-- @
-- -- For a module using just esqueleto.
-- import Database.Esqueleto
-- ... | prowdsponsor/esqueleto | src/Database/Esqueleto.hs | bsd-3-clause | 13,134 | 0 | 11 | 2,634 | 952 | 783 | 169 | 77 | 1 |
module PFDS.Sec5.Ex7 where
import PFDS.Commons.Heap (Heap (..))
import PFDS.Commons.SplayHeap (SplayHeap (..))
sort :: Ord a => [a] -> [a]
sort = inOrder [] . construct
construct :: Ord a => [a] -> SplayHeap a
construct = foldl (flip insert) empty
inOrder :: [a] -> SplayHeap a -> [a]
inOrder xs E = xs
... | matonix/pfds | src/PFDS/Sec5/Ex7.hs | bsd-3-clause | 599 | 0 | 7 | 169 | 188 | 103 | 85 | 11 | 1 |
{-
%
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[TcExpr]{Typecheck an expression}
-}
{-# LANGUAGE CPP, TupleSections, ScopedTypeVariables #-}
module TcExpr ( tcPolyExpr, tcMonoExpr, tcMonoExprNC,
tcInferSigma, tcInferSigmaNC, tcInferRho, tcInf... | tjakway/ghcjvm | compiler/typecheck/TcExpr.hs | bsd-3-clause | 103,608 | 228 | 24 | 33,634 | 19,073 | 9,936 | 9,137 | -1 | -1 |
{-# LANGUAGE TypeFamilies #-}
-- | Explorer's local Txp.
module Pos.Explorer.Txp.Local
( eTxProcessTransaction
, eTxNormalize
) where
import Universum
import qualified Data.HashMap.Strict as HM
import Pos.Chain.Genesis as Genesis (Config (..), configEpochSlots)
import ... | input-output-hk/pos-haskell-prototype | explorer/src/Pos/Explorer/Txp/Local.hs | mit | 4,591 | 0 | 13 | 1,417 | 900 | 504 | 396 | -1 | -1 |
{- |
Module : ./Static/test/TestDGTrans.hs
Copyright : Heng Jiang, Uni Bremen 2004-2006
License : GPLv2 or higher, see LICENSE.txt
Test Logic translation for development graphs.
Follows Sect. IV:4.2 of the CASL Reference Manual.
-}
module Main where
import Logic.Comorphism
import Syntax.AS_Library
i... | spechub/Hets | Static/test/TestDGTrans.hs | gpl-2.0 | 1,481 | 0 | 15 | 377 | 356 | 176 | 180 | 39 | 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="ru-RU">
<title>TLS Debug | ZAP Extension</title>
<maps>
<homeID>top</homeID>
<mapref l... | veggiespam/zap-extensions | addOns/tlsdebug/src/main/javahelp/org/zaproxy/zap/extension/tlsdebug/resources/help_ru_RU/helpset_ru_RU.hs | apache-2.0 | 971 | 80 | 66 | 160 | 415 | 210 | 205 | -1 | -1 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1993-1998
\section[WwLib]{A library for the ``worker\/wrapper'' back-end to the strictness analyser}
-}
{-# LANGUAGE CPP #-}
module WwLib ( mkWwBodies, mkWWstr, mkWorkerArgs
, deepSplitProductType_maybe, findTypeShape
) where
#include "HsVersions.h"
... | vikraman/ghc | compiler/stranal/WwLib.hs | bsd-3-clause | 30,608 | 0 | 18 | 9,273 | 3,740 | 2,033 | 1,707 | 259 | 2 |
{-# LANGUAGE PartialTypeSignatures, NamedWildcards #-}
module EveryNamed where
every :: (_a -> Bool) -> [_a] -> Bool
every _ [] = True
every p (x:xs) = p x && every p xs
| bitemyapp/ghc | testsuite/tests/partial-sigs/should_compile/EveryNamed.hs | bsd-3-clause | 171 | 0 | 7 | 33 | 69 | 37 | 32 | 5 | 1 |
{-# LANGUAGE DeriveDataTypeable
, PatternSignatures #-}
{- This program is free software: it is released under the BSD3 open source
license. You can find details of this license in the file LICENSE at the
root of the source tree.
Copyright 2008 Denis Bueno
-}
-- | A Haskell implementation of... | dbueno/funsat | etc/sat-micro/SatMicro.hs | bsd-3-clause | 8,219 | 0 | 25 | 2,569 | 2,449 | 1,327 | 1,122 | 155 | 6 |
module B1.Program.Chart.SymbolEntry
( SymbolEntryInput(..)
, SymbolEntryOutput(..)
, SymbolEntryState
, drawSymbolEntry
, newSymbolEntryState
) where
import Control.Monad
import Data.Char
import Graphics.Rendering.OpenGL
import Graphics.UI.GLFW
import B1.Data.Symbol
import B1.Graphics.Rendering.FTGL.Utils... | madjestic/b1 | src/B1/Program/Chart/SymbolEntry.hs | bsd-3-clause | 3,548 | 0 | 17 | 583 | 906 | 468 | 438 | 79 | 1 |
-- Copyright (c) 2015 Eric McCorkle. All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
--
-- 1. Redistributions of source code must retain the above copyright
-- notice, this list of conditi... | emc2/chill | src/IR/FlatIR/LLVMGen/MemAccess.hs | bsd-3-clause | 6,011 | 0 | 21 | 1,627 | 832 | 451 | 381 | 69 | 5 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Idris.IBC (loadIBC, loadPkgIndex,
writeIBC, writePkgIndex,
hasValidIBCVersion) where
import Idris.Core.Evaluate
import Idris.Core.TT
import Idris.Core.Binary
import Idris.Core.CaseTree
impor... | aaronc/Idris-dev | src/Idris/IBC.hs | bsd-3-clause | 95,229 | 0 | 19 | 54,321 | 26,500 | 12,261 | 14,239 | 2,225 | 17 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module Ros.Geometry_msgs.TransformStamped where
import qualified Prelude as P
import Prelude ((.), (+), (*))
import qualified Data.Typeable as T
import Control.Applicative
import Ros.In... | acowley/roshask | msgs/Geometry_msgs/Ros/Geometry_msgs/TransformStamped.hs | bsd-3-clause | 1,612 | 1 | 10 | 322 | 389 | 228 | 161 | 36 | 0 |
{-# LANGUAGE Haskell98 #-}
{-# LINE 1 "Network/Wai/Handler/Warp/FdCache.hs" #-}
{-# LANGUAGE BangPatterns, CPP #-}
-- | File descriptor cache to avoid locks in kernel.
module Network.Wai.Handler.Warp.... | phischu/fragnix | tests/packages/scotty/Network.Wai.Handler.Warp.FdCache.hs | bsd-3-clause | 4,462 | 0 | 14 | 969 | 1,152 | 599 | 553 | 89 | 2 |
main :: IO ()
main = return ()
| metasepi/chibios-arafura | demos/ARMCM4-STM32F407-LWIP_hs/hs_src/Main.hs | gpl-3.0 | 32 | 0 | 6 | 9 | 21 | 10 | 11 | 2 | 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="ja-JP">
<title>Groovy Support</title>
<maps>
<homeID>top</homeID>
<mapref location="map... | kingthorin/zap-extensions | addOns/groovy/src/main/javahelp/org/zaproxy/zap/extension/groovy/resources/help_ja_JP/helpset_ja_JP.hs | apache-2.0 | 959 | 77 | 66 | 156 | 407 | 206 | 201 | -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="fr-FR">
<title>Script Console</title>
<maps>
<homeID>top</homeID>
<mapref location="map... | kingthorin/zap-extensions | addOns/scripts/src/main/javahelp/org/zaproxy/zap/extension/scripts/resources/help_fr_FR/helpset_fr_FR.hs | apache-2.0 | 964 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
module C3 (Tree(..), SameOrNot(..)) where
data Tree a = Leaf a | Branch (Tree a) (Tree a)
sumTree :: Num a => (Tree a) -> a
sumTree (Leaf x) = x
sumTree (Branch left right)
= (sumTree left) + (sumTree right)
class SameOrNot a
where
isSame :: a -> a -> Bool
isNotSame :: a -> a -> Bool... | mpickering/HaRe | old/testing/moveDefBtwMods/C3_AstOut.hs | bsd-3-clause | 416 | 0 | 8 | 136 | 188 | 100 | 88 | 12 | 1 |
{-# Language TypeFamilyDependencies #-}
{-# Language RankNTypes #-}
{-# Language KindSignatures #-}
{-# Language DataKinds #-}
{-# Language PolyKinds #-}
{-# Language GADTs #-}
import Data.Kind (Type)
data Code = I
type family
Interp (a :: Code) = (res... | sdiehl/ghc | testsuite/tests/typecheck/should_compile/T13643.hs | bsd-3-clause | 497 | 0 | 7 | 155 | 119 | 70 | 49 | -1 | -1 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE RecordWildCards #-}
module Distribution.Client.Dependency.Modular.Dependency (
-- * Variables
Var(..)
, simplifyVar
, showVar
, varPI
-- * Conflict sets
, ConflictSet
, showCS
-- * Constrained instances
, CI(..)
, showCI
, merge
-- * Flagge... | plow-technologies/cabal | cabal-install/Distribution/Client/Dependency/Modular/Dependency.hs | bsd-3-clause | 16,983 | 0 | 12 | 3,494 | 3,486 | 1,868 | 1,618 | 201 | 6 |
{-# LANGUAGE UnboxedTuples #-}
-- See Note [Float coercions (unlifted)] in Simplify
-- This one gave a CoreLint error when compiled optimised
--
-- See also Trac #1718, of which this is a simplified version
module ShouldCompile where
bar :: Bool -> Int
bar x = case (case x of { True -> (# 2,3 #); False -> error "urk... | olsner/ghc | testsuite/tests/simplCore/should_compile/simpl018.hs | bsd-3-clause | 361 | 0 | 10 | 86 | 75 | 44 | 31 | 5 | 2 |
module F where
import System.Environment
foreign export ccall f :: IO ()
f = do
getProgName >>= print
getArgs >>= print
| urbanslug/ghc | testsuite/tests/rts/T6006.hs | bsd-3-clause | 125 | 0 | 7 | 26 | 43 | 23 | 20 | 6 | 1 |
-- Nada Victor, Fatma Ziwar, Fred Morcos
data LogicExpr = Prop Char | Neg LogicExpr | And LogicExpr LogicExpr | Or LogicExpr LogicExpr | Impl LogicExpr LogicExpr deriving Show
evaluate :: LogicExpr->[(Char,Bool)]->Bool
evaluate (Prop p) []=error "Element Not in List"
evaluate (Prop p) ((x,y):xs) | p==x =y
| ... | fredmorcos/attic | projects/logic-expr-eval/logic-expression-evaluator.hs | isc | 6,457 | 58 | 14 | 977 | 2,805 | 1,465 | 1,340 | 98 | 1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, TypeSynonymInstances #-}
-- | Functions for inspecting and constructing various types.
module Futhark.Representation.AST.Attributes.Types
(
rankShaped
, arrayRank
, arrayShape
, modifyArrayShape
, setArrayShape
, existe... | ihc/futhark | src/Futhark/Representation/AST/Attributes/Types.hs | isc | 19,557 | 0 | 15 | 4,837 | 4,963 | 2,564 | 2,399 | 366 | 4 |
module Main where
import Prelude hiding (lookup)
import Network.Wai.Handler.Warp (run)
import System.Environment (lookupEnv)
import Database.Persist.Postgresql (runSqlPool)
import Data.Yaml.Config (load, subconfig, lookupDefault, lookup)
import Data.Text.Encoding (encodeUtf8)
import Control.Applicative ((<... | realli/chatqy | src/Main.hs | mit | 1,142 | 0 | 11 | 298 | 326 | 175 | 151 | 31 | 1 |
module Rebase.Data.Bifunctor
(
module Data.Bifunctor,
mapLeft,
mapRight,
)
where
import Data.Bifunctor
-- |
-- A more meaningful and conflict-free alias for 'first'.
{-# INLINE mapLeft #-}
mapLeft :: Bifunctor p => (a -> b) -> p a c -> p b c
mapLeft =
first
-- |
-- A more meaningful and conflict-free alias ... | nikita-volkov/rebase | library/Rebase/Data/Bifunctor.hs | mit | 432 | 0 | 8 | 93 | 117 | 66 | 51 | 14 | 1 |
module Plow.Extras.Aeson.Internal
(
) where
| plow-technologies/plow-extras | plow-extras-aeson/src/Plow/Extras/Aeson/Internal.hs | mit | 52 | 0 | 3 | 13 | 11 | 8 | 3 | 2 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveGeneric #-}
module Data.Song where
import Data.Aeson
import Data.String
import GHC.Generics
import Web.Scotty
import qualified Data.Map as M
import qualified Network.MPD as MPD
import qualified Data.Text.Lazy as L
import qualified Data.Text ... | kalhauge/vagnplayer | src/Data/Song.hs | mit | 1,726 | 0 | 9 | 456 | 577 | 306 | 271 | 52 | 2 |
import Drawing
import Geometry.Exercises
import Geometry (find,beyond,dist,sameside,line_circle,circle_circle)
main = drawPicture myPicture
myPicture points =
drawCircle (o,p) &
drawPoints good &
message $ "Computing PI=" ++ show (4 * approx_pi4)
++ " using " ++ show nsamples ++ " samples... | alphalambda/k12math | prog/demo/pimc.hs | mit | 618 | 0 | 13 | 183 | 226 | 124 | 102 | 17 | 1 |
module Tictactoe.HTTPHelper (
getMove,
makeMove,
TictactoePlayer(Attacker,Defender),
TictactoeCType(BencodeList,BencodeDict),
TictactoeReq(TictactoeReq)
) where
import Network.HTTP
import Network.URI
import Network.BufferType
import Tictactoe.Base
import Tictactoe.Bencode.Encoder as BencodeList
imp... | viktorasl/tictactoe-bot | src/Tictactoe/HTTPHelper.hs | mit | 2,654 | 0 | 15 | 552 | 677 | 362 | 315 | 67 | 2 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.CryptoKey (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.CryptoKey
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
import GHCJS.DOM.JSFFI.Generated.Cry... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/CryptoKey.hs | mit | 340 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
module Bad where
{-# LANGUAGE ViewPatterns, TemplateHaskell #-}
{-# LANGUAGE GeneralizedNewtypeDeriving, ViewPatterns,
ScopedTypeVariables #-}
import Control.Applicative ((<$>))
import System.Directory (doesFileExist)
import qualified Data.Map as M
import Data.Map ((!), keys, Map)
data Point = Point
{ pointX,... | vzaccaria/haskell-format-atom | pippo.hs | mit | 397 | 0 | 8 | 75 | 84 | 56 | 28 | -1 | -1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Shake.Configure.Finder
( FindMethod (..)
, Finder
, tryFindMethod
, runFinder
, finderPackage
, defPackage
) where
import Control.Applicative
import Control.Monad
import Control.Monad.Trans.Maybe
import Control.Monad.IO.Class
import Data.Monoid
import Sh... | bennofs/shake-configure | Shake/Configure/Finder.hs | mit | 1,812 | 0 | 9 | 341 | 289 | 170 | 119 | 29 | 1 |
-- General Sequence Classifier
module Main (main) where
-- Classifies a set of sequences using a classifier produced by gsc_mk.
-- module Main where
import System.Environment (getArgs)
import qualified Data.Text.Lazy as LT
import qualified Data.Text.Lazy.IO as LTIO
import qualified Data.Text as ST
import qualified ... | tjunier/mlgsc | src/mlgsc.hs | mit | 11,299 | 0 | 19 | 3,365 | 2,221 | 1,136 | 1,085 | 202 | 4 |
module GHCJS.DOM.StorageUsageCallback (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/StorageUsageCallback.hs | mit | 50 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
{-# LANGUAGE CPP #-}
module Document.Tests.TrainStationRefinement
( test, test_case, path3 )
where
-- Modules
import Document.Tests.Suite
-- Libraries
#if MIN_VERSION_semigroups(0,18,0)
import Data.List.NonEmpty as NE
#else
import Data.List.NonEmpty as NE hiding (unlines)
#endif
import Test.UnitTest
tes... | literate-unitb/literate-unitb | src/Document/Tests/TrainStationRefinement.hs | mit | 35,169 | 0 | 12 | 13,115 | 2,442 | 1,594 | 848 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Vessel where
import Config
import Control.Monad.Logger
import Control.Monad.Reader
import Data.Bool
import Data.Monoid
import Data.Text as T
import Registry
import Container
runApp :: Config -> Ap... | faineance/vessel | src/Vessel.hs | mit | 470 | 0 | 8 | 158 | 112 | 61 | 51 | 20 | 1 |
module Utils (loadImage) where
import Data.Monoid (mempty)
import Diagrams.Backend.Rasterific.CmdLine (B)
import Diagrams.Prelude (Diagram)
import Diagrams.TwoD.Image (loadImageEmb, image)
loadImage :: FilePath -> IO (Diagram B)
loadImage path = do
img <- loadImageEmb path
case img of
Left _ -> putStrLn ("In... | mihaimaruseac/petulant-octo-avenger | src-draw/Utils.hs | mit | 397 | 0 | 13 | 70 | 140 | 74 | 66 | 11 | 2 |
import qualified Data.List as List
import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.IO as IO
data Tile = Safe | Trap
deriving (Eq)
instance Show Tile where
show Safe = "."
show Trap = "^"
rowCount = 40
main = do
input <- Text.strip <$> IO.getContents
let firstRow = par... | SamirTalwar/advent-of-code | 2016/AOC_18_1.hs | mit | 1,082 | 7 | 14 | 239 | 436 | 231 | 205 | 31 | 5 |
-- |
-- Module : BattleHack.Piano
-- Description :
-- Copyright : (c) Jonatan H Sundqvist, 2015
-- License : MIT
-- Maintainer : Jonatan H Sundqvist
-- Stability : experimental
-- Portability : POSIX
-- Created September 12 2015
-- TODO | - Split up into several modules
-- -
-- SPEC | -
-- ... | SwiftsNamesake/BattleHack-2015 | src/BattleHack/Piano.hs | mit | 7,357 | 0 | 13 | 1,253 | 1,734 | 977 | 757 | -1 | -1 |
module Main where
import Data.Char (ord)
import Data.Bits ((.&.))
import Numeric (showHex)
import System.Environment (getArgs, getProgName)
import System.Exit (exitWith, ExitCode(..))
data TrimType = Trim
| TrimSafe
| TrimNone
deriving (Eq)
modifyLength :: String -> String
modify... | reubensammut/SLAE32 | Scripts/reverse.hs | mit | 2,040 | 17 | 11 | 564 | 642 | 365 | 277 | 60 | 2 |
module Tema_23f_Escalada_Monedas_Spec (main, spec) where
import Tema_23.Escalada_Monedas
import Test.Hspec
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "sucesoresMonedas" $
it "e1" $
sucesoresMonedas (199,[]) `shouldBe`
[(198,[1]),(197,[2]),(194,[5]),(189,[10]),
(179,[20... | jaalonso/I1M-Cod-Temas | test/Tema_23f_Escalada_Monedas_Spec.hs | gpl-2.0 | 435 | 0 | 11 | 90 | 215 | 128 | 87 | 15 | 1 |
module Main where
import Genetics
import Graphics.Gloss
import Data.Array
main = simulate window magenta 1 world worldToPicture step
| aflag/haskell-group | genetics/src/Main.hs | gpl-2.0 | 135 | 0 | 5 | 20 | 35 | 20 | 15 | 5 | 1 |
-- -- {{{1
--
-- File : Flx/Math/Comb.hs
-- Maintainer : Felix C. Stegerman <flx@obfusk.net>
-- Date : 2012-06-28
--
-- Copyright : Copyright (C) 2012 Felix C. Stegerman
-- Licence : GPLv2
--
-- Depends : ...
-- Description : .... | obfusk/hs-flx | src/Flx/Math/Comb.hs | gpl-2.0 | 929 | 0 | 10 | 400 | 169 | 103 | 66 | 9 | 1 |
module Main where
import System.Console.GetOpt
import System.Environment
import System.Directory (doesDirectoryExist)
import System.IO
import System.Exit
import Control.Applicative
import Process
import Poll
data Options = Options { optCodeDir :: String
, optDocsDir :: String
... | beni55/lit | src/lit.hs | gpl-2.0 | 3,819 | 0 | 15 | 1,458 | 980 | 538 | 442 | 94 | 8 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}
module HsType where
--import Debug.Trace
import Control.Arrow
import Control.Monad
import Control.Monad.RWS
import Control.DeepSeq
import Data.List
import Dat... | tbarnetlamb/hyphen | hyphen/lowlevel_src/HsType.hs | gpl-2.0 | 20,899 | 0 | 25 | 4,991 | 4,460 | 2,350 | 2,110 | 235 | 8 |
{- |
Module : $Header$
Description : Normalization w.r.t. associativity and commutativity
Copyright : (c) Immanuel Normann, Uni Bremen 2007
License : GPLv2 or higher, see LICENSE.txt
Maintainer : inormann@jacobs-university.de
Stability : provisional
Portability : portable
-}
module Search.Common.A... | nevrenato/Hets_Fork | Search/Common/ACStandardization.hs | gpl-2.0 | 5,001 | 0 | 15 | 1,451 | 2,221 | 1,208 | 1,013 | 93 | 4 |
module Topology.MetricSpace where
import Notes
import Functions.Basics.Macro
import Functions.Distances.Terms
import Sets.Basics.Terms
import Topology.MetricSpace.Terms
metricSpaceS :: Note
metricSpaceS = section "Metric Spaces" $ do
pseudometricSpacesSS
met... | NorfairKing/the-notes | src/Topology/MetricSpace.hs | gpl-2.0 | 1,307 | 0 | 18 | 302 | 356 | 190 | 166 | 34 | 1 |
{-|
Module : Graphics.QML.Transient.Property
License : BSD3
Maintainer : marcin.jan.mrotek@email.com
Stability : experimental
Bindings to the property mechanism of QML, and functions to manipulate them.
'Prop's can be mapped and applied (think 'Functor' and 'Applicative') using 'Lens'es.
If you only need t... | marcinmrotek/hsqml-transient | src/Graphics/QML/Transient/Property.hs | gpl-3.0 | 8,049 | 0 | 22 | 2,194 | 2,754 | 1,393 | 1,361 | 172 | 1 |
module Syntax.Util where
import Common
import Syntax.Types
namespace :: BindName -> Namespace
namespace (BindName _ (x : _)) | isUpper x = NsTys
namespace _ = NsValues
allowInCycles :: Decl t -> Bool
allowInCycles (BindLocal _ _) = True
allowInCycles (BindVal _ _) = True
allowInCycles (Data _ _ _ _ _) = True
allowI... | ktvoelker/FLang | src/Syntax/Util.hs | gpl-3.0 | 1,262 | 0 | 9 | 288 | 634 | 324 | 310 | 39 | 1 |
{-
/****************************************************************************
** NgnTrafficParser 2.0
** Copyright (C) 2011 Granin A.S.
** Contact: Granin A.S. (graninas@gmail.com)
**
** This file is part of NgnTrafficParser 2.0.
**
** GNU General Public License Usage
** This file may be used under the term... | graninas/Haskell-Algorithms | Programs/NgnTraffic/Tools.hs | gpl-3.0 | 1,536 | 0 | 9 | 256 | 264 | 146 | 118 | 13 | 1 |
----------------------------------------------------------------------
-- |
-- Module : Main
-- Maintainer : Markus Forsberg
-- Stability : (stability)
-- Portability : (portability)
--
-- > CVS $Date: 2006/06/05 15:25:00 $
-- > CVS $Author: markus $
-- > CVS $Revision: 1.1 $
--
--------------------------------... | isido/functional-morphology-for-koine-greek | lib/Command.hs | gpl-3.0 | 9,116 | 4 | 18 | 3,063 | 2,670 | 1,424 | 1,246 | 180 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.