code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
module Nat where
import Prelude hiding ((+))
data Nat = Zero | Succ Nat deriving (Eq,Show)
(+) :: Nat -> Nat -> Nat
Zero + n = n
(Succ m) + n = Succ (m + n)
toNat :: Integer -> Nat
toNat 0 = Zero
toNat n = Succ (toNat (pred n))
fromNat :: Nat -> Integer
fromNat Zero = 0
fromNat (Succ n) = succ (fromNat n) | conal/hermit | examples/fib-stream/Nat.hs | bsd-2-clause | 315 | 0 | 9 | 77 | 171 | 91 | 80 | 12 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveGeneric #-}
module RWPAS.Actor
( sentinelActor
, Actor()
, ActorID
, ActorAppearance(..)
-- * Appearance, position, AI
, appearance
, position
, actorName
, ai
-- * Hit points
, hurt
, actorHitPoints
, emp... | Noeda/rwpas | src/RWPAS/Actor.hs | mit | 2,485 | 0 | 12 | 511 | 731 | 406 | 325 | -1 | -1 |
module Nifty.BEB where
import Nifty.Message
import Control.Exception
import Network.Socket hiding (send)
import Network.Socket.ByteString (sendAll)
import qualified Data.ByteString as L
broadcastOnce :: (L.ByteString, L.ByteString) -- (message content, history)
... | adizere/nifty-urb | src/Nifty/BEB.hs | mit | 1,017 | 0 | 12 | 294 | 261 | 140 | 121 | 28 | 1 |
-- Unsafe functions
-- ref: https://wiki.haskell.org/Unsafe_functions
unsafePerformIO :: IO a -> a
unsafeInterleaveIO :: IO a -> IO a
unsafeInterleaveST :: ST s a -> ST s a
unsafeIOToST :: IO a -> ST s a
unsafeIOToSTM :: IO a -> STM a
unsafeFreeze, unsafeThaw
unsafeCoerce# :: a -> b
seq :: a -> b -> b
-- Unsafe funct... | Airtnp/Freshman_Simple_Haskell_Lib | Idioms/Unsafe-functions.hs | mit | 687 | 1 | 6 | 125 | 108 | 56 | 52 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Algebra.Graph.Test.Graph
-- Copyright : (c) Andrey Mokhov 2016-2022
-- License : MIT (see the file LICENSE)
-- Maintainer : [email protected]
-- Stability : experimental
--
-- Testsuite for "Algebra.Graph" and ... | snowleopard/alga | test/Algebra/Graph/Test/Graph.hs | mit | 6,109 | 0 | 18 | 2,107 | 1,824 | 901 | 923 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Config.Internal.RabbitMQ
( RabbitMQConfig (..)
, readRabbitMQConfig
) where
import Data.Text (Text, pack)
import System.Environment (getEnv)
data RabbitMQConfig =
RabbitMQConfig { getHost :: Text
, getPath :: Text
, getUser :: Text
... | gust/feature-creature | legacy/lib/Config/Internal/RabbitMQ.hs | mit | 808 | 0 | 10 | 198 | 175 | 98 | 77 | 23 | 1 |
import Text.Parsec
import Text.Parsec.String
import Data.Maybe (fromJust)
value :: Char -> Int
value c = fromJust . lookup c $ [
('I', 1),
('V', 5),
('X', 10),
('L', 50),
('C', 100),
('D', 500),
('M', 1000)]
single :: Char -> Parser Int
single c = do
x <- many (char c)
return $ len... | Russell91/roman | 09.hs | mit | 981 | 0 | 13 | 289 | 501 | 246 | 255 | 36 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RankNTypes, GADTs #-}
-- This module requires GHC 8 to compile.
module Lang where
import Common
import DataDynamic
-- | This module defines a simple untyped language using the Dynamic module.
-- =========================================================================... | plclub/cis670-16fa | projects/DynamicLang/src/Lang.hs | mit | 2,007 | 0 | 12 | 537 | 680 | 341 | 339 | -1 | -1 |
module Minibas.Util (
totalScore
, quarterUrls
, buildScoreData
, buildGameData
, buildGameData'
) where
import Import
import Control.Lens ((^.))
import qualified Data.List as L (foldl, sortOn, (!!))
import qualified Data.Map as M (Map, lookup)
import Data.Maybe (fromJust)
import ... | jabaraster/minibas-web | Minibas/Util.hs | mit | 4,054 | 0 | 14 | 1,316 | 1,116 | 590 | 526 | 90 | 1 |
{-# Language TemplateHaskell #-}
module Labyrinth.Move where
import Control.Lens hiding (Action)
import Labyrinth.Map
data MoveDirection = Towards Direction | Next
deriving (Eq)
type ActionCondition = String
data Action = Go { _amdirection :: MoveDirection }
| Shoot { _asdirection :... | koterpillar/labyrinth | src/Labyrinth/Move.hs | mit | 4,391 | 1 | 9 | 1,986 | 821 | 482 | 339 | 108 | 1 |
module Monad where
import Control.Monad.Except (ExceptT, runExceptT)
import Control.Monad.Reader (ReaderT, runReaderT)
import Text.Parsec (ParseError)
import Config.Types
-- | The base monad
type Sparker = ExceptT SparkError (ReaderT SparkConfig IO)
runSparker :: Spa... | badi/super-user-spark | src/Monad.hs | mit | 757 | 0 | 9 | 204 | 176 | 101 | 75 | 17 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module DarkSky.Client
( getForecast
, httpRequest
) where
import DarkSky.Request
import DarkSky.Response (Response)
import Data.ByteString.Char8 (pack)
import Network.HTTP.Simple as HTTP
getForecast :: DarkSky.Request.Request -> IO DarkSky.Response.Response
getForecast reques... | peterstuart/dark-sky | src/DarkSky/Client.hs | mit | 739 | 0 | 13 | 110 | 199 | 107 | 92 | 18 | 1 |
{------------------------------------------------------------------------------
uPuppet: Main program
------------------------------------------------------------------------------}
import UPuppet.Errors
import UPuppet.Options
import UPuppet.CState
import UPuppet.AST
import UPuppet.Catalog
import UPuppet.Parser
i... | dcspaul/uPuppet | Src/uPuppet.hs | mit | 2,694 | 0 | 16 | 434 | 651 | 324 | 327 | 50 | 6 |
module Control.Monad.Classes.Zoom where
import Control.Applicative
import Control.Monad
import Control.Monad.Trans.Class
import Control.Monad.Base
import Control.Monad.IO.Class
import Control.Monad.Trans.Control
import Control.Monad.Classes.Core
import Control.Monad.Classes.Effects
import Control.Monad.Classes.Reader
... | feuerbach/monad-classes | Control/Monad/Classes/Zoom.hs | mit | 2,504 | 0 | 17 | 536 | 1,055 | 561 | 494 | -1 | -1 |
module Problem6 ( isPalindrome ) where
isPalindrome :: (Eq a) => [a] -> Bool
isPalindrome str = (reverse str) == str | chanind/haskell-99-problems | Problem6.hs | mit | 117 | 0 | 7 | 21 | 48 | 27 | 21 | 3 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.CSSFontFaceRule
(js_getStyle, getStyle, CSSFontFaceRule, castToCSSFontFaceRule,
gTypeCSSFontFaceRule)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), Maybe, ... | plow-technologies/ghcjs-dom | src/GHCJS/DOM/JSFFI/Generated/CSSFontFaceRule.hs | mit | 1,396 | 6 | 11 | 165 | 377 | 238 | 139 | 24 | 1 |
{-|
A module which implements the translation from pepa models to timed
system equations.
The model should have already been transformed into canonical form,
and in particular sequential derivatives should all be named.
Although actually maybe I can get rid of the whole process
concentrations database by si... | allanderek/ipclib | Language/Pepa/Ode/TimedSystemEquation.hs | gpl-2.0 | 12,226 | 0 | 11 | 3,178 | 2,215 | 1,191 | 1,024 | 219 | 2 |
module Controllers.Game.Model.ServerPlayer (ServerPlayer(ServerPlayer),
name,
identifier,
makeNewPlayer,
makeGameStatePlayers,
... | Happy0/liscrabble | src/Controllers/Game/Model/ServerPlayer.hs | gpl-2.0 | 1,474 | 0 | 13 | 466 | 379 | 204 | 175 | 27 | 1 |
module Roller.CLI (
CLI(..)
, withOpts
) where
import Options.Applicative
import Control.Applicative
type CLI a = Bool -> Int -> [String] -> a
withOpts :: CLI a -> IO a
withOpts f = execParser . info (helper <*> handleOpts) $ infoMod
where
handleOpts =
f <$> switch ( long "verbose"
<> short... | PiotrJustyna/roller | Roller/CLI.hs | gpl-2.0 | 657 | 0 | 14 | 205 | 201 | 102 | 99 | 18 | 1 |
{-# LANGUAGE OverloadedStrings, DeriveDataTypeable #-}
module CoreTypes where
import Control.Concurrent
import Data.Word
import qualified Data.Map as Map
import Data.Sequence(Seq, empty)
import Data.Time
import Network
import Data.Function
import Data.ByteString.Char8 as B
import Data.Unique
import Control.Exception
i... | jeffchao/hedgewars-accessible | gameServer/CoreTypes.hs | gpl-2.0 | 4,924 | 0 | 11 | 1,433 | 1,080 | 637 | 443 | 173 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Types where
import Control.Lens
import Data.Time
import Data.Typeable
--main type in app
data Item = Item {
_typo :: String, --typo represents type of consumption/income
_description :: String,
_price :: Int,
... | deynekalex/Money-Haskell-Project- | src/Types.hs | gpl-2.0 | 483 | 0 | 8 | 152 | 90 | 55 | 35 | 13 | 0 |
module Main ( main )
where
import Prelude hiding ( catch )
import System.IO ( hPrint, stderr )
import System.Exit ( exitWith, ExitCode(ExitFailure) )
import System.Environment ( getProgName )
import Control.Exception ( catch )
import Control.Applicative ( (<$>) )
import Data.Version ( sho... | nevrenato/HyLoRes_Source | src/hylores.hs | gpl-2.0 | 2,591 | 0 | 16 | 967 | 529 | 283 | 246 | 56 | 4 |
-- | WRONG Echo implementation using transactional variables.
module EchoTVarWrong (mkEchoTVarWrong) where
import Control.Concurrent.STM (atomically)
import Control.Concurrent.STM.TVar (TVar, newTVarIO, readTVarIO,
writeTVar)
import Ech... | capitanbatata/sandbox | hedgehog-sm-echo/src/EchoTVarWrong.hs | gpl-3.0 | 1,163 | 0 | 15 | 359 | 255 | 135 | 120 | 21 | 1 |
module Tests.GADTFirstOrder where
import QFeldspar.MyPrelude
import QFeldspar.Expression.GADTFirstOrder
import QFeldspar.Variable.Typed
import QFeldspar.Conversion
import QFeldspar.Expression.Conversions.Evaluation.GADTFirstOrder ()
import qualified QFeldspar.Expression.GADTValue as FGV
import QFeldspar.Environment.T... | shayan-najd/QFeldspar | Tests/GADTFirstOrder.hs | gpl-3.0 | 1,102 | 0 | 17 | 262 | 461 | 250 | 211 | -1 | -1 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 [email protected]
--
-- 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/Eggs/SequenceEater.hs | gpl-3.0 | 3,161 | 0 | 21 | 1,275 | 710 | 397 | 313 | 61 | 4 |
{-# LANGUAGE QuasiQuotes, OverloadedStrings #-}
module PythonSpec (spec) where
import Test.Hspec
import Language.Mulang.Ast
import Language.Mulang.Ast.Operator
import Language.Mulang.Parsers.Python
import Data.Text (Text, unpack)
import NeatInterpolation (t... | mumuki/mulang | spec/PythonSpec.hs | gpl-3.0 | 6,471 | 0 | 24 | 1,563 | 1,987 | 959 | 1,028 | 113 | 1 |
{- This file is part of PhoneDirectory.
Copyright (C) 2009 Michael Steele
PhoneDirectory 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) any lat... | mikesteele81/Phone-Directory | src/GUI.hs | gpl-3.0 | 19,744 | 0 | 25 | 6,303 | 5,066 | 2,471 | 2,595 | -1 | -1 |
module Hadolint.Formatter.Codacy
( printResults,
formatResult,
)
where
import qualified Control.Foldl as Foldl
import Data.Aeson hiding (Result)
import qualified Data.ByteString.Lazy.Char8 as B
import Data.Sequence (Seq)
import qualified Data.Text as Text
import Hadolint.Formatter.Format (Result (..), errorPos... | lukasmartinelli/hadolint | src/Hadolint/Formatter/Codacy.hs | gpl-3.0 | 2,010 | 0 | 10 | 378 | 612 | 344 | 268 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-cognito-identity/gen/Network/AWS/CognitoIdentity/UnlinkDeveloperIdentity.hs | mpl-2.0 | 5,104 | 0 | 9 | 1,086 | 552 | 335 | 217 | 73 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/ImportVolume.hs | mpl-2.0 | 5,049 | 0 | 9 | 1,177 | 686 | 414 | 272 | 81 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-logging/gen/Network/Google/Resource/Logging/Projects/Sinks/Get.hs | mpl-2.0 | 4,861 | 0 | 15 | 1,080 | 709 | 417 | 292 | 104 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | dysinger/amazonka | amazonka-directconnect/gen/Network/AWS/DirectConnect/DescribeConnections.hs | mpl-2.0 | 3,959 | 0 | 10 | 769 | 496 | 299 | 197 | 58 | 1 |
{-
Copyright (C) 2010, 2011, 2012 Jeroen Ketema and Jakob Grue Simonsen
This program 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 your option) any later version.
... | jeroenk/iTRSsImplemented | ConfluenceExamples.hs | agpl-3.0 | 6,389 | 0 | 11 | 1,425 | 1,298 | 714 | 584 | 94 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Bantam.Service.Webship (
module X
, ResourceDenied (..)
, Resource
, inconceivable
, serverError
, lookupAccept
, lookupContentType
, redirect
, forbidden
, forbiddenB
, notFound
, halt
, resourceToWaiT
) where
i... | charleso/bantam | bantam-service/src/Bantam/Service/Webship.hs | unlicense | 3,238 | 0 | 20 | 764 | 969 | 513 | 456 | 86 | 5 |
{-# LANGUAGE PackageImports #-}
import "tomato" Application (getApplicationDev)
import Network.Wai.Handler.Warp
(runSettings, defaultSettings, settingsPort)
import Control.Concurrent (forkIO)
import System.Directory (doesFileExist, removeFile)
import System.Exit (exitSuccess)
import Control.Concurrent (threadDelay)... | twopoint718/tomato | devel.hs | bsd-2-clause | 700 | 0 | 10 | 123 | 187 | 101 | 86 | 23 | 2 |
{-# LANGUAGE Arrows #-}
module OSM.XML (parseXMLFile)
where
import Data.Int (Int64)
import Text.XML.HXT.Core
import qualified OSM
import qualified Data.Map.Strict as Map
import qualified Data.Text as T
tagElementToKeyValue :: ArrowXml t => t XmlTree (OSM.TagKey, T.Text)
tagElementToKeyValue = proc el -> do
key <- g... | kolen/ptwatch | src/OSM/XML.hs | bsd-2-clause | 3,325 | 6 | 15 | 663 | 1,261 | 607 | 654 | 76 | 2 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE FlexibleContexts #-}
module Main where
import qualified QuickCheck
import Opaleye (Column, Nullable, Query, QueryArr, (.==), (.>))
import qualified Opaleye as O
import qualified Database.PostgreSQL.Simple as PGS
import qualified Data.Profunctor.Product.Default as D
imp... | benkolera/haskell-opaleye | Test/Test.hs | bsd-3-clause | 22,190 | 4 | 17 | 5,742 | 6,930 | 3,778 | 3,152 | 412 | 4 |
{-# LANGUAGE CPP, ScopedTypeVariables, NoImplicitPrelude #-}
-- | Compatibility module to work around differences in the
-- types of functions between pandoc < 2.0 and pandoc >= 2.0.
module Text.CSL.Compat.Pandoc (
writeMarkdown,
writePlain,
writeNative,
writeHtmlString,
readNative,
readHtml,
readMarkdown... | jgm/pandoc-citeproc | compat/Text/CSL/Compat/Pandoc.hs | bsd-3-clause | 3,016 | 0 | 15 | 580 | 806 | 457 | 349 | 65 | 3 |
module Main where
import System.IO
import System.Environment
import System.Exit
import Config
import Store
import Twitter
main :: IO ()
main = do
config <- getConfig
articles <- unpostedArticles def
let keys = twKeys
(cfg_consumer_key config)
(cfg_consumer_secret config)
(cf... | yunomu/nicodicbot | src/NdPost.hs | bsd-3-clause | 687 | 0 | 12 | 205 | 191 | 94 | 97 | 25 | 1 |
module Codegen.Monad
(
) where
import Control.Monad.Trans.Class
import Control.Monad.Writer
import LLVM.General.AST
import Core.Unique
newtype GeneratorT m a = GeneratorT { runGeneratorT' :: WriterT [Definition] m a }
deriving (Functor, Applicative, Monad)
class MonadGenerator m wher... | abbradar/dnohs | src/Codegen/Monad.hs | bsd-3-clause | 944 | 0 | 9 | 192 | 309 | 163 | 146 | 25 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Data.Text.ExtraTest (test_tests) where
import Elm.Utils ((|>))
import Test.Tasty
import Test.Tasty.HUnit
import Data.Text.Extra
test_tests :: TestTree
test_tests =
testGroup "Data.Text.ExtraTest"
[ testCase "when there is no span of the given character" $
l... | avh4/elm-format | avh4-lib/test/Data/Text/ExtraTest.hs | bsd-3-clause | 704 | 0 | 10 | 178 | 141 | 75 | 66 | 18 | 1 |
module Main where
import Tkhs
import Parser
import System.Environment
import System.IO.UTF8 as U
import qualified Zipper
import Data.Maybe
main :: IO ()
main = getArgs >>= U.readFile . headOrUsage
>>= either (error . show)
(runP presentation . fromJust . Zipper.fromList . (++... | nonowarn/tkhs | src/Main.hs | bsd-3-clause | 518 | 0 | 13 | 152 | 154 | 83 | 71 | 15 | 1 |
module Util.HTML.Attributes where
import Util.HTML
action, align, alt, autocomplete, background, border, charset, checked, _class, cols, colspan, content, enctype, for, height, href, http_equiv, _id, maxlength, method, name, placeholder, role, rows, rowspan, selected, size, src, style, tabindex, target, title, _type,... | johanneshilden/liquid-epsilon | Util/HTML/Attributes.hs | bsd-3-clause | 1,642 | 0 | 5 | 525 | 369 | 221 | 148 | 38 | 1 |
module Main where
import System.Console.GetOpt
import System.Environment
import qualified TextUI as TUI
data Flag = Help
| Text TUI.Config
options :: [OptDescr Flag]
options =
[ Option ['?','h'] ["help"] (NoArg Help)
"Help message."
, Option ['t'] ["text"] (OptArg textConfig "uc")
... | sakhnik/FreeCell | Main.hs | bsd-3-clause | 1,539 | 0 | 14 | 466 | 469 | 251 | 218 | 40 | 3 |
-- Copyright (c) 2011, Colin Hill
-- | Implementation of ridged multi-fractal noise.
--
-- Example of use:
--
-- @
--main = putStrLn (\"Noise value at (1, 2, 3): \" ++ show x)
-- where seed = 1
-- octaves = 5
-- scale = 0.005
-- frequency = 1
-- lacunarity = 2... | colinhect/hsnoise | src/Numeric/Noise/Ridged.hs | bsd-3-clause | 2,686 | 0 | 13 | 752 | 618 | 340 | 278 | 39 | 1 |
import Debug.Trace
import Test.Hspec
import Test.Hspec.QuickCheck
import Test.QuickCheck
import Text.Unidecode
main :: IO ()
main = hspec spec
spec = describe "unidecode" $ do
it "doesn't hurt ascii text" $ do
unidecode 'a' `shouldBe` "a"
it "doesn't crash" $... | mwotton/unidecode | test/Spec.hs | bsd-3-clause | 463 | 0 | 12 | 134 | 132 | 65 | 67 | 14 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE MultiWayIf #-}
module Game.Monsters.MGladiator where
import Control.Lens (use, preuse, ix, (^.), (.=), (%=), zoom, (&), (.~), (%~))
import Control.Monad (when, unless, liftM, void)
import Data.Bits ((.&.), (.|.))
import Data.Maybe (isJust)
import Linear (V3(..), normaliz... | ksaveljev/hake-2 | src/Game/Monsters/MGladiator.hs | bsd-3-clause | 19,821 | 0 | 50 | 5,390 | 5,223 | 2,649 | 2,574 | -1 | -1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
module Graphics.Blank.DeviceContext where
import Control.Concurrent.STM
import Data.Set (Set)
import Data.Text.Lazy (Text, toStrict)
import Graphics.Blank.Events
import Graphics.Blank.JavaScript
i... | ku-fpg/blank-canvas | Graphics/Blank/DeviceContext.hs | bsd-3-clause | 3,158 | 0 | 15 | 721 | 411 | 233 | 178 | 46 | 2 |
{-# LANGUAGE RecordWildCards #-}
module Day7 where
import Data.List
import Data.List.Split
data IP = IP
{ supernet :: [String]
, hypernet :: [String]
}
input :: IO String
input = readFile "day7"
parse :: String -> IP
parse s = IP (map head parts) (concatMap tail parts)
where
parts = chunksOf 2 $ ... | mbernat/aoc16-haskell | src/Day7.hs | bsd-3-clause | 1,137 | 0 | 11 | 271 | 514 | 273 | 241 | 34 | 1 |
module Interpret
( interpret
)
where
import Ast
import Control.Monad.Trans.State
import Data.Map (Map)
import qualified Data.Map as M
import Control.Monad
import Control.Monad.IO.Class
import Control.Arrow (first)
interpret :: Program -> IO (Maybe String)
interpret p =
let ftab = buildFunctionTable p
... | davidpdrsn/alisp | src/Interpret.hs | bsd-3-clause | 6,671 | 0 | 18 | 1,946 | 2,785 | 1,372 | 1,413 | 171 | 4 |
------------------------------------------------------------------------
-- |
-- Module : Data.CSV.BatchAverage
-- Copyright : (c) Amy de Buitléir 2014
-- License : BSD-style
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : portable
--
-- Groups the records of a CSV int... | mhwombat/amy-csv | src/Data/CSV/BatchAverage.hs | bsd-3-clause | 1,433 | 0 | 14 | 258 | 399 | 218 | 181 | 24 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module Ivory.ModelCheck.CVC4 where
import qualified Data.ByteString.Char8 as B
import Data.Int
import Data.List ... | Hodapp87/ivory | ivory-model-check/src/Ivory/ModelCheck/CVC4.hs | bsd-3-clause | 11,945 | 0 | 17 | 3,411 | 4,411 | 2,394 | 2,017 | 300 | 21 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE Typ... | Garygunn94/DFS | DirectoryServer/.stack-work/intero/intero16528ftM.hs | bsd-3-clause | 9,535 | 40 | 18 | 2,385 | 2,282 | 1,181 | 1,101 | 210 | 3 |
{-# LANGUAGE OverloadedStrings #-}
-- |
module Main where
import Cache
import Commands
import qualified System.Process as P
import Options.Applicative
import qualified Data.Text as T
import qualified Data.Text.IO as T
import Shelly (shelly, Sh, fromText, FilePath)
import Dat... | bergey/hscache | src/Main.hs | bsd-3-clause | 2,821 | 0 | 17 | 704 | 752 | 388 | 364 | 76 | 1 |
module Problem37 where
import Prime
main :: IO ()
main = print . sum . take 11 . filter truncablePrime $ [11 ..]
truncablePrime :: Int -> Bool
truncablePrime n
| n < 10 = isPrimeNaive n
| otherwise = isPrimeNaive n && leftTruncablePrime n && rightTruncablePrime n
leftTruncablePrime :: Int -> Bool
leftTru... | adityagupta1089/Project-Euler-Haskell | src/problems/Problem37.hs | bsd-3-clause | 609 | 0 | 11 | 139 | 227 | 110 | 117 | 16 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Main where
import Control.Monad (mzero)
import Data.Aeson
import qualified Data.ByteString as B
import qualified Data.ByteString.Lazy as BL
import Data.... | reactormonk/hoauth2 | example/Fitbit/test.hs | bsd-3-clause | 3,662 | 0 | 12 | 969 | 994 | 531 | 463 | 85 | 2 |
{-# LANGUAGE BangPatterns, ScopedTypeVariables, RecordWildCards #-}
-- |
-- Module : AI.HNN.Recurrent.Network
-- Copyright : (c) 2012 Gatlin Johnson
-- License : LGPL
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : GHC
--
-- An implementation of recurrent neural netw... | fffej/hnn | AI/HNN/Recurrent/Network.hs | bsd-3-clause | 4,375 | 0 | 12 | 1,185 | 690 | 402 | 288 | 56 | 1 |
{-
foo
bar
a) foo
foo
b) bar
bar
baa
-}
{-
foo
bar
* @foo
* @bar
baa
-}
{-
foo
bar
> foo
> bar
baa
-}
| itchyny/vim-haskell-indent | test/comment/list.out.hs | mit | 126 | 0 | 2 | 53 | 5 | 4 | 1 | 1 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
-- Module: Gpg.EditKey
--
-- Edit keys with Gpg's interactive mode
module Gpg.EditKey where
import Control.Monad
import qualified Control.Exception as Ex
import Control.Applicative
import ... | Philonous/pontarius-gpg | src/Gpg/EditKey.hs | mit | 2,786 | 0 | 19 | 787 | 800 | 413 | 387 | 64 | 7 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeOperators #-}
modu... | ababkin/qmuli | library/Qi/Program/SQS/Lang.hs | mit | 1,453 | 0 | 9 | 384 | 298 | 175 | 123 | 51 | 1 |
-- | Specification for Pos.Chain.Ssc.GodTossing.Toss.Pure
module Test.Pos.Ssc.Toss.PureSpec
( spec
) where
import Universum
import qualified Crypto.Random as Rand
import Data.Default (def)
import Test.Hspec (Spec, describe)
import Test.Hspec.QuickCheck (modifyMax... | input-output-hk/pos-haskell-prototype | lib/test/Test/Pos/Ssc/Toss/PureSpec.hs | mit | 5,450 | 0 | 20 | 1,358 | 1,091 | 586 | 505 | -1 | -1 |
--ProbabFP.hs
--Author: Chad Myles
--Date: 9/26/16
module Probab (
Dist,
unit,
uniformDist,
weightedDist,
toList,
mergeEqual,
possibilities,
probabilityOf,
adjoin,
distFil,
transform,
combine,
duplicate
) where
import Data.List
data Dist a = Dist [(a, Float)]
... | seabornloyalis/probabilistic-haskell | ProbabFP.hs | mit | 3,417 | 0 | 19 | 1,080 | 1,382 | 755 | 627 | 67 | 2 |
-- Functional and recursive function
let fib x = if x < 1 then 0 else (if x < 3 then 1 else (fib(x - 1) + fib(x - 2)))
| MarkWaldron/Challenges | Maths/01-Fibonacci-Sequence/solutions/askl56-fibonacci.hs | gpl-2.0 | 121 | 1 | 14 | 32 | 67 | 36 | 31 | -1 | -1 |
{- |
Module : $Header$
Description : printing Isabelle entities
Copyright : (c) University of Cambridge, Cambridge, England
adaption (c) Till Mossakowski, Uni Bremen 2002-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : [email protected]
Stability : provisional
Por... | keithodulaigh/Hets | Isabelle/IsaPrint.hs | gpl-2.0 | 41,894 | 1,387 | 27 | 14,867 | 14,680 | 7,636 | 7,044 | 927 | 54 |
module Main where
import System.Console.Haskeline
import Expr
import TypeCheck
import Translation
import Syntax
import Parser
-- import Predef
-- Note: 1. datatypes first, then record
-- 2. first `desugar` to get rid of record, second desugar to get rid of let expression
main :: IO ()
main = runInputT defaultS... | bixuanzju/full-version | src/Main.hs | gpl-3.0 | 4,269 | 0 | 24 | 1,702 | 1,011 | 488 | 523 | 84 | 20 |
-- | Handler for comments on Wiki pages. Section comments are relative to /p/#handle/w/#target/c/#comment
module Handler.Wiki.Comment where
import Import
import Handler.Comment as Com
import Handler.Project (checkProjectCommentActionPermission)
import Model.Comment
import Mode... | chreekat/snowdrift | Handler/Wiki/Comment.hs | agpl-3.0 | 22,938 | 0 | 19 | 4,877 | 4,779 | 2,381 | 2,398 | -1 | -1 |
module Main where
main :: IO ()
main = putStrLn "Hello, World!"
| nixdog/helloworld | haskell.hs | apache-2.0 | 69 | 0 | 6 | 17 | 22 | 12 | 10 | 3 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude, AutoDeriveTypeable, MagicHash,
ExistentialQuantification #-}
{-# OPTIONS_GHC -funbox-strict-fields #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.IO.Excep... | green-haskell/ghc | libraries/base/GHC/IO/Exception.hs | bsd-3-clause | 12,430 | 0 | 17 | 2,768 | 1,869 | 1,043 | 826 | 214 | 2 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude, MagicHash, ImplicitParams #-}
{-# LANGUAGE RankNTypes, PolyKinds, DataKinds #-}
{-# OPTIONS_HADDOCK not-home #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.Err
-- Copyright : (c) The University... | sdiehl/ghc | libraries/base/GHC/Err.hs | bsd-3-clause | 3,686 | 0 | 9 | 716 | 302 | 198 | 104 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-rds/gen/Network/AWS/RDS/CreateOptionGroup.hs | mpl-2.0 | 5,530 | 0 | 10 | 1,265 | 703 | 428 | 275 | 84 | 1 |
{-# OPTIONS_GHC -funbox-strict-fields #-}
module RestyScript.Emitter.Stats (
Stats,
emit,
emitJSON
) where
import RestyScript.AST
import Text.JSON
data Stats = Stats {
modelList :: ![String], funcList :: ![String],
selectedMax :: !Int, joinedMax :: !Int,
comparedCount :: !Int, queryCount :: !... | beni55/old-openresty | haskell/src/RestyScript/Emitter/Stats.hs | bsd-3-clause | 2,506 | 0 | 11 | 643 | 936 | 510 | 426 | 75 | 1 |
{- $Id: AFRPTestsSwitch.hs,v 1.2 2003/11/10 21:28:58 antony Exp $
******************************************************************************
* A F R P *
* *
* Module: ... | meimisaki/Yampa | tests/AFRPTestsSwitch.hs | bsd-3-clause | 7,509 | 30 | 23 | 2,115 | 2,814 | 1,654 | 1,160 | 146 | 1 |
-------------------------------------------------------------------------
--
-- QCStoreTest.hs
--
-- QuickCheck tests for stores. --
-- (c) Addison-Wesley, 1996-2011.
--
-------------------------------------------------------------------------
module QCStoreTest wh... | c089/haskell-craft3e | Chapter16/QCStoreTest.hs | mit | 707 | 0 | 9 | 163 | 161 | 86 | 75 | 12 | 1 |
{-# LANGUAGE PatternGuards, CPP, ForeignFunctionInterface #-}
-----------------------------------------------------------------------------
--
-- (c) The University of Glasgow 2004-2009.
--
-- Package management tool
--
-----------------------------------------------------------------------------
module HastePkg708 (m... | szatkus/haste-compiler | utils/haste-pkg/HastePkg708.hs | bsd-3-clause | 72,226 | 3 | 99 | 19,836 | 16,870 | 8,506 | 8,364 | 1,280 | 32 |
{-# LANGUAGE TemplateHaskell, TypeFamilies, PolyKinds #-}
module T9692 where
import Data.Kind (Type)
import Language.Haskell.TH hiding (Type)
import Language.Haskell.TH.Syntax hiding (Type)
import Language.Haskell.TH.Ppr
import System.IO
class C a where
data F a (b :: k) :: Type
instance C Int where
... | sdiehl/ghc | testsuite/tests/th/T9692.hs | bsd-3-clause | 460 | 0 | 12 | 105 | 153 | 83 | 70 | -1 | -1 |
#!/usr/bin/env runhaskell
{-|
This Haskell script prints a random quote from my quote
collection in `data/finished.yaml`.
I email myself quotes every few days with a cron job piping
the output of this to a command-line mailing program (mutt).
Appropriate packages can be installed with `cabal`.
Brandon Amos
http://b... | BIPOC-Books/BIPOC-Books.github.io | scripts/random-quote.hs | mit | 2,086 | 18 | 13 | 578 | 428 | 235 | 193 | 41 | 2 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude, DeriveDataTypeable, MagicHash #-}
{-# OPTIONS_GHC -funbox-strict-fields #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : GHC.IO.Exception
-- Copyright : (c) The Universit... | beni55/haste-compiler | libraries/ghc-7.8/base/GHC/IO/Exception.hs | bsd-3-clause | 11,036 | 0 | 17 | 2,580 | 1,647 | 922 | 725 | 190 | 2 |
{-# LANGUAGE GADTs #-}
module CmmSink (
cmmSink
) where
import Cmm
import CmmOpt
import BlockId
import CmmLive
import CmmUtils
import Hoopl
import CodeGen.Platform
import Platform (isARM, platformArch)
import DynFlags
import UniqFM
import PprCmm ()
import Data.List (partition)
import qualified Data.Set as Set... | urbanslug/ghc | compiler/cmm/CmmSink.hs | bsd-3-clause | 29,851 | 0 | 17 | 7,980 | 4,292 | 2,363 | 1,929 | 244 | 5 |
module Models.Task where
import Control.Monad.IO.Class (MonadIO, liftIO)
import Control.Monad.Logger (NoLoggingT, runNoLoggingT)
import Control.Monad.Trans.Resource (ResourceT, runResourceT)
import Data.Text (Text)
import Data.Time (UTCTime)
import Database.Persist (Entity, Key, SelectOpt(LimitTo), (=.), deleteWhere, ... | quephird/todo.hs | src/Models/Task.hs | mit | 1,563 | 0 | 11 | 232 | 522 | 288 | 234 | -1 | -1 |
module Logic.Data.Units where
import Logic.Types
import qualified Data.Map as Map
import Control.Lens
unitsBase :: Map.Map UnitType UnitData
unitsBase = Map.fromList [
(UnitType 1, marine)
]
marine = UnitData {
_maxHp = 50,
_attackValue = 8,
_attackSpeed = 0.5,
_movementSpeed =... | HarvestGame/logic-prototype | src/Logic/Data/Units.hs | mit | 331 | 0 | 8 | 88 | 90 | 55 | 35 | 12 | 1 |
--
--
--
------------------
-- Exercise 13.24.
------------------
--
--
--
module E'13'24 where
| pascal-knodel/haskell-craft | Chapter 13/E'13'24.hs | mit | 106 | 0 | 2 | 24 | 13 | 12 | 1 | 1 | 0 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
-- | Copyright 2014-2015 Anchor Systems, Pty Ltd and Others
--
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms... | anchor/borel | lib/Borel/Types/Result.hs | mit | 2,690 | 0 | 13 | 905 | 628 | 354 | 274 | 67 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{- |
Module : Orville.PostgreSQL.Expr.Where.ValueExpression
Copyright : Flipstone Technology Partners 2016-2021
License : MIT
-}
module Orville.PostgreSQL.Internal.Expr.ValueExpression
( ValueExpression,
columnReference,
valueExpression,
rowValueConstructo... | flipstone/orville | orville-postgresql-libpq/src/Orville/PostgreSQL/Internal/Expr/ValueExpression.hs | mit | 1,066 | 0 | 8 | 137 | 176 | 107 | 69 | 22 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
-- |
-- Module: Network.SIP.Parser.ResponseLine
-- Description: Response line parser.
-- Copyright: Copyright (c) 2015-2016 Jan Sipr
-- License: MIT
module Network.SIP.Parser.ResponseLine
( firstLineParser
)
where
import Con... | Siprj/ragnarok | src/Network/SIP/Parser/ResponseLine.hs | mit | 2,017 | 0 | 13 | 456 | 565 | 322 | 243 | 49 | 1 |
-- Copyright (C) 2014 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... | MostAwesomeDude/gemstone | Gemstone/Maths.hs | mit | 739 | 0 | 8 | 129 | 65 | 41 | 24 | 3 | 1 |
a = fmap (+1) $ read "[1]" :: [Int]
b = (fmap . fmap) (++ "lol") (Just ["Hi,","Hello"])
-- same as (*2) . (\x -> x - 2)
c = fmap (*2) (\x -> x - 2)
d = fmap ((return '1'++) . show) (\x -> [x,1..3])
e :: IO Integer
e = let ioi = readIO "1" :: IO Integer
--changed = fmap read $ fmap ("123"++) $ fmap show ioi... | JustinUnger/haskell-book | ch16/functor-ex1.hs | mit | 399 | 3 | 13 | 110 | 211 | 110 | 101 | 8 | 1 |
{--
Copyright (c) 2012 Gorka Suárez García
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... | gorkinovich/Haskell | Others/Primes.hs | mit | 1,751 | 0 | 11 | 305 | 226 | 118 | 108 | 12 | 1 |
{-# htermination (compareChar :: Char -> Char -> Ordering) #-}
import qualified Prelude
data MyBool = MyTrue | MyFalse
data List a = Cons a (List a) | Nil
data Char = Char MyInt ;
data MyInt = Pos Nat | Neg Nat ;
data Nat = Succ Nat | Zero ;
data Ordering = LT | EQ | GT ;
primCmpNat :: Nat -> Nat -> ... | ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/compare_4.hs | mit | 993 | 0 | 8 | 223 | 445 | 241 | 204 | 25 | 1 |
module SSH.Key
( KeyBox
, PublicKey(..)
, PrivateKey(..)
, parseKey
, serialiseKey
, publicKeys
, privateKeys
, putPublicKey
) where
import Control.Applicative ((<$>), (<*>))
import Control.Monad (unless, replicateM)
import Da... | mithrandi/ssh-key-generator | SSH/Key.hs | mit | 4,843 | 0 | 14 | 1,187 | 1,358 | 701 | 657 | 131 | 2 |
-- | Traversing mutable vectors.
module Data.Vector.Generic.Mutable.Loops where
import Control.Monad.Primitive
import Data.Vector.Generic.Mutable as MG
type Loop m v a = v (PrimState m) a -> (a -> m ()) -> m ()
type ILoop m v a = v (PrimState m) a -> (Int -> a -> m ()) -> m ()
{-# INLINE iForM_ #-}
iForM_ :: (MG.MVe... | Lysxia/twentyseven | src/Data/Vector/Generic/Mutable/Loops.hs | mit | 645 | 0 | 11 | 146 | 305 | 161 | 144 | 13 | 1 |
module Main ( main ) where
import OpenGLRenderer
import Utils
import Utils.GL
import Tiles
import Tiles.Renderer
import TestTiles as TT
import TestRenderer
import Data.Map (fromList)
import Data.IORef
import Graphics.UI.GLUT hiding (Point)
player1 = Owner "1" "xxPLAYERxx"
player2 = Owner "2" "__player__"
coords :... | fehu/hgt | tiles-test/src/Main.hs | mit | 4,728 | 0 | 14 | 2,082 | 1,383 | 717 | 666 | 84 | 5 |
{-
-- LoGoff system
-}
module Logoff where
import Datatypes
import Data.Maybe
{------------------------------------------------------------------------------}
-- Axiom block
{------------------------------------------------------------------------------}
-- isAx verifies if a sequent is an Ax-type axiom
isAx :: Sequ... | DrSLDR/logoff | src/Logoff.hs | mit | 20,224 | 0 | 18 | 3,879 | 7,070 | 3,635 | 3,435 | 392 | 10 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TupleSections #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticmapreduce-instancegroupconfig-scalingaction.html
module Stratosphere.ResourceProperties.EMRInstanceGro... | frontrowed/stratosphere | library-gen/Stratosphere/ResourceProperties/EMRInstanceGroupConfigScalingAction.hs | mit | 2,841 | 0 | 13 | 210 | 259 | 150 | 109 | 29 | 1 |
-- | Defines an internal representation of Haskell data\/newtype definitions
-- that correspond to the XML DTD types, and provides pretty-printers to
-- convert these types into the 'Doc' type of "Text.PrettyPrint.HughesPJ".
module DtdToHaskell.TypeDef
( -- * Internal representation of types
TypeDef(..)
, ... | nevrenato/Hets_Fork | utils/DtdToHaskell-src/pre-1.22/TypeDef.hs | gpl-2.0 | 8,527 | 0 | 22 | 2,437 | 2,566 | 1,321 | 1,245 | 175 | 1 |
-- -*- mode: haskell -*-
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
module Control.Schule.Typ where
import Control.Types ( UNr, Name )
import Autolib.Reader
import Autolib.ToDoc
import Data.Typeable
-- | das sollte exactly das sein, was auch in DB-tabelle steht
data Schule =
Schule { unr :: UNr
... | Erdwolf/autotool-bonn | src/Control/Schule/Typ.hs | gpl-2.0 | 547 | 4 | 9 | 146 | 101 | 62 | 39 | 12 | 0 |
{- |
Module : $Header$
Description : OWL Morphisms
Copyright : (c) Dominik Luecke, 2008, Felix Gabriel Mance, 2011
License : GPLv2 or higher, see LICENSE.txt
Maintainer : [email protected]
Stability : provisional
Portability : portable
Morphisms for OWL
-}
module OWL2.Morphism where
... | nevrenato/Hets_Fork | OWL2/Morphism.hs | gpl-2.0 | 6,510 | 0 | 22 | 1,836 | 2,531 | 1,293 | 1,238 | 154 | 9 |
-- |Article writer.
-- Writes articles in the format described at <http://www.gilith.com/research/opentheory/article.html>.
module OpenTheory.Write (Loggable,WM,WriteState,logRawLn,logThm,evalWM) where
import Data.Map (Map)
import Data.Set (Set)
import qualified Data.Set as Set (toAscList)
import qualified Data.Map as ... | xrchz/ot | OpenTheory/Write.hs | gpl-3.0 | 5,196 | 0 | 16 | 1,387 | 1,806 | 890 | 916 | 165 | 2 |
{-# LANGUAGE NoImplicitPrelude #-}
module Bamboo.Type.Config where
import Bamboo.Helper.PreludeEnv
import Bamboo.Type.Common
import Bamboo.Type.Extension
import Bamboo.Type.Reader
import Bamboo.Type.StaticWidget (StaticWidget)
import Bamboo.Type.Theme (ThemeConfig)
import Data.Default
data ConfigData =
BlogTitle... | nfjinjing/bamboo | src/Bamboo/Type/Config.hs | gpl-3.0 | 5,088 | 0 | 9 | 2,437 | 762 | 504 | 258 | 134 | 0 |
import Bench
import Bench.Triangulations
import Criterion.Main
main :: IO ()
main = defaultMain
[ bench "it" (nf qVertexSolBench trs) ]
| DanielSchuessler/hstri | bench.hs | gpl-3.0 | 151 | 1 | 9 | 35 | 51 | 25 | 26 | 6 | 1 |
-- Identify for the server
module Handlers.Identify
( handler
) where
import Network.Socket
import Request
defaultIdent = "ShrubBot"
defaultNick = "ShrubBot"
defaultRealName = "Mr. Shrubbery"
identify :: EventHandler
identify (Just sender, _, ["AUTH", "*** Checking Ident"]) botState = do
putStrLn "Identifying wit... | UndeadMastodon/ShrubBot | Handlers/Identify.hs | gpl-3.0 | 736 | 0 | 11 | 115 | 198 | 112 | 86 | 16 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.