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 WJR.Imports
( module Yesod
, Text
, module Data.Map
, module Control.Monad
, module Control.Applicative
, module Data.String
, module Data.Maybe
, module Data.Traversable
) where
import Yesod
import Data.Text (Text)
import Data.Map (Map,toList,fromList)
import Control.Monad (... | drpowell/Prokka-web | WJR/Imports.hs | gpl-3.0 | 453 | 0 | 5 | 86 | 132 | 85 | 47 | 17 | 0 |
{- |
Facilities for parsing power system data from text in the custom format
used for this program, i.e. kind of the reciprocal to `Text.Render`.
-}
module IO.Parse.Grid.Simple
(
-- * Grid parsing
parseGrid
-- * Line parsing
, parseLine
, parseLines
-- * Bus parsing
, parseBus
, parseBuses
) where
-- Local:
... | JohanPauli/Hunger | src/IO/Parse/Grid/Simple.hs | gpl-3.0 | 2,023 | 0 | 9 | 488 | 507 | 257 | 250 | 77 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-adexchange-buyer/gen/Network/Google/Resource/AdExchangeBuyer/PretargetingConfig/Update.hs | mpl-2.0 | 3,960 | 0 | 14 | 841 | 497 | 293 | 204 | 76 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-servicemanagement/gen/Network/Google/Resource/ServiceManagement/Services/Undelete.hs | mpl-2.0 | 5,781 | 0 | 18 | 1,389 | 865 | 505 | 360 | 122 | 1 |
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
import MoreThanSufficientlyLongModuleNameWithSome
(compact, fit, inA, items, layout, not, that, will)
import TestJustAbitToLongModuleNameLikeThisOneIs ()
import TestJustShortEnoughModuleNameLikeThisOne ()... | lspitzner/brittany | data/Test476.hs | agpl-3.0 | 321 | 0 | 5 | 29 | 43 | 28 | 15 | 4 | 0 |
{-# OPTIONS -fglasgow-exts #-}
module Plugin where
import API
import Data.Dynamic
my_fun = plugin { function = "plugin says \"hello\"" }
resource_dyn :: Dynamic
resource_dyn = toDyn my_fun
| stepcut/plugins | testsuite/dynload/simple/Plugin.hs | lgpl-2.1 | 193 | 0 | 6 | 32 | 39 | 24 | 15 | 7 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Kubernetes.V1.EndpointSubset where
import GHC.Generics
import Kubernetes.V1.EndpointAddress
import Kubernetes.V1.EndpointPort
import qualified ... | minhdoboi/deprecated-openshift-haskell-api | kubernetes/lib/Kubernetes/V1/EndpointSubset.hs | apache-2.0 | 1,521 | 0 | 10 | 240 | 119 | 73 | 46 | 17 | 0 |
-- | The main Robot interface.
module Test.Robot
(
-- * Running your robot
Robot() -- hide implementation
, runRobot
-- * Key and button constants
, module Test.Robot.Types
-- * Doing things
, Pressable(press, release, hold)
, moveBy
, moveTo
, tap
-- * Mis... | lfairy/robot | Test/Robot.hs | apache-2.0 | 2,461 | 0 | 9 | 620 | 427 | 259 | 168 | 43 | 1 |
{-# LANGUAGE OverloadedStrings, NoImplicitPrelude, FlexibleContexts
#-}
module Ethereum.Analyzer.EVM.CfgAugWithTopNPassSpec
( spec
) where
import Protolude hiding (show)
import Ckev.In.Text
import Data.Text as DT
import Ethereum.Analyzer.EVM
import Ethereum.Analyzer.TestData.Basic
import Test.Hspec
spec :: Sp... | zchn/ethereum-analyzer | ethereum-analyzer/test/Ethereum/Analyzer/EVM/CfgAugWithTopNPassSpec.hs | apache-2.0 | 795 | 0 | 19 | 180 | 182 | 100 | 82 | 22 | 1 |
{-# LANGUAGE OverloadedStrings, NamedFieldPuns #-}
module FormEngine.FormElement.Rendering (
ElemAction
, ElemBehaviour(..)
, foldElements
, renderElement
) where
import Prelude
import Data.Monoid ((<>))
import Data.Foldable (foldlM)
import Data.Maybe (fromMaybe)
import Data.Char (chr)
--import Debug.Trace (traceSh... | DataStewardshipPortal/ds-form-engine | FormElement/Rendering.hs | apache-2.0 | 21,774 | 0 | 29 | 4,579 | 5,714 | 2,751 | 2,963 | 435 | 5 |
{-# LANGUAGE NoMonomorphismRestriction #-}
module Tests.OpsTest where
import Ops
import Lambda
import Prelude ( ($), Int, (==), return, sequence, (>>=), and, (.), IO, Bool )
import qualified Control.Monad
test1 :: (LOps l) => l Int
test1 = app (lam $ \x -> lit 3 + x) (lit 2)
test2 :: (LOps l) => l Int
test2 = app (... | agobi/sizechecking | Tests/OpsTest.hs | bsd-2-clause | 1,031 | 0 | 11 | 259 | 463 | 244 | 219 | 36 | 1 |
module HaskHOL.Lib.IndTypes.Pre2 where
import HaskHOL.Core hiding (typeOf, lefts)
import HaskHOL.Core.Kernel (typeOf)
import qualified HaskHOL.Core.State as S (mkType)
import HaskHOL.Deductive
import HaskHOL.Lib.Pair
import HaskHOL.Lib.Recursion
import HaskHOL.Lib.Nums
import HaskHOL.Lib.CalcNum
import HaskHOL.Lib.WF... | ecaustin/haskhol-math | src/HaskHOL/Lib/IndTypes/Pre2.hs | bsd-2-clause | 11,566 | 0 | 22 | 4,921 | 3,731 | 1,815 | 1,916 | -1 | -1 |
{-# LANGUAGE ForeignFunctionInterface #-}
module Grenade.Layers.Internal.Pooling (
poolForward
, poolBackward
) where
import qualified Data.Vector.Storable as U ( unsafeToForeignPtr0, unsafeFromForeignPtr0 )
import Foreign ( mallocForeignPtrArray, withForeignPtr )
import Foreign.Ptr ( Ptr ... | HuwCampbell/grenade | src/Grenade/Layers/Internal/Pooling.hs | bsd-2-clause | 2,565 | 0 | 17 | 563 | 760 | 388 | 372 | 44 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Language.Drasil.Chunk.DefinedQuantity (DefinedQuantityDict, dqd, dqdNoUnit, dqd',
dqdQd, dqdWr) where
import Language.Drasil.Classes.Core (HasUID(uid), HasSymbol(symbol))
import Language.Drasil.Classes (NamedIdea(term), Idea(getA), Concept,
Definition(defn), ConceptDomain(cd... | JacquesCarette/literate-scientific-software | code/drasil-lang/Language/Drasil/Chunk/DefinedQuantity.hs | bsd-2-clause | 2,546 | 0 | 9 | 527 | 707 | 399 | 308 | 38 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module Game.Types where
import Data.Matrix
import GHC.Generics
import Data.Aeson
import Data.Aeson.TH
import Data.Functor
data Move = Move {
player :: String,
outerPos :: Int,
innerPos :: Int
} deriving (Generic, Show, Read, Eq)
data Square = X | ... | octopuscabbage/UltimateTicTacToeServer | src/Game/Types.hs | bsd-3-clause | 890 | 0 | 13 | 162 | 339 | 190 | 149 | 31 | 1 |
-- | Conduit of keys pressed by xinput
module where
| chrisdone/xinput-conduit | src/.hs | bsd-3-clause | 54 | 1 | 4 | 12 | 7 | 3 | 4 | -1 | -1 |
{-# OPTIONS -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.C.String
-- Copyright : (c) The FFI task force 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : ffi@haskell.org
-- Stability ... | OS2World/DEV-UTIL-HUGS | libraries/Foreign/C/String.hs | bsd-3-clause | 4,462 | 0 | 11 | 876 | 608 | 363 | 245 | 45 | 1 |
{-# LANGUAGE LambdaCase, PatternGuards, ViewPatterns #-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns #-}
module Idris.Elab.Term where
import Idris.AbsSyntax
import Idris.AbsSyntaxTree
import Idris.DSL
import Idris.Delaborate
import Idris.Error
import Idris.ProofSearch
import Idris.Output (pshow)
import Idris.Core.Case... | BartAdv/Idris-dev | src/Idris/Elab/Term.hs | bsd-3-clause | 109,952 | 965 | 16 | 48,965 | 12,431 | 9,686 | 2,745 | 1,955 | 183 |
{-# LANGUAGE DeriveDataTypeable #-}
module Control.Pipe.Coroutine (
Coroutine,
resume,
suspend,
coroutine,
step,
terminate
) where
import Control.Monad
import Control.Pipe
import Control.Pipe.Exception
import qualified Control.Exception as E
import Data.Typeable
import Prelude hiding (catch)
data Corout... | pcapriotti/pipes-extra | Control/Pipe/Coroutine.hs | bsd-3-clause | 1,087 | 0 | 11 | 297 | 496 | 259 | 237 | 37 | 1 |
{-# LANGUAGE RankNTypes, ScopedTypeVariables, GADTs #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- | @operational@-style programs for 'MonadPlus'. See the
-- documentation for "Control.Applicative.Operational" and
-- "Control.Monad.Operational" for guidanc... | sacundim/free-operational | Control/MonadPlus/Operational.hs | bsd-3-clause | 1,859 | 0 | 11 | 433 | 511 | 277 | 234 | 40 | 3 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module RunstaskellSpec where
import Control.Exception
import System.Exit
import System.FilePath
import System.IO
import System.IO.Silently
import System.IO.Temp
import Test.H... | soenkehahn/runstaskell | test/RunstaskellSpec.hs | bsd-3-clause | 3,049 | 0 | 21 | 930 | 657 | 325 | 332 | 77 | 1 |
module Day23 (part1,part2,test1,part1Solution, part2Solution) where
import Control.Applicative
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as M
import Data.Sequence (Seq)
import qualified Data.Sequence as S
import Text.Trifecta
type Registe... | z0isch/aoc2016 | src/Day23.hs | bsd-3-clause | 4,599 | 0 | 12 | 1,208 | 1,629 | 821 | 808 | 95 | 10 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE PatternSynonyms #-}
module Pt.StateMachine where
import Ptui.Types
import qualified Data.ByteString.Lazy.Char8 as B
import qualified Data.ByteString.Lazy.UTF8 as U
import Data.Char (isDigit)
import Data.List (foldl',uncons)
import Data.Mayb... | mrak/ptui | src/Pt/StateMachine.hs | bsd-3-clause | 11,621 | 0 | 11 | 3,056 | 5,385 | 2,749 | 2,636 | 183 | 68 |
{-# LANGUAGE OverloadedStrings #-}
module ETA.CodeGen.Foreign where
import ETA.Main.DynFlags
import ETA.Types.Type
import ETA.Types.TyCon
import ETA.StgSyn.StgSyn
import ETA.Prelude.ForeignCall
import ETA.Utils.FastString
import ETA.Utils.Util
import ETA.Util
import ETA.CodeGen.ArgRep
import ETA.CodeGen.Env
import ET... | alexander-at-github/eta | compiler/ETA/CodeGen/Foreign.hs | bsd-3-clause | 5,276 | 0 | 15 | 1,721 | 1,381 | 726 | 655 | 118 | 10 |
module Main where
import Command
main :: IO ()
main = execCommand
| ku00/meow | app/Main.hs | bsd-3-clause | 68 | 0 | 6 | 14 | 22 | 13 | 9 | 4 | 1 |
module Language.Modelica.Test.Expression (test) where
import qualified Language.Modelica.Parser.Expression as Expr
import Language.Modelica.Test.Utility (testFunc)
test :: IO [Bool]
test = do
res1 <- mapM (testFunc Expr.expression) $
"true <= (false * (5.0^(, , ))^(, \"bla\", 2.0))" :
"3.0 : 7.0 + 8.0 ... | xie-dongping/modelicaparser | test/Language/Modelica/Test/Expression.hs | bsd-3-clause | 3,163 | 0 | 41 | 954 | 728 | 365 | 363 | 99 | 1 |
-- | Periodic background activities that Kademlia must perform
module Network.DHT.Kademlia.Workers (
module Network.DHT.Kademlia.Workers.Interactive
, module Network.DHT.Kademlia.Workers.Persistence
, module Network.DHT.Kademlia.Workers.Reapers
) where
import Network.DHT.Kademlia.Workers.Interactive
import Network.D... | phylake/kademlia | Network/DHT/Kademlia/Workers.hs | bsd-3-clause | 396 | 0 | 5 | 31 | 62 | 47 | 15 | 7 | 0 |
{-# LANGUAGE GeneralizedNewtypeDeriving, CPP, TypeSynonymInstances, FlexibleInstances #-}
-----------------------------------------------------------------------------
-- |
-- Module : Perfs
-- Copyright : (c)2011, Texas Instruments France
-- License : BSD-style (see the file LICENSE)
--
-- Maintainer ... | ChristopheF/OpenCLTestFramework | Client/Perfs.hs | bsd-3-clause | 5,643 | 0 | 28 | 1,224 | 1,742 | 896 | 846 | 108 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Chess.Search.SearchResult
( SearchResult(..)
, (<@>)
, (<++>)
, first
, second
, eval
, moves
) where
import Control.Lens
import Control.Monad
import Data.Maybe
import qualified Chess.Move as... | phaul/chess | Chess/Search/SearchResult.hs | bsd-3-clause | 1,147 | 4 | 10 | 348 | 340 | 188 | 152 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
{-# OPTIONS_GHC -fno-warn-implicit-prelude #-}
module Paths_HaskellEngine (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
import Data.... | MyForteIsTimeTravel/HaskellEngine | dist/build/autogen/Paths_HaskellEngine.hs | bsd-3-clause | 1,816 | 0 | 10 | 223 | 371 | 215 | 156 | 31 | 1 |
myNot True = False
myNot False = True
sumList (x:xs) = x + sumList xs
sumList [] = 0
| NeonGraal/rwh-stack | ch03/add.hs | bsd-3-clause | 90 | 3 | 6 | 24 | 59 | 24 | 35 | 4 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
module KMC.Util.Bits ( DoubleBits(combine, split), packCombine, unpackSplit ) where
import Data.Bits (shift, (.|.), (.&.), complement, finiteBitSize, clearBit, Bits(bit), FiniteBits)
import Data.Word (Word8, Word16, Word32, Word64)
-- | Pack two 8-bit wo... | diku-kmc/repg | src/KMC/Util/Bits.hs | mit | 2,101 | 0 | 13 | 507 | 671 | 382 | 289 | 37 | 1 |
module Main where
import Web.GitHub.CLI.Options
import Web.GitHub.CLI.Actions
import Options.Applicative
import Network.Octohat.Types (OrganizationName(..), TeamName(..))
import qualified Data.Text as T (pack)
accessBotCLI :: TeamOptions -> IO ()
accessBotCLI (TeamOptions (ListTeams nameOfOrg)) =
findTeamsInOrgani... | stackbuilders/octohat | src-demo/Web/GitHub/CLI/Main.hs | mit | 1,385 | 0 | 9 | 346 | 332 | 175 | 157 | 26 | 1 |
import Universum
import Test.Hspec (hspec)
import Spec (spec)
main :: IO ()
main =
hspec spec
| input-output-hk/pos-haskell-prototype | util/test/test.hs | mit | 131 | 0 | 7 | 53 | 45 | 23 | 22 | 6 | 1 |
{-# LANGUAGE CPP #-}
{-|
-}
module Hledger.UI.UIOptions
where
import Data.Default (def)
import Data.List (intercalate)
import qualified Data.Map as M
import Data.Maybe (fromMaybe)
import Lens.Micro (set)
import System.Environment (getArgs)
import Hledger.Cli hiding (packageversion, progname, prognameandversion)
imp... | adept/hledger | hledger-ui/Hledger/UI/UIOptions.hs | gpl-3.0 | 4,721 | 0 | 13 | 1,057 | 800 | 448 | 352 | 72 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Stack.Options
(BuildCommand(..)
,GlobalOptsContext(..)
,benchOptsParser
,buildOptsParser
,cleanOptsParser
,configCmdSetParser
,configOptsParser
,dockerOptsParser
,dockerCleanupOptsParser
,dotOptsParser
... | phadej/stack | src/Stack/Options.hs | bsd-3-clause | 37,388 | 0 | 33 | 14,151 | 6,527 | 3,247 | 3,280 | 872 | 9 |
-- Par monad and thread representation; types
--
-- Visibility: HpH.Internal.{IVar,Sparkpool,Threadpool,Scheduler}
-- Author: Patrick Maier <P.Maier@hw.ac.uk>
-- Created: 28 Sep 2011
--
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DefaultSignatures #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE TemplateHaskel... | robstewart57/hdph-rs | src/Control/Parallel/HdpH/Internal/Type/Par.hs | bsd-3-clause | 3,793 | 0 | 12 | 829 | 632 | 384 | 248 | 59 | 1 |
{-# LANGUAGE TypeOperators, TypeSynonymInstances #-}
{-# LANGUAGE GADTs, KindSignatures #-}
{-# OPTIONS_GHC -Wall #-}
-- {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- TEMP
-- {-# OPTIONS_GHC -fno-warn-unused-binds #-} -- TEMP
----------------------------------------------------------------------
-- |
-- Module ... | capn-freako/circat | src/Circat/LinearMap.hs | bsd-3-clause | 1,746 | 0 | 10 | 416 | 359 | 212 | 147 | 19 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE RecordWildCards #-}
import Control.Monad (unless)
import Data.Monoid
import Data.Version (showVersion)
import Options.Applicative
import System.Environment (getEnvironment)
import ... | frontrowed/yesod | yesod-bin/main.hs | mit | 11,794 | 145 | 21 | 4,793 | 2,448 | 1,276 | 1,172 | 202 | 14 |
module Object.Check where
-- $Id$
import Object.Data
import Object.Infer
import Autolib.Reporter.Type
import Autolib.ToDoc
import Autolib.Size
import Autolib.TES.Term
import Autolib.TES.Position
import Autolib.TES.Identifier
import Data.Typeable
import Inter.Types
import qualified Challenger as C
data TypeCheck ... | Erdwolf/autotool-bonn | src/Object/Check.hs | gpl-2.0 | 1,096 | 4 | 12 | 291 | 337 | 175 | 162 | -1 | -1 |
athing = and [a, b]
| mpickering/hlint-refactor | tests/examples/AndList.hs | bsd-3-clause | 20 | 0 | 6 | 5 | 15 | 8 | 7 | 1 | 1 |
-- A Pandoc filter to turn `ref:xxx` into <span class="ref">xxx</span
-- Used to create references for HTML processed with refbull
-- Matti Pastell 2011 <matti.pastell@helsinki.fi>
-- Requires Pandoc 1.8
import Text.Pandoc
import Text.Pandoc.Shared
main = interact $ jsonFilter $ bottomUp refs
refs :: Inline -> Inl... | danielchatfield/tails | wiki/src/promote/slides/Tails-SIT_conference-201206/pandoc-filters/refbull_filter.hs | gpl-3.0 | 497 | 2 | 11 | 93 | 126 | 63 | 63 | 8 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-|
This is a small module that contains a single enumeration type.
Note that we can't include this in "Database.Tables" because of
a restriction on Template Haskell.
-}
module Database.DataType where
import Database.Persist.TH
data ShapeType = BoolNode | Node | Hybrid | Region
deri... | cchens/courseography | hs/Database/DataType.hs | gpl-3.0 | 373 | 0 | 6 | 57 | 51 | 30 | 21 | 6 | 0 |
<?xml version='1.0' encoding='ISO-8859-1' ?>
<!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">
<!-- title -->
<title>Spring Rich Simple Sample Help</title>
<!-- maps -->
<maps... | lievendoclo/Valkyrie-RCP | valkyrie-rcp-samples/valkyrie-rcp-simple-sample/src/main/resources/help/simple.hs | apache-2.0 | 756 | 56 | 42 | 140 | 275 | 140 | 135 | -1 | -1 |
{-# LANGUAGE MultiParamTypeClasses #-}
import Data.Coerce (Coercible)
instance Coercible () ()
main = return ()
| ezyang/ghc | testsuite/tests/typecheck/should_fail/TcCoercibleFail2.hs | bsd-3-clause | 115 | 0 | 6 | 18 | 35 | 18 | 17 | 4 | 1 |
module Main (main) where
import Data.Bits
{-
Do some bitwise operations on some large numbers.
These number are designed so that they are likely to exercise all the
interesting split-up cases for implementations that implement Integer
as some sort of sequence of roughly word-sized values. They are
essentially random... | urbanslug/ghc | testsuite/tests/lib/integer/integerBits.hs | bsd-3-clause | 8,148 | 0 | 9 | 905 | 493 | 263 | 230 | 50 | 1 |
-- #hide, prune, ignore-exports
module A where
| siddhanathan/ghc | testsuite/tests/haddock/should_compile_noflag_haddock/haddockC017.hs | bsd-3-clause | 47 | 0 | 2 | 7 | 5 | 4 | 1 | 1 | 0 |
{-# LANGUAGE CPP,
TupleSections, LambdaCase, RecordWildCards,
OverloadedLists, OverloadedStrings,
FlexibleContexts, RankNTypes, ScopedTypeVariables,
ViewPatterns, MultiWayIf #-}
#include "ghc-compat.h"
module HsToCoq.ConvertHaskell.Expr (
convertTypedModuleBindin... | antalsz/hs-to-coq | src/lib/HsToCoq/ConvertHaskell/Expr.hs | mit | 60,967 | 0 | 30 | 15,791 | 15,896 | 7,928 | 7,968 | -1 | -1 |
module Handler.Quizcreator where
import Assets (unsignedProcentField, unsignedIntField, maybeInt,
maybeDouble, encodeExamAttributes, titleTextField,
noSpacesTextField, getAllExams)
import Data.Text (splitOn)
import Data.List.Split (chunksOf)
import Data.List (cycle)
import Import
import ... | cirquit/quizlearner | quizlearner/Handler/Quizcreator.hs | mit | 7,317 | 0 | 22 | 2,604 | 1,247 | 641 | 606 | -1 | -1 |
module Handler.Home where
import Import
import Data.Maybe
import Yesod.Auth
getHomeR :: Handler Html
getHomeR = do
loggedIn <- isJust <$> maybeAuthId
defaultLayout $ do
setTitle "Home - Word Guesser"
$(widgetFile "home")
| dphilipson/word_guesser_web | Handler/Home.hs | mit | 247 | 0 | 12 | 57 | 66 | 33 | 33 | 10 | 1 |
module Lexer where
import Text.Parsec.String (Parser)
import Text.Parsec.Language (emptyDef)
import Text.Parsec.Prim (many)
import qualified Text.Parsec.Token as Tok
lexer :: Tok.TokenParser ()
lexer = Tok.makeTokenParser style
where
ops = ["+","*","-","/",";","=",",","<",">","|",":"]
names = ["def","exter... | TorosFanny/kaleidoscope | src/chapter6/Lexer.hs | mit | 959 | 0 | 10 | 216 | 318 | 180 | 138 | 28 | 1 |
module Main where
import LI11718
import qualified Tarefa3_2017li1g180 as T3
import System.Environment
import Text.Read
main = do
args <- getArgs
case args of
["movimenta"] -> do
str <- getContents
let params = readMaybe str
case params of
Nothing ->... | hpacheco/HAAP | examples/plab/svn/2017li1g180/src/RunT3.hs | mit | 531 | 0 | 17 | 164 | 141 | 73 | 68 | 16 | 4 |
module Feature.Article.PG where
import ClassyPrelude
import Feature.Article.Types
import Feature.Auth.Types
import Feature.Common.Types
import Platform.PG
import Database.PostgreSQL.Simple.SqlQQ
import Database.PostgreSQL.Simple
import Database.PostgreSQL.Simple.Types
addArticle :: PG r m => UserId -> CreateArticle -... | eckyputrady/haskell-scotty-realworld-example-app | src/Feature/Article/PG.hs | mit | 5,884 | 0 | 12 | 1,773 | 953 | 495 | 458 | -1 | -1 |
{-# LANGUAGE BangPatterns, DataKinds, DeriveDataTypeable, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Hadoop.Protos.XAttrProtos.SetXAttrResponseProto (SetXAttrResponseProto(..)) where
import Prelude ((+), (/))
import qualified Prelude as Prelude'
import qualified Dat... | alexbiehl/hoop | hadoop-protos/src/Hadoop/Protos/XAttrProtos/SetXAttrResponseProto.hs | mit | 2,810 | 1 | 16 | 531 | 554 | 291 | 263 | 53 | 0 |
-----------------------------------------------------------------------------
--
-- Module : SGC.Object.Internal.Generic
-- Copyright :
-- License : MIT
--
-- Maintainer :
-- Stability :
-- Portability :
--
-- |
--
-- {-# OPTIONS_GHC -fprint-explicit-kinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUA... | fehu/hsgc | SGC/Object/Internal/Generic.hs | mit | 10,150 | 20 | 16 | 2,270 | 2,255 | 1,242 | 1,013 | -1 | -1 |
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE TypeInType #-}
{-# LANGUAGE TypeOperators #-}
{-|
Handles the "Language.LSP.T... | alanz/haskell-lsp | lsp-types/src/Language/LSP/VFS.hs | mit | 16,541 | 1 | 22 | 3,859 | 4,085 | 2,102 | 1,983 | -1 | -1 |
{- Copyright (C) 2014 Calvin Beck
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, ... | Chobbes/SurvivalPlot | SurvivalPlot/Parser.hs | mit | 6,096 | 0 | 13 | 2,258 | 988 | 500 | 488 | 98 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Web.Scotty
-- Bare
main :: IO ()
main = scotty 3000 $ do
get "/" $ text "Hello Haskeller on Heroku with Stackage!"
| yogeshsajanikar/heroku-haskell-stackage-tutorial | src/Main.hs | mit | 180 | 0 | 9 | 36 | 46 | 24 | 22 | 6 | 1 |
module Main where
import qualified Data.Map as M
import Morse
import Test.QuickCheck
allowedChars :: String
allowedChars = M.keys letterToMorse
allowedMorse :: [Morse]
allowedMorse = M.elems letterToMorse
charGen :: Gen Char
charGen = elements allowedChars
morseGen :: Gen Morse
morseGen ... | deciduously/Haskell-First-Principles-Exercises | 4-Getting real/14-Testing/code/morse/tests/tests.hs | mit | 536 | 0 | 11 | 110 | 143 | 78 | 65 | 18 | 1 |
{-# LANGUAGE OverloadedStrings, RecordWildCards #-}
module JsonSettings where
import Data.Yaml
import Data.Aeson
import qualified Data.ByteString.Lazy as BS
import Data.Functor
jsonSettingsMain :: IO ()
jsonSettingsMain = do
s <- either (error.show) id <$> decodeFileEither "gipeda.yaml"
let o = object [ "set... | nomeata/gipeda | src/JsonSettings.hs | mit | 382 | 0 | 13 | 63 | 110 | 60 | 50 | 11 | 1 |
module GHCJS.DOM.SQLError (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/SQLError.hs | mit | 38 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
module Cenary.Crypto.Keccak where
import Crypto.Hash (Digest, Keccak_256, hash)
import qualified Data.ByteString as BS
import qualified Data.ByteString.Char8 as BS8
import Data.Monoid ((<>))
import Text.Read (readMaybe)
keccak256 :: (Read b, Num b) => String -> Maybe b
keccak256 = readMa... | yigitozkavci/ivy | src/Cenary/Crypto/Keccak.hs | mit | 540 | 0 | 10 | 165 | 145 | 86 | 59 | 15 | 1 |
module Main where
import Prelude hiding (getContents, putStr)
import Data.Fortran.Unformatted (fromUnformatted)
import Data.ByteString.Lazy (getContents, putStr)
import Control.Monad (liftM)
main :: IO ()
main = liftM fromUnformatted getContents >>= putStr
| albertov/funformatted | Main.hs | mit | 259 | 0 | 6 | 31 | 75 | 45 | 30 | 7 | 1 |
data Expr = Val Int | Div
eval :: Expr -> Int
eval (Val n) = n
eval (`Div` x y) = eval x / eval y
safediv :: Int -> Int -> Maybe Int
safediv n m = if m == 0 then
Nothing
else
Just (n / m) | ChristopherElliott/Portfolio | haskell/src/utility.hs | mit | 249 | 1 | 8 | 111 | 112 | 58 | 54 | -1 | -1 |
{-# LANGUAGE ViewPatterns #-}
module Data.MemoizingTable where
{--
Captures the idea that you get information on your data sets incrementally. So
you start with the known lookups, add the ones you don't know yet, refine those,
then add the refined lookups to the known sets.
--}
import Prelude hiding (init)
import C... | geophf/1HaskellADay | exercises/HAD/Data/MemoizingTable.hs | mit | 2,106 | 0 | 15 | 446 | 732 | 393 | 339 | -1 | -1 |
module Render.Setup where
import Data.IORef ( IORef, newIORef )
import Foreign ( newArray )
import Graphics.UI.GLUT hiding (Sphere, Plane)
import Geometry.Object
import Render.Antialias
data State = State { zoomFactor :: IORef GLfloat }
type Image = PixelData (Color3 GLfloat)
fstSphere :: Surface
fstSphere = Sphere ... | dongy7/raytracer | src/Render/Setup.hs | mit | 1,970 | 0 | 15 | 529 | 790 | 427 | 363 | 52 | 1 |
{-| Unittest runner for ganeti-htools.
-}
{-
Copyright (C) 2009, 2011, 2012, 2013 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) a... | kawamuray/ganeti | test/hs/htest.hs | gpl-2.0 | 4,633 | 0 | 12 | 772 | 690 | 454 | 236 | 120 | 1 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE CPP #-}
module Darcs.Patch.Prim.V1.Coalesce
()
where
import Prelude hiding ( pi )
import Control.Arrow ( second )
import Data.Maybe ( fromMaybe )
import Data.Map ( elems, fromListWith, mapWithKey )
import qualified Data.ByteString as B (ByteString, empty)
im... | DavidAlphaFox/darcs | src/Darcs/Patch/Prim/V1/Coalesce.hs | gpl-2.0 | 10,881 | 0 | 23 | 2,848 | 3,618 | 1,865 | 1,753 | -1 | -1 |
{-
All properties from the article.
-}
module Properties where
import HipSpec
import Prelude(Bool(..))
import Definitions
-- Theorems
prop_T01 :: Nat -> Prop Nat
prop_T01 x = double x =:= x + x
prop_T02 :: [a] -> [a] -> Prop Nat
prop_T02 x y = length (x ++ y ) =:= length (y ++ x)
prop_T03 :: [a] -> [a] -> Pr... | danr/hipspec | testsuite/prod/Properties.hs | gpl-3.0 | 4,732 | 0 | 13 | 1,173 | 2,830 | 1,475 | 1,355 | 108 | 1 |
-- | Account transactions.
module ChimericLedgers.Transaction.Account where
import Control.Monad (mfilter)
import ChimericLedgers.Address
import ChimericLedgers.Value
-- | Account based transaction.
data AccTx = AccTx
{ -- | To allow transactions that create money and ass... | capitanbatata/sandbox | chimeric-ledgers/src/ChimericLedgers/Transaction/Account.hs | gpl-3.0 | 3,446 | 0 | 13 | 841 | 593 | 340 | 253 | 34 | 1 |
module Main where
import Data.Tree
import System.Environment
import DocGraph
main :: IO ()
main = do
args <- getArgs
tree <- traverseAllIO $ if null args
then "test-data"
else head args
putStr $ drawTree $ fmap show tree
let dot ... | wldmr/haskell-docgraph | src/Main.hs | gpl-3.0 | 436 | 0 | 10 | 165 | 124 | 57 | 67 | 17 | 2 |
module WildFire.RunWFStatic where
import WildFire.WildFireModelStatic
import qualified Data.HashMap as Map
import qualified WildFire.WildFireFrontend as Front
import System.Random
import System.IO
import Data.Maybe
import Data.List
import Debug.Trace
import qualified Graphics.Gloss as GLO
import Graphics.Gloss.Inte... | thalerjonathan/phd | coding/prototyping/haskell/PureAgentsPar/src/WildFire/RunWFStatic.hs | gpl-3.0 | 3,629 | 0 | 12 | 1,204 | 799 | 427 | 372 | 60 | 3 |
data Pair a b = P a b | hmemcpy/milewski-ctfp-pdf | src/content/1.6/code/haskell/snippet09.hs | gpl-3.0 | 21 | 0 | 6 | 7 | 14 | 8 | 6 | 1 | 0 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module CheckCommon where
import qualified Data.IntMap as IM
import qualified Data.Set as S
import qualified Data.List as L
import qualified Data.Vector as Vec
import Data.Vector (Vector)
import Test.QuickCheck
import Control.Applicative... | lostbean/DeUni | profile/CheckCommon.hs | gpl-3.0 | 3,020 | 0 | 12 | 744 | 1,075 | 566 | 509 | 72 | 2 |
module Jinzamomi.Driver.Krkr (
Opt,
opt,
execute
) where
import qualified Data.ByteString.Lazy as B
import qualified Data.Aeson as JSON
import qualified Text.Parsec.Error as P
import qualified Data.Text as T
import qualified Data.Text.IO as TIO
import qualified Language.TJS as TJS
import qualified Language.KAG a... | ledyba/Jinzamomi | src/Jinzamomi/Driver/Krkr.hs | gpl-3.0 | 3,444 | 0 | 18 | 760 | 1,134 | 576 | 558 | 87 | 3 |
module TestArgs where
import Args
args1 = ["-a", "--snap", "--init"]
t1 = compilerOpts args1
t2 = compilerOpts ["-a", "--start", "2015-11-01", "foo", "bar"]
t3 = compilerOpts ["-a"]
| blippy/sifi | test/TestArgs.hs | gpl-3.0 | 206 | 0 | 6 | 50 | 63 | 38 | 25 | 6 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-compute/gen/Network/Google/Resource/Compute/GlobalForwardingRules/SetTarget.hs | mpl-2.0 | 4,413 | 0 | 17 | 1,017 | 474 | 283 | 191 | 80 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/ConnectionTypes/Get.hs | mpl-2.0 | 3,305 | 0 | 14 | 773 | 421 | 249 | 172 | 64 | 1 |
module Search
( search
, searchComplex
, searchProxim
) where
import qualified Data.ByteString.Char8 as B
import qualified Data.Text as T
import qualified Postings as PS
import Control.Monad.Free
import Data.Maybe (fromMaybe)
import Data.Text.Encoding... | jagg/search | src/Search.hs | apache-2.0 | 2,975 | 0 | 12 | 705 | 996 | 513 | 483 | 43 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Forms.Post where
import Model.CoreTypes
import Data.Time
import Text.Blaze.Html (Html)
import Text.Digestive hiding (Post)
import Text.Digestive.Bootstrap
postForm :: Monad m => UTCTime -> Form Html m Post
postForm now =
Post <$> "title" .: text Nothing
<*> "dat... | julienchurch/julienchurch.com | app/Forms/Post.hs | apache-2.0 | 780 | 0 | 11 | 183 | 220 | 119 | 101 | 22 | 1 |
module Example.SingleCounter where
import Control.Monad
import Control.Monad.Crdt
import Control.Monad.Reader
import Data.Crdt.Counter
action :: Crdt Counter ()
action = do
Counter c <- ask
when (c < 10) $ do
update $ CounterUpdate 1
action
main = putStrLn $ unlines $ fmap (show . runCrdt action . Counte... | edofic/crdt | src/Example/SingleCounter.hs | apache-2.0 | 331 | 0 | 11 | 63 | 123 | 64 | 59 | 12 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
module Tersus.Cluster.TersusService where
-- | TersusService
-- Contains all the functions and datatypes that control a server side Tersus Application
-- Author: Ernesto Rodriguez
import Prelude
import Control.Distributed.Process
import Control.Monad.IO.... | kmels/tersus | Tersus/Cluster/TersusService.hs | bsd-2-clause | 10,769 | 0 | 13 | 2,208 | 1,078 | 634 | 444 | 71 | 1 |
{- Copyright (c) 2008, Scott E. Dillard. All rights reserved. -}
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE ScopedTypeVariable... | sedillard/Vec | Data/Vec/Nat.hs | bsd-2-clause | 1,798 | 0 | 9 | 436 | 573 | 336 | 237 | -1 | -1 |
module Emulator.Video.Util where
import Emulator.Memory
import Emulator.Types
import Control.Monad.IO.Class
import Data.Array.IArray
import Data.Bits
import Graphics.Rendering.OpenGL
import Utilities.Parser.TemplateHaskell
data ScreenObj =
BG [Tile] Priority Layer |
Sprite [Tile] Priority |
Hidden
deriving (... | intolerable/GroupProject | src/Emulator/Video/Util.hs | bsd-2-clause | 5,315 | 0 | 18 | 1,182 | 1,801 | 1,000 | 801 | -1 | -1 |
module TinyASM.ByteCode (
ByteCode(..),
size,
compileByteCode
)
where
import Text.Printf (printf)
data ByteCode = BC1 Int
| BC2 Int Int
| BC3 Int Int Int
| BC4 Int Int Int Int
instance Show ByteCode where
show (BC1 op) = "ByteCode " ++ (showHex op)
show (BC2 ... | ocus/TinyASM_Haskell | library/TinyASM/ByteCode.hs | bsd-3-clause | 877 | 0 | 10 | 270 | 435 | 231 | 204 | 26 | 1 |
{-
Copyright (c) 2013, Genome Research Limited
Author: Nicholas Clarke <nicholas.clarke@sanger.ac.uk>
-}
module Hgc.Mount (
mkMountPoint
, mkFstabEntry
, mount
, umount
, SLM.MountFlag(..)
, Mount (..)
)
where
import System.Log.Logger
import System.Directory (canonicalizePath
, doesFileExist
... | wtsi-hgi/hgc-tools | Hgc/Mount.hs | bsd-3-clause | 2,815 | 53 | 12 | 679 | 706 | 386 | 320 | 63 | 5 |
-- tape something something something
module Tape where
import Zipper
type Tape = Zipper Integer
alterReg :: (Integer -> Integer) -> Tape -> Tape
alterReg f tape = replace (f (readReg tape)) tape
incrReg :: Tape -> Tape
incrReg t = alterReg incr t
where incr :: Integer -> Integer
incr n = n + 1
decrReg :... | rodneyp290/Brainfunc | src/Tape.hs | bsd-3-clause | 895 | 0 | 9 | 219 | 305 | 155 | 150 | 30 | 2 |
{-#LANGUAGE BangPatterns #-}
module Main where
import Control.Foldl (Fold(..),FoldM(..))
import qualified Control.Foldl as L
import qualified Control.FoldM as M
import Pipes
import qualified Pipes.Prelude as P
import qualified Data.Vector.Unboxed as V
-- import qualified Data.Vector.Generic as VG
-- import qualified Da... | michaelt/foldm | benchmarks/Bench.hs | bsd-3-clause | 10,913 | 0 | 20 | 4,536 | 3,355 | 1,667 | 1,688 | -1 | -1 |
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE TupleSections #-}
--
-- | Copy all arguments to a function in to variables which are named the same
-- as the function's parameters. This is known as Grail Normal Form [1] and
-- is the ANF equivalent of phi-elimination on SSA.
--
-- 1. Grail... | jystic/river | src/River/Core/Transform/Grail.hs | bsd-3-clause | 2,817 | 0 | 18 | 832 | 1,047 | 518 | 529 | 92 | 5 |
module Main where
import AminoAcid (HydratedAminoAcid)
import AminoAcidPDB (pdbAminoParser)
import qualified Data.Text.IO as TIO (readFile)
import System.Environment (getArgs)
import Text.Parsec (parse)
main :: IO ()
main = do
args <- getArgs
con... | mosigo/haskell-sandbox | app/AminoParser.hs | bsd-3-clause | 649 | 0 | 9 | 168 | 202 | 107 | 95 | 16 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeFamilies #-}
module LA.Instances () where
import Data.Vector.Fixed
import LA.Algebra
import Prelude hiding (foldl, zipWith, map, replicate)
instance (Additive a, Vector v a) => Additive (v a) where
add = zipWith add ;... | chalmers-kandidat14/LA | LA/Instances.hs | bsd-3-clause | 870 | 0 | 8 | 201 | 280 | 157 | 123 | 19 | 0 |
module Clean where
import Data.List.Split
import System.FilePath.Glob
import System.FilePath.Posix
import Data.List (intercalate)
import Control.Applicative
import Control.Concurrent
import Control.Monad
import Data.Monoid
import Data.Maybe
import ID3.Simple
import System
import Data.Rated
import Util
data MetaData... | jb55/hmetadata | Clean.hs | bsd-3-clause | 2,302 | 0 | 13 | 732 | 701 | 370 | 331 | 56 | 6 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Main... | anchor/purescript-ui-sandbox | server/Main.hs | bsd-3-clause | 6,265 | 0 | 18 | 1,760 | 1,276 | 716 | 560 | 122 | 3 |
module Main where
import Control.Exception
import Control.Monad
import System.FilePath
import System.Directory
import System.Process
import Control.Concurrent
import Data.List.Split
import qualified Data.HashTable.IO as H
import qualified Data.ByteString.Lazy as L
import Data.Time.Clock
import qualified Codec.Archive.... | scslab/appdeploy | src/appdeployer.hs | bsd-3-clause | 4,973 | 0 | 20 | 1,695 | 1,395 | 691 | 704 | 121 | 5 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module TCRError where
import Control.Monad.Reader
import Control.Monad.Error
import Database.TokyoCabinet
(
TCM
, runTCM
, new
, OpenMode(..)
, TCDB
, HDB
, BDB
, FDB
)
import Database.TokyoCabinet.Storable
import qualified Databas... | tom-lpsd/tokyocabinet-haskell | examples/TCRError.hs | bsd-3-clause | 1,773 | 0 | 13 | 544 | 675 | 353 | 322 | 46 | 2 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
module Duckling.O... | rfranek/duckling | tests/Duckling/Ordinal/RU/Tests.hs | bsd-3-clause | 600 | 0 | 9 | 96 | 80 | 51 | 29 | 11 | 1 |
module EFA.Example.Topology.LinearTwo where
import EFA.Application.Utility ( topologyFromEdges )
import qualified EFA.Graph.Topology.Node as Node
import qualified EFA.Graph.Topology as Topo
import qualified EFA.Report.Format as Format
data Node = Source | Crossing | Sink deriving (Eq, Ord, Enum, Show)
node0, node... | energyflowanalysis/efa-2.1 | src/EFA/Example/Topology/LinearTwo.hs | bsd-3-clause | 839 | 0 | 8 | 149 | 240 | 140 | 100 | 21 | 1 |
module SkeletonTemplates.IUnzipFilter2D
( iunzipFilter2DActor
) where
import AstMappings
import qualified AbsCAL as C
import qualified AbsRIPL as R
import Debug.Trace
import SkeletonTemplates.CalTypes
import Types
iunzipFilter2DActor :: String -> Dimension -> R.AnonFun -> R.AnonFun -> C.Type -> C.Type -> C.Actor
... | robstewart57/ripl | src/SkeletonTemplates/IUnzipFilter2D.hs | bsd-3-clause | 38,100 | 0 | 19 | 12,225 | 12,111 | 6,151 | 5,960 | 895 | 1 |
{-|
Module : Types
Description : Type information, used internally by Obsídian.
Copyright : (c) Joel Svensson, 2014
License : BSD
Maintainer : bo.joel.svensson@gmail.com
Stability : experimental
-}
module Obsidian.Types where
---------------------------------------------------------------------------
... | svenssonjoel/ObsidianGFX | Obsidian/Types.hs | bsd-3-clause | 1,157 | 0 | 6 | 298 | 184 | 108 | 76 | 23 | 1 |
module Main where
import HTIG
main :: IO ()
main = htig defaultConfig
| nakamuray/htig | htig.hs | bsd-3-clause | 72 | 0 | 6 | 15 | 25 | 14 | 11 | 4 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.