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 OverloadedStrings #-}
{-# LANGUAGE FlexibleInstances #-}
module Json where
import DataBuilder
import Data.Aeson
import Data.Text
import Data.Aeson.Types
import Control.Applicative
import qualified Data.HashMap.Strict as M
clientToJSON :: Client Integer -> Value
clientToJSON (GovOrg i n) =
object [ "t... | hnfmr/beginning_haskell | chapter10/Json.hs | mit | 2,539 | 0 | 15 | 717 | 656 | 336 | 320 | 51 | 4 |
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE PolyKinds #-}
{-# LANG... | VinylRecords/Vinyl | Data/Vinyl/TypeLevel.hs | mit | 4,493 | 0 | 9 | 984 | 1,200 | 692 | 508 | -1 | -1 |
module GitHub.Repositories.Collaborators where
import GitHub.Internal
collaborators o r = ownedRepo o r <> "/collaborators"
collaborator o r u = collaborators o r <> "/" <> u
--| GET /repos/:owner/:repo/collaborators
listCollaborators ::
OwnerName ->
RepoName ->
GitHub CollaboratorsData
listCollaborators o r = get... | SaneApp/github-api | src/GitHub/Repositories/Collaborators.hs | mit | 883 | 30 | 11 | 142 | 386 | 188 | 198 | -1 | -1 |
--------------------------------------------------------------------------------
-- |
-- Module : Access.Core
-- Copyright : (c) Aaron Stevens, 2014
-- License : GPL2
--
-- Maintainer : bheklilr2@gmail.com
--------------------------------------------------------------------------------
module A... | bheklilr/base-io-access | Access/Core.hs | gpl-2.0 | 804 | 0 | 6 | 193 | 102 | 61 | 41 | -1 | -1 |
{-# LANGUAGE BangPatterns #-}
module Interpreter where
import Prelude hiding (lookup)
import Foreign.Marshal.Utils (fromBool)
import qualified Data.Map as M
import Debug.Trace
import AbsFP
import PrintFP
-- ECls Exp Vars
type Name = String
type Funs = M.Map Name Exp
--type Vars = M.Map Name Exp
type Vars = M.Map N... | izimbra/PLT2014 | Lab4/2014/Interpreter.hs | gpl-2.0 | 5,177 | 20 | 21 | 2,001 | 1,420 | 742 | 678 | -1 | -1 |
-- |
-- Copyright : (c) 2010 Simon Meier
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
-- Portability : portable
--
-- Type-class abstracting computations that need a fresh name supply.
module Control.Monad.Fresh.Class (
MonadFresh(..)
) where
import Control.Basics
imp... | ekr/tamarin-prover | lib/utils/src/Control/Monad/Fresh/Class.hs | gpl-3.0 | 2,615 | 0 | 10 | 559 | 535 | 298 | 237 | 40 | 0 |
module Match.State.Controls(handleInput)
where
import Control.Monad
import Control.Monad.State as State
import Data.Maybe
import Graphics.UI.SDL as SDL
import FVector
import SDLUtils
import Match.Player
import Match.State.MatchBase
import Match.State.MatchState
import Match.State.Actions
keyChanges :: [SDL.Event]... | anttisalonen/freekick2 | src/Match/State/Controls.hs | gpl-3.0 | 2,809 | 0 | 35 | 1,037 | 1,111 | 584 | 527 | 66 | 8 |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings #-}
module Graphics.UI.Bottle.Widgets
( makeTextView, makeTextViewWidget, makeLabel
, makeFocusableView
, makeFocusableTextView, makeFocusableLabel
, makeTextEdit
, makeTextEditor, makeLineEdit, makeWordEdit
, makeFocusDelegator
, makeChoiceW... | rvion/lamdu | bottlelib/Graphics/UI/Bottle/Widgets.hs | gpl-3.0 | 7,760 | 0 | 14 | 1,662 | 2,303 | 1,215 | 1,088 | -1 | -1 |
{-
RollingDirectory is a daemon watching a directory limiting it's size
Copyright (C) 2011 Falco Hirschenberger <hirsch@bogfoot.de>
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 Foundation, either v... | hirschenberger/RollingDirectory | src/Watcher.hs | gpl-3.0 | 2,966 | 0 | 13 | 940 | 818 | 411 | 407 | 54 | 5 |
module Problem008 (answer) where
import Data.Char (ord)
answer :: Int
answer = maximum $ map product (consecutiveDigits 13)
consecutiveDigits :: Int -> [[Int]]
consecutiveDigits n = [take n $ drop i bigdigit | i <- [0..(length bigdigit - n)]]
bigdigit :: [Int]
bigdigit = map ((\n -> n-48) . ord) "731671765313306249... | geekingfrog/project-euler | Problem008.hs | gpl-3.0 | 1,361 | 0 | 11 | 74 | 142 | 78 | 64 | 8 | 1 |
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE... | ciderpunx/rsstwit | src/Db.hs | gpl-3.0 | 8,329 | 0 | 19 | 2,790 | 2,024 | 1,010 | 1,014 | 187 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dataproc/gen/Network/Google/Resource/Dataproc/Projects/Locations/WorkflowTemplates/Delete.hs | mpl-2.0 | 6,378 | 0 | 16 | 1,306 | 804 | 470 | 334 | 119 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-youtube-analytics/gen/Network/Google/Resource/YouTubeAnalytics/Reports/Query.hs | mpl-2.0 | 11,065 | 0 | 26 | 2,586 | 1,592 | 925 | 667 | 205 | 1 |
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
func = do
s <- mGet
mSet $ s
{ _lstate_indent = _lstate_indent lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd
, _lstate_foo = _lstate_foo kasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd
}
| lspitzner/brittany | data/Test498.hs | agpl-3.0 | 304 | 0 | 10 | 47 | 41 | 21 | 20 | 5 | 1 |
module Main where
import Control.Exception
import Control.Monad
import Data.Maybe
import Data.List
import Data.IORef
import System.Console.GetOpt
import System.Environment
import System.Exit
import System.IO
import Test.Framework
import Test.Framework.Providers.HUnit
import Robotics.NXT
import Robotics.NXT.Basic
da... | mitar/nxt | tests/Main.hs | lgpl-3.0 | 1,848 | 0 | 17 | 464 | 555 | 283 | 272 | 49 | 2 |
module Network.Haskoin.Script.Types
( ScriptOp(..)
, Script(..)
, PushDataType(..)
, isPushOp
, opPushData
) where
import Control.DeepSeq (NFData, rnf)
import Control.Monad (liftM2, unless, forM_)
import Data.Word (Word8)
import Data.Binary (Binary, get, put)
import Data.Binary.Get
( isEmpty
, getWord8
, ... | tphyahoo/haskoin | haskoin-core/Network/Haskoin/Script/Types.hs | unlicense | 17,658 | 0 | 19 | 7,777 | 4,405 | 2,170 | 2,235 | 446 | 20 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.Haskoin.Transaction.Builder where
import Control.Arrow (first)
import Control.DeepSeq (NFData, rnf)
import Control.Monad (foldM, mzero, unless)
im... | xenog/haskoin | src/Network/Haskoin/Transaction/Builder.hs | unlicense | 20,599 | 0 | 22 | 6,662 | 5,152 | 2,686 | 2,466 | 329 | 10 |
{-|
This package provides block and block-related types.
-}
module Network.Haskoin.Block
(
-- * Blocks
Block(..)
, BlockLocator
, GetBlocks(..)
-- * Block Headers
, headerHash
, BlockHeader(..)
, GetHeaders(..)
, Headers(..)
, BlockHeaderCount
-- * Merkle Blocks
, MerkleBlock(..)
, MerkleRoot
, FlagBits
, ... | nuttycom/haskoin | Network/Haskoin/Block.hs | unlicense | 1,140 | 0 | 5 | 150 | 218 | 152 | 66 | 51 | 0 |
-----------------------------------------------------------------------------
-- Copyright 2019, Ideas project team. This file is distributed under the
-- terms of the Apache License 2.0. For more information, see the files
-- "LICENSE.txt" and "NOTICE.txt", which are included in the distribution.
-----------------... | ideas-edu/ideas | src/Ideas/Utils/Uniplate.hs | apache-2.0 | 1,058 | 0 | 4 | 169 | 89 | 67 | 22 | 7 | 0 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QMainWindow_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:30
Warning : this file is machine generated - do... | uduki/hsQt | Qtc/Gui/QMainWindow_h.hs | bsd-2-clause | 61,293 | 0 | 18 | 13,172 | 20,090 | 9,683 | 10,407 | -1 | -1 |
module BoardDisplaySpec ( main, spec ) where
import Data.Maybe (catMaybes)
import System.Random
import Test.Hspec
import Test.QuickCheck
import ArbitraryTypes ()
import TestHelpers
import Board
import Display
import Model... | camelpunch/rhascal | test/BoardDisplaySpec.hs | bsd-3-clause | 1,664 | 0 | 17 | 574 | 530 | 269 | 261 | 41 | 1 |
--------------------------------------------------------------------------------
module Language.Haskell.Stylish.Util
( nameToString
, indent
, padRight
, everything
, infoPoints
, wrap
, withHead
, withLast
, withInit
) where
--------------------------------------------------... | eigengrau/stylish-haskell | src/Language/Haskell/Stylish/Util.hs | bsd-3-clause | 3,283 | 0 | 12 | 750 | 814 | 458 | 356 | 53 | 1 |
module Main where
import AdventOfCode
import Control.Monad.State
import Data.Maybe (fromMaybe)
import Data.Map (Map)
import Data.Foldable (toList)
import Data.List (find)
import qualified Data.Map as M
import Data.Sequence (Seq)
import qualified Data.Sequence as Sq
newtype Reg =
Reg Char
deriving (Eq, Show)
data... | purcell/adventofcode2016 | src/Day25.hs | bsd-3-clause | 5,046 | 0 | 16 | 1,451 | 2,196 | 1,099 | 1,097 | 207 | 3 |
{-# LANGUAGE DeriveDataTypeable, NoImplicitPrelude #-}
{- |
client-side half of a typed AJAX communication channel.
To use this library, you could start by defining a type in a file that
can be shared between the Haskell Server and Fay client. For example:
@
data Command
= SendGuess Guess (ResponseType (... | bergmark/happstack-fay | Language/Fay/AJAX.hs | bsd-3-clause | 2,565 | 0 | 12 | 609 | 227 | 130 | 97 | 21 | 1 |
{-# LANGUAGE TemplateHaskell, GeneralizedNewtypeDeriving #-}
module Gifter.Daemon.PollTask
( startPollTask
) where
import Control.Lens
import Control.Monad
import Control.Monad.Trans
import Control.Monad.Reader
import Control.Exception
import Control.Concurrent.STM
import Control.Concurrent.STM.TEVar
import D... | arjantop/gifter | src/Gifter/Daemon/PollTask.hs | bsd-3-clause | 2,316 | 0 | 13 | 466 | 681 | 347 | 334 | 68 | 2 |
{-# LANGUAGE RecordWildCards #-}
module Tct.Its.Data.Timebounds
(
Timebounds
, initialise
, TimeboundsMap
, timeboundsMap
, tboundOf
, tcostOf
, totalBound
--, insert
, inserts
, addLeafCost
, bridge
, update
, updates
, hasProgress
, filterRules
, allDefined
, defined
, nonDef... | ComputationWithBoundedResources/tct-its | src/Tct/Its/Data/Timebounds.hs | bsd-3-clause | 3,977 | 0 | 13 | 821 | 1,391 | 768 | 623 | 88 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module NodeDerive (makeCNode) where
import Language.Haskell.TH.All
import Language.C.Data.Node
import Language.C.Data.Position
makeCNode :: Derivation
makeCNode = derivation genNodeInst "CNode"
nodeInfoTypeName :: [Char]
nodeInfoTypeName = "Language.C.Data.Node.NodeInfo"
genNodeInst ... | jthornber/language-c-ejt | src/NodeDerive.hs | bsd-3-clause | 3,392 | 0 | 16 | 1,059 | 910 | 476 | 434 | 62 | 9 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
TcInstDecls: Typechecking instance declarations
-}
{-# LANGUAGE CPP #-}
module TcInstDcls ( tcInstDecls1, tcInstDecls2 ) where
#include "HsVersions.h"
import HsSyn
import TcBinds
import TcTyClsDecls
import TcClassDcl( ... | gridaphobe/ghc | compiler/typecheck/TcInstDcls.hs | bsd-3-clause | 76,746 | 5 | 25 | 23,443 | 8,524 | 4,512 | 4,012 | 649 | 5 |
module Main where
import System.Environment
import System.IO
import FileServer
main :: IO ()
main = do
args <- getArgs
let port = read $ head args :: Int
mkApp port | Garygunn94/DFS | FileServer/app/Main.hs | bsd-3-clause | 172 | 0 | 11 | 37 | 64 | 33 | 31 | 9 | 1 |
-- #hide
-----------------------------------------------------------------------------
-- |
-- Module : Language.Haskell.ParseUtils
-- Copyright : (c) The GHC Team, 1997-2000
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : experimen... | emcardoso/CTi | src/Haskell/Parser/ParseUtils.hs | bsd-3-clause | 11,052 | 73 | 16 | 2,344 | 3,832 | 1,888 | 1,944 | 232 | 25 |
module Lucid.Polymer.Internal
(
) where
| athanclark/lucid-polymer | src/Lucid/Polymer/Internal.hs | bsd-3-clause | 48 | 0 | 3 | 13 | 10 | 7 | 3 | 2 | 0 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.UI.GLUT.Begin
-- Copyright : (c) Sven Panne 2003
-- License : BSD-style (see the file libraries/GLUT/LICENSE)
--
-- Maintainer : sven_panne@yahoo.com
-- Stability : provisional
-- Portability :... | OS2World/DEV-UTIL-HUGS | libraries/Graphics/UI/GLUT/Begin.hs | bsd-3-clause | 947 | 0 | 7 | 155 | 51 | 38 | 13 | 3 | 0 |
module Main where
import Lib
main :: IO ()
main = searchYTPlaylists
| kelvinlouis/spotell | app/Main.hs | bsd-3-clause | 70 | 0 | 6 | 14 | 22 | 13 | 9 | 4 | 1 |
import Control.Monad.Reader
import Control.Monad.State
import Foreign
-- Goal. Peek a multi-dimensional array.
-- State: the offset.
--
-- To peek a [4,1,5] array, we 4 times peek a [1,5] array, yielding a [[a]] each, and join them in a list.
peekDimArray :: (Int -> [Int] -> Ptr a -> IO b) ->
Int ->... | glutamate/matio | test/PtrTest.hs | bsd-3-clause | 1,031 | 0 | 11 | 240 | 390 | 195 | 195 | 23 | 1 |
module BowlingKata.Day7 (score) where
score :: [Int] -> Int
score ([]) = 0
score (roll:[]) = roll
score (roll1:roll2:[]) = roll1 + roll2
score (roll1:roll2:roll3:[]) = roll1 + roll2 + roll3
score (roll1:roll2:roll3:rolls) | isStrike roll1 = 10 + roll2 + roll3 + score (roll2:roll3:rolls)
... | Alex-Diez/haskell-tdd-kata | old-katas/src/BowlingKata/Day7.hs | bsd-3-clause | 633 | 0 | 10 | 207 | 280 | 143 | 137 | 13 | 1 |
{-# LANGUAGE RecursiveDo #-}
module Main ( main ) where
import Control.Applicative
import Control.Monad.STM
import Control.Monad.Trans
import Data.IORef
import Data.Maybe
import Test.QuickCheck.Monadic
import Test.Tasty
import Test.Tasty.Q... | knrafto/reactive | tests/Properties.hs | bsd-3-clause | 4,655 | 0 | 19 | 1,554 | 1,659 | 832 | 827 | 148 | 1 |
{-|
Module : Numeric.AERN.RealArithmetic.Auxiliary
Description : auxiliary generic operators and utilities
Copyright : (c) Michal Konecny, Jan Duracz
License : BSD3
Maintainer : mikkonecny@gmail.com
Stability : experimental
Portability : portable
Auxiliary generi... | michalkonecny/aern | aern-real/src/Numeric/AERN/RealArithmetic/Auxiliary.hs | bsd-3-clause | 1,242 | 0 | 13 | 403 | 215 | 118 | 97 | 24 | 2 |
{-# Language TemplateHaskell #-}
{-|
Module : Client.State.Channel
Description : IRC channel session state
Copyright : (c) Eric Mertens, 2016
License : ISC
Maintainer : emertens@gmail.com
This module is responsible for tracking the state of an individual IRC
channel while the client is connected to it. Wh... | dolio/irc-core | src/Client/State/Channel.hs | isc | 3,339 | 0 | 13 | 739 | 616 | 364 | 252 | -1 | -1 |
module Nancy.Typechecker where
import Nancy.Core.Language as L
import Nancy.Core.Env as E
import Nancy.Core.Output
import Nancy.Core.Errors.Typechecker as Err
import Nancy.Core.Util
import Control.Monad.Identity
import Control.Monad.Except
import Control.Monad.Reader
type TypecheckEnv = (Env L.Type, Env L.Type)
type... | jgardella/nancy | src/Nancy/Typechecker.hs | mit | 4,788 | 0 | 18 | 877 | 1,736 | 876 | 860 | 108 | 11 |
-- | Major logic of Update System (US).
module Pos.DB.Update.Logic
( module Pos.DB.Update.Logic.Global
, module Pos.DB.Update.Logic.Local
) where
import Pos.DB.Update.Logic.Global
import Pos.DB.Update.Logic.Local
| input-output-hk/pos-haskell-prototype | db/src/Pos/DB/Update/Logic.hs | mit | 256 | 0 | 5 | 65 | 45 | 34 | 11 | 5 | 0 |
{- |
Module : ./QBF/ProveDepQBF.hs
Description : Interface to the theorem prover e-krhyper in CASC-mode.
Copyright : (c) Jonathan von Schroeder, DFKI GmbH 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : jonathan.von_schroeder@dfki.de
Stability : provisional
Portability : needs POSIX
s... | spechub/Hets | QBF/ProveDepQBF.hs | gpl-2.0 | 7,559 | 0 | 15 | 2,428 | 1,274 | 689 | 585 | 132 | 6 |
{-# OPTIONS -fno-warn-type-defaults -fno-warn-unused-binds -fno-warn-orphans #-}
{-# LANGUAGE FlexibleInstances, ExistentialQuantification #-}
module Test.TestParseTime where
import Control.Monad
import Data.Char
import Data.Ratio
import Data.Time
import Data.Time.Calendar.OrdinalDate
import Data.Time.Calendar.WeekDa... | jwiegley/ghc-release | libraries/time/test/TestParseTime.hs | gpl-3.0 | 16,709 | 0 | 40 | 3,135 | 4,903 | 2,594 | 2,309 | 290 | 2 |
{-# LANGUAGE OverloadedStrings #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Network.AWS.DeviceFarm.Types
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
-- Stability :... | fmapfmapfmap/amazonka | amazonka-devicefarm/gen/Network/AWS/DeviceFarm/Types.hs | mpl-2.0 | 6,828 | 0 | 13 | 2,082 | 1,190 | 748 | 442 | 245 | 1 |
module Graphics.ImageMagick.MagickCore.Option
( parseChannelOption
) where
import Control.Monad.IO.Class
import Control.Monad.Trans.Resource
import Data.ByteString (ByteString, useAsCString)
import qualified Graphics.ImageMagick.MagickCore.FFI.Opt... | flowbox-public/imagemagick | Graphics/ImageMagick/MagickCore/Option.hs | apache-2.0 | 525 | 0 | 7 | 123 | 98 | 61 | 37 | 9 | 1 |
module Distribution.Solver.Modular.Assignment
( Assignment(..)
, FAssignment
, SAssignment
, PreAssignment(..)
, extend
, toCPs
) where
import Control.Applicative
import Control.Monad
import Data.Array as A
import Data.List as L
import Data.Map as M
import Data.Maybe
import Prelude hiding (... | sopvop/cabal | cabal-install/Distribution/Solver/Modular/Assignment.hs | bsd-3-clause | 6,340 | 0 | 20 | 1,669 | 1,549 | 868 | 681 | 94 | 10 |
-- | The type of cave layout kinds.
module Game.LambdaHack.Content.CaveKind
( CaveKind(..), validateSingleCaveKind, validateAllCaveKind
) where
import Data.Text (Text)
import qualified Data.Text as T
import qualified Game.LambdaHack.Common.Dice as Dice
import Game.LambdaHack.Common.Misc
import Game.LambdaHack.Com... | beni55/LambdaHack | Game/LambdaHack/Content/CaveKind.hs | bsd-3-clause | 4,695 | 0 | 19 | 1,287 | 817 | 478 | 339 | -1 | -1 |
{-# LANGUAGE CPP, DeriveDataTypeable #-}
module Eta.HsSyn.HsDoc (
HsDocString(..),
LHsDocString,
ppr_mbDoc
) where
#include "HsVersions.h"
import Eta.Utils.Outputable
import Eta.BasicTypes.SrcLoc
import Eta.Utils.FastString
import Data.Data
newtype HsDocString = HsDocString FastString
deriving (Eq, Show,... | rahulmutt/ghcvm | compiler/Eta/HsSyn/HsDoc.hs | bsd-3-clause | 553 | 0 | 8 | 88 | 145 | 82 | 63 | 17 | 1 |
module T9509a (foo) where
import Data.IORef
foo :: Ord a => a -> IO a
{-# INLINABLE foo #-}
foo x = newIORef x >>= readIORef >>= \y ->
case compare x y of
LT -> return x ;
_ -> return y
| olsner/ghc | testsuite/tests/simplCore/should_compile/T9509a.hs | bsd-3-clause | 220 | 0 | 10 | 77 | 86 | 44 | 42 | 7 | 2 |
-- Copyright (c) 1998-1999 Chris Okasaki.
-- See COPYRIGHT file for terms and conditions.
module SizedSeq
{-# DEPRECATED "This module is unmaintained, and will disappear soon" #-}
(
-- generic adaptor for sequences to keep track of the current size
Sized, -- Sized s instance of Sequence, Functor, Monad,... | FranklinChen/hugs98-plus-Sep2006 | fptools/hslibs/data/edison/Seq/SizedSeq.hs | bsd-3-clause | 11,184 | 2 | 12 | 3,040 | 5,546 | 2,847 | 2,699 | -1 | -1 |
-- | Generate methods for the PA class.
--
-- TODO: there is a large amount of redundancy here between the
-- a, PData a, and PDatas a forms. See if we can factor some of this out.
--
module Vectorise.Generic.PAMethods
( buildPReprTyCon
, buildPAScAndMethods
) where
import Vectorise.Utils
import Vectorise... | mcmaniac/ghc | compiler/vectorise/Vectorise/Generic/PAMethods.hs | bsd-3-clause | 22,418 | 0 | 19 | 7,560 | 5,512 | 2,723 | 2,789 | 373 | 6 |
-- | Predefined DOM elements, for convenience.
module Graphics.UI.Threepenny.Elements (
-- * Combinations and utilities
addStyleSheet,
-- text,
new,
-- * Primitive HTML elements
address, a, anchor, applet, area, audio,
basefont, big, blockquote, body, bold, br, button,
canvas, capti... | yuvallanger/threepenny-gui | src/Graphics/UI/Threepenny/Elements.hs | bsd-3-clause | 4,568 | 0 | 14 | 1,828 | 1,016 | 561 | 455 | 109 | 1 |
{-
Copyright 2015 Google Inc. All rights reserved.
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 a... | xwysp/codeworld | codeworld-base/src/Control/Exception/Base.hs | apache-2.0 | 759 | 0 | 4 | 136 | 25 | 19 | 6 | 4 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Main where
import Control.Applicative
import System.Directory
import System.Exit
import System.FilePath
import System.Environment
import System.IO
import System.IO.Error
import System.Process
import Test.Tasty
import Test.Tasty.HUnit
impo... | rolph-recto/liquid-fixpoint | tests/test.hs | bsd-3-clause | 8,468 | 0 | 17 | 2,074 | 1,161 | 598 | 563 | 71 | 3 |
main f x =
let y = f x
in y:y:[]
| ndmitchell/tagsoup | test/TagSoup/Generate/programs/Sharing.hs | bsd-3-clause | 43 | 0 | 9 | 21 | 35 | 16 | 19 | 3 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns, MagicHash, UnboxedTuples,
StandaloneDeriving, NegativeLiterals #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Int
-- Copyright : (c)... | tolysz/prepare-ghcjs | spec-lts8/base/GHC/Int.hs | bsd-3-clause | 43,990 | 0 | 17 | 14,328 | 9,774 | 5,116 | 4,658 | 651 | 2 |
{-# LANGUAGE StandaloneKindSignatures #-}
{-# LANGUAGE PolyKinds #-}
module SAKS_Fail003 where
type T :: _
data T = MkT
| sdiehl/ghc | testsuite/tests/saks/should_fail/saks_fail003.hs | bsd-3-clause | 122 | 0 | 5 | 21 | 19 | 13 | 6 | -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="ar-SA">
<title>Requester</title>
<maps>
<homeID>requester</homeID>
<mapref location="ma... | thc202/zap-extensions | addOns/requester/src/main/javahelp/help_ar_SA/helpset_ar_SA.hs | apache-2.0 | 960 | 77 | 66 | 155 | 404 | 205 | 199 | -1 | -1 |
{-# LANGUAGE ForeignFunctionInterface #-}
-- | Test that unsafe FFI calls crash the RTS if they attempt to re-enter
-- Haskell-land
module Main where
import Foreign
foreign import ccall "wrapper" wrap_f :: IO () -> IO (FunPtr (IO ()))
foreign import ccall unsafe hello :: FunPtr (IO ()) -> IO ()
f :: IO ()
f = putSt... | ezyang/ghc | testsuite/tests/ffi/should_fail/UnsafeReenter.hs | bsd-3-clause | 440 | 0 | 12 | 94 | 135 | 68 | 67 | 12 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -Wmonomorphism-restriction #-}
module Bug where
class Monad m => C m where
c :: (m Char, m Char)
foo :: forall m. C m => m Char
foo = bar >> baz >> bar2
where
-- Should not get MR warning
bar, baz :: m Char
(bar, baz) = c
-- Should get MR warni... | ezyang/ghc | testsuite/tests/typecheck/should_compile/T13785.hs | bsd-3-clause | 344 | 0 | 8 | 92 | 110 | 61 | 49 | 10 | 1 |
{-# LANGUAGE TemplateHaskell #-}
-----------------------------------------------------------------------------
-- |
-- Module : Algebra.Graph.Test.RewriteRules
-- Copyright : (c) Andrey Mokhov 2016-2022
-- License : MIT (see the file LICENSE)
-- Maintainer : andrey.mokhov@gmail.com
-- Stability : experimental
... | snowleopard/alga | test/Algebra/Graph/Test/RewriteRules.hs | mit | 10,239 | 0 | 14 | 2,391 | 5,172 | 2,695 | 2,477 | -1 | -1 |
module Handler.Users
where
import Import
getUsersR :: Handler Html
getUsersR = do
users <- runDB $ selectList [] [Asc UserIdent]
defaultLayout $ do
setTitleI MsgUsersTitle
$(widgetFile "users") | bholst/blog | Handler/Users.hs | mit | 207 | 0 | 12 | 40 | 69 | 33 | 36 | 8 | 1 |
{- | Handling of global definitions -}
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances, TypeSynonymInstances, UndecidableInstances #-}
module Signature where
import Control.Applicative
-- import Control.Bifunctor
import Control.Monad.Except
-- import Control.Monad.Reader
import Control... | andreasabel/helf | src/Signature.hs | mit | 4,660 | 0 | 11 | 1,192 | 725 | 390 | 335 | 52 | 0 |
module Ch27.SyslogTCPClient
where
import Data.Bits
import Network.Socket
import Ch27.SyslogTypes
import System.IO
import qualified Data.ByteString.Char8 as Strict
import qualified Data.ByteString.Lazy.Char8 as Lazy (toStrict)
import Data.ByteString.Builder (toLazyByteString, stringUtf8, charUtf8, byteString)
import Da... | futtetennista/IntroductionToFunctionalProgramming | RWH/src/Ch27/SyslogTCPClient.hs | mit | 2,126 | 0 | 14 | 468 | 677 | 349 | 328 | 60 | 1 |
{-# Language DeriveGeneric #-}
{-# Language OverloadedStrings #-}
module Unison.NodeContainer where
import Control.Concurrent (forkIO)
import Control.Concurrent.Chan.Unagi
import Control.Concurrent.STM (STM)
import Control.Exception
import Control.Monad
import Data.ByteString (ByteString)
import Data.Bytes.Serial (Se... | nightscape/platform | node/src/Unison/NodeContainer.hs | mit | 8,625 | 0 | 36 | 2,734 | 2,418 | 1,217 | 1,201 | 155 | 8 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable #-}
module Types
(
-- * Commands
Command (..)
-- * Response
, Response (..)
-- * State
, State (..)
-- * Extract Command
, command
-- * Init State
) where
-- import Data.ByteString.Char8 ( ByteString )
import Dat... | ucsd-progsys/liquidhaskell-interactive | src/Types.hs | mit | 2,774 | 0 | 11 | 655 | 380 | 223 | 157 | 42 | 1 |
module BeforeFix.Tree where
data Tree = Node Tree Tree
| Leaf
(<.|) :: Tree -> Tree -> Tree
Leaf <.| y = y
(Node l r) <.| y = Node (l <.| y) (r <.| y)
| atzeus/reflectionwithoutremorse | BeforeFix/Tree.hs | mit | 192 | 0 | 7 | 77 | 84 | 45 | 39 | 6 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Network.EngineIO.Growler where
import Control.Applicative ((<$>))
import Control.Arrow (second)
import Control.Monad.Reader
import Control.Monad.Trans.State.Strict (evalStateT)
import qualified Data.ByteString.Builder as B
import qualifie... | iand675/growler | extra/growler-socket-io/src/Network/EngineIO/Growler.hs | mit | 2,099 | 0 | 18 | 523 | 582 | 317 | 265 | 46 | 4 |
-- | A weird utility module, with stuff I don't know where to put.
--
-- I didn't call it Util because that's just a slippery slope.
module DCPU16.Hex (
-- * Hexdumps
dump, dumpBytes
-- * Homeless utility functions
, warn, getWord16s
) where
import Data.ByteString (ByteString)
import qualified Da... | amtal/soyuz | DCPU16/Hex.hs | mit | 2,464 | 0 | 12 | 574 | 536 | 297 | 239 | 38 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Functionality.Explicit.Design where
import Control.Monad (mapM_, return)
import Data.Aeson (Value, object)
import Data.Either ... | mdorman/couch-simple | test/Functionality/Explicit/Design.hs | mit | 8,305 | 0 | 18 | 2,938 | 1,808 | 953 | 855 | 132 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE Rank2Types #-}
module Web.Apiary.Session.Internal
( Session(..)
, SessionBackend(..)
) where
import Control.Monad.Apiary.Action(ActionT)
import qualified Network.Wai as Wai
import Data.Apiary.Extension
(Ext... | philopon/apiary | apiary-session/src/Web/Apiary/Session/Internal.hs | mit | 1,506 | 0 | 13 | 329 | 436 | 240 | 196 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module PreHomework.Parser where
import PreHomework.Type
import Control.Monad
import Control.Monad.Trans.Resource
import Data.Attoparsec.ByteString.Lazy
import Data.Monoid ((<>))
import Data.ByteString (B... | DM2014/pre-homework | src/PreHomework/Parser.hs | mit | 1,258 | 0 | 10 | 340 | 374 | 194 | 180 | 37 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Bitcoin.Api.Wallet where
import Data.Aeson
import Data.Aeson.Types
import qualified Data.HashMap.Strict as HM
import qualified Data.Bitcoin.Types as BT
import qualified Network.Bitcoin.Api.Intern... | solatis/haskell-bitcoin-api | src/Network/Bitcoin/Api/Wallet.hs | mit | 5,343 | 0 | 11 | 1,392 | 848 | 461 | 387 | 78 | 1 |
--------------------------------------------------------------------------------
-- | This is a small pretty-printing library.
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE Reco... | jaspervdj/patat | lib/Patat/PrettyPrint.hs | gpl-2.0 | 14,536 | 0 | 22 | 3,448 | 3,448 | 1,820 | 1,628 | 282 | 24 |
-- Example python ast reduced using haskell
-- Input :
-- def example_empty_function():
-- pass
-- Currently evals to (manual tweaking):
-- SetBody [CallModuleFunc2 [BodyElements (CallFunctionDefFunc2 [DoSetName ExampleEmptyFunction,SetArgArgs (CallArgumentsFunc []),BodyElements PassFunc])]]
-- Simple ast :
-- f... | h4ck3rm1k3/gcc-ontology | tests/test_list.hs | gpl-3.0 | 16,214 | 0 | 128 | 5,396 | 3,830 | 2,015 | 1,815 | 408 | 17 |
upCase :: String -> Writer String
upCase s = (map toUpper s, "upCase ")
toWords :: String -> Writer [String]
toWords s = (words s, "toWords ") | hmemcpy/milewski-ctfp-pdf | src/content/1.4/code/haskell/snippet06.hs | gpl-3.0 | 143 | 0 | 7 | 27 | 64 | 33 | 31 | 4 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module Test.Utils(genThree,arbitraryThree,arbitraryEnum,readShowProp,showReadShowProp) where
import Test.QuickCheck
import Dep.Structures(Three(..))
import Dep.Printing
import Data.Word
import Debug.Trace
genThree :: Gen a -> Int -> Gen (Three ... | KommuSoft/dep-software | Test.Utils.hs | gpl-3.0 | 1,415 | 0 | 12 | 545 | 510 | 257 | 253 | 42 | 4 |
{-----------------------------------------------------------------
(c) 2008-2013 Markus Dittrich
This program is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public
License Version 3 as published by the Free Software Foundation.
This program is distribut... | markusle/pasty | src/Paster.hs | gpl-3.0 | 2,980 | 0 | 10 | 720 | 534 | 286 | 248 | 29 | 3 |
{-# LANGUAGE TemplateHaskell #-}
--------------------------------------------------------------------------------
-- |
-- Module : Dhek.Cartesian
--
--------------------------------------------------------------------------------
module Dhek.Cartesian where
-------------------------------------------------------------... | cchantep/dhek | Dhek/Cartesian.hs | gpl-3.0 | 3,610 | 0 | 11 | 552 | 646 | 354 | 292 | -1 | -1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, DeriveGeneric, StandaloneDeriving, OverloadedStrings #-}
module System.DevUtils.Statgrab (
{-
Host(..),
CPU(..),
CPUPercent(..),
Memory(..),
Load(..),
User(..),
Swap(..),
FileSystem(..),
DiskIO(..),
NetworkIO(..),
NetworkInterface(..),
Page(..),
ProcessState(..),
... | adarqui/DevUtils-Statgrab | src/System/DevUtils/Statgrab.hs | gpl-3.0 | 4,927 | 0 | 9 | 724 | 1,169 | 626 | 543 | 121 | 1 |
{-# LANGUAGE TemplateHaskell, QuasiQuotes #-}
module Jebediah.MIDI.Nord.Electro4
where
import Control.Arrow ((***))
import Jebediah.MIDI.Instrument
import Sound.MIDI.Message.Channel (Body)
mkEnum "Manual" [enum|
Lower 0
Upper 127|]
mkEnum "OrganModel" [enum|
... | mmarx/jebediah | src/Jebediah/MIDI/Nord/Electro4.hs | gpl-3.0 | 4,990 | 0 | 11 | 2,079 | 1,180 | 721 | 459 | 122 | 11 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
-- | WebSockets part of Explorer Web Server.
module RSCoin.Explorer.Web.Sockets
... | input-output-hk/rscoin-haskell | src/RSCoin/Explorer/Web/Sockets.hs | gpl-3.0 | 444 | 0 | 5 | 106 | 39 | 29 | 10 | 10 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-bigquery/gen/Network/Google/Resource/BigQuery/Tables/GetIAMPolicy.hs | mpl-2.0 | 3,600 | 0 | 12 | 766 | 389 | 236 | 153 | 63 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Lobby
( lobbyLogic
, mkLobby ) where
import qualified Data.Map.Strict as M
import qualified Data.Aeson as Ae
import Control.Monad (when)
import Data.Maybe (fromJust)
import Data.String (fromString)
import Server
import Common
import JSON
addPlayerToLobby :: C... | gizmo-mk0/kartofwar-server | src/Lobby.hs | unlicense | 6,712 | 0 | 18 | 2,110 | 1,334 | 678 | 656 | 107 | 10 |
-----------------------------------------------------------------------------
-- |
-- Module : Finance.Hqfl.Pricer.BlackScholes
-- Copyright : (C) 2016 Mika'il Khan
-- License : (see the file LICENSE)
-- Maintainer : Mika'il Khan <co.kleisli@gmail.com>
-- Stability : stable
-- Portability : portable... | cokleisli/hqfl | src/Finance/Hqfl/Pricer/BlackScholes.hs | apache-2.0 | 7,609 | 0 | 17 | 2,596 | 722 | 427 | 295 | 23 | 0 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QLineEdit_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:30
Warning : this file is machine generated - do n... | uduki/hsQt | Qtc/Gui/QLineEdit_h.hs | bsd-2-clause | 56,464 | 0 | 18 | 12,269 | 18,819 | 9,078 | 9,741 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.Wai.Handler.DevelServer (run, runNoWatch) where
import Language.Haskell.Interpreter
import Network.Wai
import Data.Text.Lazy (pack)
import Data.Text.Lazy.Encoding (encodeUtf8)
import qualified Data.... | stevenrobertson/wai-handler-devel | Network/Wai/Handler/DevelServer.hs | bsd-2-clause | 7,339 | 0 | 19 | 2,043 | 2,335 | 1,163 | 1,172 | 183 | 4 |
module Interface.Sparq.Server where
{------------------------------------------------------------------------------
- Interface to SparQ server
------------------------------------------------------------------------------}
-- standard modules
import Control.Exception
import Control.Monad
import qualified Data.Maybe... | spatial-reasoning/zeno | src/Interface/Sparq/Server.hs | bsd-2-clause | 6,582 | 0 | 23 | 2,231 | 1,435 | 721 | 714 | 126 | 7 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QTabBar.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:22
Warning : this file is machine generated - do not m... | uduki/hsQt | Qtc/Gui/QTabBar.hs | bsd-2-clause | 56,837 | 0 | 14 | 9,702 | 19,638 | 9,975 | 9,663 | -1 | -1 |
{-# LANGUAGE PackageImports #-}
import "first-yesod-app" Application (getApplicationDev)
import Network.Wai.Handler.Warp
(runSettings, defaultSettings, settingsPort)
import Control.Concurrent (forkIO)
import System.Directory (doesFileExist, removeFile)
import System.Exit (exitSuccess)
import Control.Concurrent (thr... | siroken3/petit-hackason-01 | devel.hs | bsd-2-clause | 709 | 0 | 10 | 123 | 186 | 101 | 85 | 23 | 2 |
{-# LANGUAGE CPP #-}
-- | This module provides a monadic interface to build 'TPath' values.
-- It does so using 'PathBuilder's. The construction of a 'PathBuilder'
-- is equivalent to the construction of a 'TPath' by hand, but with
-- a sometimes more convenient syntax.
--
-- For example, this path correspond... | dmcclean/HaTeX | Text/LaTeX/Packages/TikZ/PathBuilder.hs | bsd-3-clause | 3,007 | 0 | 11 | 627 | 621 | 354 | 267 | 45 | 1 |
{-# LANGUAGE FlexibleContexts, FlexibleInstances, MultiParamTypeClasses #-}
{-# LANGUAGE ViewPatterns #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.LayoutScreens
-- Description : A layout to divide a single screen into multiple screens.
-- Copyr... | xmonad/xmonad-contrib | XMonad/Layout/LayoutScreens.hs | bsd-3-clause | 4,738 | 0 | 23 | 1,219 | 1,064 | 582 | 482 | 42 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
module ETCS.DMI.Windows.MenuWindows
( mkMainWindow, mkOverrideWindow, mkSpecialWindow, mkSettingsWindow
, mkRBCContactWindow
, module ETCS.DMI.Windows.Window
) where
import ETCS.DMI.Widgets.Button
import ... | open-etcs/openetcs-dmi | src/ETCS/DMI/Windows/MenuWindows.hs | bsd-3-clause | 2,604 | 0 | 10 | 505 | 804 | 418 | 386 | 40 | 1 |
module Language.Grass.Transpiler.Untyped.Transformation (
Transf
, aNormalize
, elimVars
, liftLambdas
, normalize
, DefInfo (..)
, transfDef
, transfDefs
, CharSet (..)
, defaultCharSet
, wideCharSet
, plantTerm
, plantDefs
, plant
) where
import Control.Monad.Except
import Language.G... | susisu/Grassy | src/Language/Grass/Transpiler/Untyped/Transformation.hs | bsd-3-clause | 7,519 | 0 | 18 | 2,164 | 3,095 | 1,551 | 1,544 | 181 | 7 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ViewPatterns #-}
-- | Main stack tool entry point.
module Main where
import Control.Exception
import ... | joozek78/stack | src/main/Main.hs | bsd-3-clause | 38,203 | 0 | 30 | 14,086 | 7,698 | 3,908 | 3,790 | -1 | -1 |
module LessWrong.HL.Parser.Type where
import LessWrong.COC.Context (Context (..))
import LessWrong.COC.Eval ()
import LessWrong.COC.Type (Name, Term (..), Var (..))
data Inductive = Inductive { indName :: Name
, indParams :: Context Term
... | zmactep/less-wrong | src/LessWrong/HL/Parser/Type.hs | bsd-3-clause | 1,105 | 0 | 10 | 458 | 289 | 171 | 118 | 25 | 0 |
{-# LANGUAGE OverloadedStrings #-}
import Data.List.Split
import Control.Monad
import Control.Arrow
import qualified Data.Text as T
import qualified Data.Text.IO as T
import Data.List
import System.Process
import System.Environment
import System.FilePath
import System.Directory
preprocessorPragma = "{-# OPTIONS_GHC... | lukexi/strip-ths | app/Main.hs | bsd-3-clause | 2,658 | 0 | 16 | 613 | 455 | 245 | 210 | 43 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
module Backend where
import Prelude as P
import Control.Lens
import System.Console.GetOpt
i... | tmcdonell/accelerate-lulesh | src/Backend.hs | bsd-3-clause | 3,199 | 0 | 10 | 780 | 551 | 325 | 226 | 29 | 2 |
{-# OPTIONS_GHC -F -pgmF htfpp #-}
module VectorTests.Vector4 where
import Geometry.Space
import Geometry.Space.Quaternion
import Geometry.Space.Transform
import Test.Framework
import VectorTests.VectorGenerators ()
-- testing units
i :: Quaternion Double
i = Q 1 0 0 0 :: Quaternion Double
j :: Quat... | achirkin/fgeom | test/VectorTests/Vector4.hs | bsd-3-clause | 2,072 | 0 | 13 | 516 | 833 | 436 | 397 | 43 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Heist.Tests
( tests
) where
------------------------------------------------------------------------------
import Blaze.ByteString.Builder
import Control.Monad.State
import qualified Data.ByteString.Char8 as B
import Data.List
import ... | silkapp/heist | test/suite/Heist/Tests.hs | bsd-3-clause | 7,281 | 0 | 13 | 1,727 | 1,627 | 816 | 811 | 148 | 1 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
-- import qualified StackVM as S
import StackVM
import qualified ExprT as E
import Parser
import Data.Maybe
--module Calc where
--eval :: ExprT -> Integer
-- class ExprT a where
-- eval :: ExprT -> a
-- instance ExprT where
eval :: E.ExprT -> In... | pyskell/haskell-random | cis194-hw5/Calc.hs | mit | 2,267 | 3 | 10 | 605 | 842 | 427 | 415 | 59 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.