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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
----------------------------------------------------------------
--
-- | aartifact
-- http://www.aartifact.org/
--
-- @src\/Main.hs@
--
-- Main module. Parses command-line arguments, calls
-- appropriate routines, and tracks time spent.
--
----------------------------------------------------------------
--
mod... | aartifact/aartifact-verifier | src/Main.hs | mit | 5,985 | 1 | 18 | 1,314 | 1,859 | 978 | 881 | 102 | 5 |
-- Exception.hs ---
--
-- Filename: Exception.hs
-- Description:
-- Author: Manuel Schneckenreither
-- Maintainer:
-- Created: Thu Sep 4 10:40:25 2014 (+0200)
-- Version:
-- Package-Requires: ()
-- Last-Updated: Tue Apr 11 20:57:27 2017 (+0200)
-- By: Manuel Schneckenreither
-- Update #: 65
-- URL:
-- Do... | ComputationWithBoundedResources/ara-inference | src/Data/Rewriting/ARA/Exception/Type.hs | mit | 2,443 | 0 | 8 | 534 | 347 | 213 | 134 | 39 | 1 |
module Pregame.Safe
( module X
) where
import Safe as X
( readMay
, tailMay
, headMay
, initMay
, lastMay
, minimumMay
, maximumMay
, foldr1May
, foldl1May'
, scanl1May
, scanr1May
, cycleMay
, atMay
, toEnumMay
)
import Safe.Exact as X
( takeExactMay
, dropExactMay
, splitAtExa... | jxv/pregame | src/Pregame/Safe.hs | mit | 367 | 0 | 5 | 103 | 85 | 57 | 28 | 23 | 0 |
{-# LANGUAGE DeriveGeneric #-}
module Unison.Codebase.Editor.DisplayObject where
import Unison.Prelude
import Unison.ShortHash
import Data.Bifunctor
data DisplayObject b a = BuiltinObject b | MissingObject ShortHash | UserObject a
deriving (Eq, Ord, Show, Functor, Generic)
instance Bifunctor DisplayObject where
... | unisonweb/platform | parser-typechecker/src/Unison/Codebase/Editor/DisplayObject.hs | mit | 565 | 0 | 8 | 99 | 193 | 101 | 92 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RankNTypes #-}
module Data.Validation.Historical where
--( AccValidationH
--, module Data.Functor.Compose.Reader
--) where
import Control.Applicative
import Control.Lens
import Data.Functor.Compose.Reader
import Data.Semigroup
imp... | danclien/validation-aeson-history | src/Data/Validation/Historical.hs | mit | 1,399 | 0 | 11 | 326 | 464 | 262 | 202 | 32 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE CPP #-}
-- | BasicPrelude mostly re-exports
-- several key libraries in their entirety.
-- The exception is Data.List,
-- where various functions are replaced
-- by similar versions that are either
-- generalized, operate on Text,
-- or are implemented strictly.
module B... | snoyberg/basic-prelude | src/BasicPrelude.hs | mit | 6,984 | 0 | 9 | 1,609 | 1,390 | 844 | 546 | 184 | 2 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleContexts, LambdaCase #-}
-- Available Expression Analysis
module Language.DFA.Packages.AEA where
import Language.DFA.Core.Mono
import Language.DFA.AST
import Language.DFA.Core.Label
import Language.DFA.Common
import Data.Set hiding (filter)
import qualified Data.Set as S
... | izgzhen/static-hs | src/Language/DFA/Packages/AEA.hs | mit | 2,529 | 0 | 14 | 657 | 876 | 463 | 413 | 59 | 5 |
{-# LANGUAGE OverloadedStrings #-}
module Client.Connect (processClient) where
import Control.Concurrent (forkIO)
import Control.Exception
import Control.Monad (forever)
import Data.Monoid ((<>))
import qualified Data.Text as T
import qualified Data.Text.IO as TIO
import Network
import System.IO
import Hach.Types
pr... | dmalikov/HaCh | client/Client/Connect.hs | mit | 1,488 | 0 | 14 | 309 | 497 | 256 | 241 | 36 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
module Op where
import Streams
------------------------------------------------------------
x :: Stream Integer
x = Cons 0 (Cons 1 (streamRepeat 0))
------------------------------------------------------------
streamOp :: (t -> t1 -> ... | sajith/cis194 | hw06/Op.hs | mit | 1,831 | 0 | 12 | 358 | 532 | 288 | 244 | 29 | 1 |
{-# LANGUAGE GADTs #-}
module DSLSpec (spec) where
import Control.Lens
import Control.Monad.Free (Free(..))
import Data.Foldable (toList)
import Test.Hspec
import Control.Biegunka.Language (TermF(..), Action(..), Source(..))
import Control.Biegunka.Primitive
import Control.Biegunka.Script
import Control.Biegunka.Sour... | biegunka/biegunka | test/spec/DSLSpec.hs | mit | 3,632 | 0 | 42 | 996 | 1,364 | 681 | 683 | 74 | 9 |
module Main where
phonebook :: [(String, String)]
phonebook =
[ ("Bob", "953 777-44-45")
, ("Fred", "919 33-555-11")
, ("Alice", "383 11111111")
, ("Jane", "964 4000004") ]
type PhoneBook = [(String, String)]
validatePhones :: PhoneBook -> PhoneBook
validatePhones pb = ... | graninas/Haskell-Algorithms | Tests/Phonebook.hs | gpl-3.0 | 436 | 0 | 6 | 111 | 141 | 87 | 54 | 12 | 1 |
{- |
Vector and matrix compatibility layer. Exports "Data.Vector.Storable"
for vectors and related operations and "Numeric.LinearAlgebra.HMatrix"
for linear algebra operations and matrices.
-}
module Data.VecMat
(
-- * Update functions
updateV
, updateM
, dot
-- * Imports
, module M
, module V
)
where
-- Ve... | JohanPauli/Hunger | src/Data/VecMat.hs | gpl-3.0 | 1,196 | 0 | 10 | 220 | 340 | 194 | 146 | 21 | 1 |
take :: [a] -> Integer -> [a]
take [] _ = []
take (x:xs) n
| n > 0 = x:(Main.take xs (n-1))
| n <= 0 = []
merge :: (Ord a) => [a] -> [a] -> [a]
merge [] [] = []
merge [] (x:xs) = (x:xs)
merge (x:xs) [] = (x:xs)
merge (x:xs) (y:ys)
| x < y = x:(merge xs (y:ys))
| otherwise = y:(merge (x:xs) ys)
length :: [a] -> I... | prannayk/conj | Assignment 1/ques1.hs | gpl-3.0 | 556 | 0 | 10 | 145 | 463 | 239 | 224 | 23 | 1 |
{-# LANGUAGE TypeFamilies, FlexibleInstances, DeriveGeneric #-}
-- | The UDP interface exposes the operating system's underlying UDP network functions as
-- a 'NetworkInterface', and handles name resolution automatically.
module Ltc.Network.Interface.UDP (
UdpInterface, NetworkLocation(..)
) where
import ... | scvalex/ltc | src/Ltc/Network/Interface/UDP.hs | gpl-3.0 | 2,994 | 0 | 19 | 796 | 672 | 379 | 293 | -1 | -1 |
-- |
module MyLib where
import Control.Concurrent
casMVar :: Eq a => MVar a -> a -> a -> IO Bool
casMVar m old new = do
cur <- takeMVar m
if cur == old
then putMVar m new >> return True
else putMVar m old >> return False
| capitanbatata/sandbox | testing-under-async-exceptions/src/MyLib.hs | gpl-3.0 | 242 | 0 | 9 | 70 | 101 | 49 | 52 | 8 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-accesscontextmanager/gen/Network/Google/Resource/AccessContextManager/AccessPolicies/AccessLevels/Get.hs | mpl-2.0 | 6,100 | 0 | 16 | 1,266 | 781 | 457 | 324 | 117 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-books/gen/Network/Google/Resource/Books/Series/Membership/Get.hs | mpl-2.0 | 3,716 | 0 | 16 | 885 | 496 | 291 | 205 | 74 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-shopping-content/gen/Network/Google/Resource/Content/Orderinvoices/Createchargeinvoice.hs | mpl-2.0 | 6,356 | 0 | 20 | 1,542 | 884 | 513 | 371 | 133 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-cloudhsm/gen/Network/AWS/CloudHSM/ModifyHsm.hs | mpl-2.0 | 4,692 | 0 | 9 | 1,135 | 800 | 476 | 324 | 85 | 1 |
{-# LANGUAGE OverloadedStrings #-}
-- Module : Keiretsu.Log
-- 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.
-- A copy of the MPL can be found in the LICENSE fil... | brendanhay/keiretsu | src/Keiretsu/Log.hs | mpl-2.0 | 2,026 | 0 | 11 | 548 | 453 | 247 | 206 | 44 | 2 |
-- Copyright 2021 Google LLC
--
-- 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 agreed to in ... | google/mlir-hs | src/MLIR/Native/Pass.hs | apache-2.0 | 2,625 | 0 | 9 | 340 | 334 | 193 | 141 | -1 | -1 |
{-# OPTIONS_GHC -F -pgmF htfpp #-}
module Civs.ModelTest where
import Test.Framework
import Namegen
import Civs.Model
game0 :: IO Game
game0 = do samples <- loadAllSamples
initialGame "worlds/seed_77.world" samples
genLang :: Int -> IO Language
genLang seed = do allSamples <- loadAllSamples
... | ftomassetti/civs-haskell | test/Civs/ModelTest.hs | apache-2.0 | 2,040 | 0 | 14 | 459 | 787 | 372 | 415 | 52 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{- |
Module : Glider.NLP.Statistics
Copyright : Copyright (C) 2013-2016 Krzysztof Langner
License : BSD3
Maintainer : Krzysztof Langner <klangner@gmail.com>
Stability : alpha
Portability : portable
This module counts different statistics on the text
-}
module Glider.NLP.Statistics ... | klangner/glider-nlp | src/Glider/NLP/Statistics.hs | bsd-2-clause | 900 | 0 | 11 | 166 | 160 | 95 | 65 | 13 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QAbstractGraphicsShapeItem.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:21
Warning : this file is machine g... | uduki/hsQt | Qtc/Gui/QAbstractGraphicsShapeItem.hs | bsd-2-clause | 42,259 | 0 | 14 | 5,490 | 10,729 | 5,425 | 5,304 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
module NLP.Nerf2.Delta
( Delta
, DVal (..)
, BsM
, EqM
, GtM
, at
, bsAt
, eqAt
, gtAt
, computeDelta
, norm
-- * Testing
, bsAtM
, normTest
) where
import Control.Applicative ((<$>))
import Control.Monad (foldM)
import qualified Data.Map.Strict as M
import qualified Control.Monad.Re... | kawu/nerf-proto | src/NLP/Nerf2/Delta.hs | bsd-2-clause | 3,042 | 0 | 16 | 885 | 1,226 | 635 | 591 | -1 | -1 |
-- | A library to do stuff.
module Lib (ourAdd) where
ourAdd :: Int -> Int -> Int
ourAdd x y = x + y
| emaphis/Haskell-Practice | testing-project/src/Lib.hs | bsd-3-clause | 104 | 0 | 6 | 28 | 37 | 21 | 16 | 3 | 1 |
-- (c) The University of Glasgow, 1992-2006
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE DeriveFoldable #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamili... | sdiehl/ghc | compiler/basicTypes/SrcLoc.hs | bsd-3-clause | 23,060 | 0 | 15 | 6,438 | 4,100 | 2,177 | 1,923 | 319 | 2 |
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, PatternGuards #-}
{- A high level language of tactic composition, for building
elaborators from a high level language into the core theory.
This is our interface to proof construction, rather than
ProofState, because this gives us a language to build der... | BartAdv/Idris-dev | src/Idris/Core/Elaborate.hs | bsd-3-clause | 33,346 | 14 | 24 | 12,714 | 12,140 | 6,006 | 6,134 | 687 | 13 |
module Handler.ItemSpec (spec) where
import TestImport
spec :: Spec
spec = withApp $ do
describe "deleteItemR" $ do
error "Spec not implemented: deleteItemR"
| Ulrar/cstodo | test/Handler/ItemSpec.hs | bsd-3-clause | 174 | 0 | 11 | 39 | 44 | 23 | 21 | 6 | 1 |
{-# LANGUAGE PolyKinds #-}
module Data.IxFunctor.Empty where
import Data.IxFunctor
class IxFunctor f => IxEmpty f where
iempty :: f i i a
| kylcarte/ixfunctors | src/Data/IxFunctor/Empty.hs | bsd-3-clause | 144 | 0 | 7 | 28 | 41 | 22 | 19 | 5 | 0 |
{-# LANGUAGE ScopedTypeVariables #-}
{- |
Main API for finite-state transducer library.
Importing this module gives you access to the folllowing functions.
/Regular expressions/
Functions for constructing a simplified regular expression.
> s :: a -> Reg a -- symbol
> eps :: Reg a ... | johnjcamilleri/fst | FST/TransducerInterface.hs | bsd-3-clause | 6,682 | 0 | 12 | 1,650 | 708 | 389 | 319 | 51 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import Data.ByteString.Lazy.Char8 (unpack)
import Data.ByteString.Internal (ByteString)
import Network.HTTP.Types
import Network.Wai.Test (SResponse(simpleBody, simpleHeaders))
import Test.Hspec
import Test.Hspec.Wai
import App (appToTest)
testUser :: Stri... | xor-xor/webapp_spock | test/Spec.hs | bsd-3-clause | 1,955 | 0 | 18 | 476 | 503 | 263 | 240 | 46 | 1 |
-- © 2001, 2002 Peter Thiemann
-- this file is generated -- do not edit
module WASH.HTML.HTMLPrelude98
(module WASH.HTML.HTMLPrelude98,module WASH.HTML.HTMLTypedBase98)
where
import Prelude hiding (div,head,map,span)
import WASH.HTML.HTMLTypedBase98
-- identity function
empty x = x
-- reverse function application
(... | nh2/WashNGo | WASH/HTML/HTMLPrelude98.hs | bsd-3-clause | 205,353 | 0 | 12 | 27,497 | 60,649 | 27,600 | 33,049 | -1 | -1 |
-- | Module containing everything you need to build 'Server's.
module Serv.Wai.Prelude (
module Serv.Api
, module Serv.Wai
, module Serv.Wai.Response
, module Serv.Wai.Rec
, (&)
, module Network.HTTP.Kinder
) where
import Data.Function ((&))
import Network.HTTP.Kinder
import ... | tel/serv | serv-wai/src/Serv/Wai/Prelude.hs | bsd-3-clause | 430 | 0 | 5 | 127 | 88 | 60 | 28 | 13 | 0 |
{-# LANGUAGE NoMonomorphismRestriction, ScopedTypeVariables #-}
module Render where
import Control.Monad ( forM, when )
import Data.Either
import Data.Maybe
import Foreign.Ptr
import Data.IORef
import Graphics.Rendering.OpenGL as GL
import Graphics.UI.GLUT
import System.Environment
data Viewer = Viewer
{
... | mfpi/spacepart | test/Render.hs | bsd-3-clause | 6,356 | 0 | 19 | 1,726 | 1,963 | 978 | 985 | 133 | 7 |
module Doukaku.BombermanTest (tests) where
import Distribution.TestSuite
import Doukaku.TestHelper
import qualified Doukaku.Bomberman as Bomberman
tests :: IO [Test]
tests = createTests $ newDoukakuTest {
tsvPath = "test/Doukaku/bomberman.tsv"
, solve = Bomberman.solve
}
| hiratara/doukaku-past-questions-advent-2013 | test/Doukaku/BombermanTest.hs | bsd-3-clause | 280 | 0 | 8 | 39 | 65 | 40 | 25 | 8 | 1 |
module Test.Progress(main) where
import Development.Shake.Internal.Progress
import Development.Shake.Internal.Options
import Test.Type
import System.Directory.Extra
import System.FilePath
main = testBuild test $ pure ()
-- | Given a list of todo times, get out a list of how long is predicted
prog = progEx 10000000... | ndmitchell/shake | src/Test/Progress.hs | bsd-3-clause | 2,111 | 0 | 17 | 482 | 858 | 457 | 401 | 37 | 1 |
-- | This module provides means for reading and applying 'Template's.
--
-- Templates are tools to convert items into a string. They are perfectly suited
-- for laying out your site.
--
-- Let's look at an example template:
--
-- > <html>
-- > <head>
-- > <title>My crazy homepage - $title$</title>
-- > ... | ruud-v-a/hakyll | src/Hakyll/Web/Template.hs | bsd-3-clause | 7,305 | 0 | 17 | 1,947 | 930 | 538 | 392 | 70 | 9 |
{-# LANGUAGE DataKinds, ConstraintKinds, TypeFamilies, ScopedTypeVariables #-}
{-# LANGUAGE RankNTypes, NoMonomorphismRestriction, FlexibleContexts #-}
module Control.Monad.Pointer where
import Control.Monad.IO.Class
import Control.Applicative
import Control.Monad.Pointer.PointableIn
import Control.Monad.Pointer.Typ... | YPares/MonadPointer | Control/Monad/Pointer.hs | bsd-3-clause | 963 | 0 | 11 | 160 | 191 | 110 | 81 | 15 | 1 |
{-# LANGUAGE ViewPatterns #-}
module Commands.Test.Properties where
import Commands.Extra
import Commands.Frontends.Dragon13
import Commands.Frontends.Dragon13.Shim
import Commands.Test.Arbitrary()
import qualified Test.QuickCheck.Property as Q
import Control.Exception... | sboosali/commands-core | tests/Commands/Test/Properties.hs | mit | 899 | 0 | 10 | 168 | 171 | 95 | 76 | 14 | 2 |
import qualified Data.List as List
import Data.Text (Text)
import qualified Data.Text as Text
import qualified Data.Text.IO as IO
import Text.Parsec
import Text.Parsec.Text
data Position = Position Int Int
deriving (Eq, Show)
main = do
input <- Text.lines <$> IO.getContents
let positions = map parseInput input
... | SamirTalwar/advent-of-code | 2016/AOC_15_2.hs | mit | 1,097 | 0 | 11 | 254 | 430 | 223 | 207 | 31 | 1 |
{-# LANGUAGE CPP #-}
{-
Copyright (C) 2013-2015 John MacFarlane <jgm@berkeley.edu>
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) any later versi... | alexvong1995/pandoc | src/Text/Pandoc/Writers/OPML.hs | gpl-2.0 | 3,524 | 0 | 16 | 831 | 671 | 358 | 313 | 53 | 3 |
module Main where
import Ditto.Test
main = do
runUnitTests
runIntegrationTests "tests/pass"
return ()
| ditto/ditto | src/test/Test.hs | gpl-3.0 | 110 | 0 | 8 | 21 | 31 | 15 | 16 | 6 | 1 |
{-# LANGUAGE TemplateHaskell, FlexibleContexts, FlexibleInstances, MultiParamTypeClasses, UndecidableInstances, ConstraintKinds #-}
{-|
This module defines an operation which extracts all variables which "appear"
within a given construct.
-}
module Language.K3.TypeSystem.Morphisms.ExtractVariables
( ExtractVariab... | DaMSL/K3 | src/Language/K3/TypeSystem/Morphisms/ExtractVariables.hs | apache-2.0 | 2,570 | 0 | 11 | 659 | 462 | 270 | 192 | 52 | 1 |
{-# LANGUAGE TypeFamilies #-}
module Propellor.Types.Container where
-- | A value that can be bound between the host and a container.
--
-- For example, a Bound Port is a Port on the container that is bound to
-- a Port on the host.
data Bound v = Bound
{ hostSide :: v
, containerSide :: v
}
-- | Create a Bound v... | ArchiveTeam/glowing-computing-machine | src/Propellor/Types/Container.hs | bsd-2-clause | 881 | 4 | 8 | 189 | 164 | 99 | 65 | 11 | 1 |
-- |
-- Module : Basement.Block
-- License : BSD-style
-- Maintainer : Haskell Foundation
--
-- A block of memory that contains elements of a type,
-- very similar to an unboxed array but with the key difference:
--
-- * It doesn't have slicing capability (no cheap take or drop)
-- * It consume less memory: 1... | vincenthz/hs-foundation | basement/Basement/Block.hs | bsd-3-clause | 14,456 | 0 | 14 | 4,367 | 4,580 | 2,251 | 2,329 | -1 | -1 |
-- |
-- Module : Network.TLS.Extension
-- License : BSD-style
-- Maintainer : Vincent Hanquez <vincent@snarc.org>
-- Stability : experimental
-- Portability : unknown
--
-- basic extensions are defined in RFC 6066
--
module Network.TLS.Extension
( Extension(..)
, supportedExtensions
, definedExt... | beni55/hs-tls | core/Network/TLS/Extension.hs | bsd-3-clause | 14,524 | 0 | 18 | 3,354 | 2,502 | 1,403 | 1,099 | 285 | 1 |
module Blackjack where
import System.Random
import System.Console.ANSI
import Control.Exception
import Prelude hiding(catch)
import Cards
import Global
{- blackJack Int
Purpose: Welcomes the player to the game.
Pre: cash >= 0
Post: True
Side-effects: The game interaction
-}
blackJack :: Int -> IO Int
blac... | DeeLaiD/project_megadeal | blackjack.hs | bsd-3-clause | 6,861 | 0 | 17 | 1,536 | 1,497 | 702 | 795 | 130 | 4 |
module HybUP ( hybrid_connected_components )
where
import Data.Array.Parallel.Unlifted
import Data.Array.Parallel.Unlifted.Parallel
enumerate :: UArr Bool -> UArr Int
{-# INLINE enumerate #-}
enumerate = scanUP (+) 0 . mapUP (\b -> if b then 1 else 0)
pack_index :: UArr Bool -> UArr Int
{-# INLINE pack_index #-}
pac... | mainland/dph | icebox/examples/concomp/HybUP.hs | bsd-3-clause | 1,840 | 0 | 15 | 685 | 630 | 317 | 313 | -1 | -1 |
import Chip8.Input
import Graphics.UI.GLUT as GLUT
import Control.Monad (forM_)
main = do
inputState <- newInputState print
(_progName, _args) <- GLUT.getArgsAndInitialize
_window <- GLUT.createWindow "Input test"
displayCallback $= (GLUT.clear [ColorBuffer] >> flush)
globalKeyRepeat $= GlobalKeyR... | typedeph/chip8-haskell | src/Chip8/Input/Testpad.hs | bsd-3-clause | 406 | 0 | 11 | 70 | 116 | 58 | 58 | 11 | 1 |
-- | formeln des aussagenkalküls
-- $Id$
module Language.AK
( form
-- , allg
)
where
import Language.Type
import Language.Mutate
import Autolib.Util.Zufall
import Autolib.Set
import Data.List (intersperse)
import Control.Monad ( guard )
import Data.Maybe (isJust)
-- | syntaktisch korrekte formeln mit diesen var... | Erdwolf/autotool-bonn | src/Language/AK.hs | gpl-2.0 | 2,182 | 4 | 12 | 628 | 823 | 409 | 414 | 62 | 4 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[PatSyntax]{Abstract Haskell syntax---patterns}
-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE Undecida... | alexander-at-github/eta | compiler/ETA/HsSyn/HsPat.hs | bsd-3-clause | 22,298 | 0 | 18 | 6,828 | 3,989 | 2,178 | 1,811 | 253 | 21 |
{-|
Module : Idris.REPL.Browse
Description : Browse the current namespace.
Copyright :
License : BSD3
Maintainer : The Idris Community.
-}
{-# OPTIONS_GHC -fwarn-incomplete-patterns -fwarn-unused-imports #-}
module Idris.REPL.Browse (namespacesInNS, namesInNS) where
import Control.Monad (filterM)
import... | tpsinnem/Idris-dev | src/Idris/REPL/Browse.hs | bsd-3-clause | 2,186 | 0 | 15 | 679 | 506 | 272 | 234 | 32 | 4 |
{- |
Description : Test file for structuring mechanisms
-}
import DFOL.AS_DFOL
import DFOL.Analysis_DFOL
import DFOL.Sign
import DFOL.Symbol
import DFOL.Morphism
import Common.Id
import Data.Maybe
import Common.DocUtils
import qualified Common.Result as Result
import qualified Data.Map as Map
import qualified Data.Se... | mariefarrell/Hets | DFOL/Tests/Test_Structuring.hs | gpl-2.0 | 1,211 | 32 | 11 | 263 | 636 | 300 | 336 | 43 | 1 |
-- Implements the \"@.\/cabal sdist@\" command, which creates a source
-- distribution for this package. That is, packs up the source code
-- into a tarball, making use of the corresponding Cabal module.
module Distribution.Client.SrcDist (
sdist
) where
import Distribution.Client.SetupWrapper
( ... | garetxe/cabal | cabal-install/Distribution/Client/SrcDist.hs | bsd-3-clause | 6,096 | 0 | 18 | 1,325 | 1,200 | 651 | 549 | 94 | 6 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariab... | AndreasPK/stack | src/Stack/Types/Resolver.hs | bsd-3-clause | 6,178 | 0 | 16 | 1,359 | 1,230 | 662 | 568 | 129 | 6 |
{-# LANGUAGE BangPatterns, CPP #-}
-- | A CSV parser. The parser defined here is RFC 4180 compliant, with
-- the following extensions:
--
-- * Empty lines are ignored.
--
-- * Non-escaped fields may contain any characters except
-- double-quotes, commas, carriage returns, and newlines.
--
-- * Escaped fields may... | treeowl/cassava | Data/Csv/Parser.hs | bsd-3-clause | 6,609 | 0 | 20 | 1,791 | 1,413 | 765 | 648 | 121 | 5 |
-- | Constants describing the DWARF format. Most of this simply
-- mirrors /usr/include/dwarf.h.
module Dwarf.Constants where
import FastString
import Platform
import Outputable
import Reg
import X86.Regs
import Data.Word
-- | Language ID used for Haskell.
dW_LANG_Haskell :: Word
dW_LANG_Haskell = 0x18
-- Thanks... | forked-upstream-packages-for-ghcjs/ghc | compiler/nativeGen/Dwarf/Constants.hs | bsd-3-clause | 5,966 | 0 | 13 | 1,467 | 1,290 | 735 | 555 | 161 | 3 |
module SubPatternIn2 where
-- allow the user to select 'x' on the LHS of
-- g. Should introduce 2 new equations for f:
-- g z (C1 x b c@[]) = x
-- g z (C1 x b c@(b_1 : b_2)) = x
data T = C1 [Int] Int [Float]| C2 Int
g :: Int -> T -> Int
g z (C1 x b c) = b
g z (C2 x) = x
f :: [Int] -> Int
f x@[] = hd x + hd (tl x)
... | kmate/HaRe | old/testing/subIntroPattern/SubPatternIn2.hs | bsd-3-clause | 382 | 0 | 8 | 115 | 178 | 94 | 84 | 10 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Data.Store.Rev.View
(View, curVersion, branch, setBranch, move, new, store)
where
import Control.Applicative ((<$>), (<$))
import Control.Lens.Operators
import Control.Monad ((<=<), guard, unless)
import Control.MonadA (MonadA)
import Data.Maybe (catMaybes)
import... | schell/lamdu | bottlelib/Data/Store/Rev/View.hs | gpl-3.0 | 3,729 | 0 | 14 | 597 | 1,300 | 683 | 617 | 73 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving, ConstraintKinds, PatternGuards #-}
module Idris.ParseOps where
import Prelude hiding (pi)
import Text.Trifecta.Delta
import Text.Trifecta hiding (span, stringLiteral, charLiteral, natural, symbol, char, string, whiteSpace)
import Text.Parser.LookAhead
import Text.Parser.Expres... | mrmonday/Idris-dev | src/Idris/ParseOps.hs | bsd-3-clause | 6,142 | 0 | 18 | 2,017 | 1,839 | 956 | 883 | 108 | 4 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Hpack.UtilSpec (main, spec) where
import Data.Aeson
import Data.Aeson.QQ
import Data.Aeson.Types
import Helper
import System.Directory
import Hpack.Config
import Hpack.Util
mai... | phadej/hpack | test/Hpack/UtilSpec.hs | mit | 5,334 | 0 | 21 | 1,468 | 1,570 | 784 | 786 | 117 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.XMLHttpRequestUpload
(abort, error, load, loadEnd, loadStart, progress,
XMLHttpRequestUpload, castToXMLHttpRequestUpload,
gTypeXMLHttpRequestUpload)
where
import Prelude ((.), (==), (... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/XMLHttpRequestUpload.hs | mit | 2,561 | 0 | 7 | 235 | 451 | 279 | 172 | 32 | 1 |
module App (
logTag
) where
logTag :: String
logTag = "App" | danstiner/clod | src/App.hs | mit | 64 | 0 | 4 | 16 | 19 | 12 | 7 | 4 | 1 |
import SFML.Graphics
import SFML.Window
import Paths_sfml_demos
txtSize = 24
angry = "è_é"
main = do
let ctxSettings = Just $ ContextSettings 24 8 0 1 2 [ContextDefault]
wnd <- createRenderWindow (VideoMode 40 32 32) "SFML Haskell Demo" [SFDefaultStyle] ctxSettings
fontPath <- getDataFileName "Vera.ttf... | SFML-haskell/SFML | demos/unicode/main.hs | mit | 903 | 0 | 13 | 264 | 302 | 134 | 168 | 30 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module Html (
BaseHtmlExtention,
generateQzPage,
indexHtml,
friendsHtml,
gameHtml
) where
import Control.Monad (forM_)
import qualified Text.Blaze.Html5 as H
import Text.Blaze.Html5 ((!), Html)
import qualified Text.Blaze.Html5.Attributes as A
data BaseHtmlExte... | quintenpalmer/qz | src/Html.hs | mit | 1,549 | 0 | 18 | 316 | 486 | 247 | 239 | 37 | 1 |
{-# LANGUAGE RankNTypes #-}
module Polymorphism where
import Debug.Trace
newtype Negater = Negater { runNegater :: forall a. Num a => a -> a}
make :: Negater
make = trace "trace" (Negater negate)
| vladfi1/hs-misc | Polymorphism.hs | mit | 200 | 0 | 9 | 37 | 60 | 35 | 25 | 6 | 1 |
module Main where
import Lib
import Text.Printf
n = 13
main :: IO ()
main = do
printf "Greatest product of subsequence of length %d: %d\n" n (greatestProductSeq n)
| JohnL4/ProjectEuler | Haskell/Problem008/app/Main.hs | mit | 170 | 0 | 9 | 35 | 48 | 26 | 22 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Data.Monoid ((<>))
import Turtle
import qualified Data.Text as T
import Database.SQLite.Simple
import Options.Applicative
import Shared
import Commit
import Push
createTable :: IO ()
createTable = do
conn <- liftIO $ open dbPath
execute conn ("CREATE TABLE todos " <>
"... | mattyhall/gitdo | src/Main.hs | mit | 2,789 | 0 | 17 | 928 | 680 | 329 | 351 | 84 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.Time.Units.Instances where
import Data.Aeson (ToJSON, object, toJSON, (.=))
import Data.Text (Text)
import Data.Time.Units (Millisecond, Minute, Second)
instance ToJSON Millisecond where
toJSON t = object ["value" .= toInteger t, ... | zoomhub/zoomhub | src/Data/Time/Units/Instances.hs | mit | 548 | 0 | 9 | 87 | 184 | 105 | 79 | 12 | 0 |
module Util.Function where
curry3 :: ((a, b, c) -> d) -> a -> b -> c -> d
curry3 f a b c = f (a,b,c)
{-# INLINE curry3 #-}
uncurry3 :: (a -> b -> c -> d) -> ((a, b, c) -> d)
uncurry3 f ~(a,b,c) = f a b c
{-# INLINE uncurry3 #-}
curry4 :: ((a, b, c, d) -> e) -> a -> b -> c -> d -> e
curry4 f a b c d = f (a,b,c,d)
{-... | NCrashed/sinister | src/shared/Util/Function.hs | mit | 457 | 0 | 10 | 123 | 294 | 166 | 128 | 13 | 1 |
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANG... | schell/odin | odin-engine/src/Odin/Engine/New/UI/Painting.hs | mit | 1,925 | 0 | 10 | 473 | 494 | 266 | 228 | 37 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.HTMLParamElement
(js_setName, setName, js_getName, getName, js_setType, setType,
js_getType, getType, js_setValue, setValue, js_getValue, getValue,
js_setValueType, setValueType, js_getValue... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/HTMLParamElement.hs | mit | 4,305 | 56 | 10 | 625 | 1,006 | 569 | 437 | 62 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Split_test (splitProperties) where
import Test.Framework (Test)
import Test.Framework.Providers.QuickCheck2 (testProperty)
import Test.QuickCheck
import TestTypes
import FiniteField.GF256
import HaskSplit.Algorithm
import System.Random
prop_encodeDecode (PGFCoeff... | jtcwang/HaskSplit | tests/Split_test.hs | mit | 668 | 0 | 11 | 157 | 181 | 101 | 80 | 17 | 1 |
module Main.Command.AddObject ( command ) where
import Data.Maybe ( fromMaybe )
import System.Console.GetOpt
import System.Directory
import System.Environment
import System.IO
import Text.Printf ( printf )
import Data.CloudSync.Cabinet as Cab
import Main.Command as Cmd
command :: Cmd.Comma... | rjw57/cloudsync | cs/Main/Command/AddObject.hs | mit | 2,423 | 0 | 19 | 676 | 651 | 346 | 305 | 54 | 4 |
{-# LANGUAGE ScopedTypeVariables, FlexibleInstances #-}
{-
Copyright (C) 2006-2015 John MacFarlane <jgm@berkeley.edu>
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, ... | collbb/pandoc | src/Text/Pandoc.hs | gpl-2.0 | 15,870 | 0 | 17 | 4,770 | 2,936 | 1,680 | 1,256 | 290 | 5 |
--- |
--- | stuff for tcp abstractions
--- |
--- Copyright : (c) Florian Richter 2011
--- License : GPL
---
module Tcp where
import Network.Socket
import Control.Exception (finally)
import Control.Concurrent (forkIO)
initTcpServer :: String -> String -> IO Socket
initTcpServer ip port = withSocketsDo $ do
... | f1ori/hadcc | Tcp.hs | gpl-3.0 | 1,504 | 0 | 14 | 383 | 448 | 219 | 229 | 31 | 1 |
{-# LANGUAGE UnicodeSyntax #-}
module ExtRep.XmlToObjectEdit (parseObjectEdit) where
import BaseImport
import Data.Maybe
import Data.Time
import Text.XML.HXT.Core
import Audit.EditAction
import Audit.ObjectHistory
import Util.EntityKey
import Util.Hxt
import Util.Time
-- TODO: this will work 100% as long as we get ... | c0c0n3/audidoza | app/ExtRep/XmlToObjectEdit.hs | gpl-3.0 | 1,980 | 0 | 11 | 414 | 606 | 316 | 290 | 42 | 2 |
module Reliquary.AST where
data Term = Word String
| Block [Term]
deriving (Eq, Show)
| chameco/reliquary | src/Reliquary/AST.hs | gpl-3.0 | 107 | 0 | 7 | 35 | 34 | 20 | 14 | 4 | 0 |
-- https://esolangs.org/wiki/Glass
-- Build: ghc --make glass
-- Usage: glass SRC-FILE
import Data.Array(Array)
import qualified Data.Array as A
import Data.Char(chr,isAlpha,isDigit,isLower,isSpace,isUpper,ord)
import Data.Fixed(mod')
import Data.Map(Map)
import qualified Data.Map as M
import Data.Set(Set)
import qua... | qpliu/esolang | featured/glass.hs | gpl-3.0 | 20,111 | 0 | 21 | 4,556 | 8,327 | 4,375 | 3,952 | 422 | 4 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-bigquerydatatransfer/gen/Network/Google/Resource/BigQueryDataTransfer/Projects/Locations/TransferConfigs/Runs/List.hs | mpl-2.0 | 8,362 | 0 | 20 | 1,821 | 1,068 | 619 | 449 | 163 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dialogflow/gen/Network/Google/Resource/DialogFlow/Projects/Locations/Agents/GetValidationResult.hs | mpl-2.0 | 6,267 | 0 | 16 | 1,348 | 782 | 457 | 325 | 123 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-container/gen/Network/Google/Resource/Container/Projects/Locations/Clusters/NodePools/List.hs | mpl-2.0 | 7,107 | 0 | 19 | 1,530 | 949 | 553 | 396 | 141 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
import Prelude ((+), (.), ($), error, const)
import System.IO
import Data.Maybe
import Data.Either
import Data.List ((++))
import Data.String
import Control.Monad
import Control.Monad.Identity
import Control.Monad.Trans.Reader
import Control.Monad.Trans.State (StateT(..))
import Cont... | seckcoder/lang-learn | haskell/lambda-calculus/src/Eval1.hs | unlicense | 4,641 | 0 | 17 | 1,261 | 1,918 | 988 | 930 | 117 | 4 |
{-# LANGUAGE OverloadedStrings #-}
module Text.Fractions where
import Control.Applicative
import Data.Attoparsec.Text (parseOnly)
import Data.Ratio ((%))
import Data.String (IsString)
import Text.Trifecta
badFraction :: IsString s => s
badFraction = "1/0"
alsoBad :: IsString s => s
alsoBad = "10"
shouldWork :: IsS... | dmvianna/haskellbook | src/Ch24-Fractions-parsers.hs | unlicense | 1,142 | 0 | 12 | 198 | 323 | 162 | 161 | 33 | 2 |
import Data.List
ans' n a0 [] = Nothing
ans' n a0 (a1:as) =
if (a1 - a0) `mod` n == 0
then Just [a0,a1]
else ans' n a0 as
ans n [] = []
ans n (a0:as) =
let a = ans' n a0 as
in
case a of
Just x -> x
Nothing -> ans n as
main = do
n <- getLine
a <- getLine
let n' = (read n) - 1 :: Int
... | a143753/AOJ | 2874.hs | apache-2.0 | 420 | 0 | 12 | 150 | 245 | 123 | 122 | 19 | 2 |
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE PartialTypeSignatures #-}
{-# LANGUAGE... | mgajda/monad-lgbt | src/Control/Monad/State/LGBT.hs | bsd-2-clause | 8,452 | 0 | 16 | 3,011 | 1,931 | 1,023 | 908 | 157 | 1 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QUrlInfo_h.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 no... | keera-studios/hsQt | Qtc/Network/QUrlInfo_h.hs | bsd-2-clause | 26,302 | 0 | 18 | 5,743 | 9,003 | 4,345 | 4,658 | -1 | -1 |
module Pagure.Command.User where
import Control.Lens
import qualified Data.Text as T
import Web.Pagure
import Web.Pagure.Lens
data UserOptions =
UserOptions { userOptionsUsername :: String } deriving (Eq, Ord, Show)
userCommandRunner :: UserOptions -> IO ()
userCommandRunner (UserOptions username) = do
let pc = ... | fedora-infra/pagure-cli | src/Pagure/Command/User.hs | bsd-2-clause | 849 | 0 | 15 | 194 | 263 | 133 | 130 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
import Network.Wai
import Network.Wai.Handler.Warp
import Network.HTTP.Types (status200)
import Blaze.ByteString.Builder (copyByteString)
import qualified Data.ByteString.UTF8 as BU
import Data.Monoid
main :: IO ()
main = do
let port = 3000
putStrLn $ "Listening on port " +... | fffej/haskellprojects | cards/src/Main.hs | bsd-2-clause | 866 | 0 | 9 | 192 | 267 | 144 | 123 | 24 | 2 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.EXT.SeparateSpecularColor
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : po... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/EXT/SeparateSpecularColor.hs | bsd-3-clause | 756 | 0 | 4 | 84 | 43 | 35 | 8 | 5 | 0 |
import System.IO
import XMonad
import XMonad.Actions.CycleWS
import XMonad.Config.Azerty
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.UrgencyHook
import XMonad.Layout.Maximize
import XMonad.Layout.Minimize
import XMonad.Util.EZConfig
import XMonad.U... | bbenoist/conf | xmonad.hs | bsd-3-clause | 3,948 | 0 | 13 | 1,060 | 790 | 471 | 319 | 68 | 1 |
module TastierMachine.Instructions where
import Data.Int (Int8, Int16)
import Data.List (elem)
data Instruction = Add
| Sub
| Mul
| Div
| Equ
| Neq
| Lss
| Lseq
| Gtr
... | houli/TastierMachine | src/TastierMachine/Instructions.hs | bsd-3-clause | 1,274 | 0 | 8 | 746 | 262 | 163 | 99 | 45 | 3 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-#... | voidlizard/recons | src/Servant/Recons/Client.hs | bsd-3-clause | 2,267 | 0 | 14 | 628 | 712 | 382 | 330 | -1 | -1 |
module Proof.Language(
Phi(..)
, Sequent(..)
, showPhi
, asciiFormat
, latexFormat
, Premise
, implFree
, nnf
, cnf) where
data Phi = L String
| Phi :&: Phi
| Phi :|: Phi
| Phi :-> Phi
| Not Phi
| Bot
deriving (Eq, Ord)
infixr 0 :->
infixl 1 :|:
infixl 2 :&:
t... | ulrikrasmussen/Proof | src/Proof/Language.hs | bsd-3-clause | 2,487 | 0 | 15 | 740 | 1,212 | 626 | 586 | 86 | 7 |
{-# LANGUAGE OverloadedStrings #-}
module Juno.Runtime.Api.ApiServer
(runApiServer
) where
-- | Api server is the interface between outside clients
-- and the internal Juno/Raft protocol.
-- Responible for:
-- * listening for incoming Commands
-- * managing RequestId
-- * check status of command, i.e. c... | buckie/juno | src/Juno/Runtime/Api/ApiServer.hs | bsd-3-clause | 2,118 | 0 | 14 | 344 | 328 | 180 | 148 | 23 | 1 |
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-}
--
-- Module : Artist
-- Copyright : Copyright © 2014, Quixoftic, LLC <src@quixoftic.com>
-- License : BSD3 (see LICENSE file)
-- Maintainer : dhess-src@quixoftic.com
-- Stability : experimental
-- Portability : GHC
--
-- SXSW music artist representation.... | quixoftic/Sxcrape | src/Artist.hs | bsd-3-clause | 989 | 0 | 10 | 296 | 174 | 105 | 69 | 16 | 0 |
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies, FlexibleInstances, TypeSynonymInstances #-}
-- | Common definitions
module Math.GameTheory.Common(
(<\>)
)
where
import TypeLevel.NaturalNumber
import Math.GameTheory.Internal.Common
class (NaturalNumber n) => GamePos a n | n -> a where
{- |
... | mruegenberg/Hs-Game | Math/GameTheory/Common.hs | bsd-3-clause | 749 | 0 | 11 | 147 | 211 | 118 | 93 | 12 | 0 |
module Oxymoron.Environment (
module Oxymoron.Environment.Internal
) where
import Oxymoron.Environment.Internal
| jfischoff/oxymoron | src/Oxymoron/Environment.hs | bsd-3-clause | 134 | 0 | 5 | 31 | 21 | 14 | 7 | 3 | 0 |
module Data.Holumn where
| SamRoberts/holumn-experimental | Data/Holumn.hs | bsd-3-clause | 25 | 0 | 3 | 3 | 6 | 4 | 2 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.