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 DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module LSI.RationalFunction ( RationalFunction(..)
, constant
, one
, zero
,... | gdeest/lsi-systems | src/LSI/RationalFunction.hs | bsd-3-clause | 6,701 | 16 | 16 | 2,181 | 2,306 | 1,199 | 1,107 | 116 | 19 |
module Sexy.Data.Integer (module Integer) where
import Prelude as Integer (Integer)
| DanBurton/sexy | src/Sexy/Data/Integer.hs | bsd-3-clause | 85 | 0 | 5 | 11 | 23 | 16 | 7 | 2 | 0 |
{-# LANGUAGE DeriveGeneric #-}
module Doq.Service where
import Data.Aeson
import Data.Text
import GHC.Generics
import Network.Wreq
data Service = Service {
id :: Text,
service :: Text,
tags :: [Text],
address :: Text,
port :: Int
} deriving (Generic, Show)
instance FromJSON Service
insta... | pepegar/doq | src/Doq/Service.hs | bsd-3-clause | 516 | 0 | 10 | 112 | 143 | 80 | 63 | 20 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
module SDL.Input.Mouse
( -- * Relative Mouse Mode
setRelativeMouseMode
, getRelativeMouseMode
-- * Mouse and Touch Input
, MouseBut... | svenkeidel/sdl2 | src/SDL/Input/Mouse.hs | bsd-3-clause | 7,547 | 0 | 15 | 1,730 | 1,466 | 803 | 663 | 139 | 6 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Web.Telegram.API.Bot.API.Chats
( -- * Functions
kickChatMember
, kickChatMemberM
, leaveChat
, leaveChatM
, unbanChatMember
, unbanChatMemberM
, getChat
, getCh... | cblp/haskell-telegram-api | src/Web/Telegram/API/Bot/API/Chats.hs | bsd-3-clause | 6,348 | 0 | 37 | 1,280 | 1,181 | 608 | 573 | 97 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Misc
( Coord
, Symbol(..)
, sAttr
, sChar
) where
import Control.Lens
import Graphics.Vty
type Coord = (Int, Int)
data Symbol = Symbol
{ _sAttr :: Maybe Attr
, _sChar :: Char
} deriving (Read, Show, Eq)
makeLenses ''Symbol
| dagit/7drl2017 | src/Misc.hs | bsd-3-clause | 274 | 0 | 9 | 56 | 92 | 55 | 37 | 14 | 0 |
module Main where
import Control.Applicative ((<$>))
import Control.Monad
import Data.List
import Data.Maybe
import System.Directory
import System.FilePath
import System.Random
data Clip = Clip FilePath Double
data Theme = Theme FilePath [Clip]
data Movie = Movie (Maybe FilePath) [Theme] -- last chose... | nionita/Clips | Clips.hs | bsd-3-clause | 3,281 | 0 | 21 | 1,106 | 1,209 | 619 | 590 | 66 | 3 |
module CliOptions
( ServeOptions(..)
, options
) where
import Options.Applicative
data ServeOptions = ServeOptions
{ optPort :: Int
, optVersion :: Bool
, pathArg :: String
}
options :: Parser ServeOptions
options = ServeOptions
<$> portArgument
<*> versionArgument
<*> pathArgument
-------... | stites/serve | cli/CliOptions.hs | bsd-3-clause | 725 | 0 | 11 | 150 | 186 | 98 | 88 | 27 | 1 |
module Context (
makeEmptyContext
, nameToIndex
, indexToName
, addName
, dropOneName
, pickFreshName
) where
import Data.List (findIndex)
import qualified Data.HashSet as S
import Base
makeEmptyContext :: Context
makeEmptyContext = Context []
nameToIndex :: Context -> String -> Int
nameToInde... | foreverbell/unlimited-plt-toys | tapl/untyped/Context.hs | bsd-3-clause | 1,090 | 0 | 12 | 234 | 377 | 203 | 174 | 28 | 3 |
{-# LANGUAGE FlexibleContexts #-}
module Find (
Rel, ItemQualAttr(..), ItemQual(..), Find(..),
makeTree,
ItemSource(..), Item(..),
find )
where
import Control.Applicative ((<$>), (<*>))
import Data.Maybe
import Data.NBT
import Game.Minecraft.Level
import Game.Minecraft.Identifiers
import Text.Parsec.Prim
imp... | BartMassey/mc-level | Find.hs | bsd-3-clause | 13,306 | 0 | 22 | 4,805 | 3,692 | 1,902 | 1,790 | 278 | 6 |
{-# LANGUAGE TypeOperators,ScopedTypeVariables #-}
-- | A simple NCTL model checker
module NPNTool.ModelChecker where
import Data.Graph.Inductive
import Data.Maybe (fromJust)
import NPNTool.StateSpace
import NPNTool.NCTL
import Data.Function
import Debug.Trace
import Data.List
import qualified Data.Map as M
import C... | co-dan/NPNTool | src/NPNTool/ModelChecker.hs | bsd-3-clause | 3,589 | 0 | 18 | 999 | 1,701 | 869 | 832 | 90 | 3 |
module Libv8
( main'
) where
-- v8 : Functions for averaging ranks and producing their standard deviation.
-- Produce results and wire things up from rankings to results.
import qualified Data.Map.Strict as Map
import Data.List
import Data.Maybe
import Data.Ord
import Text.Parsec
import Text.Parsec.String
-... | mfine/hs-talks | src/Libv8.hs | bsd-3-clause | 3,125 | 0 | 11 | 510 | 729 | 398 | 331 | 60 | 1 |
{-|
Module : Data.AtLeast
Description : Lists of at least n elements.
Copyright : (c) Alexander Vieth, 2015
Licence : BSD3
Maintainer : aovieth@gmail.com
Stability : experimental
Portability : non-portable (GHC only)
-}
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignature... | avieth/diplomacy | Data/AtLeast.hs | bsd-3-clause | 2,369 | 0 | 17 | 578 | 860 | 452 | 408 | 55 | 4 |
module Filter.Datatype
( Filter(..)
)
where
type Month = String
data Filter
= LatestByDate
| ThisYearByMonth
| BySubject
| GenRss
| ThisSubject String
| ThisId String
| ThisPage Int
| ThisAuthor String
| ThisCategory String
| ThisMonth Month
| frosch03/frogblog | Filter/Datatype.hs | bsd-3-clause | 312 | 0 | 6 | 108 | 67 | 42 | 25 | 14 | 0 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
-- |
-- Module : Pact.Server.ApiServer
-- Copyright : (C) ... | kadena-io/pact | src-ghc/Pact/Server/ApiServer.hs | bsd-3-clause | 5,690 | 0 | 15 | 1,038 | 1,721 | 891 | 830 | 130 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Alfred
import Alfred.Query
import qualified Data.Text as T
import Data.Text (Text)
import Data.Text.Lazy.Encoding as L
runQuery :: Query (Text,[Text])
runQuery = jsonQuery' (L.encodeUtf8 . L.decodeLatin1) suggestURL
suggestURL = "http://google.com/complete... | pa-ba/alfred | examples/Google.hs | bsd-3-clause | 689 | 0 | 10 | 127 | 191 | 113 | 78 | 16 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
module Main (main) where
import Data.DoMonoid (runDoM)
import Data.Text.IO as T (putStr)
main :: IO ()
main = T.putStr $ runDoM $ do
-- Lines are combined using Text.append
"fib 0 = 0\n"
"fib 1 = 1\n"
"fib n = fib (n-1) + fib (n-... | tserduke/do-list | examples/Text.hs | bsd-3-clause | 326 | 0 | 7 | 64 | 69 | 40 | 29 | 10 | 1 |
maxFour :: Int -> Int -> Int -> Int -> Int
maxFour
| a >= b && a >= c && a >= d = a
| b >= c && b >= d = b
| c >= d = c
| otherwise = d
| roberth/uu-helium | test/thompson/Thompson03.hs | gpl-3.0 | 209 | 0 | 12 | 119 | 96 | 46 | 50 | 6 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
-- |
-- Module: BDCS.Depsolve
-- Copyright: (c) 2016-2017 Red Hat, Inc.
-- License: LGPL
--
-- Maintainer: https://github.com/weldr
-- Stability: alpha
-- Portability: portable
--
-- Manage 'Builds' records in the database.
module BDCS.Depsolve(Formula(..),
... | atodorov/bdcs | src/BDCS/Depsolve.hs | lgpl-2.1 | 12,705 | 0 | 17 | 3,358 | 2,168 | 1,171 | 997 | -1 | -1 |
module Tandoori.Typing where
import qualified Tandoori.GHC.Internals as GHC
import qualified Data.Set as Set
import Data.List (nub)
import Data.Monoid
import Control.Monad (liftM, liftM2)
type Tv = GHC.Name
type Con = GHC.Name
type Cls = GHC.Name
data Ty = TyVar Tv
| TyCon Con
| TyAp... | bitemyapp/tandoori | src/Tandoori/Typing.hs | bsd-3-clause | 4,184 | 0 | 12 | 1,224 | 1,493 | 780 | 713 | 93 | 3 |
module FunIn6 where
--Default parameters can be added to definition of functions and simple constants.
--In this example: add parameter 'y' to 'foo'
main :: IO Integer
main = do
let foo y = return [1..4]
foo_y = undefined
x <- (foo foo_y)
return (sum x)
| kmate/HaRe | test/testdata/AddOneParameter/FunIn6.expected.hs | bsd-3-clause | 270 | 0 | 11 | 62 | 69 | 35 | 34 | 7 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-route53/gen/Network/AWS/Route53/CreateReusableDelegationSet.hs | mpl-2.0 | 5,958 | 0 | 11 | 1,162 | 583 | 356 | 227 | 70 | 1 |
{-# LANGUAGE FlexibleInstances #-}
-- {-# LANGUAGE OverlappingInstances #-}
{-# LANGUAGE TypeOperators #-}
module Control.Monatron.MonadInfo (
MInfo(..), MonadInfo(minfo), MonadInfoT(tminfo),
miInc
) where
import Control.Monatron.Monad
import Control.Monatron.MonadT
import Control.Monatron.IdT
import Control.Mona... | neothemachine/monadiccp | src/Control/Monatron/MonadInfo.hs | bsd-3-clause | 2,002 | 0 | 14 | 373 | 766 | 397 | 369 | 54 | 2 |
module Main where
import Test.HUnit
import System.IO
import qualified System.Cmd as System
import System.Exit
import System.Environment
import Data.List
data TestCases = TestCases {cacheCmd::String
,refactorCmd::String
,positive::[([String],([String],... | RefactoringTools/HaRe | old/testing/evalAddEvalMon/UTestCache.hs | bsd-3-clause | 4,965 | 0 | 18 | 1,530 | 1,305 | 672 | 633 | 72 | 1 |
{-# LANGUAGE CPP, FlexibleInstances, MultiParamTypeClasses, DeriveDataTypeable, PatternGuards #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.LimitWindows
-- Copyright : (c) 2009 Adam Vogt
-- (c) 2009 Max Rabkin -- wrote limitSelec... | adinapoli/xmonad-contrib | XMonad/Layout/LimitWindows.hs | bsd-3-clause | 5,907 | 0 | 16 | 1,455 | 1,711 | 902 | 809 | -1 | -1 |
import System.Posix.Process
main = do
pgid <- getProcessGroupID
pgid' <- getProcessGroupIDOf =<< getProcessID
putStr "Testing getProcessGroupID == getProcessGroupIDOf =<< getProcessID: "
print $ pgid == pgid'
| rimmington/unix | tests/processGroup001.hs | bsd-3-clause | 214 | 0 | 8 | 31 | 47 | 22 | 25 | 6 | 1 |
{-# LANGUAGE CPP #-}
-- ----------------------------------------------------------------------------
-- | Handle conversion of CmmData to LLVM code.
--
module LlvmCodeGen.Data (
genLlvmData, genData
) where
#include "HsVersions.h"
import Llvm
import LlvmCodeGen.Base
import BlockId
import CLabel
import C... | tjakway/ghcjvm | compiler/llvmGen/LlvmCodeGen/Data.hs | bsd-3-clause | 4,875 | 0 | 16 | 1,183 | 1,222 | 608 | 614 | 99 | 7 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE RecordWildCards #-}
module Memento.GoogleCalendar
( newHangoutLink
) where
import Control.Applicative
import Data.Text (Text)
import qualified Data.Text as T
import qualified Data.Text.Encoding as TE
import qualified Data.Aeson as JSON
import Data.Aeson.TH
import D... | adinapoli/memento | src/Memento/GoogleCalendar.hs | mit | 3,436 | 0 | 14 | 520 | 678 | 372 | 306 | 66 | 1 |
module Feature.RangeSpec where
import Test.Hspec
import Test.Hspec.Wai
import Test.Hspec.Wai.JSON
import Network.HTTP.Types
import Network.Wai.Test (SResponse(simpleHeaders,simpleStatus))
import SpecHelper
spec :: Spec
spec = beforeAll resetDb
. around (withApp cfgDefault) $
describe "GET /items" $ do
conte... | NikolayS/postgrest | test/Feature/RangeSpec.hs | mit | 4,312 | 0 | 21 | 1,478 | 852 | 443 | 409 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #... | teuffy/min-var-ci | src/DataAnalysis/Library.hs | mit | 10,455 | 0 | 22 | 3,172 | 2,684 | 1,428 | 1,256 | 215 | 6 |
{-# htermination (>>=) :: [] a -> (a -> [] b) -> [] b #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_GTGTEQ_1.hs | mit | 58 | 0 | 2 | 15 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE TupleSections #-}
module Chattp.Persistence.Config
( ConnectInfo
, SockAddr
, getInterfaceSockAddr
, getRedisConnInfo
) where
import Control.Applicative
import Network.Socket
import System.Environment
import Database.Redis
import System.Directory
import System.IO.Error
getInterfaceSockAddr :: IO (Fami... | Spheniscida/cHaTTP | persistence-layer/Chattp/Persistence/Config.hs | mit | 1,392 | 0 | 14 | 194 | 358 | 184 | 174 | 31 | 1 |
module Main where
import SimpleJSON
main = print (JObject [("foo", JNumber 1), ("bar", JBool False)])
| zhangjiji/real-world-haskell | ch5/Main.hs | mit | 104 | 0 | 10 | 17 | 45 | 26 | 19 | 3 | 1 |
module Cat.Parsers where
-- TODO: don't export everything.
import Options.Applicative
import Cat.Types
parser :: Char -> String -> String -> [Option] -> Parser [Option]
parser s l h o= flag' o $ short s <> help h <> long l
shortParser :: Char -> String -> [Option] -> Parser [Option]
shortParser s h o = flag' o $ s... | shockone/coreutils | src/cat/parsers.hs | mit | 337 | 0 | 10 | 68 | 140 | 71 | 69 | 7 | 1 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE Unsafe #-}
module Scheduler.Unsafe (
) where
import Scheduler (newScheduler)
import Scheduler.Internal
import Scheduler.Main
import System.IO.Unsafe (unsafePerformIO)
-- | Extracts the underlying 'IO' action from a 'SchedulerIO' action.
--
-- ... | jspahrsummers/RxHaskell | Scheduler/Unsafe.hs | mit | 1,070 | 0 | 9 | 221 | 201 | 104 | 97 | 17 | 1 |
module Ray.AreaLightShape where
import Ray.Geometry
import Ray.Shape
import Ray.Mesh
import qualified Control.Monad.Random as Random
import qualified Data.Vector as Vector
import Control.Monad (replicateM)
data AreaLightShape = Rect3D {
origin :: V3
, uv :: V3
... | j-rock/rayt | src/Ray/AreaLightShape.hs | mit | 1,707 | 0 | 12 | 521 | 561 | 303 | 258 | 38 | 1 |
module IOWrite --(genOutput)
where
{-
import qualified Data.Text as T
import Control.Applicative
import Processing.Clusters
import Processing.Includes
header :: [T.Text]
header = map T.pack
[ "digraph G {"
, "graph [overlap=prism,splines=true]"
, "node [shape=box,style=filled,fontname=\"Sans\",fontsize=... | ruslashev/cdepgraph | src/IOWrite.hs | mit | 1,809 | 0 | 2 | 416 | 6 | 5 | 1 | 1 | 0 |
module Network.Statsd.Cluster (
Cluster,
cluster,
Network.Statsd.Cluster.increment,
Network.Statsd.Cluster.decrement,
Network.Statsd.Cluster.count,
Network.Statsd.Cluster.gauge,
Network.Statsd.Cluster.timing,
Network.Statsd.Cluster.histogram,
) where
import Network.Statsd as Statsd
import Network.Stat... | keithduncan/statsd-client | src/Network/Statsd/Cluster.hs | mit | 1,621 | 0 | 12 | 321 | 500 | 266 | 234 | 35 | 1 |
module HaskellImage where
import qualified Data.Map.Strict as Map
import Data.Either
import Graphics.HsExif
import Data.Time.LocalTime
import Data.Time.Calendar
import Data.Time.Clock
import Data.Time.Format
import System.FilePath.Find
import System.FilePath
import System.Directory
import Data.UUID
import Data.UUID.V4... | adsmit14/haskell | Haskell_Image/Main.hs | mit | 1,637 | 0 | 15 | 329 | 633 | 334 | 299 | 40 | 2 |
module Data.BuzHash.IO
( ChunkSplit (..)
, BuzHashIO
, BuzHashRepr (..)
, newIO
, cloneIO
, processIO
, reprIO
, buzTableIO
) where
import Control.Applicative
import Data.ByteString (ByteString)
import qualified Data.ByteString as BS
import qualified Data.ByteString.Unsafe as BS
import Data.IORef
imp... | ion1/buzhash-haskell | src/Data/BuzHash/IO.hs | mit | 3,710 | 0 | 17 | 1,036 | 939 | 488 | 451 | 96 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Message.UtilSpec
( main
, spec
) where
import Test.Hspec
import Test.QuickCheck
import Test.QuickCheck.Instances ()
import qualified Data.Text as T
import Message.Util
-- ----------------------------------... | UlfS/ghmm | test/Message/UtilSpec.hs | mit | 1,226 | 0 | 16 | 318 | 275 | 142 | 133 | 26 | 1 |
{-# LANGUAGE DeriveGeneric, OverloadedStrings #-}
module PivotalStats (stories, storyTypes) where
import qualified GHC.Generics as G
import qualified Network.HTTP.Conduit as C
import qualified Data.Aeson as D
import qualified Data.Text.Encoding as TE
import qualified Data.Text as T
apiUrl = "https://www.pivotaltrack... | jsl/pivotal-stats | PivotalStats.hs | mit | 1,804 | 0 | 17 | 506 | 516 | 278 | 238 | 42 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Control.Applicative
import Control.Monad
import Control.Monad.Trans.Class
import Control.Monad.IO.Class
import Data.Acid
import Data.Acid.Advanced
import Data.Aeson
import qualified Data.ByteString.Char8 as C
import Data.Char
import Data.IntMap.Lazy
import Data.Maybe
import Da... | ryandv/reactive-tomato | src/Main.hs | gpl-2.0 | 4,667 | 0 | 22 | 1,410 | 1,213 | 643 | 570 | 107 | 3 |
module Analysis(modCountsListReport,
modCountsBarChartReport,
modificationCounts,
analyzers) where
import Data.List as L
import Data.Map as M
import ProjectData
import Report
analyzers =
[modCountsListReport,
modCountsBarChartReport,
filesChangedByCommitReport]... | dillonhuff/GitVisualizer | src/Analysis.hs | gpl-2.0 | 2,055 | 0 | 12 | 360 | 534 | 283 | 251 | 39 | 2 |
{- |
Module : $Header$
Description : utility to create valid identifiers for atp provers
Copyright : (c) Klaus Luettich, Uni Bremen 2005
License : GPLv2 or higher, see LICENSE.txt
Maintainer : luecke@informatik.uni-bremen.de
Stability : provisional
Portability : portable
collection of functions u... | nevrenato/Hets_Fork | SoftFOL/Translate.hs | gpl-2.0 | 3,726 | 0 | 17 | 756 | 746 | 402 | 344 | 78 | 11 |
{-# LANGUAGE
FlexibleInstances
,MultiParamTypeClasses
,NoMonomorphismRestriction
,UndecidableInstances
#-}
module Trace (
module Trace,
module Trace.Class,
module Trace.Coroutine
) where
import Control.Monad
import Control.Monad.State
import Control.Applicative (Applicative(..), Alternative(.... | acharal/hopes | src/prover/Trace.hs | gpl-2.0 | 2,324 | 0 | 14 | 590 | 895 | 463 | 432 | 58 | 1 |
import Data.Char
conversation input
| s == "hello" = "Hello"
| s == "how do you do?" = "Great!\r\nAnd "++ s
| s == "bye" = "Bye!"
| otherwise = ")))))))))))))))))))))))))))\r\nBye!"
where s = map toLower input
main = do
getLine >>= putStrLn . con... | forgit/Rosalind | ini7.hs | gpl-2.0 | 330 | 0 | 8 | 119 | 91 | 43 | 48 | 9 | 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 | source/Game/Run/Output/Fancy/ShadeCube.hs | gpl-3.0 | 5,844 | 0 | 16 | 1,979 | 2,049 | 1,016 | 1,033 | 120 | 1 |
{-
Python5 — a hypothetic language
Copyright (C) 2015 - Yuriy Syrovetskiy
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 3 of the License, or
(at your option) ... | cblp/python5 | python5/src/Python5/Builtin/Abs.hs | gpl-3.0 | 1,079 | 0 | 7 | 230 | 85 | 47 | 38 | 9 | 0 |
module Data.PartialOrder
( PartialOrder(..)
, (!<)
, (!>)
, (!>=)
, (!<=)
) where
(...) :: (b -> c) -> (a -> a1 -> b) -> a -> a1 -> c
(...) = (.) . (.)
{-# INLINE (...) #-}
class PartialOrder a where
cmp :: a -> a -> Maybe Ordering
(!<) :: PartialOrder a => a -> a -> Bool
(!<) = maybe False (LT ==) ..... | ucla-pls/wiretap-tools | src/Data/PartialOrder.hs | gpl-3.0 | 737 | 0 | 11 | 189 | 307 | 183 | 124 | 23 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-proximitybeacon/gen/Network/Google/Resource/ProximityBeacon/Beacons/Attachments/List.hs | mpl-2.0 | 8,249 | 0 | 20 | 1,846 | 1,040 | 612 | 428 | 145 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.GamesConfiguration
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : M... | brendanhay/gogol | gogol-games-configuration/gen/Network/Google/GamesConfiguration.hs | mpl-2.0 | 6,964 | 0 | 14 | 1,146 | 610 | 446 | 164 | 127 | 0 |
type Parent = (Int, Int)
type Tree = [Parent]
getHeight :: Tree -> Int
getHeight = undefined
main :: IO ()
main = getLine >> getContents >>= print . getHeight . readTree
where readTree = zip [1..] . map read . words
| natewind/sandbox | stepik_data_structures/module_1/2-Tree.hs | mpl-2.0 | 219 | 0 | 10 | 45 | 91 | 50 | 41 | 7 | 1 |
go l [] = Right l
go l ((IRType, _a) : eqr) = go l eqr
go l ((_, IRType) : eqr) = go l eqr
go _ ((IRTypeError ps t1 t2, _) : _) = Left $ makeError ps t1 t2
go _ ((_, IRTypeError ps t1 t2) : _) = Left $ makeError ps t1 t2
| lspitzner/brittany | data/Test331.hs | agpl-3.0 | 221 | 0 | 9 | 58 | 154 | 79 | 75 | 5 | 1 |
module Notation.QuantumState
(QuantumState(..)
, closure
, Scalar
, showScalar
) where
import Data.Complex
--------------------------------------------------------------------------------
-- Scalars are complex vauled numbers --
----------------------------------------... | johanjoensson/QuantumHaskell | QuantumHaskell-notation/src/Notation/QuantumState.hs | agpl-3.0 | 2,695 | 0 | 12 | 738 | 479 | 257 | 222 | 32 | 1 |
module Wrapper where
import qualified Lojban as L
import OpenCog.Lojban
import OpenCog.AtomSpace
import System.Random
import Foreign.C
import Foreign.Ptr
import Foreign.StablePtr
type WordList = L.WordList State
foreign export ccall "lojban_parse" c_parse :: Ptr AtomSpaceRef
-> ... | andre-senna/opencog | opencog/nlp/lojban/CWrapper/src/Wrapper.hs | agpl-3.0 | 1,969 | 0 | 15 | 702 | 547 | 256 | 291 | 55 | 4 |
{-# OPTIONS -W #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
module Main where
import Control.Concurrent.STM
import Control.Monad
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as M
import System.Random
import RTree
data Ship = Saucer
{ posx :: Int
, posy :: Int
, r ... | johnpmayer/spatial-index | Main.hs | agpl-3.0 | 2,986 | 0 | 16 | 794 | 1,266 | 660 | 606 | 84 | 1 |
{--------------------------------------------------------------------------------
Copyright (c) Daan Leijen 2003
wxWindows License.
A file browser in wxHaskell.
Demonstrates:
- tree control and list control
- image lists
- basic directory handling in Haskell
---------------------------------------------------... | thielema/wxhaskell | samples/wx/FileBrowse.hs | lgpl-2.1 | 8,748 | 0 | 18 | 2,111 | 2,002 | 999 | 1,003 | 145 | 5 |
{-|
Module : Controller
Description : Связующий модуль, содержащий главный цикл игры
License : LGPLv3
-}
module Controller ( run ) where
import Controller.Internal
| cmc-haskell-2015/checkers | src/Controller.hs | lgpl-3.0 | 222 | 0 | 4 | 42 | 15 | 10 | 5 | 2 | 0 |
{-# OPTIONS_GHC -w #-}
module Parser (parseExpr, parseTy) where
import Expr
import Control.Applicative(Applicative(..))
-- parser produced by Happy Version 1.19.4
data HappyAbsSyn t5 t6 t7 t8 t9 t10 t11
= HappyTerminal (Token)
| HappyErrorToken Int
| HappyAbsSyn5 t5
| HappyAbsSyn6 t6
| HappyAbsSyn7 t7
| HappyAb... | scturtle/InferW | Parser.hs | unlicense | 19,697 | 257 | 20 | 3,628 | 6,313 | 3,331 | 2,982 | 469 | 13 |
grey :: Int -> [String]
grey 1 = ["0", "1"]
grey n = let g = grey (n - 1)
g1 = concat $ repeat $ [grey 1, (reverse (grey 1))]
in [gPrev ++ x | (gPrev, g1') <- zip g g1, x <- g1']
| plilja/h99 | p49.hs | apache-2.0 | 202 | 0 | 14 | 68 | 124 | 65 | 59 | 5 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Text.ParserCombinators.Parsec.Perm
-- Copyright : (c) Daan Leijen 1999-2001
-- License : BSD-style (see the file libraries/parsec/LICENSE)
--
-- Maintainer : Antoine Latter <aslatter@gmail.com>
-- Stability ... | aslatter/parsec2 | Text/ParserCombinators/Parsec/Perm.hs | bsd-2-clause | 6,229 | 0 | 11 | 1,398 | 1,152 | 639 | 513 | -1 | -1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE CPP, TemplateHaskell #-}
{-# LANGUAGE ScopedTypeVariables, FlexibleContexts, RecordWildCards #-}
module Llvm.AsmHirConversion.Specialization where
import qualified Llvm.Asm.Data as A
import Llvm.Hir
import Llvm.ErrorLoc
import Data.Maybe
import Llvm.Hir.DataLayoutMetrics
import Llvm... | sanjoy/hLLVM | src/Llvm/AsmHirConversion/Specialization.hs | bsd-3-clause | 17,928 | 0 | 23 | 6,268 | 5,129 | 2,649 | 2,480 | 303 | 12 |
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Control.Exception
import Control.Monad
import Control.Monad.IfElse
import Data.Char
import Data.Function
import Data.List
import qualified Data.Set as S
import System.Process
import System.Directory
import System.Environment
import System.Exit
import System.Fi... | blockapps/mgit | src/Main.hs | bsd-3-clause | 10,115 | 0 | 21 | 2,132 | 2,921 | 1,442 | 1,479 | -1 | -1 |
{-|
Module : Data.Vinyl.Utils.Compose
Copyright : (c) Marcin Mrotek, 2014
License : BSD3
Maintainer : marcin.jan.mrotek@gmail.com
Operations on composed functor records.
-}
{-# LANGUAGE
DataKinds
, PolyKinds
#-}
{-# OPTIONS_HADDOCK show-extensions #-}
module Data.Vinyl.Utils.Compose
( r... | marcinmrotek/vinyl-utils | src/Data/Vinyl/Utils/Compose.hs | bsd-3-clause | 580 | 0 | 9 | 110 | 76 | 43 | 33 | 10 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Mistral.Parser.ParserCore where
import Mistral.ModuleSystem.Name
import Mistral.Parser.AST
import Mistral.Parser.Layout
import Mistral.Parser.Lexer
import Mistral.Parser.LexerCore
import Mistral.Utils.Panic
import Mistral.Utils.PP
import Mistral.Utils.Source
import ... | GaloisInc/mistral | src/Mistral/Parser/ParserCore.hs | bsd-3-clause | 5,314 | 0 | 17 | 1,561 | 1,997 | 1,017 | 980 | 139 | 9 |
module Serpentine.PathPiece
( PathPiece(..)
) where
import Data.Text (Text)
import Text.Read (readMaybe)
import qualified Data.Text as Text
class PathPiece a where
toPathPiece :: a -> Text
fromPathPiece :: Text -> Maybe a
instance PathPiece Int where
toPathPiece = Text.pack . show
fromPathPiece = readMa... | andrewthad/serpentine | src/Serpentine/PathPiece.hs | bsd-3-clause | 561 | 0 | 10 | 112 | 172 | 95 | 77 | 19 | 0 |
{-# OPTIONS_GHC -fglasgow-exts -cpp #-}
-----------------------------------------------------------------------------
-- |
-- Module : Language.Haskell.Exts.Syntax
-- Original : Language.Haskell.Syntax
-- Copyright : (c) Niklas Broberg 2004,
-- (c) The GHC Team, 1997-2000
-- License : B... | abuiles/turbinado-blog | tmp/dependencies/haskell-src-exts-0.3.9/Language/Haskell/Exts/Syntax.hs | bsd-3-clause | 26,961 | 0 | 11 | 6,822 | 4,227 | 2,632 | 1,595 | 382 | 1 |
module Ivory.Tower.Config.Options
( CfgOpts(..)
, getCfgOpts
) where
import Ivory.Tower.Options
import System.Console.GetOpt
(OptDescr(..), ArgDescr(..), usageInfo)
import qualified Ivory.Compile.C.CmdlineFrontend.Options as C
data CfgOpts = CfgOpts
{ cfgopts_configfile :: FilePath
, cfgopts_configpath :... | GaloisInc/tower | tower-config/src/Ivory/Tower/Config/Options.hs | bsd-3-clause | 2,096 | 0 | 15 | 519 | 565 | 317 | 248 | 47 | 2 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FlexibleInstances #-}
module Internal(
Signal(..)
, BSignal(..)
, duration
, nbSamples
, Time(..)
, Frequency(..)
, Dual(..)
, DualVal(..)
, samplin... | alpheccar/Signal | Internal.hs | bsd-3-clause | 2,462 | 4 | 11 | 517 | 914 | 506 | 408 | 69 | 1 |
{- Data/Singletons/TH/Promote/Type.hs
(c) Richard Eisenberg 2013
rae@cs.brynmawr.edu
This file implements promotion of types into kinds.
-}
module Data.Singletons.TH.Promote.Type
( promoteType, promoteType_NC, promoteType_options
, PromoteTypeOptions(..), defaultPromoteTypeOptions
, promoteTypeArg_NC, promoteU... | goldfirere/singletons | singletons-th/src/Data/Singletons/TH/Promote/Type.hs | bsd-3-clause | 7,188 | 0 | 14 | 1,587 | 1,152 | 610 | 542 | -1 | -1 |
{-# LANGUAGE CPP, FlexibleContexts, FlexibleInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, ScopedTypeVariables, TypeSynonymInstances, UndecidableInstances #-}
#if !MIN_VERSION_base(4,8,0)
{-# LANGUAGE OverlappingInstances #-}
#endif
---------- GENERATED FILE, EDITS WILL BE LOST ----------
module Graphi... | lynnard/cocos2d-hs | src/Graphics/UI/Cocos2d/Std.hs | bsd-3-clause | 12,473 | 0 | 14 | 1,676 | 3,657 | 1,865 | 1,792 | 207 | 1 |
module Whatever.Braces where
import Data.Maybe
import Control.Monad
matchedStack :: String -> Char -> Maybe String
matchedStack (top:stack) next | top == next = Just stack
matchedStack _ _ = Nothing
popNext :: String -> Char -> Maybe String
popNext stack next = case next of
'(' -> match ')'
'[' -> match ']'
'{... | meowcakes/whatever | src/Whatever/Braces.hs | bsd-3-clause | 574 | 0 | 9 | 113 | 233 | 118 | 115 | 18 | 4 |
-- | A convenient re-export of basic AST modules.
module Futhark.IR
( module Futhark.IR.Prop,
module Futhark.IR.Traversals,
module Futhark.IR.Pretty,
module Futhark.IR.Syntax,
)
where
import Futhark.IR.Pretty
import Futhark.IR.Prop
import Futhark.IR.Syntax
import Futhark.IR.Traversals
| HIPERFIT/futhark | src/Futhark/IR.hs | isc | 303 | 0 | 5 | 47 | 62 | 43 | 19 | 9 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-cloudtrail/gen/Network/AWS/CloudTrail/DeleteTrail.hs | mpl-2.0 | 2,748 | 0 | 9 | 633 | 356 | 217 | 139 | 48 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-efs/gen/Network/AWS/EFS/CreateTags.hs | mpl-2.0 | 3,625 | 0 | 12 | 746 | 463 | 279 | 184 | 61 | 1 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
module Pos.Diffusion.Full.Txp
( sendTx
, txListeners
, txOutSpecs
) where
import Data.Tagged (Tagged)
import qualified Network.Broadcast.OutboundQueue as OQ
import Universum
import Pos.Binary.Communi... | input-output-hk/cardano-sl | lib/src/Pos/Diffusion/Full/Txp.hs | apache-2.0 | 2,809 | 0 | 14 | 719 | 655 | 375 | 280 | 59 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE IncoherentInstances #-}
{-# LANGUAGE NoForeignFunctionInterface #-}
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE... | tmcdonell/accelerate-cuda | Data/Array/Accelerate/CUDA/Execute.hs | bsd-3-clause | 40,930 | 0 | 19 | 12,793 | 8,922 | 4,471 | 4,451 | 448 | 39 |
{-|
Module : IRTS.Defunctionalise
Description : Defunctionalise Idris' IR.
Copyright :
License : BSD3
Maintainer : The Idris Community.
To defunctionalise:
1. Create a data constructor for each function
2. Create a data constructor for each underapplication of a function
3. Convert underapplications to th... | Heather/Idris-dev | src/IRTS/Defunctionalise.hs | bsd-3-clause | 16,210 | 0 | 25 | 6,054 | 6,209 | 3,126 | 3,083 | 292 | 36 |
import System.Directory
main = do
getHomeDirectory >>= print
getAppUserDataDirectory "test" >>= print
getUserDocumentsDirectory >>= print
getTemporaryDirectory >>= print
return ()
| DavidAlphaFox/ghc | libraries/directory/tests/getHomeDirectory001.hs | bsd-3-clause | 227 | 0 | 8 | 67 | 50 | 22 | 28 | 7 | 1 |
import Data.Char
import qualified Data.List as L
digitSum :: String -> String
digitSum = show . sum . map digitToInt
superDigit :: String -> String
superDigit x = if length x == 1 then x
else superDigit $ digitSum x
main :: IO()
main = do
line <- getLine
let
w = L.words line
n ... | EdisonAlgorithms/HackerRank | practice/fp/recursion/super-digit/super-digit.hs | mit | 424 | 0 | 13 | 141 | 171 | 88 | 83 | 16 | 2 |
{-# LANGUAGE CPP #-}
-- |
-- Copyright : (c) 2012 Simon Meier
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Simon Meier <iridcode@gmail.com>
--
-- A variant of "Data.Monoid" that also exports '(<>)' for 'mappend'.
module Extension.Data.Monoid (
module Data.Monoid
#if __GLASGOW_HASKELL__ < 704
, (<>... | kelnage/tamarin-prover | lib/utils/src/Extension/Data/Monoid.hs | gpl-3.0 | 1,204 | 0 | 10 | 318 | 273 | 159 | 114 | 20 | 1 |
-- Substitutions and Unification of Prolog Terms
-- Mark P. Jones November 1990, modified for Gofer 20th July 1991,
-- and for Hugs 1.3 June 1996.
--
-- Suitable for use with Hugs 98.
--
module Subst where
import Prolog
infixr 3 @@
infix 4 ->-
--- Substitutions:
type Subst = Id -> Term
-- substitutions are repre... | OS2World/DEV-UTIL-HUGS | demos/prolog/Subst.hs | bsd-3-clause | 2,296 | 0 | 12 | 801 | 574 | 310 | 264 | 27 | 2 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
--
-- Stg to C--: code generation for constructors
--
-- This module provides the support code for StgCmm to deal with with
-- constructors on the RHSs of let(rec)s.
--
-- (c) The University of Glasgow 2004-2006
--
-----... | olsner/ghc | compiler/codeGen/StgCmmCon.hs | bsd-3-clause | 11,007 | 0 | 17 | 3,067 | 1,701 | 892 | 809 | -1 | -1 |
module Main where
import Test.DocTest
main :: IO ()
main = doctest ["src/Turtle/Pattern.hs", "src/Turtle/Format.hs"]
| rpglover64/Haskell-Turtle-Library | test/Main.hs | bsd-3-clause | 119 | 0 | 6 | 16 | 33 | 19 | 14 | 4 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Register
-- Copyright : Isaac Jones 2003-2004
-- License : BSD3
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- This module deals with registering and unregister... | x-y-z/cabal | Cabal/Distribution/Simple/Register.hs | bsd-3-clause | 20,436 | 0 | 22 | 5,935 | 3,687 | 1,960 | 1,727 | 341 | 8 |
{-# LANGUAGE OverloadedStrings #-}
import qualified Aws
import qualified Aws.S3 as S3
import qualified Data.Conduit as C
import qualified Data.Conduit.List as CL
import Data.Text (pack)
import Control.Monad ((<=<))
import Control.Monad.IO.Class (liftIO)
import Network.HTTP.Condu... | Soostone/aws | Examples/NukeBucket.hs | bsd-3-clause | 1,303 | 0 | 22 | 318 | 389 | 200 | 189 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeFamilies #-}
module T15852 where
import Data.Kind
import Data.Proxy
data family DF a (b :: k)
data instance DF (Proxy c) :: Proxy j -> Type
| sdiehl/ghc | testsuite/tests/indexed-types/should_compile/T15852.hs | bsd-3-clause | 213 | 0 | 7 | 38 | 53 | 33 | 20 | 8 | 0 |
{-# LANGUAGE DeriveGeneric #-}
module Distribution.Solver.Types.InstSolverPackage
( InstSolverPackage(..)
) where
import Distribution.Compat.Binary (Binary(..))
import Distribution.Package ( Package(..), HasMungedPackageId(..), HasUnitId(..) )
import Distribution.Solver.Types.ComponentDeps ( ComponentDeps )
i... | mydaum/cabal | cabal-install/Distribution/Solver/Types/InstSolverPackage.hs | bsd-3-clause | 1,441 | 0 | 12 | 202 | 275 | 162 | 113 | 27 | 0 |
{-# LANGUAGE RankNTypes, NoMonomorphismRestriction #-}
module Lamdu.Data.Expression.Lens
( pureExpr
, parameterRef, definitionRef
, kindedLam, kindedRecordFields
, exprLam
, exprApply
, exprRecord
, exprGetField
, exprLeaf
, bodyKindedRecordFields, exprKindedRecordFields
, bodyKindedLam, exprKindedL... | schell/lamdu | Lamdu/Data/Expression/Lens.hs | gpl-3.0 | 7,582 | 0 | 13 | 1,327 | 2,597 | 1,340 | 1,257 | -1 | -1 |
module T11663 where
-- All of these should fail as type signatures are not allowed
-- in patterns without -XScopedTypeVariables.
hello0 = \(h :: Int) -> print h
hello1 (h :: Int) = print h
hello2 = case 54 of (x :: Int) -> print x
hello4 = case Just 54 of Just (x :: Int) -> print x
| olsner/ghc | testsuite/tests/rename/should_fail/T11663.hs | bsd-3-clause | 284 | 0 | 10 | 60 | 100 | 53 | 47 | -1 | -1 |
module RobotModel where
import Frob
import RobotSim
RobotModel :: SimbotModel
RobotModel d v_max a_max aa_max v_l0 v_r0 =
let
v_rd = limitSymB v_max desiredVRightB
v_ld = limitSymB v_max desiredVLeftB
in
withVelocities v_ld v_rd
| jatinshah/autonomous_systems | as4/as1.hs | mit | 239 | 4 | 9 | 43 | 70 | 35 | 35 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Unison.Server.Endpoints.GetDefinitions where
import Control.Error (runExceptT)
import qualified Data.Text as Text
import Servant
( QueryParam,
Quer... | unisonweb/platform | parser-typechecker/src/Unison/Server/Endpoints/GetDefinitions.hs | mit | 4,064 | 0 | 18 | 1,037 | 847 | 465 | 382 | 118 | 1 |
import Geometry
import Drawing
import Geometry.Utils(Point)
import Control.Monad.State
main = drawPicture myPicture
myPicture points =
drawCircle (o,a) &
drawPointsLabels [a,b,p,q] ["A","B","P","Q"] &
drawSegment (o,a) & drawSegment (o,b) & drawSegment (a,b) &
drawSegment (p,a) & drawSegment (p,b) &
... | alphalambda/k12math | prog/demo/demo20circlearcs_state.hs | mit | 1,047 | 1 | 19 | 325 | 557 | 296 | 261 | 26 | 1 |
module GHCJS.DOM.XMLHttpRequestUpload (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/XMLHttpRequestUpload.hs | mit | 50 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RecordWildCards #-}
module PureScript.Ide.Types where
import Control.Concurrent.STM
import Control.Monad
import Control.Monad.Reader... | kRITZCREEK/psc-ide | src/PureScript/Ide/Types.hs | mit | 6,233 | 0 | 11 | 1,792 | 1,631 | 894 | 737 | 149 | 1 |
{-# LANGUAGE FlexibleInstances #-}
------------------------------------------------------------------------------
module Snap.Snaplet.Rest.FromRequest.Internal
( FromRequest (..)
, parseRead
) where
------------------------------------------------------------------------------
import qualified Data.ByteSt... | zmthy/snaplet-rest | src/Snap/Snaplet/Rest/FromRequest/Internal.hs | mit | 4,143 | 0 | 12 | 838 | 939 | 503 | 436 | 66 | 2 |
module Main where
import System.Environment ( getArgs)
import System.IO
import TypesAMPL
import Language.LBNF.Compiletime
import Language.LBNF.Runtime
import AMPLParserMeta
import Text.PrettyPrint
import Text.PrettyPrint.GenericPretty
main = do
args <- getArgs
let fileName = args !! 0
contents <- re... | prashant007/AMPL | myAMPL/src/test_del/Mainfile.hs | mit | 497 | 0 | 10 | 113 | 138 | 70 | 68 | 18 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE LambdaCase #-}
module PureScript.Ide.CaseSplit
( WildcardAnnotations()
, explicitAnnotations
, noAnnotations
, makePattern
, add... | kRITZCREEK/psc-ide | src/PureScript/Ide/CaseSplit.hs | mit | 5,625 | 0 | 16 | 1,401 | 1,536 | 810 | 726 | 122 | 4 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
module U.Codebase.Referent where
import Data.Text (Text)
import U.Codebase.Reference (Reference, Reference')
import qualified U.Codebase.Reference as Reference
import U.Util.Hash (Hash)
import U.Util.Hashable (Hashabl... | unisonweb/platform | codebase2/codebase/U/Codebase/Referent.hs | mit | 1,821 | 0 | 11 | 372 | 720 | 375 | 345 | 52 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.