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 DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-books/gen/Network/Google/Resource/Books/Onboarding/ListCategories.hs | mpl-2.0 | 2,937 | 0 | 13 | 625 | 305 | 187 | 118 | 48 | 1 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE... | duairc/opaleye-x | src/Opaleye/X/Optional.hs | mpl-2.0 | 7,153 | 0 | 10 | 1,042 | 1,514 | 818 | 696 | -1 | -1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-bigquery/gen/Network/Google/Resource/BigQuery/Jobs/List.hs | mpl-2.0 | 6,768 | 0 | 21 | 1,668 | 1,036 | 598 | 438 | 143 | 1 |
{-# LANGUAGE DeriveGeneric #-}
module Betty.Model where
import ClassyPrelude.Yesod
import Data.Time.LocalTime (TimeZone)
------------------------------------------------------------------------
-- Blood glucose units.
data BGUnit = MgDL | Mmol
deriving (Show, Read, Eq, Enum, Bounded, Generic)
derivePe... | sajith/betty-web | Betty/Model.hs | agpl-3.0 | 1,040 | 0 | 6 | 156 | 179 | 97 | 82 | -1 | -1 |
--------------------------------------------------------------------------------
{-| Module : MultiSet
Copyright : (c) Daan Leijen 2002
License : BSD-style
Maintainer : daan@cs.uu.nl
Stability : provisional
Portability : portable
An implementation of multi sets on top of the ... | alanz/Blobs | lib/DData/MultiSet.hs | lgpl-2.1 | 13,651 | 0 | 12 | 3,211 | 3,049 | 1,581 | 1,468 | 208 | 2 |
-- import Demo.StateT (demos)
-- import Demo.ReaderT1 (demos)
-- import Demo.ExceptT (demos)
-- import Demo.ContT (demos)
-- import Demo.Array (demos)
-- import Demo.Surpassing
-- import Demo.Search
-- import Demo.Foldable
import Demo.Monad
runDemo demos = print demos
main = runDemo demos
| seckcoder/lang-learn | haskell/lambda-calculus/src/Demo/Main.hs | unlicense | 297 | 0 | 5 | 46 | 33 | 20 | 13 | 3 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Openshift.V1.ImageSource where
import GHC.Generics
import Openshift.V1.ImageSourcePath
import Openshift.V1.LocalObjectReference
import Openshif... | minhdoboi/deprecated-openshift-haskell-api | openshift/lib/Openshift/V1/ImageSource.hs | apache-2.0 | 793 | 0 | 9 | 114 | 113 | 71 | 42 | 18 | 0 |
-------------------------------------------------------------------------------
-- |
-- Module : CCO.Diag.Lexer
-- Copyright : (c) 2008 Utrecht University
-- License : All rights reserved
--
-- Maintainer : stefan@cs.uu.nl
-- Stability : provisional
-- Portability : portable
--
-- A 'Lexer' for 'Dia... | aochagavia/CompilerConstruction | tdiagrams/lib/CCO/Diag/Lexer.hs | apache-2.0 | 3,144 | 0 | 18 | 700 | 535 | 301 | 234 | 40 | 1 |
-- Module that makes Expr and instance of the Arbitrary type-class allowing
-- random expressions to be generated for use in QuickTests
-- This module only need export the function 'arbitrary' since it is the existence of that function (defined for 'Arbitrary (Expr a)' that makes Expr and instance of the Arbitrary cla... | abid-mujtaba/haskell-cas | test/QuickTests/Arbitrary.hs | apache-2.0 | 7,981 | 0 | 13 | 1,786 | 642 | 364 | 278 | 31 | 3 |
-- https://rafal.io/posts/haskell-lenses-notes.html --
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveFunctor #-}
import Control.Lens.TH
--import qualified Data.Map as Map
import Data.Char -- toLower
data Person = P { _name :: String
, _addr :: Address
... | egaburov/funstuff | Haskell/lenses/lens2.hs | apache-2.0 | 6,773 | 0 | 12 | 2,128 | 1,145 | 633 | 512 | 64 | 1 |
{-# LANGUAGE FlexibleContexts #-}
module Mangekyo.Conduit.Csv where
import Data.Conduit
import Data.Csv (HasHeader(..), defaultEncodeOptions, defaultDecodeOptions)
import Data.Csv.Conduit (fromCsvLiftError, toCsv)
import qualified Data.ByteString.Char8 as B
import qualified Data.Conduit.List as CL
import qualified D... | nakamuray/mangekyo | src/Mangekyo/Conduit/Csv.hs | bsd-2-clause | 1,138 | 0 | 10 | 218 | 365 | 202 | 163 | 28 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Control.Category -- base
import Control.Scrobbler -- scrobblers
import Control.Scrobbler.Algorithm.MPD -- scrobblers
import Prelude hiding ((.), id) -- base
-- Simple scrobbler without fancy stuff
--
-- Each scrobbling step is accompanied ... | supki/scrobblers | examples/Casual.hs | bsd-2-clause | 923 | 0 | 11 | 196 | 124 | 77 | 47 | 16 | 1 |
{-# LANGUAGE Arrows #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANG... | pellagic-puffbomb/simpleservantblog | src/Models/Post.hs | bsd-3-clause | 6,410 | 0 | 15 | 2,278 | 1,076 | 616 | 460 | 151 | 1 |
{-# LANGUAGE DeriveFoldable, DeriveTraversable, TupleSections #-}
-- | AI strategies to direct actors not controlled directly by human players.
-- No operation in this module involves the 'State' or 'Action' type.
module Game.LambdaHack.Client.AI.Strategy
( Strategy, nullStrategy, liftFrequency
, (.|), reject, (.=>... | beni55/LambdaHack | Game/LambdaHack/Client/AI/Strategy.hs | bsd-3-clause | 3,729 | 0 | 19 | 823 | 1,046 | 549 | 497 | 73 | 1 |
module Unfolds where
myIterate :: (a -> a) -> a -> [a]
myIterate f x = go f x []
where go f x xs = x : go f (f x) xs
myUnfoldr :: (b -> Maybe (a, b)) -> b -> [a]
myUnfoldr f x = go f x []
where go f b as = case f b of
Nothing -> as
Just (a, nb) -> a : go f nb as
bette... | abhean/phffp-examples | src/Unfolds.hs | bsd-3-clause | 403 | 0 | 11 | 146 | 235 | 122 | 113 | 11 | 2 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TupleSections #-}
import Plots
import Plots.Axis
import Plots.Types hiding (B)
import Plots.Themes
import Plots.Utils
import Data.List
import Diagrams.Prelude
import Diagrams.Backend.Rasterific
import Diagrams.Backend.CmdLine
import Diagrams.Coordinates.Polar... | bergey/plots | examples/pointarea.hs | bsd-3-clause | 1,107 | 3 | 11 | 211 | 529 | 293 | 236 | 31 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -Wno-missing-signatures #-}
{-# OPTIONS_GHC -fwarn-incomplete-uni-patterns #-}
module AsmBunny where
-- Shared items between days 12, 23 and 25
import Data.Functor (($>))
import qualified Text.Megaparsec.String as P
import qualified Text.Megaparsec as P
import qualified Da... | guibou/AdventOfCode2016 | src/AsmBunny.hs | bsd-3-clause | 2,684 | 0 | 12 | 654 | 939 | 496 | 443 | 58 | 2 |
module Problem174 where
import Data.Array
m :: Int
m = 10 ^ 6
main :: IO ()
-- a^2-b^2 = (a-b)(a+b) = t
-- a-b<a+b => (a-b)^2<t => a-b<sqrt[t]
main = print $ length $ filter (\x -> x > 0 && x <= 10) $ elems $ accumArray
(+)
0
(1, m)
[ (diff * sm, 1)
| diff <- takeWhile (\d -> d * d < m) [2, 4 ..... | adityagupta1089/Project-Euler-Haskell | src/problems/Problem174.hs | bsd-3-clause | 404 | 0 | 14 | 129 | 193 | 108 | 85 | 12 | 1 |
{-# LANGUAGE QuasiQuotes #-}
{-# OPTIONS -fno-warn-name-shadowing #-}
module Atomo.Kernel.Block (load) where
import qualified Data.Vector as V
import Atomo
import Atomo.Method
import Atomo.Pattern (bindings')
load :: VM ()
load = do
[p|Block new: (es: List) in: t|] =:::
[e|Block new: es arguments: [] in... | vito/atomo | src/Atomo/Kernel/Block.hs | bsd-3-clause | 3,323 | 0 | 16 | 1,185 | 1,219 | 601 | 618 | 89 | 3 |
{-# LANGUAGE Trustworthy #-}
-- | Labeled expressions.
module MAC.Labeled
(
Labeled ()
, Id (MkId)
, label
, unlabel
)
where
import MAC.Lattice
import MAC.Core (MAC(), Res())
import MAC.Effects
-- | Type denoting values of type @a@
data Id a = MkId { unId :: a }
-- | Labeled expressio... | alejandrorusso/mac-privacy | MAC/Labeled.hs | bsd-3-clause | 591 | 0 | 9 | 148 | 184 | 106 | 78 | 21 | 1 |
import Test.DocTest
main :: IO ()
main = doctest ["Data/Patch/Internal.hs", "-i", "test", "-i."]
| liamoc/patches-vector | doctest.hs | bsd-3-clause | 98 | 1 | 6 | 14 | 39 | 20 | 19 | 3 | 1 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
module Transformations.Optimising.ArityRaisingSpec where
import Transformations.Optimising.ArityRaising
import Transformations.Names (ExpChanges(..))
import Test.Hspec
import Grin.Grin
import Grin.TH
import Test.Test hiding (newVar)
import Test.Assertions
import Grin.Ty... | andorp/grin | grin/test/Transformations/Optimising/ArityRaisingSpec.hs | bsd-3-clause | 3,886 | 0 | 13 | 1,172 | 196 | 119 | 77 | 26 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
module Parse (
parseExpr
) where
import Control.Applicative ((<|>))
import Data.Bifunctor (first)
import qualified Data.List as L
import qualified Data.Text as T
import qualified Text.Parsec as P
import qualified Text.Parsec... | CBMM/CBaaS | cbaas-lib/src/Parse.hs | bsd-3-clause | 2,493 | 0 | 15 | 660 | 855 | 444 | 411 | 56 | 2 |
import Network.Socket
import Network.BSD
import System.IO (Handle, IOMode(ReadWriteMode), hPutStrLn, hGetLine, hClose)
import Control.Monad (liftM)
import Control.Concurrent (forkIO)
import Control.Exception (finally)
import System
connectTo :: String -> Int -> IO Handle
connectTo host port_ = do
let port = toEn... | marcmo/hsDiagnosis | other/sockettests.hs | bsd-3-clause | 1,449 | 5 | 17 | 355 | 514 | 242 | 272 | -1 | -1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-missing-import-lists #-}
{-# OPTIONS_GHC -fno-warn-implicit-prelude #-}
module Paths_LockingService (
version,
getBinDir, getLibDir, getDataDir, getLibexecDir,
getDataFileName, getSysconfDir
) where
import qualified Control.Exception as Exception
import Data... | Garygunn94/DFS | LockingService/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/build/autogen/Paths_LockingService.hs | bsd-3-clause | 2,001 | 0 | 10 | 223 | 371 | 215 | 156 | 31 | 1 |
-- |
-- Module : Data.Hourglass.Compat
-- License : BSD-style
-- Maintainer : Nicolas DI PRIMA <nicolas@di-prima.fr>
--
-- Basic Time conversion compatibility.
--
-- This module aims to help conversion between the types from the package
-- time to the package hourglass.
--
-- Example of use (extracted from fi... | ppelleti/hs-hourglass | Data/Hourglass/Compat.hs | bsd-3-clause | 3,381 | 0 | 12 | 774 | 349 | 224 | 125 | 32 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
module Models.Exception
(module Models.Internal.Exception)
where
import Models.Internal.Exception
| HaskellCNOrg/snap-web | src/Models/Exception.hs | bsd-3-clause | 161 | 0 | 5 | 38 | 22 | 15 | 7 | 4 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Graphics.HGL.Internals.Draw
-- Copyright : (c) Alastair Reid, 1999-2003
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : libraries@haskell.org
-- Stability : internal
-- Porta... | FranklinChen/hugs98-plus-Sep2006 | packages/HGL/Graphics/HGL/Internals/Draw.hs | bsd-3-clause | 3,012 | 4 | 13 | 649 | 606 | 340 | 266 | 42 | 1 |
module Yawn.HTTP.Request where
import Data.Maybe (fromMaybe)
import Network.URL (URL, importParams, url_params, url_path)
import qualified Data.ByteString as BS (ByteString)
import qualified Data.ByteString.Char8 as BS8 (unpack)
import qualified Data.Map as M (Map, lookup)
data Request = Request {
method :: Request... | ameingast/yawn | src/Yawn/HTTP/Request.hs | bsd-3-clause | 1,765 | 0 | 10 | 443 | 462 | 262 | 200 | 42 | 3 |
-- | ISO 8601 Week Date format
module Data.Time.Calendar.WeekDate where
import Data.Int
import Data.Time.Calendar.OrdinalDate
import Data.Time.Calendar.Days
import Data.Time.Calendar.Private
-- | convert to ISO 8601 Week Date format. First element of result is year, second week number (1-53), third day of week (1 for... | takano-akio/time | Data/Time/Calendar/WeekDate.hs | bsd-3-clause | 2,435 | 12 | 18 | 496 | 785 | 423 | 362 | 40 | 4 |
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
module Data.ROS.Formattable ( Formattable(..) ) where
class Show a => Formattable a where
format :: a -> String
format = show
instance Formattable String where
format = id
| ROSVendor/msg_dbg | lib/Data/ROS/Formattable.hs | bsd-3-clause | 255 | 0 | 7 | 46 | 61 | 35 | 26 | 8 | 0 |
{-# LANGUAGE OverloadedStrings, TypeFamilies, QuasiQuotes #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Text.XML.Papillon(Xmlns, XEQName, parseXmlEvent, XmlEvent(..)) where
import Control.Arrow
import Data.List
import Data.Char
import Data.ByteString.Char8 (ByteString, pack)
import Text.Papillon
import Numeric
im... | YoshikuniJujo/xml-pipe | src/Text/XML/Papillon.hs | bsd-3-clause | 4,192 | 12 | 10 | 844 | 532 | 307 | 225 | 41 | 1 |
{-# LANGUAGE RebindableSyntax #-}
-- Copyright : (C) 2009 Corey O'Connor
-- License : BSD-style (see the file LICENSE)
import Bind.Marshal.Prelude
import Bind.Marshal.Verify
import Bind.Marshal.Action
import Bind.Marshal.DataModel
main = run_test $ do
returnM () :: Test ()
| coreyoconnor/bind-marshal | test/verify_action.hs | bsd-3-clause | 290 | 0 | 9 | 53 | 53 | 31 | 22 | 7 | 1 |
{-# OPTIONS_GHC -fno-warn-unused-binds -fno-warn-unused-matches -fno-warn-name-shadowing -fno-warn-missing-signatures #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses, UndecidableInstances, FlexibleContexts, TypeSynonymInstances #-}
---------------------------------------------------------------------------... | lingxiao/CIS700 | depricated/CodensityTutorial.hs | bsd-3-clause | 2,535 | 4 | 10 | 390 | 447 | 234 | 213 | 27 | 1 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree.
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NoRebindableSyntax #-}
{-# LANGUAGE OverloadedStrings #-}
module Duckling.Ti... | facebookincubator/duckling | Duckling/Time/EN/PH/Rules.hs | bsd-3-clause | 2,929 | 0 | 19 | 668 | 770 | 431 | 339 | 72 | 2 |
module Main where
import Math.ProxN.VecN as Vec
import Math.ProxN.Tree2N as Tree
import Math.ProxN.Peano
import Math.ProxN.Pretty
import Math.ProxN.Proximity
import System.Random
import Control.Applicative
import Control.Monad.Random(runRandT, RandT, getRandomR)
import Control.Monad.IO.Class
import Control.Monad
impo... | exFalso/ProxN | example/Example.hs | bsd-3-clause | 1,625 | 0 | 16 | 318 | 504 | 267 | 237 | 43 | 1 |
{-# LANGUAGE Rank2Types #-}
module Main where
import Test.Framework (defaultMain)
import qualified Examples as Examples
main :: IO ()
main = defaultMain
[ Examples.tests
]
| jaspervdj/dcpu16-hs | tests/TestSuite.hs | bsd-3-clause | 183 | 0 | 7 | 36 | 44 | 27 | 17 | 7 | 1 |
module Main where
import Control.Monad (unless)
import System.Environment (getArgs)
import System.Exit (exitFailure)
import Data.ConfigParser
import Web.Server
main :: IO ()
main = do
args <- getArgs
unless (length args == 1) $ do
putStrLn "Usage: tinfoilsub ... | sulami/tinfoilsub | app/Main.hs | bsd-3-clause | 413 | 0 | 11 | 117 | 121 | 61 | 60 | 14 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{- |
Category rendering.
The main function this module provides is 'renderCategory'.
-}
module Guide.Views.Category
(
-- * Main functions
renderCategory,
-- * Helpers
renderCategoryInfo,
renderCategoryStatus,
renderCategoryNotes,
)
whe... | aelve/hslibs | src/Guide/Views/Category.hs | bsd-3-clause | 6,687 | 0 | 27 | 1,768 | 1,720 | 844 | 876 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
module Step where
import Prelude hiding (map)
import qualified Prelude
import Data.Foldable
import Data.Bifunctor
import Control.Monad.Writer.Lazy
-- | 'Step' is used do incremental calculated something
-- intermediate valuse are writen out
type Step w a = Writer [w] a
runStep :: St... | kwibus/myLang | src/Step.hs | bsd-3-clause | 870 | 0 | 11 | 187 | 374 | 197 | 177 | 24 | 3 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.AMD.VertexShaderTessellator
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : ... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/AMD/VertexShaderTessellator.hs | bsd-3-clause | 977 | 0 | 4 | 109 | 70 | 54 | 16 | 12 | 0 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
-- | A wrapping of createProcess to provide a more flexible interface.
module General.Process(
Buffer, newBuffer, readBuffer,
process, ProcessOpts(..), Source(..), Destination(..)
) where
import Control.Concurrent.Extra
import Control.DeepSeq
im... | ndmitchell/shake | src/General/Process.hs | bsd-3-clause | 9,305 | 1 | 39 | 2,911 | 2,881 | 1,457 | 1,424 | 178 | 15 |
-- ---
-- title: Exploring survival on the Titanic
-- subtitle: A port of a Kaggle's notebook
-- author: Nikita Tchayka
--
-- ---
--
-- 1. Introduction
-- ===============
--
-- This is a direct port of the [Exploring survival on the titanic notebook](https://www.kaggle.com/mrisdal/titanic/exploring-survival-on-the-... | NickSeagull/ex01-exploring-titanic | src/Lib.hs | bsd-3-clause | 10,785 | 0 | 15 | 2,878 | 1,703 | 949 | 754 | -1 | -1 |
{-# LANGUAGE TypeApplications, UndecidableInstances #-}
module RenameTest where
import qualified Data.Map as Map
import qualified Data.Text as T
import Data.Time (getCurrentTime, Day, UTCTime(..))
import Init
-- persistent used to not allow types with an "Id" suffix
-- this verifies that the issue is fixed
type Tex... | paul-rouse/persistent | persistent-test/src/RenameTest.hs | mit | 2,925 | 0 | 22 | 805 | 603 | 305 | 298 | -1 | -1 |
module TupleMatch where
main :: Int
main = let (x, y) = (13, x) in x + y
-- let (Tup x y) = Tup 13 x in x+y
| roberth/uu-helium | test/simple/correct/TupleMatch.hs | gpl-3.0 | 118 | 0 | 9 | 39 | 43 | 25 | 18 | 3 | 1 |
x :: Eq a => a -> a -> Bool
y :: Eq a => a -> a -> Bool
z :: Eq a => a -> a -> Bool
(x, _) = undefined
(y) = undefined
z@_ = undefined
f :: Eq a => a -> a -> Bool
f a b = (a == b)
| roberth/uu-helium | test/staticerrors/SignatureForRestrPat.hs | gpl-3.0 | 183 | 1 | 9 | 60 | 146 | 70 | 76 | 8 | 1 |
{-
Copyright 2015-2017 Markus Ongyerth
This file is part of Monky.
Monky is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any la... | Ongy/monky | Monky/Examples/MPD.hs | lgpl-3.0 | 4,048 | 0 | 20 | 983 | 950 | 481 | 469 | 85 | 4 |
{- |
Module : $Header$
Description : Gtk GUI for the selection of linktypes
Copyright : (c) Thiemo Wiedemeyer, Uni Bremen 2008
License : GPLv2 or higher, see LICENSE.txt
Maintainer : raider@informatik.uni-bremen.de
Stability : provisional
Portability : portable
This module provides a GUI for the ... | keithodulaigh/Hets | GUI/GtkLinkTypeChoice.hs | gpl-2.0 | 3,003 | 0 | 21 | 936 | 688 | 335 | 353 | 57 | 1 |
module Main where
helloWorld :: IO ()
helloWorld = print "helloWorld"
data Hello = HelloWorld deriving ( Show )
main = do
helloWorld
print HelloWorld
| rahulmutt/ghcvm | tests/suite/similar-names/compile/PassFunctionDataConstructor.hs | bsd-3-clause | 159 | 0 | 7 | 34 | 50 | 26 | 24 | 7 | 1 |
module Yesod.FeedTypes
( Feed (..)
, FeedEntry (..)
, EntryEnclosure (..)
) where
import Text.Hamlet (Html)
import Data.Time.Clock (UTCTime)
import Data.Text (Text)
-- | The overall feed
data Feed url = Feed
{ feedTitle :: Text
, feedLinkSelf :: url
, feedLinkHome ... | psibi/yesod | yesod-newsfeed/Yesod/FeedTypes.hs | mit | 1,411 | 0 | 11 | 394 | 232 | 153 | 79 | 27 | 0 |
{- Tests let-expressions in do-statements -}
module Main( main ) where
foo = do
putStr "a"
let x = "b" in putStr x
putStr "c"
main = do
putStr "a"
foo
let x = "b" in putStrLn x
| ezyang/ghc | testsuite/tests/deSugar/should_run/dsrun002.hs | bsd-3-clause | 232 | 0 | 10 | 93 | 75 | 34 | 41 | 9 | 1 |
-- Just used to test that we correctly handle non-existant plugins
module Main where
-- The contents of this file are actually irrelevant
main = return () | ghc-android/ghc | testsuite/tests/plugins/plugins03.hs | bsd-3-clause | 155 | 0 | 6 | 27 | 16 | 10 | 6 | 2 | 1 |
module Exercises.Test where
import Exercises
import Test.QuickCheck
import Test.Tasty
import Test.Tasty.QuickCheck as QC
import Test.Tasty.SmallCheck as SC
import Test.Tasty.HUnit
import Data.Set as DS
main :: IO ()
main = defaultMain tests
tests :: TestTree
tests = testGroup "Tests" [properties] --, unitTests, ... | JeremyLWright/haskellbook | src-test/Exercises.Test.hs | isc | 451 | 1 | 6 | 68 | 113 | 68 | 45 | -1 | -1 |
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE OverloadedStrings #-}
module ErrorF where
import FFIExample
import DOM
import Data.Text (fromString)
import qualified Data.Text as T
import Fay.Yesod
--import Fay.Text (toJSON)
import Prelude hiding (sort)
impor... | swamp-agr/carbuyer-advisor | fay/ErrorF.hs | mit | 718 | 0 | 10 | 194 | 158 | 90 | 68 | 22 | 1 |
module HAD.Y2014.M02.D27.Exercise where
-- | Divide all the elements of the list (2nd parameter) by the first parameter
-- iff all the elements of the lists are exact multiple of it
-- returns nothing otherwise
--
-- Examples:
--
-- >>> divIfMultiple 3 [3, 6 .. 12]
-- Just [1,2,3,4]
-- >>> divIfMultiple 2 [3, 6 .. 12... | espencer/1HAD | exercises/HAD/Y2014/M02/D27/Exercise.hs | mit | 551 | 0 | 10 | 121 | 138 | 77 | 61 | 7 | 1 |
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
import qualified Workflow.OSX.C.Example
main = Workflow.OSX.C.Example.main
| sboosali/workflow-osx | workflow-osx-ffi/executables/Main.hs | mit | 125 | 0 | 5 | 11 | 20 | 14 | 6 | 3 | 1 |
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE OverloadedStrings #-}
module TextAdvise where
import FFIExample
import DOM
import Data.Text (fromString)
import qualified Data.Text as T
import Fay.Yesod
import Prelude
import SharedTypes
main :: Fay ()
main =... | swamp-agr/carbuyer-advisor | fay/TextAdvise.hs | mit | 3,323 | 0 | 17 | 816 | 1,273 | 603 | 670 | 100 | 2 |
import Data.Ratio
toIntegerList :: Integer -> [Integer]
toIntegerList n = map toInt (show n)
where toInt c = read (c:"") :: Integer
hasCondition r = let
numDigits = length $ toIntegerList $ numerator r
denomDigits = length $ toIntegerList $ denominator r
in numDigits > denomDigits
squareExpans :: In... | stefan-j/ProjectEuler | q57.hs | mit | 591 | 0 | 10 | 207 | 224 | 113 | 111 | 14 | 2 |
-- author: Kiyoshi Ikehara <kiyoshi.ikehara@gree.net>
module FailoverTests (failoverTests) where
import Test.Framework
import Test.Framework.Providers.Sandbox (sandboxTests, sandboxTest, sandboxTestGroup)
import Test.Sandbox (liftIO, signal)
import Test.Sandbox.HUnit (assertFailure)
import Main.Internals
import Con... | gree/flare-tests | src/FailoverTests.hs | mit | 2,131 | 0 | 16 | 405 | 629 | 319 | 310 | 39 | 1 |
{-# LANGUAGE MonadComprehensions #-}
{-# LANGUAGE RebindableSyntax #-}
module Set4 where
import MCPrelude
import Set2
import Set3 (Card(..))
import Control.Arrow ((&&&))
-- 1. Generalizing State and Maybe
-- generalA :: (a -> b) -> Gen a -> Gen b
-- transMaybe :: (a -> b) -> Maybe a -> Maybe b
-- f :: (a -> b) -> ... | gafiatulin/monad-challenges | src/Set4.hs | mit | 4,053 | 0 | 14 | 992 | 1,675 | 890 | 785 | 86 | 1 |
module Main where
import Control.Monad (forM_)
import Data.IORef
import Graphics.Rendering.OpenGL
import Graphics.UI.GLUT hiding (exit)
import System.Exit (exitSuccess)
import Hogldev.Pipeline (
Pipeline(..), getTrans,
... | triplepointfive/hogldev | tutorial29/Tutorial29.hs | mit | 6,059 | 0 | 23 | 2,093 | 1,301 | 659 | 642 | 138 | 1 |
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-}
module GHCJS.DOM.JSFFI.Generated.DatabaseCallback
(newDatabaseCallback, newDatabaseCallbackSync,
newDatabaseCallbackAsync, DatabaseCallback)
where
import Prelude ((.), (==), (>>=), return, IO, Int, Float, Double, Bool(..), M... | manyoo/ghcjs-dom | ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/DatabaseCallback.hs | mit | 2,305 | 0 | 13 | 416 | 532 | 316 | 216 | 42 | 1 |
{-# LANGUAGE PatternSynonyms #-}
-- For HasCallStack compatibility
{-# LANGUAGE ImplicitParams, ConstraintKinds, KindSignatures #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module JSDOM.Generated.ImageData
(newImageData, newImageData', getWidth, getHeight, getData,
ImageData(..), gTypeImageData)
... | ghcjs/jsaddle-dom | src/JSDOM/Generated/ImageData.hs | mit | 2,405 | 0 | 12 | 344 | 630 | 372 | 258 | 38 | 1 |
{-# LANGUAGE OverloadedStrings, TemplateHaskell, QuasiQuotes, TypeFamilies, ViewPatterns, FlexibleInstances, MultiParamTypeClasses #-}
module HelloSub where
{-
A simple subsite
-}
import Snap.Routes
import Data.Text (Text)
import qualified Data.Text as T
-- The Subsite argument
data HelloSubRoute = HelloSubRoute {... | ajnsit/snap-routes | examples/subsites/HelloSub.hs | mit | 1,985 | 0 | 11 | 395 | 283 | 157 | 126 | 33 | 1 |
module Main where
import Parser
import While
import Assembly
process file = do
r <- parseFile file
case r of
Left x -> print x
Right (w,[]) -> putStrLn (s . compile $ w)
| orchid-hybrid/WHILE | EllaBased/Main.hs | gpl-2.0 | 178 | 0 | 13 | 42 | 81 | 41 | 40 | 9 | 2 |
import Parser
{-|
The grammar would be:
expr ::= expr - nat | nat
nat ::= 0 | 1 | 2 ...
-}
expr :: Parser Int
expr = do e <- Main.expr
do symbol "-"
n <- nat
return (e - n)
<|> return e
--The parser loops forever because of its left recursivity.
expr' :: Parser ... | mdipirro/functional-languages-homeworks | Christmas/Exercise3.hs | gpl-3.0 | 453 | 2 | 12 | 189 | 130 | 58 | 72 | 12 | 1 |
module AbsCLike where
-- Haskell module generated by the BNF converted
newtype Ident = Ident String
deriving (Eq, Ord, Show)
data Type
= T_Int
| T_Float
| T_Char
| T_Void
| Boolean
| ArrDef Type Int
| Pointer Type
deriving (Eq, Ord, Show)
data Boolean = Boolean_True | Boolean_Fa... | AleVq/CompilerBuilding | AbsCLike.hs | gpl-3.0 | 2,771 | 0 | 7 | 726 | 962 | 550 | 412 | 102 | 0 |
--------------------------------------------------------------------------------
{- |
Module : Math.Line
Description : A Haskell implementation of Lines in Vector form
License : GPL-3
Maintainer : jackhiggins07@gmail.com
Stability : Stable
Portability : Portable
A Haskell implementation of Numeric V... | Jiggins/Matrix | Math/Line.hs | gpl-3.0 | 2,152 | 0 | 11 | 477 | 401 | 212 | 189 | 22 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-chat/gen/Network/Google/Resource/Chat/Dms/Messages.hs | mpl-2.0 | 5,467 | 0 | 18 | 1,316 | 867 | 507 | 360 | 119 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-- |
-- Module : Network.Google.CloudIOT.Types.Sum
-- Copyright : (c) 2015-2016 Brenda... | brendanhay/gogol | gogol-cloudiot/gen/Network/Google/CloudIOT/Types/Sum.hs | mpl-2.0 | 17,596 | 0 | 11 | 3,598 | 2,176 | 1,179 | 997 | 254 | 0 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-firebase-dynamiclinks/gen/Network/Google/Resource/FirebaseDynamicLinks/ManagedShortLinks/Create.hs | mpl-2.0 | 6,175 | 0 | 16 | 1,299 | 719 | 426 | 293 | 105 | 1 |
{-# LANGUAGE CPP #-}
module StoryMode.Menus (
newStoryModeAvailability,
storyModeMenuItem,
storyMode,
) where
import Data.Map (lookup, findWithDefault)
import Data.Maybe
import Data.Initial
import Control.Concurrent
import System.FilePath
import Network.Download
import Graphics.Qt
#if MIN_VERSION_... | changlinli/nikki | src/StoryMode/Menus.hs | lgpl-3.0 | 5,321 | 0 | 18 | 1,332 | 1,469 | 738 | 731 | 118 | 4 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Network.Haskoin.Wallet.Arbitrary where
import Test.QuickCheck (Arbitrary, arbitrary, oneof)
import Network.Haskoin.Test
import Network.Haskoin.Wallet
instance Arbitrary AccountType where
arbitrary = oneof
[ AccountRegular <$> arbitrary
, do
... | tphyahoo/haskoin-wallet | tests/Network/Haskoin/Wallet/Arbitrary.hs | unlicense | 1,075 | 0 | 17 | 378 | 266 | 136 | 130 | 29 | 0 |
ans (a:b:_) = (a + b) `div` 2
main = do
l <- getLine
let i = map read $ words l ::[Int]
o = ans i
print o
| a143753/AOJ | 0357.hs | apache-2.0 | 119 | 0 | 11 | 42 | 84 | 42 | 42 | 6 | 1 |
import Abstract.Testing.Queue
import System.Environment
main :: IO ()
main = do
print "queue"
{-
argv <- getArgs
case argv of
(a1:a2:[]) -> runQueueTests (read a1 :: Int) (read a2 :: Int)
_ -> error "usage: ./run-queue-tests <threads> <maxN>"
-}
| adarqui/Abstract | examples/queue.hs | bsd-3-clause | 254 | 0 | 7 | 47 | 34 | 18 | 16 | 5 | 1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Rel.User
( Config(Config)
, User(runUser)
, createSystemUser
, defaultConfig
, exists
, getUID
, lookupUser
, lookupGroup
) where
import Prelude hiding (fail)
import qualified System.Pos... | shmookey/pure | src/Rel/User.hs | bsd-3-clause | 1,811 | 2 | 12 | 374 | 666 | 359 | 307 | 51 | 1 |
module FreeDSL.VWalk (
VWalkInstructions(..)
, VWalkDSL
, stepWith
, getNeighbors
, walkTo
, history
, whereAmI
) where
import Control.Monad
import Control.Monad.Free
import PolyGraph.Common.DslSupport.Coproduct ((:<:), liftDSL)
import Control.Monad.State.Strict
import PolyGraph.Common.DslSupport (MInte... | rpeszek/GraphPlay | src/FreeDSL/VWalk.hs | bsd-3-clause | 2,512 | 0 | 11 | 677 | 693 | 383 | 310 | -1 | -1 |
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
{-|
Module : Data.Dfa.Equivalence
Description : Various equivalence tests for Dfas.
The algorithms here are derived from various algorithms presented by
Hopcroft. Outside of his textbook, a few were taken from this paper:
https://arxiv.org/pdf/... | qfjp/csce_dfa_project_test | src/Data/Dfa/Equivalence.hs | bsd-3-clause | 7,294 | 0 | 23 | 2,638 | 2,257 | 1,159 | 1,098 | 183 | 3 |
module Chapter3.ExercisesSpec where
import Test.Hspec
rvrs :: String -> String
rvrs sentence = undefined
thirdLetter :: String -> Char
thirdLetter = undefined
letterIndex :: Int -> Char
letterIndex x = undefined -- "Curry is awesome!"
spec :: Spec
spec =
describe "Chapter 3 Exercises" $ do
-- Intermed... | yannick-cw/haskell_katas | test/Chapter3/ExercisesSpec.hs | bsd-3-clause | 2,298 | 0 | 10 | 533 | 116 | 74 | 42 | 12 | 1 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
{... | rCEx/feldspar-lang-small | src/Feldspar/Core/Constructs/Binding.hs | bsd-3-clause | 13,735 | 0 | 20 | 4,026 | 3,472 | 1,778 | 1,694 | 208 | 4 |
module Language.Haskell.GhcMod.Lang where
import DynFlags (supportedLanguagesAndExtensions)
import Language.Haskell.GhcMod.Types
-- | Listing language extensions.
listLanguages :: Options -> IO String
listLanguages opt = return $ convert opt supportedLanguagesAndExtensions
| carlohamalainen/ghc-mod | Language/Haskell/GhcMod/Lang.hs | bsd-3-clause | 277 | 0 | 6 | 30 | 53 | 31 | 22 | 5 | 1 |
{-# LANGUAGE DeriveDataTypeable, FlexibleContexts, GeneralizedNewtypeDeriving, RankNTypes, RecordWildCards, OverloadedStrings #-}
module Main where
import Control.Concurrent (killThread)
import Control.Concurrent.Chan (Chan)
import Data.ByteString (ByteString)
import qualified Data.ByteString.Cha... | eigengrau/haskell-ircbot | demo.hs | bsd-3-clause | 5,831 | 0 | 21 | 1,727 | 1,662 | 887 | 775 | 109 | 7 |
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.Dwindle
-- Description : Various spirally layouts.
-- Copyright : (c) Norbert Zeh <norbert.zeh@gmail.com>
-- License : BSD3
--
-- Maintai... | xmonad/xmonad-contrib | XMonad/Layout/Dwindle.hs | bsd-3-clause | 8,679 | 0 | 14 | 2,119 | 1,744 | 985 | 759 | 108 | 3 |
{-
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
\section[RnSource]{Main pass of renamer}
-}
{-# LANGUAGE CPP, ScopedTypeVariables #-}
module RnSource (
rnSrcDecls, addTcgDUs, findSplice
) where
#include "HsVersions.h"
import {-# SOURCE #-} RnExpr( rnLExpr )
import {-# SOURCE #-} RnSplice (... | snoyberg/ghc | compiler/rename/RnSource.hs | bsd-3-clause | 98,028 | 1 | 25 | 30,437 | 17,843 | 9,419 | 8,424 | 1,123 | 8 |
-- |
-- Module : Data.MailStorage
-- License : BSD-Style
--
-- Maintainer : Nicolas DI PRIMA <nicolas@di-prima.fr>
-- Stability : experimental
-- Portability : unknown
--
-- Mail are managing as follow:
-- -1- incoming emails are stored in "incoming" directory
-- -2- when the mail has been fully received by... | NicolasDP/maild | Data/MailStorage.hs | bsd-3-clause | 13,364 | 0 | 16 | 4,078 | 2,476 | 1,336 | 1,140 | 228 | 4 |
-- Copyright (c) 2016-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
module Duckling.Am... | rfranek/duckling | tests/Duckling/AmountOfMoney/HR/Tests.hs | bsd-3-clause | 617 | 0 | 9 | 95 | 80 | 51 | 29 | 11 | 1 |
{-# LANGUAGE RankNTypes #-}
module Area.Links where
import Servant
import Database.Persist.Postgresql
import Text.Blaze.Html5
import Common.Links
import Area.API
import Area.Types
toCreateAreaLink :: Key Area -> AttributeValue
toCreateAreaLink pid = stringValue $
"/" ++ show (linkTo (Proxy :: Proxy ToCreateArea) p... | hectorhon/autotrace2 | app/Area/Links.hs | bsd-3-clause | 997 | 0 | 10 | 155 | 293 | 155 | 138 | 27 | 1 |
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE Ty... | kylcarte/type-combinators-quote | src/Data/Type/Nat/Quote.hs | bsd-3-clause | 997 | 0 | 8 | 163 | 190 | 129 | 61 | 31 | 1 |
module Math.ProxN.Show1 where
class Show1 v where
show1 :: (Show a) => v a -> String
| exFalso/ProxN | src/Math/ProxN/Show1.hs | bsd-3-clause | 88 | 0 | 9 | 19 | 37 | 20 | 17 | 3 | 0 |
{-
Problem 1
If we list all the natural numbers below 10 that are multiples of 3 or
5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of all the multiples of 3 or 5 below 1000.
-}
module Main where
import Euler.Problem1
main :: IO ()
main = putStrLn $ show answer
answer :: Int
answer... | FranklinChen/project-euler-haskell | Answer/answer1.hs | bsd-3-clause | 349 | 0 | 6 | 83 | 45 | 25 | 20 | 6 | 1 |
module Tile
( Tile (..)
, tileType
, tilePack
, CTile
, packDirection
) where
import Data.Maybe
import Tile.TileType
import qualified Tile.Coordinates as C
import qualified Electric.Direction as D
import qualified Electric.Pack as P
-- | Representation of a single tile in the screen.
-- It st... | Megaleo/Electras | src/Tile.hs | bsd-3-clause | 840 | 0 | 10 | 204 | 308 | 174 | 134 | 23 | 1 |
import Control.Monad
import Data.List (find)
import Data.Maybe
import Distribution.PackageDescription
import Distribution.Simple
import Distribution.Simple.LocalBuildInfo
import Distribution.Simple.Setup
import Syst... | UCSD-PL/RefScript | Setup.hs | bsd-3-clause | 1,507 | 0 | 11 | 410 | 261 | 156 | 105 | 41 | 1 |
module Tct.Jbc.Processor.ToIts (toIts) where
import qualified Data.Map.Strict as M
import Data.Maybe (fromMaybe)
import qualified Data.Set as S
-- import qualified J2J.Compiler as JJ (compileClasses, processClasses)
... | ComputationWithBoundedResources/tct-jbc | src/Tct/Jbc/Processor/ToIts.hs | bsd-3-clause | 8,894 | 0 | 20 | 2,635 | 3,127 | 1,705 | 1,422 | 115 | 26 |
module Language.Modelica.Parser where
import Language.Modelica.Syntax.Programme
import Language.Modelica.Syntax.Modelica
import Language.Modelica.Syntax.ToString (toString)
import Language.Modelica.Parser.ClassDefinition
import Language.Modelica.Parser.Programme
import Language.Modelica.Parser.Option (OptionSet, ... | xie-dongping/modelicaparser | src/Language/Modelica/Parser.hs | bsd-3-clause | 1,146 | 0 | 12 | 212 | 353 | 189 | 164 | 27 | 5 |
module Asteroids.GameLogic.Constants
( module Asteroids.GameLogic.Constants
) where
import Asteroids.GameLogic.Physical
import Asteroids.UILogic.Drawable
asteroidColor, shipColor, bulletColor, thrustColor, explosionColor :: PixelColor
lifeColor, scoreColor :: PixelColor
asteroidColo... | trenttobler/hs-asteroids | src/Asteroids/GameLogic/Constants.hs | bsd-3-clause | 1,369 | 0 | 7 | 272 | 355 | 205 | 150 | 47 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
-- {-# OPTIONS_GHC -cpp -DPiForallInstalled #-}
--------------------------------------------------------------------
-- |
-- Copyright : (c) Andreas Reuleaux 2015
-- License : BSD2
-- Maintainer: Andreas Reuleaux <rx@a-rx.info>
-- Stability : experimen... | reuleaux/pire | tests/ParserTests/ImpProd.hs | bsd-3-clause | 3,032 | 0 | 24 | 805 | 725 | 397 | 328 | 34 | 1 |
module Main where
import Control.Monad
main :: IO ()
main = getLine >>= \n -> replicateM (read n) getLine >>= \acts -> mapM_ (print . echo . read) acts
-- echo :: Int -> Int
echo :: String -> String
echo x = x
| everyevery/programming_study | template/haskell/stdin_num_cases.hs | mit | 212 | 0 | 12 | 46 | 87 | 47 | 40 | 6 | 1 |
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Test.AWS.Gen.OpsWorks
-- Copyright : (c) 2013-2015 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brenda... | fmapfmapfmap/amazonka | amazonka-opsworks/test/Test/AWS/Gen/OpsWorks.hs | mpl-2.0 | 38,968 | 0 | 7 | 7,544 | 4,057 | 2,363 | 1,694 | 709 | 1 |
{- |
Module : Data.PDRS.Input
Copyright : (c) Harm Brouwer and Noortje Venhuizen
License : Apache-2.0
Maintainer : me@hbrouwer.eu, n.j.venhuizen@rug.nl
Stability : provisional
Portability : portable
PDRS input
-}
module Data.PDRS.Input
(
module Input
) where
import Data.PDRS.Input.Boxer as Inp... | hbrouwer/pdrt-sandbox | src/Data/PDRS/Input.hs | apache-2.0 | 362 | 0 | 4 | 70 | 32 | 24 | 8 | 5 | 0 |
{-# LANGUAGE Trustworthy #-}
-----------------------------------------------------------------------------
-- |
-- Copyright : (C) 2015 Edward Kmett
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : experimental
-- Portability : non-portable
--
--... | bitemyapp/structs | src/Data/Struct/Label.hs | bsd-2-clause | 574 | 0 | 4 | 97 | 53 | 39 | 14 | 12 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.