code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE Trustworthy #-}
{-# OPTIONS_HADDOCK hide #-}
-- we hide this module from haddock to enforc... | tolysz/prepare-ghcjs | spec-lts8/base/GHC/Stack/Types.hs | bsd-3-clause | 7,471 | 0 | 9 | 1,319 | 561 | 386 | 175 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, PatternGuards #-}
{- | Implements a proof state, some primitive tactics for manipulating
proofs, and some high level commands for introducing new theorems,
evaluation/checking inside the proof system, etc.
-}
module Idris.Core.ProofTerm(ProofTerm, Goal(..), mkPro... | mrmonday/Idris-dev | src/Idris/Core/ProofTerm.hs | bsd-3-clause | 16,383 | 5 | 17 | 5,655 | 6,196 | 3,191 | 3,005 | 272 | 23 |
{-# LANGUAGE TypeFamilies #-}
module T3990 where
data family Complex a
data instance Complex Double = CD {-# UNPACK #-} !Double
{-# UNPACK #-} !Double
data T = T {-# UNPACK #-} !(Complex Double)
-- This shouuld actually get unpacked!
test_case :: T
test_case = T (CD 1 1)
| ezyang/ghc | testsuite/tests/simplCore/should_compile/T3990.hs | bsd-3-clause | 309 | 0 | 9 | 86 | 69 | 39 | 30 | 8 | 1 |
--
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you ma... | jcgruenhage/dendrite | vendor/src/github.com/apache/thrift/test/hs/DebugProtoTest_Main.hs | apache-2.0 | 6,601 | 0 | 11 | 1,421 | 1,126 | 627 | 499 | 116 | 1 |
module Main where
import Control.Monad (when, (>=>))
import System.Environment (getArgs, getProgName)
data HelpKeyword = CheckKeyword
deriving Show
-- Available/possible sub-commands
data Command = Help { keyword :: Maybe HelpKeyword }
| Check { inputData :: S... | fredmorcos/attic | projects/pet/archive/pet_haskell_EitherIO/Main.hs | isc | 2,058 | 0 | 12 | 568 | 635 | 347 | 288 | 37 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Pladen.App.Tar
(
tarResponse
, Archive
) where
import Control.Applicative
import Data.Maybe
import Data.Monoid
import Data.Char (ord, isDigit)
import Data.Text.Encoding (decodeUtf8)
import Blaze.ByteString.Builder (Builder, fromByteString)
import... | geigerzaehler/pladen | Pladen/App/Tar.hs | mit | 4,341 | 0 | 18 | 1,333 | 1,222 | 638 | 584 | 98 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE CPP #-}
module Hpack.Run (
run
, renderPackage
, RenderSettings(..)
, Alignment(..)
, CommaStyle(..)
, defaultRenderSettings
#ifdef TEST
, renderConditional
, renderFlag
, render... | mitchellwrosen/hpack | src/Hpack/Run.hs | mit | 10,743 | 0 | 18 | 1,970 | 2,832 | 1,488 | 1,344 | 223 | 3 |
{-# htermination insert :: Ord a => a -> [a] -> [a] #-}
import List
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/List_insert_1.hs | mit | 68 | 0 | 3 | 15 | 5 | 3 | 2 | 1 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Server.User where
import API.User
import API.Pagination
import User
import Util.JWT
import Util.Neo
import Util.Crypto
import Util.Server
import Server.Config
import Control.Applicative
im... | benweitzman/PhoBuddies-Servant | src/Server/User.hs | mit | 4,736 | 0 | 26 | 1,385 | 1,281 | 625 | 656 | 100 | 3 |
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
module VideoCore.Raw where
#include "HsVideoCoreRaw.h"
import Foreign
import Foreign.C
FFI_FUNC(bcm_host_init, IO ())
FFI_FUNC(bcm_host_deinit, IO())
FFI_FUNC(graphics_get_display_size, CUShort -> Ptr CUInt -> Ptr CUInt -> IO CInt)
| Wollw/VideoCore-Haskell | src/VideoCore/Raw.hs | mit | 282 | 1 | 10 | 33 | 83 | 42 | 41 | -1 | -1 |
module Yage.Rendering.Resources.GL
( module Base
, module Buffer
, module Framebuffer
, module Renderbuffer
, module Shader
, module Texture
) where
import Yage.Rendering.Resources.GL.Base as Base
import Yage.Rendering.Resources.GL.Buffer as Buffer
import Yag... | MaxDaten/yage | src/Yage/Rendering/Resources/GL.hs | mit | 691 | 0 | 4 | 170 | 105 | 82 | 23 | 14 | 0 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Text.Greek.Sublist where
import Text.Greek.Utility
data Error b e
= ErrorOnlyBegin b
| ErrorOnlyEnd e
| ErrorNestedEnd e e
deriving (Show)
data TopLevel b e t
= TopLevelBe... | scott-fleischman/greek-grammar | haskell/greek-grammar/src/Text/Greek/Sublist.hs | mit | 1,396 | 0 | 11 | 298 | 561 | 297 | 264 | 35 | 3 |
module Main where
backwards :: [a] -> [a]
backwards [] = []
backwards (h:t) = backwards t ++ [h]
| mtraina/seven-languages-seven-weeks | week-7-haskell/day3/backwards.hs | mit | 103 | 0 | 7 | 25 | 56 | 31 | 25 | 4 | 1 |
module Lambency.GameLoop (
GameLoopState, mkLoopState,
GameLoopConfig, mkLoopConfig,
runGameLoop
) where
--------------------------------------------------------------------------------
import Control.Monad.Reader
import Control.Monad.State
import Control.Monad.RWS.Strict
import qualified Control.Wire as W
im... | Mokosha/Lambency | lib/Lambency/GameLoop.hs | mit | 7,401 | 0 | 18 | 1,540 | 1,978 | 1,041 | 937 | 143 | 6 |
import Control.Monad
import Data.List.Extra
import Data.Maybe
import qualified Data.Char as C
import qualified Data.Map as Map
import qualified Data.Set as Set
------
iread :: String -> Int
iread = read
answer :: (Show a) => (String -> a) -> IO ()
answer f = interact $ (++"\n") . show . f
ord0 c = C.ord c - C.ord 'a... | msullivan/advent-of-code | 2017/A1.hs | mit | 1,087 | 0 | 13 | 254 | 515 | 275 | 240 | 29 | 3 |
module Draw.Style
( LineStyle (..),
FrameStyle (..),
VertexStyle (..),
GridStyle (..),
gDefault,
gDefaultIrreg,
gDashed,
gDashedThick,
gPlain,
gPlainDashed,
gSlither,
)
where
import Diagrams.Prelude
import Draw.Widths
data LineStyle
= LineNone
| LineThin
| LineDashed
... | robx/puzzle-draw | src/Draw/Style.hs | mit | 1,291 | 0 | 9 | 310 | 297 | 176 | 121 | 57 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Workaround(encodeWithWorkaround) where
import Data.Aeson as A
import Data.Vector as V
import Data.Maybe
import Data.ByteString.Lazy
import Data.HashMap.Strict as HMS
-- Working around Aeson bug #454
-- See https://github.com/bos/aeson/issues/454
-- This should be fixed in... | gip/cinq-cloches-ledger | src/Workaround.hs | mit | 738 | 0 | 10 | 129 | 177 | 98 | 79 | 14 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
-- | Unification Grammars with no CFG backbone
-- Following http://cs.haifa.ac.il/~shuly/teaching/06/nlp/ug3.pdf
module NLP.UG.Grammar where
import Common
import NLP.AVM
------------------------------------------------------------------------------
-- Types
-- | Grammar
data G... | johnjcamilleri/hpsg | NLP/UG/Grammar.hs | mit | 9,434 | 0 | 18 | 3,474 | 2,935 | 1,498 | 1,437 | 151 | 2 |
module Tests.ConnectionTest (main) where
import Web.Slack
import System.Environment (lookupEnv)
import System.Exit
import System.IO.Unsafe
myConfig :: String -> SlackConfig
myConfig apiToken = SlackConfig
{ _slackApiToken = apiToken -- Specify your API token here
}
connectBot :: SlackBot ()
connect... | madjar/slack-api | tests/Tests/ConnectionTest.hs | mit | 559 | 0 | 12 | 111 | 159 | 83 | 76 | 17 | 2 |
import System.Environment
import qualified Data.ByteString.Lazy as B
main = do
(fileName1:fileName2:_) <- getArgs
copyFile fileName1 fileName2
copyFile :: FilePath -> FilePath -> IO ()
copyFile source dest = do
contents <- B.readFile source
B.writeFile dest contents
| softwaremechanic/Miscellaneous | Haskell/bytestring.hs | gpl-2.0 | 287 | 0 | 10 | 56 | 96 | 48 | 48 | 9 | 1 |
module WXMaxima where
import Bugs
import Control.Monad.State
import Data.List
import Utils
import System.Directory
-- Zipper On lists
data LstZipPlus a = LZP { lzp'left :: [a] ,
lzp'elem :: a ,
lzp'right :: [a]
}
deriving (Eq,Ord,Sho... | coccinelle/herodotos | hBugs/src/WXMaxima.hs | gpl-2.0 | 6,116 | 11 | 42 | 2,019 | 1,683 | 892 | 791 | 127 | 3 |
{-|
A module for converting Pepa models to hydra models
-}
module Language.Pepa.Compile.Dizzy
( pepaToDizzy )
where
{- Imported Standard Libraries -}
import qualified Data.Map as Map
{- External Library Modules Imported -}
{- Imported Local Libraries -}
import Language.Pepa.Syntax
( ParsedModel )
import Lang... | allanderek/ipclib | Language/Pepa/Compile/Dizzy.hs | gpl-2.0 | 879 | 0 | 8 | 146 | 146 | 88 | 58 | 18 | 1 |
module Language.BioPepa.Print
( hprintBioPepaModel
, pprintBioPepaModel
)
where
{- Standard Library Modules Imported -}
import qualified Text.PrettyPrint.HughesPJ as Pretty
import Text.PrettyPrint.HughesPJ
( Doc )
{- External Library Modules Imported -}
{- Local Modules Imported -}
import Language.BioPepa.Synt... | allanderek/ipclib | Language/BioPepa/Print.hs | gpl-2.0 | 3,957 | 0 | 10 | 1,502 | 863 | 454 | 409 | 83 | 1 |
{-# LANGUAGE PackageImports #-}
import "wordify-webapp" Application (develMain)
import Prelude (IO)
main :: IO ()
main = develMain
| Happy0/liscrabble | app/devel.hs | gpl-2.0 | 132 | 0 | 6 | 19 | 34 | 20 | 14 | 5 | 1 |
module Resolver
( satisfiable
) where
import Data.List
import Data.Maybe
-- Type declarations
data Formula = Atom String | Or Formula Formula | And Formula Formula | Not Formula deriving (Eq, Show, Read)
data Literal = NegativeLiteral String | PositiveLiteral String deriving (Eq, Ord, Show, Read)
type Clause = [... | Yogu/haskell-resolve | Resolver.hs | gpl-2.0 | 7,627 | 0 | 18 | 1,668 | 2,199 | 1,167 | 1,032 | 110 | 4 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE MultiWayIf #-}
-- | This module defines the game enemies, or balls.
--
-- Objects are represented as Signal Functions as well ('ObjectSF'). In this
-- game we are introducing a novel construct, named 'AliveObject' in this
-- a particular instance of a 'ListSF'. A 'ListSF' is a s... | keera-studios/pang-a-lambda | src/Game/Objects/Balls.hs | gpl-3.0 | 7,428 | 14 | 19 | 1,844 | 1,307 | 716 | 591 | 79 | 2 |
{-# OPTIONS -cpp #-}
{-# LANGUAGE CPP, ForeignFunctionInterface #-}
------------------------------------------------------------------------
-- Program for converting .hsc files to .hs files, by converting the
-- file into a C program which is run to generate the Haskell source.
-- Certain items known only to the C co... | jwiegley/ghc-release | utils/hsc2hs/Main.hs | gpl-3.0 | 9,041 | 1 | 22 | 2,866 | 1,982 | 1,026 | 956 | 140 | 7 |
module FRP.Chimera.Environment.Spatial
(
EnvironmentWrapping (..)
) where
data EnvironmentWrapping = ClipToMax | WrapHorizontal | WrapVertical | WrapBoth deriving (Show, Read) | thalerjonathan/phd | coding/libraries/chimera/src/FRP/Chimera/Environment/Spatial.hs | gpl-3.0 | 185 | 0 | 6 | 29 | 44 | 28 | 16 | 4 | 0 |
-- kata location:
-- https://leetcode.com/problems/two-sum/
--
-- goal: find the 2 indices of integers in a list that sum results in the target
-- ie:
-- list = [2, 7, 9, 11] and target = 9
-- solution is [0,1]
-- because 7 + 2 = 9
--
-- nothing is said about the order of the elements in the list (sorted or not)
-- but... | simonced/haskell-kata | training/1_twosum.hs | gpl-3.0 | 1,461 | 0 | 10 | 342 | 440 | 252 | 188 | 26 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( getApplicationDev
, appMain
, develMain
, makeFoundation
-- * for DevelMain
, getApplicationRepl
, shutdownApp
-- * for GHCI
, handler
, db
) where
import Control.Monad.Logger (liftLoc, runLoggingT)
i... | Drezil/neat | Application.hs | gpl-3.0 | 6,852 | 0 | 16 | 1,734 | 1,057 | 568 | 489 | -1 | -1 |
{-# LANGUAGE TemplateHaskell, FlexibleContexts, PatternGuards #-}
module GGen.Geometry.Intersect ( rayLineSeg2Intersect
, lineLineSeg2Intersect
, lineSegLineSeg2Intersect
, lineLine2Intersect
, f... | bgamari/GGen | GGen/Geometry/Intersect.hs | gpl-3.0 | 18,474 | 0 | 22 | 6,499 | 5,308 | 2,763 | 2,545 | 277 | 5 |
module Mudblood.Contrib.Lisp
( module Mudblood.Contrib.Lisp.Core
, module Mudblood.Contrib.Lisp.MB
, module Mudblood.Contrib.Lisp.Builtins
) where
import Mudblood.Contrib.Lisp.Core
import Mudblood.Contrib.Lisp.MB
import Mudblood.Contrib.Lisp.Builtins
| talanis85/mudblood | src/Mudblood/Contrib/Lisp.hs | gpl-3.0 | 268 | 0 | 5 | 36 | 54 | 39 | 15 | 7 | 0 |
module Geimskell.Render
( HasImage (..)
, renderRectangle
, red
, blue
)
where
import Data.Array
import Enemy
import Geimskell.WorldState
import Geometry
import qualified Linear.V2 as L
import Reactive
import SDL.Compositor
import SDL.Com... | seppeljordan/geimskell | Geimskell/Render.hs | gpl-3.0 | 4,219 | 0 | 16 | 938 | 1,074 | 566 | 508 | 95 | 1 |
----------------------------------------------------------------------------
-- |
-- Module : $Header$
-- Copyright : (c) Proyecto Theona, 2012-2013
-- (c) Alejandro Gadea, Emmanuel Gunther, Miguel Pagano
-- License : <license>
--
-- Maintainer : [email protected]
-- Stabili... | alexgadea/fun | Fun/Module.hs | gpl-3.0 | 2,698 | 0 | 22 | 937 | 572 | 317 | 255 | 51 | 1 |
import System.Environment
import System.IO
import System.IO.Error
import Control.Exception
main = toTry `catch` handler
toTry :: IO ()
toTry = do
(fileName:_) <- getArgs
contents <- readFile fileName
putStrLn $ "The file has " ++ show (length (lines contents))++" lines!"
handler :: IOError -> IO ()
handl... | lamontu/learning_haskell | exceptions.hs | gpl-3.0 | 646 | 0 | 13 | 154 | 179 | 88 | 91 | 17 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-firebase-rules/gen/Network/Google/Resource/FirebaseRules/Projects/Rulesets/List.hs | mpl-2.0 | 6,706 | 0 | 19 | 1,542 | 976 | 568 | 408 | 135 | 1 |
module Proc.Compiled (compileProc, runCompiled) where
-- import Control.Monad.Except
import Proc.Params
import Proc.CodeBlock
data CompiledProc = CProc CodeBlock ParamList
compileProc params body = do
cb <- toCodeBlock body
return (CProc cb params)
runCompiled (CProc cb _) = runCodeBlock cb
| tolysz/hiccup | Proc/Compiled.hs | lgpl-2.1 | 300 | 0 | 9 | 46 | 89 | 46 | 43 | 8 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Main (main) where
import Control.Monad
import Data.List
import Data.Maybe
import Test.HUnit hiding (Test)
import Test.Framework (Test, defaultMain, testGroup)
import Test.Framework.TH
import Test.Framework.Providers.HUnit
import BV
case_test1 = do
eval prog 0 @?= 0x0000000000... | msakai/icfpc2013 | test/TestBV.hs | bsd-2-clause | 7,814 | 0 | 28 | 1,466 | 2,343 | 1,273 | 1,070 | 138 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}
-- | Linux input
module Haskus.System.Linux.Input
( getSupportedEvents
)
where
import Haskus.System.Linux.Internals.Input
import Haskus.System.Linux.Handle
import Haskus.System.Linux.ErrorCode
import Haskus.Format.Binary.... | hsyl20/ViperVM | haskus-system/src/lib/Haskus/System/Linux/Input.hs | bsd-3-clause | 1,181 | 0 | 14 | 243 | 254 | 141 | 113 | 20 | 2 |
module Main where
import System.Directory
import System.FilePath
import Lang.Php.Ast
assertUnchanged :: String -> IO ()
assertUnchanged s = do
let
astMb :: Either ParseError Ast
astMb = runParser parse () "." s
case astMb of
Left e -> error $ "assertUnchanged:\n" ++ show s ++ "\n ->\n" ++ show e
... | facebookarchive/lex-pass | src/Lang/Php/Ast/Test.hs | bsd-3-clause | 809 | 0 | 21 | 195 | 287 | 141 | 146 | 25 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-| This modules handles the parsing of .json files written out by our
modified GHC. Here is an example:
{
"definingPackage":"main",
"exportedNames":[
{
"package":"ghc-prim",
"module":"GHC.Classes",
"name":"Eq"
... | markflorisson/hpack | src/HPack/Iface/ExternalSymbols.hs | bsd-3-clause | 3,048 | 0 | 14 | 933 | 498 | 269 | 229 | 55 | 4 |
{-# LANGUAGE CPP, DeriveFunctor #-}
--
-- (c) The GRASP/AQUA Project, Glasgow University, 1993-1998
--
--------------------------------------------------------------
-- Converting Core to STG Syntax
--------------------------------------------------------------
-- And, as we have the info in hand, we may convert som... | sdiehl/ghc | compiler/GHC/CoreToStg.hs | bsd-3-clause | 32,578 | 0 | 21 | 9,483 | 5,369 | 2,852 | 2,517 | -1 | -1 |
module Servant.API.HttpVersion
( -- $httpversion
HttpVersion(..)
) where
import Network.HTTP.Types (HttpVersion (..))
-- $httpversion
--
-- | You can directly use the 'HttpVersion' type from @Network.HTTP.Types@
-- if your request handlers need it to compute a response. This would
-- make the re... | zerobuzz/servant | servant/src/Servant/API/HttpVersion.hs | bsd-3-clause | 482 | 0 | 6 | 95 | 43 | 33 | 10 | 4 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Language.Haskell.Nemnem.ProcessingPlan
( dagOrdered
) where
import Control.Applicative
import Control.Monad
import qualified Data.ByteString as BS
import Data.Graph.Inductive
import qualified Data.IntMap as IM
import Data.List (nub)
import qualified Data.Map as M
import Da... | robinp/nemnem | nemnem-lib/src/Language/Haskell/Nemnem/ProcessingPlan.hs | bsd-3-clause | 2,607 | 0 | 19 | 578 | 819 | 444 | 375 | -1 | -1 |
{-# LANGUAGE RebindableSyntax #-}
-- Copyright : (C) 2009 Corey O'Connor
-- License : BSD-style (see the file LICENSE)
import Bind.Marshal.Prelude
import Bind.Marshal.Verify
import Bind.Marshal.StaticProperties.SerAction
main = run_test $ do
returnM ()
| coreyoconnor/bind-marshal | test/verify_static_properties_seraction.hs | bsd-3-clause | 269 | 0 | 9 | 48 | 40 | 24 | 16 | 6 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE DeriveGeneric #-}
module Nero.Url
(
-- * URL
Url(..)
, defaultUrl
, Scheme(..)
, Host
, Path
, Query
, HasUrl(..)
, Location(..)
, HasHost(..)
, HasPath(..)
, HasQuery(..)
) where
import Prelude hiding (null)
impo... | plutonbrb/nero | src/Nero/Url.hs | bsd-3-clause | 2,041 | 0 | 11 | 512 | 618 | 338 | 280 | 59 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.PackageDb
-- Copyright : (c) The University of Glasgow 2009, Duncan Coutts 2014
--
-- Maintainer : [email protected]
-- Portabili... | GaloisInc/halvm-ghc | libraries/ghc-boot/GHC/PackageDb.hs | bsd-3-clause | 13,994 | 0 | 14 | 3,877 | 2,514 | 1,344 | 1,170 | 272 | 4 |
{-# LANGUAGE NoImplicitPrelude #-}
--
--
--
module Main where
import Control.Monad
import NumericPrelude
import Ray.Algebra
import Ray.Geometry
import Ray.Physics
import Ray.Light
import Ray.Optics
nphoton = 100000 :: Int
lgt = PointLight (Color 0.33 0.33 0.34) 1.0 (Vector3 0 0 0)
pt = Vector3 0 2 2
main :: IO ()
... | eijian/raytracer | test/TestPhoton.hs | bsd-3-clause | 487 | 0 | 16 | 99 | 195 | 106 | 89 | 19 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Post where
import qualified Data.ByteString.Lazy.Char8 as L
import Data.IterIO.Http.Support.Action
import Data.Maybe
import Database.HSQL
import Database.HSQL.SQLite3
import System.IO
db :: IO Connection
db = connect "blog.sqlite3" ReadWriteMode
data Post = Post { postId :: ... | scslab/iterio-server | Examples/Blog/Post.hs | bsd-3-clause | 1,606 | 0 | 13 | 455 | 509 | 253 | 256 | 48 | 2 |
-- Turnir -- a tool for tournament management.
--
-- Author : Ivan N. Veselov
-- Created: 13-Sep-2010
--
-- Copyright (C) 2010 Ivan N. Veselov
--
-- License: BSD3
--
-- | Contains parsers for reading players data from file, etc.
--
module Parser (
parsePlayers -- ^ parse players list from given file
) where
import... | sphynx/turnir | src/Parser.hs | bsd-3-clause | 885 | 0 | 13 | 195 | 227 | 115 | 112 | 22 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Onedrive.Items where
import Control.Monad.Catch (MonadThrow)
import Control.Monad.IO.Class (MonadIO)
import Data.ByteString.Lazy (ByteString)
import Data.Maybe (maybeToList)
import Data.Text (Text)
import Data.Text.Encoding (encodeUtf8)
import Onedrive.Internal.Request (initR... | asvyazin/hs-onedrive | src/Onedrive/Items.hs | bsd-3-clause | 1,284 | 0 | 13 | 191 | 413 | 225 | 188 | 30 | 1 |
{-# LANGUAGE CPP
, DataKinds
, OverloadedStrings
, FlexibleContexts
#-}
module Language.Hakaru.Command where
import Language.Hakaru.Syntax.ABT
import qualified Language.Hakaru.Syntax.AST as T
import Language.Hakaru.Parser.Import (expandImports)
import ... | zachsully/hakaru | haskell/Language/Hakaru/Command.hs | bsd-3-clause | 4,297 | 0 | 20 | 1,084 | 1,302 | 673 | 629 | 101 | 3 |
module Main where
import System.Exit
import System.IO
import System.Environment
import Text.PrettyPrint
import qualified Parsing as P
data Action
= Parse FilePath
| Lex FilePath
parseArgs :: IO Action
parseArgs = getArgs >>= parse
where
parse [ "lex",... | bobatkey/Forvie | benchmarks/parse-foveran/Main.hs | bsd-3-clause | 1,304 | 0 | 26 | 514 | 331 | 156 | 175 | 39 | 4 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Data.Array.Accelerate.Apart.Exp (
expToC, openExpToC, fun1ToC, fun2ToC
) where
-- standard libraries
import Data.Char
-- libraries
import ... | vollmerm/accelerate-apart | Data/Array/Accelerate/Apart/Exp.hs | bsd-3-clause | 25,815 | 0 | 19 | 6,979 | 7,917 | 4,198 | 3,719 | 341 | 24 |
module Lab where
-- Exercise 0 --
e0 :: [Bool]
e0 = [False, True, False, True]
-- Exercise 1 --
e1as :: [[Integer]]
e1as = [[1, 2], [3, 4]]
e1bs :: [[Int]]
e1bs = [[1, 2], [3, 4]]
e1cs :: Num a => [[a]]
e1cs = [[1, 2], [3, 4]]
-- Exercise 2 --
e2as :: [[[Integer]]]
e2as = [[[1, 2, 3]], [[3, 4, 5]]]
-- Didn't t... | paulkeene/FP101x | chapter03/Lab.hs | bsd-3-clause | 1,197 | 0 | 7 | 330 | 650 | 397 | 253 | 37 | 1 |
-- | This module imports the entire package, except 'Graphics.QML.Debug'.
module Graphics.QML (
-- * Overview
{-|
HsQML layers a low to medium level Haskell API on top of the C++ Qt Quick
framework. It allows you to write graphical applications where the front-end is
written in Qt Quick's QML language (incorporating J... | drhodes/HsQML | src/Graphics/QML.hs | bsd-3-clause | 1,336 | 0 | 5 | 211 | 53 | 38 | 15 | 7 | 0 |
module Options
(
getOptions,
printUsage,
Options(..)
)
where
import System.Console.GetOpt
import Text.Printf
data Options = Options
{
srcDir :: !FilePath,
targetDir :: !FilePath,
onlyView :: !Bool,
targetFileFormat :: !String,
help :: !Bool,
viewVersion :: !Bool
}
... | thomkoehler/PictureSave | src/Options.hs | bsd-3-clause | 1,731 | 0 | 12 | 401 | 561 | 316 | 245 | 53 | 2 |
module BachPrelude where
import Haskore.Melody
import Haskore.Music as M
import Haskore.Basic.Duration
import Snippet
import Prelude as P
eight_bar n = n en ()
eight_bars = line . map eight_bar
first_period = eight_bars [c 1, e 1, g 1, c 2, e 2, g 1, c 2, e 2]
prelude_start = line . map (M.replica... | nfjinjing/haskore-guide | src/bach_prelude.hs | bsd-3-clause | 2,427 | 0 | 10 | 1,068 | 1,575 | 800 | 775 | 57 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
module Stanag.LOIMap where
import Ivory.Language
[ivory|
struct LOIMap {
uint32_t msg;
uint8_t req;
}
|]
mLOIMap :: MemArea (Array 88 (Struct "LOIMap"))
mLOIMap = area "mLOIMap" (Just (iarray [
... | GaloisInc/loi | Stanag/LOIMap.hs | bsd-3-clause | 5,118 | 0 | 14 | 1,750 | 2,392 | 1,200 | 1,192 | 101 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE OverloadedStrings #-}
module Reporting.Report
( Report(Report)
, simple
, toString
, printError, printWarning
) where
import Control.Applicative ((<|>))
import Control.Monad.Writer (Writer, execWriter, tell)
import qualified Data.List.Split as Split
import Sys... | rgrempel/frelm.org | vendor/elm-format/parser/src/Reporting/Report.hs | mit | 5,353 | 0 | 17 | 1,641 | 1,708 | 876 | 832 | 168 | 4 |
{-# LANGUAGE RecursiveDo,ViewPatterns #-}
module E.PrimOpt(performPrimOpt) where
import Control.Monad.Fix()
import C.Prims
import Cmm.OpEval
import Doc.DocLike
import Doc.PPrint
import E.E
import E.Values
import Stats
import StringTable.Atom
import Support.CanType
import qualified Cmm.Op as Op
{-@Extensions
# Forei... | dec9ue/jhc_copygc | src/E/PrimOpt.hs | gpl-2.0 | 4,497 | 0 | 18 | 1,165 | 1,122 | 571 | 551 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
-- |
-- Module : Yi.Frontend.Vty
-- License : GPL-2
-- Maintainer : [email protected]
-- Stability : experimen... | noughtmare/yi | yi-frontend-vty/src/Yi/Frontend/Vty.hs | gpl-2.0 | 20,413 | 0 | 25 | 7,356 | 5,489 | 2,945 | 2,544 | 353 | 12 |
{-# 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-autoscaling/gen/Network/AWS/AutoScaling/DescribeLifecycleHooks.hs | mpl-2.0 | 5,052 | 0 | 15 | 1,011 | 672 | 397 | 275 | 86 | 1 |
module Propellor.Property.Group where
import Propellor.Base
import Propellor.Property.User (hasGroup)
type GID = Int
exists :: Group -> Maybe GID -> Property UnixLike
exists (Group group') mgid = check test (cmdProperty "addgroup" (args mgid))
`describe` unwords ["group", group']
where
groupFile = "/etc/group"
... | ArchiveTeam/glowing-computing-machine | src/Propellor/Property/Group.hs | bsd-2-clause | 546 | 2 | 10 | 89 | 202 | 109 | 93 | 13 | 2 |
{-# LANGUAGE CPP #-}
module Ignore.Core
( findIgnoreFiles
, buildChecker
)
where
import Ignore.Builder
import Ignore.Types
import qualified Ignore.VCS.Git as Git
import qualified Ignore.VCS.Mercurial as Hg
import qualified Ignore.VCS.Darcs as Darcs
#if MIN_VERSION_base(4,8,0)
#else
import Control.Applicat... | agrafix/ignore | src/Ignore/Core.hs | bsd-3-clause | 1,976 | 0 | 16 | 607 | 481 | 253 | 228 | 50 | 4 |
-- | This module defines the interface to points-to analysis in this
-- analysis framework. Each points-to analysis returns a result
-- object that is an instance of the 'PointsToAnalysis' typeclass; the
-- results are intended to be consumed through this interface.
--
-- All of the points-to analysis implementations ... | travitch/llvm-analysis | src/LLVM/Analysis/PointsTo.hs | bsd-3-clause | 1,636 | 0 | 12 | 323 | 166 | 101 | 65 | 12 | 0 |
-- {-# OPTIONS_GHC -fno-warn-redundant-constraints #-}
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies,
FlexibleInstances, UndecidableInstances #-}
-- This tests an aspect of functional dependencies, revealing a bug in GHC 6.0.1
-- discovered by Martin Sulzmann
module ShouldCompile where
dat... | rahulmutt/ghcvm | tests/suite/typecheck/compile/tc180.hs | bsd-3-clause | 1,495 | 0 | 9 | 399 | 256 | 145 | 111 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module Ros.Sensor_msgs.SetCameraInfoResponse where
import qualified Prelude as P
import Prelude ((.), (+), (*))
import qualified Data.Typeable as T
import Control.Applicative
import Ros... | acowley/roshask | msgs/Sensor_msgs/Ros/Sensor_msgs/SetCameraInfoResponse.hs | bsd-3-clause | 1,375 | 1 | 9 | 254 | 297 | 176 | 121 | 31 | 0 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE TypeOperators #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Monad.Zip
-- Copyright : (c) Nils Schweinsberg 2011,
-- (c) George Giorgidze 2011
-- (c) University Tuebingen 2011
-- Licens... | sdiehl/ghc | libraries/base/Control/Monad/Zip.hs | bsd-3-clause | 3,424 | 0 | 10 | 790 | 791 | 438 | 353 | 57 | 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="ko-KR">
<title>Call Graph</title>
<maps>
<homeID>callgraph</homeID>
<mapref location="m... | thc202/zap-extensions | addOns/callgraph/src/main/javahelp/help_ko_KR/helpset_ko_KR.hs | apache-2.0 | 961 | 77 | 66 | 156 | 407 | 206 | 201 | -1 | -1 |
{-# LANGUAGE RankNTypes, GADTs #-}
module Foo where
g :: (Int, Int) -> Int
{-# NOINLINE g #-}
g (p,q) = p+q
f :: Int -> Int -> Int -> Int
f x p q
= g (let j y = (y+p,q)
{-# NOINLINE j #-}
in
case x of
2 -> j 3
_ -> j 4)
| sdiehl/ghc | testsuite/tests/simplCore/should_compile/T13543.hs | bsd-3-clause | 281 | 0 | 12 | 119 | 121 | 65 | 56 | 12 | 2 |
{-# OPTIONS -fglasgow-exts -fforall #-}
-- Make sure for-alls can occur in data types
module Foo where
newtype CPS1 a = CPS1 { unCPS1 :: forall ans . (a -> ans) -> ans }
newtype CPS2 a = CPS2 (forall ans . (a -> ans) -> ans)
-- This one also has an interesting record selector;
-- caused an applyTypeArgs crash in ... | hvr/jhc | regress/tests/1_typecheck/2_pass/ghc/tc140.hs | mit | 446 | 4 | 12 | 102 | 131 | 81 | 50 | -1 | -1 |
module LiftOneLevel.C3 where
import LiftOneLevel.D3(pow)
anotherFun (x:xs) = x^pow + anotherFun xs
anotherFun [] = 0
| RefactoringTools/HaRe | test/testdata/LiftOneLevel/C3.hs | bsd-3-clause | 121 | 0 | 7 | 20 | 52 | 28 | 24 | 4 | 1 |
{-@ LIQUID "--no-termination" @-}
module Foo where
import Language.Haskell.Liquid.Prelude
data RBTree a = Leaf
| Node Color a !(RBTree a) !(RBTree a)
deriving (Show)
data Color = B -- ^ Black
| R -- ^ Red
deriving (Eq,Show)
-------------------------------------... | mightymoose/liquidhaskell | benchmarks/llrbtree-0.1.1/Data/Set/RBTree-ord.hs | bsd-3-clause | 8,985 | 0 | 17 | 3,069 | 2,035 | 1,037 | 998 | 71 | 7 |
module HAD.Y2014.M03.D06.Exercise where
-- | takeStrictlyLessThan take elements of a list whils their sum is
-- _strictly_ less than a given number
--
-- Point-free: I didnt' try without parameter, you can easily "hide" the 2nd
-- parameter (ie. takeStrictlyLessThan x = …)
-- Level: MEDIUM
--
-- Examples:
-- >>> takeS... | weima/1HAD | exercises/HAD/Y2014/M03/D06/Exercise.hs | mit | 564 | 0 | 4 | 87 | 32 | 28 | 4 | 2 | 1 |
module Yesod.Core.Internal.Session
( encodeClientSession
, decodeClientSession
, clientSessionDateCacher
, ClientSessionDateCache(..)
, SaveSession
, SessionBackend(..)
) where
import qualified Web.ClientSession as CS
import Data.Serialize
import Data.Time
import Data.ByteString (ByteString... | ygale/yesod | yesod-core/Yesod/Core/Internal/Session.hs | mit | 2,356 | 0 | 14 | 593 | 506 | 269 | 237 | 52 | 1 |
{-# LANGUAGE TypeFamilies, FlexibleContexts, FlexibleInstances #-}
module T6161 where
data family Fam a
data instance Fam Float = FamFloat Float
class Super a where
testSup :: a -> Float
class Super a => Duper a where
testDup :: a -> Float
--class ( Super (Fam a) ) => Foo a where
class Duper (Fam a) => Foo a... | forked-upstream-packages-for-ghcjs/ghc | testsuite/tests/typecheck/should_fail/T6161.hs | bsd-3-clause | 603 | 0 | 8 | 131 | 184 | 94 | 90 | 16 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE ExistentialQuantification #-}
-- | Get a mapping from statement patterns to statement expression for all
-- statements.
module Futhark.Optimise.MemoryBlockMerging.Coa... | ihc/futhark | src/Futhark/Optimise/MemoryBlockMerging/Coalescing/Exps.hs | isc | 2,265 | 0 | 12 | 498 | 569 | 306 | 263 | 52 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Network.HTTP.Toolkit.RequestSpec (main, spec) where
import Helper
import qualified Data.ByteString.Char8 as B
import Network.HTTP.Toolkit.Body
import Network.HTTP.Toolkit.Request
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describ... | zalora/http-kit | test/Network/HTTP/Toolkit/RequestSpec.hs | mit | 1,437 | 0 | 25 | 303 | 363 | 189 | 174 | 29 | 1 |
parenToNum c = if c == '(' then 1 else -1
parenStrToNums = map parenToNum
basementPos _ (-1) pos = pos
basementPos (x:xs) sum pos = basementPos xs (sum + x) (pos + 1)
main = do
input <- readFile "input.txt"
let oneszeros = parenStrToNums input
putStrLn (show (basementPos oneszeros 0 0))
| RatanRSur/advent-of-haskell | day1/part2.hs | mit | 302 | 0 | 11 | 66 | 137 | 68 | 69 | 8 | 2 |
-- https://www.reddit.com/r/dailyprogrammer/comments/pm7g7/2122012_challange_4_difficult/
module Main where
import Control.Monad
import Data.List
import Data.Tuple
import Language.Arithmetic
-- The ability to select a given number of values
-- from a list. All in the non-determinism monad
select :: [a] -> [(a, [a])]... | gallais/dailyprogrammer | difficult/004/Main.hs | mit | 1,934 | 0 | 16 | 506 | 824 | 434 | 390 | 48 | 3 |
nww :: Integer -> Integer -> Integer
nww x y = head $ filter (\xx -> xx `mod` y == 0 && xx `mod` x == 0) $ if x > y then [x..x*y] else [y..y*x]
| RAFIRAF/HASKELL | nww3.hs | mit | 144 | 0 | 14 | 36 | 97 | 53 | 44 | 2 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
import Data.Foldable (for_)
import Data.String (fromString)
import Test.Hspec (Spec, describe, it, shouldBe)
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)
import Acronym (abbreviate)
main :: IO ()
main = hspecW... | exercism/xhaskell | exercises/practice/acronym/test/Tests.hs | mit | 2,624 | 0 | 11 | 1,054 | 432 | 267 | 165 | 47 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
module LLVM.Codegen.Logic (
def,
arg,
var,
avar,
constant,
ife,
for,
while,
range,
loopnest,
seqn,
proj,
assign,
initrec,
(^.),
(.=),
ucast,
scast,
imin,
imax,
print... | sdiehl/llvm-codegen | src/LLVM/Codegen/Logic.hs | mit | 8,970 | 0 | 18 | 2,225 | 2,843 | 1,382 | 1,461 | 249 | 3 |
{-# LANGUAGE CPP #-}
module GHCJS.DOM.AudioStreamTrack (
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
module GHCJS.DOM.JSFFI.Generated.AudioStreamTrack
#else
#endif
) where
#if (defined(ghcjs_HOST_OS) && defined(USE_JAVASCRIPTFFI)) || !defined(USE_WEBKIT)
import GHCJS.DOM.JSFFI... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/AudioStreamTrack.hs | mit | 361 | 0 | 5 | 33 | 33 | 26 | 7 | 4 | 0 |
module Main where
import qualified Cenary.Main
main :: IO ()
main = Cenary.Main.main
| yigitozkavci/ivy | src/Main.hs | mit | 87 | 0 | 6 | 15 | 28 | 17 | 11 | 4 | 1 |
myLast :: [a] -> a
myLast [x] = x
myLast (_:xs) = myLast xs
| curiousily/haskell-99problems | 1.hs | mit | 60 | 0 | 7 | 14 | 42 | 22 | 20 | 3 | 1 |
import Control.Concurrent (forkIO, threadDelay)
import Control.Concurrent.Async (wait)
import Control.Monad (unless)
import System.Console.AsciiProgress
main :: IO ()
main = displayConsoleRegions $ do
pg1 <- newProgressBar def { pgWidth = 100
... | yamadapc/haskell-ascii-progress | bin/MultiExample.hs | mit | 1,057 | 0 | 12 | 479 | 292 | 143 | 149 | 24 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Data.Tensor.Scheme.DenseGD
(DenseGD(..)
,mkDenseGD
,mkDefaultDenseGD)
where
import Prelude hiding (foldr1)
import Data.Foldable (foldl', foldr1)
import Data.Monoid (mempty, (<>))
impor... | lensky/hs-tensor | lib/Data/Tensor/Scheme/DenseGD.hs | mit | 2,296 | 0 | 13 | 624 | 715 | 399 | 316 | 51 | 1 |
module Example2 ( main ) where
import Data.List (intercalate)
import Control.Arrow ((&&&))
import LogicProblem
{- Ships Puzzle
from https://www.mathsisfun.com/puzzles/ships.html
There are 5 ships in a port:
1. The Greek ship leaves at six and carries coffee.
2. The Ship in the middle has a black chimney.
3.... | fehu/h-logic-einstein | example-2/Example2.hs | mit | 8,501 | 0 | 14 | 3,300 | 1,703 | 878 | 825 | -1 | -1 |
-- Dictionary sequence
-- http://www.codewars.com/kata/55c24ce1fb411bbdd1000009/
module Haskell.Codewars.Solution where
import Data.Maybe (fromJust)
alphaDict :: [String]
alphaDict = map f [0..]
where alpha = zip [0..] . map (:[]) $ ['a'..'z']++['A'..'Z']
f x | x < 52 = fromJust . lookup x $ alpha
... | gafiatulin/codewars | src/6 kyu/Solution.hs | mit | 464 | 0 | 12 | 132 | 174 | 95 | 79 | 9 | 1 |
module Queue ( Queue
, emptyQ
, isEmptyQ
, addQ
, remQ ) where
data Queue a = Queue [a] [a]
emptyQ :: Queue a
emptyQ = Queue [] []
isEmptyQ :: Queue a -> Bool
isEmptyQ (Queue [] []) = True
isEmptyQ _ = False
addQ :: a -> Queue a -> Queue a
add... | tonyfloatersu/solution-haskell-craft-of-FP | Queue.hs | mit | 550 | 0 | 9 | 205 | 265 | 138 | 127 | 17 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveDataTypeable, StandaloneDeriving #-}
module Yi.GHC where
import Control.Concurrent
import Control.Concurrent.MVar
import Control.Monad.Error ()
import Control.Monad.Reader (asks)
import Control.Monad.State
import Control.Monad.Writer
import Data.Maybe
import ErrUtils
impo... | codemac/yi-editor | src/Yi/GHC.hs | gpl-2.0 | 3,004 | 0 | 20 | 854 | 831 | 436 | 395 | 77 | 2 |
{- |
Module : $Header$
Copyright : DFKI GmbH 2009
License : GPLv2 or higher, see LICENSE.txt
Maintainer : [email protected]
Stability : experimental
Portability : portable
-}
module ExtModal.AS_ExtModal where
import Common.Id
import Common.AS_Annotation
import CASL.AS_Basic_CASL
-- DrI... | nevrenato/Hets_Fork | ExtModal/AS_ExtModal.hs | gpl-2.0 | 5,671 | 0 | 11 | 1,711 | 1,415 | 708 | 707 | 100 | 0 |
------------------------------------------------------------------------
-- |
-- Module : Haskal.Path
-- License : GPL
--
------------------------------------------------------------------------
-- This program is free software; you can redistribute it and/or
-- modify it under the terms of the GNU General Pub... | juhp/haskal | src/Haskal/Path.hs | gpl-2.0 | 1,368 | 0 | 11 | 285 | 226 | 128 | 98 | 17 | 1 |
import Distribution.Simple
import Distribution.PackageDescription
import Data.Monoid (Monoid(mempty, mappend))
main = defaultMainWithHooks (simpleUserHooks { preInst = myPreInst })
myPreInst a f = return (Nothing, [("Test", mempty { buildable = False})])
| VictorDenisov/jdi | Setup.hs | gpl-2.0 | 257 | 0 | 10 | 31 | 82 | 49 | 33 | 5 | 1 |
module Elf where
import Data.Binary
import Data.Bits
import Data.Char
import Data.Int
import Data.List
import qualified Data.ByteString.Lazy as B
import Debug.Trace (trace)
import Shared
import qualified Definitions as D
import qualified Encoder as E
-- The size of the ELF header in bytes (e_ehsize)
elfHeaderSize ... | briansteffens/basm | src/Elf.hs | gpl-2.0 | 26,814 | 0 | 37 | 8,838 | 6,800 | 3,612 | 3,188 | 521 | 5 |
module Prompts where
data Prompt = Prompt
{ message :: String
, alert :: String
}
unlockPrompt, tryAgainPrompt, newPasswordPrompt, confirmPasswordPrompt
:: Prompt
unlockPrompt = Prompt
{ message = "Unlock keychain"
, alert = "Please enter the password used to encrypt the keychain."
}
tryAgainPrompt = P... | frozencemetery/haskey | src/Prompts.hs | gpl-3.0 | 929 | 0 | 8 | 173 | 143 | 94 | 49 | 23 | 1 |
module Main where
import Control.Monad
import Control.Monad.List
import System.Environment (getArgs)
import System.FilePath
--
import HEP.Parser.XSec
import HEP.Util.Format
import HEP.Util.Table
-- testdir = "/Users/iankim/repo/workspace/montecarlo/mc/Test28_20130227_ADMXQLD111"
testdir = "/Users/iankim/repo/... | wavewave/lhc-analysis-collection | exe/crosssec.hs | gpl-3.0 | 1,796 | 0 | 15 | 388 | 427 | 221 | 206 | 31 | 1 |
import Test.Framework (defaultMain)
import Tests.Data.Binary.C (cBinaryTests)
import Tests.Codec.Compression.LZF.ByteString (lzfByteStringTests)
import Tests.Database.Alteryx (yxdbTests)
main = defaultMain tests
tests =
[
cBinaryTests,
lzfByteStringTests,
yxdbTests
]
| MichaelBurge/yxdb-utils | Tests/Main.hs | gpl-3.0 | 293 | 0 | 5 | 48 | 69 | 43 | 26 | 10 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.