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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{- |
Description : Test file for Analysis_DFOL
-}
import DFOL.AS_DFOL
import DFOL.Analysis_DFOL
import DFOL.Sign
import Common.Id
import Data.Maybe
import Common.DocUtils
import qualified Common.Result as Result
import qualified Data.Map as Map
import qualified Data.Set as Set
mkTok :: String -> Token
mkTok s = Toke... | mariefarrell/Hets | DFOL/Tests/Test_Analysis_DFOL.hs | gpl-2.0 | 2,367 | 0 | 15 | 569 | 1,156 | 632 | 524 | 60 | 1 |
-- (c) The University of Glasgow 2006
{-# LANGUAGE CPP #-}
module OptCoercion ( optCoercion, checkAxInstCo ) where
#include "HsVersions.h"
import Coercion
import Type hiding( substTyVarBndr, substTy, extendTvSubst )
import TcType ( exactTyVarsOfType )
import TyCon
import CoAxiom
import Var
import VarSet
impor... | fmthoma/ghc | compiler/types/OptCoercion.hs | bsd-3-clause | 27,220 | 0 | 15 | 6,654 | 6,342 | 3,216 | 3,126 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
-- |Client interface for the ROS Parameter Server API. Note that
-- dictionary values are not supported.
module Ros.Graph.ParameterServer (deleteParam, setParam, getParam, searchParam,
subscribeParam, unsubscribeParam, hasParam,
... | bitemyapp/roshask | src/Ros/Graph/ParameterServer.hs | bsd-3-clause | 3,541 | 0 | 12 | 754 | 916 | 497 | 419 | 42 | 3 |
{-# OPTIONS_GHC -XMagicHash -XBangPatterns -fno-warn-unused-imports #-}
{-# OPTIONS_HADDOCK hide #-}
-- XXX With a GHC 6.9 we get a spurious
-- Data/Array/Base.hs:26:0:
-- Warning: Module `Data.Ix' is imported, but nothing from it is used,
-- except perhaps instances visible in `Data.Ix'
-- ... | beni55/haste-compiler | libraries/ghc-7.8/array/Data/Array/Base.hs | bsd-3-clause | 73,840 | 0 | 27 | 17,443 | 18,890 | 9,994 | 8,896 | -1 | -1 |
module Dwarf.Types
( -- * Dwarf information
DwarfInfo(..)
, pprDwarfInfo
, pprAbbrevDecls
-- * Dwarf frame
, DwarfFrame(..), DwarfFrameProc(..), DwarfFrameBlock(..)
, pprDwarfFrame
-- * Utilities
, pprByte
, pprData4'
, pprDwWord
, pprWord
, pprLEBWord
, pprLEBInt
, wordAlign
, sec... | green-haskell/ghc | compiler/nativeGen/Dwarf/Types.hs | bsd-3-clause | 17,330 | 0 | 21 | 4,473 | 3,882 | 2,032 | 1,850 | 307 | 8 |
module JSON where
foo :: a -> a
foo = id
| ezyang/ghc | testsuite/tests/driver/json2.hs | bsd-3-clause | 42 | 0 | 5 | 12 | 18 | 11 | 7 | 3 | 1 |
{-# LANGUAGE EmptyDataDecls #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE... | actframework/FrameworkBenchmarks | frameworks/Haskell/yesod/yesod-mysql-mongo/src/yesod.hs | bsd-3-clause | 10,405 | 0 | 17 | 3,292 | 2,580 | 1,355 | 1,225 | 230 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{- |
Module : Network.MPD.Applicative.StoredPlaylists
Copyright : (c) Joachim Fasting 2012
License : MIT
Maintainer : joachifm@fastmail.fm
Stability : stable
Portability : unportable
Stored playlists.
-}
module Network.MPD.Applicative.StoredPlaylists
( listPlayli... | matthewleon/libmpd-haskell | src/Network/MPD/Applicative/StoredPlaylists.hs | mit | 2,886 | 0 | 11 | 616 | 634 | 343 | 291 | 50 | 3 |
{-# LANGUAGE ScopedTypeVariables #-}
module Main where
import Data.Aeson
import GHCore
import Data.Maybe (fromJust)
import qualified Data.ByteString.Lazy as B
import qualified Data.ByteString.Lazy.Char8 as B8
import Network.Curl
getResp :: String -> IO String
getResp url = do
token <- readFile "token.txt"
let... | danchoi/ghb | Ghb/Test.hs | mit | 1,059 | 1 | 15 | 210 | 330 | 167 | 163 | 28 | 1 |
main :: IO ()
main = do
c <- getChar
if c /= ' '
then do
putChar c
main
else return ()
| timtian090/Playground | Haskell/LearnYouAHaskellForGreatGood/buffering.hs | mit | 111 | 0 | 10 | 47 | 52 | 24 | 28 | 8 | 2 |
import System.Environment
import System.IO
-- import System.IO.Error
import Prelude hiding (catch)
import Control.Exception (catch)
main = doBlock `catch` handler
where
doBlock :: IO ()
doBlock = do
(fileName:_) <- getArgs
contents <- readFile fileName
putStrLn $... | feliposz/learning-stuff | haskell/countLines3.hs | mit | 478 | 0 | 15 | 146 | 138 | 72 | 66 | 12 | 1 |
{-# LANGUAGE MultiParamTypeClasses
, ImplicitParams
#-}
module U.Exec (
SystemExec(..)
, SystemExecCache(..)
, calculateInteractions
--TODO move it
, GravitationalConstant(..) -- Force :* Distance:^I2 :/ Mass:^I2
) where
import Control.Monad (mzero)
import Utils
import U.Defs
import U.Obje... | fehu/hgt | space-independent/src/U/Exec.hs | mit | 4,430 | 0 | 13 | 1,525 | 1,046 | 571 | 475 | -1 | -1 |
module GHCJS.DOM.SVGPathSegLinetoHorizontalRel (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/SVGPathSegLinetoHorizontalRel.hs | mit | 59 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
module ContrMo where
import Control.Monad as C
import threepenny-gui
-- forM :: Monad m => [a] -> (a -> m b) -> m [b]
-- forM_ :: Monad m => [a] -> (a -> m b) -> m ()
{-
*ContrMo> forM [1,2,3] print
1
2
3
[(),(),()]
*ContrMo> forM_ [1,2,3] print
1
2
3
-}
-- replicateM :: Monad m => Int -> m a -> m [a]
{-
*ContrM... | HaskellForCats/HaskellForCats | controlMonad.hs | mit | 1,496 | 7 | 14 | 402 | 196 | 102 | 94 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Control.Monad.IO.Class (MonadIO, liftIO)
import Control.Monad.Reader (MonadReader, ReaderT, asks, runReaderT)
import Control.Monad.Trans.Class (MonadTrans, lift)
import Data.Aeson (Value (Null), (.=), object)
import Data.Text... | toddmohney/EventCalendar | src/Main.hs | mit | 3,084 | 0 | 16 | 548 | 1,075 | 550 | 525 | 96 | 3 |
-- I think this file is obsolete since it uses Overload -- jcp.
----------------------------------------------------------------
-- Region tracker
----------------------------------------------------------------
module Region
( SSDTracker, make, update
, tracker
) where
import Video
( Video
, acquireRegion
... | jatinshah/autonomous_systems | project/fvision.hugs/garbage/region.hs | mit | 4,645 | 20 | 20 | 872 | 1,415 | 793 | 622 | 83 | 1 |
import Control.Monad (void)
import qualified Graphics.UI.Threepenny as UI
import Graphics.UI.Threepenny.Core
import Graphics.UI.Threepenny.Events
import TimerControl
import Data.Time.Clock.POSIX
import Data.Time.Format
{-----------------------------------------------------------------------------
Main
----------... | santolucito/Euterpea_Projects | threepennytest/Main.hs | mit | 2,420 | 0 | 17 | 877 | 614 | 324 | 290 | 64 | 1 |
{-# htermination guard :: Bool -> [] () #-}
import Monad
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Monad_guard_2.hs | mit | 57 | 0 | 3 | 11 | 5 | 3 | 2 | 1 | 0 |
{- |
Module : DataAssociation.SimpleRulesGenerator
Description : Associasion Rules Generator.
License : MIT
Stability : development
Generates rules by analysing confidence of the subsets of __large__ itemsets.
see __1.1__ in <http://rakesh.agrawal-family.com/papers/vldb94apriori.pdf>.
Defines the __Simpl... | fehu/min-dat--a-priori | core/src/DataAssociation/SimpleRulesGenerator.hs | mit | 4,351 | 1 | 13 | 1,367 | 874 | 469 | 405 | -1 | -1 |
module Test.Arbitrary where
import Test.QuickCheck
import Control.Monad (forM)
import Data.Core.Graph.NodeManager (NodeMap)
import Data.Core.Graph.PureCore (Graph, empty, fromAdj)
import qualified Data.IntMap.Strict as IM
newtype TestNodeMap v = TestNodeMap(NodeMap v) deriving Show
instance Arbitrary v => Arbitrary... | factisresearch/graph-core | src/Test/Arbitrary.hs | mit | 877 | 0 | 20 | 259 | 304 | 168 | 136 | 18 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicecatalog-portfolioproductassociation.html
module Stratosphere.Resources.ServiceCatalogPortfolioProductAss... | frontrowed/stratosphere | library-gen/Stratosphere/Resources/ServiceCatalogPortfolioProductAssociation.hs | mit | 4,142 | 0 | 15 | 362 | 462 | 263 | 199 | 41 | 1 |
module Flowskell.Interpreter (initSchemeEnv, initPrimitives, evalFrame) where
import Data.Maybe (isJust)
import Graphics.Rendering.OpenGL hiding (Bool, Float) -- get, $=
import Control.Monad
import Control.Monad.Error
import Language.Scheme.Core (r5rsEnv, evalString, evalLisp', primitiveBindings)
import Language.Sch... | lordi/flowskell | src/Flowskell/Interpreter.hs | gpl-2.0 | 2,586 | 0 | 15 | 399 | 692 | 374 | 318 | 44 | 2 |
module Main where
import qualified Pipeline as P
main = do
putStrLn "this is main"
P.main
| averagehat/Pathogen.hs | app/Main.hs | gpl-2.0 | 95 | 0 | 7 | 21 | 26 | 15 | 11 | 5 | 1 |
import Control.Monad.Instances
import Data.List
import Data.Char
import Data.Maybe
import Text.Printf
import System.Environment
import Text.Regex.Posix
-- First, three helpers
io f = interact (unlines . f . lines)
showln = (++ "\n") . show
regexBool r l = l =~ r :: Bool -- simple boolean regex matching
-- remo... | violetkz/haskell_learning | unixcmd.hs | gpl-2.0 | 4,072 | 0 | 12 | 1,519 | 898 | 507 | 391 | 71 | 2 |
cubicSplineInterp x [xjp2, xjp1, xj, xjm1, xjm2]
| x > xjp2 = 0
| x >= xjp1 = (1/(6*h^3)) * (xjp2 -x)^3
| x >= xj = 1/6 + (1/(2*h)) *(xjp1-x) + (1/(2*h^2)) *(xjp1-x)^2 - (1/(2*h^3)) *(xjp1-x)^3
| x >= xjm1 = 2/3 - 1/(h^2) *(x-xj)^2 - 1/(2*h^3) *(x-xj)^3
| x >= xjm2 = 1/(6*h^3) * (x-xjm2)^3
| o... | Marcus-Rosti/numerical-methods | src/ch_04/Ch_04.hs | gpl-2.0 | 365 | 0 | 17 | 105 | 346 | 181 | 165 | 8 | 1 |
module Projection (
project
, match ) where
import ErrM
import AbsAST
import ParAST
import PrintAST
import Data.List (find)
import Data.Maybe
import Data.Map (Map,(!))
import qualified Data.Map as Map
---- Projection patterns
patterns :: [(String, Map Integer Expression -> Relation)]
patterns = [ ("(Ph... | cunger/mule | src/Projection.hs | gpl-3.0 | 6,289 | 0 | 17 | 2,065 | 1,861 | 979 | 882 | 117 | 3 |
-- Problem 1
-- (*) Find the last element of a list.
myLast :: [a] -> a
myLast list = last list
-- Problem 2
-- (*) Find the last but one element of a list.
myButLast :: [a] -> a
myButLast x = x !! ( (length x) - 2 )
-- Problem 3
-- (*) Find the K'th element of a list. The first element in the list is number 1.
e... | susu/haskell-problems | 99_hs_problems/p1-10.hs | gpl-3.0 | 647 | 0 | 9 | 149 | 148 | 84 | 64 | 8 | 1 |
{-# LANGUAGE DeriveDataTypeable, TemplateHaskell, GeneralizedNewtypeDeriving, StandaloneDeriving #-}
{-|
This module defines the Sitemap type,
which is used for routing, as well as its
mapping to and from path segments.
-}
module Blog.Sitemap where
import Blog.Instances()
import Blog.Posts.Core (PostId(..))
import ... | aslatter/blog | Blog/Sitemap.hs | gpl-3.0 | 1,669 | 0 | 11 | 357 | 470 | 258 | 212 | 51 | 2 |
module TestUtilities
( sequencer
, tmpA
, tmpB
) where
sequencer :: Int -> Int -> [Float]
sequencer n k = [(fromIntegral x) / (fromIntegral k) | x <- [0..n]]
tmpA :: (Num a, Floating a) => [a]
tmpA = [0.05, 0.05, 0.1, 0.2, 0.15, 0.25, 0.1, 0.025, 0.025, 0.05] -- proportion of 'words'
tmpB :: (Num a, Floating a) =>... | R-Morgan/hasStat | TestUtilities.hs | gpl-3.0 | 411 | 0 | 10 | 96 | 195 | 113 | 82 | 10 | 1 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid 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 3 of the Lice... | karamellpelle/grid | test/source/Main/IOS.hs | gpl-3.0 | 3,325 | 0 | 12 | 1,231 | 390 | 214 | 176 | 52 | 1 |
module Routes
(routes) where
import Control.Monad.IO.Class (liftIO)
import Happstack.Server hiding (host)
import Response
import Database.CourseQueries (retrieveCourse, allCourses, queryGraphs, courseInfo, deptList, getGraphJSON)
import Database.CourseInsertion (saveGraphJSON)
import Data.Text.Lazy (Text)
routes ... | hermish/courseography | app/Routes.hs | gpl-3.0 | 1,580 | 0 | 12 | 230 | 435 | 253 | 182 | 30 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-maps-engine/gen/Network/Google/Resource/MapsEngine/Rasters/Permissions/List.hs | mpl-2.0 | 3,029 | 0 | 13 | 685 | 307 | 189 | 118 | 51 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-kinesis/gen/Network/AWS/Kinesis/MergeShards.hs | mpl-2.0 | 5,871 | 0 | 9 | 1,216 | 518 | 325 | 193 | 63 | 1 |
-- brittany { lconfig_columnAlignMode: { tag: ColumnAlignModeDisabled }, lconfig_indentPolicy: IndentPolicyLeft }
import Test hiding ()
import Test as T hiding ()
| lspitzner/brittany | data/Test474.hs | agpl-3.0 | 163 | 0 | 4 | 21 | 18 | 13 | 5 | 2 | 0 |
module Palindroms where
import Data.Char
firstLast :: [a] -> [a]
firstLast [] = []
firstLast [x] = []
firstLast xs = tail (init xs)
isPalindrom :: String -> Bool
isPalindrom [] = True
isPalindrom [x] = True
isPalindrom str = (toUpper (str !! 0)) == (toUpper $ last str) && isPalindrom (firstLast str)
| ice1000/OI-codes | codewars/101-200/is-it-a-palindrome.hs | agpl-3.0 | 308 | 0 | 10 | 60 | 144 | 76 | 68 | 10 | 1 |
module TypeInterface2 where
f x y = x + y + 3
| dmp1ce/Haskell-Programming-Exercises | Chapter 5/typeInterface2.hs | unlicense | 47 | 0 | 6 | 13 | 22 | 12 | 10 | 2 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Haddock.Interface.Create
-- Copyright : (c) Simon Marlow 2003-2006,
-- David Waern 2006-2009
-- License : BSD-like
--
-- Maintainer : haddock@projects.haskell.org
-- Stability : experime... | nominolo/haddock2 | src/Haddock/Interface/Create.hs | bsd-2-clause | 31,862 | 35 | 36 | 9,183 | 7,060 | 3,667 | 3,393 | 447 | 19 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}
module RSOI.FSMlib(FSM(..),
runFSM) where
import Prelude hiding (init)
import Database.HDBC
import Control.Monad (unless, liftM)
import Control.Concurrent (threadDelay)
import Control.Concurrent.RWLoc... | Migorec/FSM_lib | RSOI/FSMlib.hs | bsd-3-clause | 8,840 | 0 | 19 | 3,159 | 1,988 | 1,031 | 957 | 126 | 5 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RankNTypes #-}
module StableMarriage.GaleShapley
( Men(..)
, Women(..)
, World
, meets
-- re-export
, PO.Ordering(..)
) where
import Prelude hiding (Orde... | cutsea110/stable-marriage | src/StableMarriage/GaleShapley.hs | bsd-3-clause | 3,397 | 0 | 14 | 1,164 | 1,843 | 1,015 | 828 | 78 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Cda.Types where
import Control.Lens
data CdaViewer = CdaViewer {
_tmpDir :: FilePath
}
makeLenses ''CdaViewer
| SLikhachev/pureCdaViewer | snaplets/cda/src/Cda/Types.hs | bsd-3-clause | 194 | 0 | 8 | 33 | 36 | 21 | 15 | 7 | 0 |
-- | The categorical distribution is used for discrete data. It is also sometimes called the discrete distribution or the multinomial distribution. For more, see the wikipedia entry: <https://en.wikipedia.org/wiki/Categorical_distribution>
module HLearn.Models.Distributions.Univariate.Categorical
(
-- * Dat... | ehlemur/HLearn | src/HLearn/Models/Distributions/Univariate/Categorical.hs | bsd-3-clause | 5,827 | 0 | 15 | 1,318 | 1,514 | 812 | 702 | -1 | -1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module Symbol where
import Control.Lens
import qualified Color as Color
import Data.Default
import GHC.Generics
import Prelude hiding (Either(..), id, (.))
-- Symbol
data Symbol = Symbol
{ _glyph :: Char
, _baseColor :: Color.Color
} derivin... | fros1y/umbral | src/Symbol.hs | bsd-3-clause | 433 | 0 | 9 | 79 | 116 | 70 | 46 | 15 | 0 |
---------------------------------------------------------
--
-- Module : Financing
-- Copyright : Bartosz Wójcik (2010)
-- License : All rights reserved
--
-- Maintainer : bartek@sudety.it
-- Stability : Unstable
-- Portability : portable
--
-- Financing rules.
---------------------... | bartoszw/haslo | Haslo/Financing.hs | bsd-3-clause | 22,844 | 0 | 20 | 9,112 | 4,014 | 2,062 | 1,952 | 283 | 4 |
{-# LANGUAGE FlexibleInstances, TypeSynonymInstances, TypeOperators #-}
-- | /Warning: I intend to remove this module. Please use 'command' or 'cmd' instead./
--
-- This module provides versions of the 'Development.Shake.Derived.system'' family of functions
-- which take a variable number of arguments.
--
-- All... | nh2/shake | Development/Shake/Sys.hs | bsd-3-clause | 2,787 | 0 | 10 | 556 | 747 | 397 | 350 | 40 | 1 |
-- (c) The University of Glasgow 2006
-- (c) The GRASP/AQUA Project, Glasgow University, 1998
--
-- Type - public interface
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | Main functions for manipulating types and type-related things
module Type (
-- Note some of this is just re-exports from T... | oldmanmike/ghc | compiler/types/Type.hs | bsd-3-clause | 91,851 | 0 | 18 | 25,335 | 19,340 | 10,083 | 9,257 | -1 | -1 |
{- |
Module : $Header$
Description : Describes the functions related to the clusterification of names
Copyright : None
License : None
Maintainer : tydax@protonmail.ch
Stability : unstable
The $Header$ module describes the different functions used to eveluate the
gender of a name.
-... | Tydax/ou-sont-les-femmes | src/NameGender.hs | bsd-3-clause | 992 | 0 | 17 | 260 | 157 | 81 | 76 | 16 | 2 |
-- Polling implementation. This isn't intended to be super efficient,
-- just a decent fallback in case there is no OS implementation.
--
-- To alleviate race conditions, files younger than ten seconds are
-- reported with existence events for any new subscription.
--
module Sirea.Filesystem.Polling
( newPollingM... | dmbarbour/Sirea | sirea-filesystem/src/Sirea/Filesystem/Polling.hs | bsd-3-clause | 6,083 | 0 | 16 | 1,512 | 1,711 | 887 | 824 | 129 | 5 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Eval where
import Control.Monad.IO.Class (MonadIO, liftIO)
import qualified Data.Map as Map
import Data.Monoid ((<>))
import qualified Data.Text as T
import Model
import Job
type JobThunk = Either Wo... | CBMM/CBaaS | cbaas-lib/src/Eval.hs | bsd-3-clause | 2,135 | 0 | 11 | 576 | 290 | 165 | 125 | 20 | 7 |
module Control.Distributed.Task.TaskSpawning.TaskSpawning (
processTasks, TasksExecutionResult,
fullBinarySerializationOnMaster, executeFullBinaryArg, executionWithinSlaveProcessForFullBinaryDeployment,
serializedThunkSerializationOnMaster, executeSerializedThunkArg, executionWithinSlaveProcessForThunkSerializati... | michaxm/task-distribution | src/Control/Distributed/Task/TaskSpawning/TaskSpawning.hs | bsd-3-clause | 5,665 | 0 | 14 | 635 | 882 | 481 | 401 | 60 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ExtendedDefaultRules #-}
module Lucid.Foundation.Content.Dropdown where
import Lucid.Base
import Lucid.Html5
import qualified Data.Text as T
import Data.Monoid
data_dropdown_ :: T.Text -> Attribute
data_dropdown_ = data_ "dropdown"
f_dropdown_ :: T.Text
f_dropdown_ =... | athanclark/lucid-foundation | src/Lucid/Foundation/Content/Dropdown.hs | bsd-3-clause | 429 | 0 | 6 | 56 | 79 | 48 | 31 | 13 | 1 |
module Network.CrawlChain.Crawling (
crawl,
crawlAndStore, CrawlActionDescriber,
Crawler
) where
import qualified Data.ByteString.Char8 as BC
import qualified Network.Http.Client as C
import Network.CrawlChain.CrawlAction
import Network.CrawlChain.CrawlResult
import Network.CrawlChain.Util
import Network.Http.C... | michaxm/crawlchain | src/Network/CrawlChain/Crawling.hs | bsd-3-clause | 2,251 | 0 | 14 | 513 | 589 | 305 | 284 | 42 | 4 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
The @TyCon@ datatype
-}
{-# LANGUAGE CPP, DeriveDataTypeable #-}
module TyCon(
-- * Main TyCon data types
TyCon,
AlgTyConRhs(..), visibleDataCons,
AlgTyConFlav(..), isNoParent,
Fa... | nushio3/ghc | compiler/types/TyCon.hs | bsd-3-clause | 81,838 | 1 | 18 | 24,227 | 9,719 | 5,512 | 4,207 | 849 | 7 |
module PTS.Syntax.Diff where
import Control.Arrow ((***))
import Data.List (intersperse)
import Data.Set (Set)
import qualified Data.Set as Set
import PTS.Syntax.Algebra
import PTS.Syntax.Names
import PTS.Syntax.Pretty
import PTS.Syntax.Term
import PTS.Syntax.Substitution (freshCommonVar)
data Diff
= DEqual Term
... | Toxaris/pts | src-lib/PTS/Syntax/Diff.hs | bsd-3-clause | 5,556 | 0 | 15 | 1,990 | 2,627 | 1,356 | 1,271 | 134 | 16 |
#### No longer used
{-# LANGUAGE CPP, FlexibleContexts, FlexibleInstances, ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-} -- See below
{-# OPTIONS_GHC -Wall #-}
-- {-# OPTIONS_GHC -fno-warn-unused-imports #-} -- TEMP
-- {-# OPTIONS_GHC -fno-warn-unused-binds #-} -- TEMP
---------------------------... | capn-freako/circat | src/Circat/If.hs | bsd-3-clause | 3,708 | 0 | 9 | 716 | 688 | 403 | 285 | -1 | -1 |
{-# LANGUAGE QuasiQuotes, OverloadedStrings, TypeSynonymInstances,
MultiParamTypeClasses, ScopedTypeVariables,
FlexibleContexts #-}
module PostgREST.PgStructure where
import PostgREST.PgQuery (QualifiedTable(..))
import Data.Text hiding (foldl, map, zipWith, concat)
import Data.Aeson
import D... | acrispin/postgrest | src/PostgREST/PgStructure.hs | mit | 6,304 | 2 | 12 | 1,739 | 1,147 | 624 | 523 | 93 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-route53/gen/Network/AWS/Route53/DisassociateVPCFromHostedZone.hs | mpl-2.0 | 5,769 | 0 | 9 | 1,152 | 591 | 359 | 232 | 74 | 1 |
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- Module : Network.AWS.S3.Internal
-- Copyright : (c) 2013-2015 Brendan Hay <brendan.g.hay@gmail.com>
-- License : This Source Code Form is subject to the terms of
-- the Mozilla Public License, v. 2.0.
--... | romanb/amazonka | amazonka-s3/src/Network/AWS/S3/Internal.hs | mpl-2.0 | 1,783 | 0 | 6 | 699 | 279 | 159 | 120 | 61 | 0 |
{-
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/Data/STRef/Strict.hs | apache-2.0 | 749 | 0 | 4 | 136 | 25 | 19 | 6 | 4 | 0 |
{-# LANGUAGE DataKinds, TypeOperators, OverloadedStrings #-}
module LinearRegression5 where
import Prelude (print, length, IO)
import Language.Hakaru.Syntax.Prelude
import Language.Hakaru.Disintegrate
import Language.Hakaru.Syntax.ABT
import Language.Hakaru.Syntax.AST
import Language.Hakaru.Types.DataKind
import Lang... | zachsully/hakaru | haskell/Tests/Unroll/LinearRegression5.hs | bsd-3-clause | 1,490 | 0 | 31 | 458 | 592 | 316 | 276 | 35 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Actions.FocusNth
-- Copyright : (c) Karsten Schoelzel <kuser@gmx.de>
-- License : BSD
--
-- Maintainer : Karsten Schoelzel <kuser@gmx.de>
-- Stability : stable
-- Portability : unportable
--
-- Focu... | f1u77y/xmonad-contrib | XMonad/Actions/FocusNth.hs | bsd-3-clause | 2,017 | 0 | 14 | 556 | 519 | 275 | 244 | 21 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Language.Haskell.Refact.Refactoring.SwapArgs (swapArgs) where
import qualified Data.Generics.Aliases as SYB
import qualified GHC.SYB.Utils as SYB
import qualified Name as GHC
import qualified GHC
import qualified GhcMod as GM (... | RefactoringTools/HaRe | src/Language/Haskell/Refact/Refactoring/SwapArgs.hs | bsd-3-clause | 6,857 | 4 | 17 | 2,314 | 1,693 | 877 | 816 | 89 | 14 |
-- (c) The University of Glasgow 2006
{-# LANGUAGE CPP, DeriveDataTypeable #-}
-- | Module for (a) type kinds and (b) type coercions,
-- as used in System FC. See 'CoreSyn.Expr' for
-- more on System FC and how coercions fit into it.
--
module Coercion (
-- * Main data type
Coercion(..), Var, CoVar,
... | acowley/ghc | compiler/types/Coercion.hs | bsd-3-clause | 80,443 | 1,008 | 12 | 21,251 | 11,670 | 7,228 | 4,442 | 938 | 16 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
module Ros.Test_msgs.StringConst where
import qualified Prelude as P
import Prelude ((.), (+), (*))
import qualified Data.Typeable as T
import Control.Applicative
import Ros.Internal.Ro... | bitemyapp/roshask | Tests/test_msgs/golden/StringConst.hs | bsd-3-clause | 1,086 | 1 | 9 | 165 | 227 | 136 | 91 | 29 | 1 |
module Simple2 where
-- f1 :: Int -> Int -> Int
f1 x y = x + y
f2 x y = y - x | kmate/HaRe | old/testing/merging/Simple2.hs | bsd-3-clause | 79 | 0 | 5 | 26 | 33 | 18 | 15 | 3 | 1 |
module Names where
import MarshalFixup (cTypeNameToHSType, fixCFunctionName)
import Utils (splitBy, lowerCaseFirstWord, upperCaseFirstChar)
import Data.Char as Char (toLower, isUpper, isLower)
cFuncNameToHsName :: String -> String
cFuncNameToHsName =
lowerCaseFirstWord
. MarshalFixup.cTypeNameToHSType
. toStu... | k0001/gtk2hs | tools/apiGen/src/Names.hs | gpl-3.0 | 1,935 | 0 | 11 | 410 | 433 | 229 | 204 | 50 | 3 |
module Prelude where
data Bool = False | True
data Int
data Maybe a = Nothing | Just a
data (,) a b = (,) a b
not False = True
not True = False
data [] a = [] | a : [a]
map f [] = []
map f (x:xs) = f x:map f xs
null = f
where
f [] = True
f _ = False
t = null []
f = not t
{-
data P = P { x,y::Int }
or... | forste/haReFork | tools/base/tests/tiTest5.hs | bsd-3-clause | 554 | 27 | 8 | 159 | 288 | 153 | 135 | -1 | -1 |
{-# LANGUAGE EmptyCase #-}
{-# OPTIONS -Wincomplete-patterns #-}
module T15584 where
import Data.Void
data V = MkV !Void
data S1 = MkS1 !V
newtype S2 = MkS2 V
s1 :: S1 -> a
s1 x = case x of {}
s2 :: S2 -> a
s2 x = case x of {}
| sdiehl/ghc | testsuite/tests/pmcheck/should_compile/T15584.hs | bsd-3-clause | 234 | 0 | 7 | 59 | 85 | 49 | 36 | 15 | 0 |
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Unittests for query aliases.
-}
{-
Copyright (C) 2013 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redist... | leshchevds/ganeti | test/hs/Test/Ganeti/Query/Aliases.hs | bsd-2-clause | 3,246 | 0 | 10 | 556 | 376 | 216 | 160 | 41 | 1 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
module T9371 where
import Data.Monoid
class C x where
data D x :: *
makeD :: D x
instance {-# OVERLAPPABLE #-} Monoid x => C x where
data D x = D1 (Either x ())
makeD = D1 (Left mempty)
instance (... | urbanslug/ghc | testsuite/tests/indexed-types/should_fail/T9371.hs | bsd-3-clause | 525 | 6 | 10 | 132 | 218 | 117 | 101 | 17 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Comic.Translate where
import Control.Exception as E
import Control.Lens
import Data.Aeson
import Data.Aeson.Lens (_Array, key)
import qualified Data.Text as T
import Data.Vector ((!))
import Network.HTTP.Base (urlEncodeVars)
import Network.Wreq (get, responseBody)
import Netw... | ivan444/comic-translate | src/Comic/Translate.hs | mit | 1,889 | 0 | 19 | 488 | 423 | 233 | 190 | -1 | -1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE DeriveGeneric #-}
module Block where
import Data.Map as M
import Data.List as L
import Data.Maybe (fromJust)
import Debug.Trace
import Graphics.Gloss
import Data.Aeson
import Data.Aeson.Types
import qualified Data.Text as T (pack, unpack, split, Text)
import GHC.Generi... | maple-shaft/HaskellTetris | src/Block.hs | mit | 6,044 | 0 | 14 | 1,760 | 1,789 | 984 | 805 | 115 | 4 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #... | philopon/apiary | apiary-authenticate/src/Web/Apiary/Authenticate/Internal.hs | mit | 5,001 | 0 | 14 | 1,009 | 1,610 | 892 | 718 | 112 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-
Most code of this file is copied from one of the samples of Takahiro Himura's twitter-conduit.
https://github.com/himura/twitter-conduit/blob/4e0d58b5d7da3cee1b52995dfe4be8b98d29c970/sample/oauth_pin.hs
Copyright (c)2011-2014, Takahiro Himura
All rights reserved.
Redistribution... | igrep/plus2tweet | Twitter/Authentication.hs | mit | 2,518 | 0 | 12 | 452 | 235 | 127 | 108 | 26 | 1 |
{-# LANGUAGE CPP,
QuasiQuotes,
TemplateHaskell,
TypeSynonymInstances,
FlexibleInstances,
TupleSections,
OverloadedStrings #-}
module Gen2.RtsTypes where
import DynFlags
import Encoding
import Id
import ... | forked-upstream-packages-for-ghcjs/ghcjs | ghcjs/src/Gen2/RtsTypes.hs | mit | 23,100 | 1 | 19 | 6,126 | 7,536 | 4,074 | 3,462 | -1 | -1 |
-- Non-deterministic choice
module HS08_Variation5 where
import Prelude hiding (lookup)
----------------
-- List Monad
----------------
type L a = [a]
unitL :: a -> L a
unitL a = [a]
bindL :: L a -> (a -> L b) -> L b
m `bindL` k = [b | a <- m, b <- k a]
zeroL :: L a
zeroL = []
plusL :: L a -> L a ... | BP-HUG/presentations | 2017_march/HS08_Variation5.hs | mit | 2,054 | 7 | 13 | 645 | 913 | 476 | 437 | 53 | 2 |
module Main where
import qualified System.Directory as Dir
import qualified System.IO as IO
import qualified System.Win32 as Win
import qualified System.Environment as Env
import qualified System.Process as Proc
import qualified System.FilePath as Path
import System.FilePath ((</>))
import Control.Applicative
import C... | LukaHorvat/Hibernate | src/Main.hs | mit | 3,490 | 0 | 15 | 977 | 693 | 345 | 348 | 77 | 6 |
{-# LANGUAGE DeriveGeneric #-}
module Backhand.Channel where
import qualified STMContainers.Map as M
import GHC.Generics
import Control.Concurrent.Chan.Unagi.Bounded
import Control.Concurrent.STM
import Data.Aeson
import Data.Semigroup.Bitraversable
import Data.Text
import ListT
import Backhand.Message
import Back... | quietspace/Backhand | backhand/src/Backhand/Channel.hs | mit | 5,384 | 0 | 20 | 1,114 | 1,529 | 779 | 750 | 115 | 3 |
module Main where
main = do
print "Hello, "
print "World!"
| shigemk2/haskell_abc | Main.hs | mit | 69 | 0 | 7 | 21 | 21 | 10 | 11 | 4 | 1 |
-- | pdfname: Name a PDF file using the information from the `pdfinfo`
-- command.
module Main where
import qualified Data.Text.IO as T
import Options.Applicative ( execParser )
import System.FilePath ( (</>) )
import System.IO
( hPrint
, stderr
)
import Text.PDF.Info
( pdfInfo
, PDFInfoError(ProcessErr... | asr/pdfname | src/Main.hs | mit | 1,354 | 0 | 16 | 337 | 286 | 155 | 131 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module UnitTest.ResponseParse.UserProfileResponse where
import Data.Aeson (Value)
import Data.Yaml.TH (decodeFile)
import Test.Tasty as Tasty
import Web.Facebook.Messenger
import UnitTest.Internal
---------------------------
-- USER PROFILE RESPONSE --
---------------------------
... | Vlix/facebookmessenger | test/UnitTest/ResponseParse/UserProfileResponse.hs | mit | 1,315 | 0 | 8 | 435 | 172 | 102 | 70 | -1 | -1 |
{-# LANGUAGE RankNTypes, ExistentialQuantification, GeneralizedNewtypeDeriving #-}
{-# OPTIONS_HADDOCK prune, not-home #-}
-- | Provides types and encoding/decoding code. Types should be identical to those provided
-- in the Discord API documentation.
module Network.Discord.Types
( module Network.Discord.Types
, ... | jano017/Discord.hs | src/Network/Discord/Types.hs | mit | 4,299 | 0 | 11 | 1,042 | 595 | 359 | 236 | 53 | 1 |
module Y2020.M07.D02.Exercise where
import Data.Graph
{--
Okay, recall that highly connected graph from earlier this week?
--}
data Node = A | B | C | D | E | F | G | H
deriving (Eq, Ord, Show)
data Arc = Arc Node Node Int
deriving (Eq, Ord, Show)
graphArcs :: [Arc]
graphArcs =
let arcs = zipWith id (zip... | geophf/1HaskellADay | exercises/HAD/Y2020/M07/D02/Exercise.hs | mit | 1,351 | 0 | 12 | 324 | 311 | 183 | 128 | 17 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Course.Validation where
import qualified Prelude as P(String)
import Course.Core
-- class Validation<A> {
-- Validation(String error) {} // Error
-- Validation(A value) {} // Value
-- }
-- $setup
-- >>> import Test.QuickCheck
-- ... | harrisi/on-being-better | list-expansion/Haskell/course/src/Course/Validation.hs | cc0-1.0 | 2,622 | 0 | 8 | 521 | 434 | 256 | 178 | 27 | 1 |
{- |
Module : $EmptyHeader$
Description : <optional short description entry>
Copyright : (c) <Authors or Affiliations>
License : GPLv2 or higher, see LICENSE.txt
Maintainer : <email>
Stability : unstable | experimental | provisional | stable | frozen
Portability : portable | non-portable (<reason>... | nevrenato/Hets_Fork | GMP/GenericSequent.hs | gpl-2.0 | 2,803 | 0 | 14 | 900 | 852 | 430 | 422 | 47 | 7 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid 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 3 of the Lice... | karamellpelle/grid | source/Game/Memory/Do/Grid.hs | gpl-3.0 | 4,274 | 0 | 19 | 1,636 | 797 | 446 | 351 | 69 | 4 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application
( makeApplication
, getApplicationDev
, makeFoundation
) where
import Import
import qualified Data.ByteString as S
import qualified Data.ByteString.Lazy as L
import Yesod.Default.Config (
AppConfig, ConfigSettings (..), DefaultEnv (..)
... | RaphaelJ/getwebb.org | Application.hs | gpl-3.0 | 4,262 | 0 | 14 | 909 | 807 | 443 | 364 | -1 | -1 |
{- ============================================================================
| Copyright 2011 Matthew D. Steele <mdsteele@alum.mit.edu> |
| |
| This file is part of Fallback. |
... | mdsteele/fallback | src/Fallback/State/FOV.hs | gpl-3.0 | 14,877 | 0 | 35 | 3,962 | 3,776 | 1,946 | 1,830 | 183 | 5 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-ec2/gen/Network/AWS/EC2/AttachClassicLinkVpc.hs | mpl-2.0 | 5,531 | 0 | 10 | 1,189 | 643 | 394 | 249 | 72 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module Net.DigitalOcean.Regions (
Region(..)
, getRegions
-- ** Lens Accessors
, rgnName, rgnSlug, rgnSizes, rgnFeatures, rgnAvailable
) where
import qualified Data.Text as T
import qualified Data.HashMap.Strict as HM
import Data.Aeson(FromJSON(..), Value(..), (.:), fromJSO... | bluepeppers/DigitalOcean | src/Net/DigitalOcean/Regions.hs | agpl-3.0 | 1,458 | 0 | 15 | 409 | 351 | 208 | 143 | -1 | -1 |
-- This file is part of purebred
-- Copyright (C) 2017-2021 Fraser Tweedale and Róman Joost
--
-- purebred is free software: you can redistribute it and/or modify
-- it under the terms of the GNU Affero General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at yo... | purebred-mua/purebred | src/Purebred/Types/Parser/ByteString.hs | agpl-3.0 | 1,588 | 0 | 12 | 295 | 217 | 129 | 88 | 18 | 1 |
module AlecSequences.A270841 (a270841) where
a270841 :: Integral a => a -> a
a270841 1 = 5
a270841 n = 2 ^ (n - 2) + n + 1
| peterokagey/haskellOEIS | src/AlecSequences/A270841.hs | apache-2.0 | 131 | 0 | 9 | 36 | 62 | 33 | 29 | 4 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QIODevice.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:31
Warning : this file is machine generated - do not... | uduki/hsQt | Qtc/Core/QIODevice.hs | bsd-2-clause | 18,716 | 0 | 14 | 3,196 | 6,075 | 3,085 | 2,990 | -1 | -1 |
--
-- Copyright (c) 2013, Carl Joachim Svenn
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above copyright notice... | karamellpelle/MEnv | source/File/Binary/Reader.hs | bsd-2-clause | 8,999 | 0 | 16 | 2,479 | 2,091 | 1,095 | 996 | -1 | -1 |
module Test.Observer (observer, observerName, printNum, x) where
import GOOL.Drasil (
ProgramSym, FileSym(..), PermanenceSym(..), BodySym(..), TypeSym(..),
StatementSym(..), VariableSym(..), ValueSym(..), ScopeSym(..),
MethodSym(..), initializer, StateVarSym(..), ClassSym(..), ModuleSym(..), FS,
CS, MS, VS)... | JacquesCarette/literate-scientific-software | code/drasil-gool/Test/Observer.hs | bsd-2-clause | 1,317 | 0 | 10 | 188 | 503 | 289 | 214 | 26 | 1 |
#!/usr/bin/env runhaskell
-- Cf. <http://www.mail-archive.com/haskell-cafe@haskell.org/msg59984.html>
-- <http://www.haskell.org/pipermail/haskell-cafe/2008-December/051785.html>
{-# OPTIONS_GHC -Wall -fwarn-tabs -fno-warn-missing-signatures #-}
module Main (main) where
import Distribution.Simple
import Distribution.S... | bitemyapp/stm-chans | Setup.hs | bsd-3-clause | 1,189 | 0 | 13 | 180 | 182 | 105 | 77 | 13 | 1 |
module Json.Internal.Encode
(
-- * ByteString builder
encodeToBuilder,
encodeToBuilderWith,
-- * ByteString
encodeToByteString,
encodeToByteStringWith,
-- * Text builder
encodeToTextBuilder,
encodeToTextBuilderWith,
-- * Text
encodeToText,
encodeToTextWith,
)
where
import Json.Internal.Encode.... | aelve/json-x | lib/Json/Internal/Encode.hs | bsd-3-clause | 364 | 0 | 4 | 57 | 52 | 37 | 15 | 12 | 0 |
module Tubes.Model (
module Tubes.Model.Action,
module Tubes.Model.Tube,
module Tubes.Model.Universe,
) where
import Tubes.Model.Action
import Tubes.Model.Tube
import Tubes.Model.Universe
| fizruk/tubes | src/Tubes/Model.hs | bsd-3-clause | 195 | 0 | 5 | 24 | 48 | 33 | 15 | 7 | 0 |
-- 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.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE NoRebindableSyntax #-}
module Duckling.Or... | facebookincubator/duckling | Duckling/Ordinal/RU/Rules.hs | bsd-3-clause | 3,484 | 0 | 18 | 614 | 768 | 459 | 309 | 83 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Dalvik.ClassHierarchy (
-- * Class Hierarchy Analysis
CHA,
classHierarchyAnalysis,
classHierarchyParent
) where
import Control.Monad ( foldM, liftM )
import Control.Monad.Catch as E
import qualified Data.ByteString.Char8 as BS
import Data.Map
import qualified Data.Ma... | travitch/dalvik | src/Dalvik/ClassHierarchy.hs | bsd-3-clause | 1,556 | 0 | 17 | 311 | 369 | 199 | 170 | 32 | 2 |
module Monto.Types where
import Data.Text (Text)
type VersionID = Int
type ProductID = Int
type Source = Text
type Language = Text
type Product = Text
type Port = Int
type ServiceID = Text | wpmp/monto-broker | src/Monto/Types.hs | bsd-3-clause | 225 | 0 | 5 | 70 | 58 | 38 | 20 | 9 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.