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 OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE ExistentialQuantification #-}
module App.Type... | DavidAlphaFox/sblog | src/App/Types.hs | bsd-3-clause | 3,729 | 0 | 17 | 651 | 1,152 | 654 | 498 | 107 | 1 |
module OrderParser
( parseInputFile
, Order
) where
import Data.Maybe (fromJust)
type Cash = Int
type Price = Int
type WrappersNeeded = Int
type ChocolateType = String
data Order = Order Cash Price WrappersNeeded ChocolateType deriving Show
-- I chose to use the "map-like" functions that Prelude provides
-- instead ... | jleakakos/haskell-code-test | src/OrderParser.hs | bsd-3-clause | 2,985 | 0 | 11 | 560 | 579 | 317 | 262 | 41 | 2 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.SGIS.SharpenTexture
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portabil... | haskell-opengl/OpenGLRaw | src/Graphics/GL/SGIS/SharpenTexture.hs | bsd-3-clause | 885 | 0 | 5 | 116 | 75 | 54 | 21 | 13 | 0 |
module Web.Beam
( gets
, getSetting
, runBeamApp
, runBeamInit
) where
import Control.Concurrent.STM
import Control.Monad.Reader
import Control.Monad.Writer.Strict
import Data.Default
import Data.Text.Lazy (Text)
import Data.Map.Strict as M
import Network.Wai.Middleware.RequestLogger
import Web.Scotty.Tra... | hansonkd/BeamFramework | Web/Beam.hs | bsd-3-clause | 1,517 | 0 | 12 | 321 | 458 | 244 | 214 | 34 | 1 |
module Application.DevAdmin.Graph where
import Data.Maybe
import Data.List
import Data.Function
import Data.Graph.Inductive
-- import Data.Foldable hiding (concatMap,elem,foldl)
import qualified Data.Map as M
import Application.DevAdmin.Cabal
import Application.DevAdmin.Project
import Application.DevAdmin.Config
i... | wavewave/devadmin | lib/Application/DevAdmin/Graph.hs | bsd-3-clause | 5,088 | 0 | 20 | 1,291 | 1,671 | 864 | 807 | 110 | 3 |
{-# LANGUAGE
OverloadedStrings
, ScopedTypeVariables
, GADTs
, FlexibleContexts
#-}
module Templates.Utils where
import Templates.Master
import UrlPath
import Web.Routes.Nested
import qualified Data.Text as T
import Lucid
import Network.Wai
import Network.HTTP.Types
import Data.Functor.Identity
import C... | athanclark/clark-mining-tech | src/Templates/Utils.hs | bsd-3-clause | 1,065 | 0 | 9 | 269 | 144 | 89 | 55 | 21 | 1 |
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.Rendering.OpenGL.Raw.SGIX.TagSampleBuffer
-- Copyright : (c) Sven Panne 2015
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portability : portabl... | phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/SGIX/TagSampleBuffer.hs | bsd-3-clause | 675 | 0 | 4 | 78 | 37 | 31 | 6 | 3 | 0 |
-----------------------------------------------------------------------------
-- |
-- Module : Codec.Archive.Tar
-- Copyright : (c) 2008-2012 Duncan Coutts
-- 2011 Max Bolingbroke
-- License : BSD3
--
-- Maintainer : duncan@community.haskell.org
-- Portability : portable
--
-- Perfor... | Kludgy/tar-fork | Codec/Archive/Tar/Check.hs | bsd-3-clause | 8,078 | 0 | 13 | 1,562 | 1,452 | 774 | 678 | 111 | 5 |
{-# LANGUAGE OverloadedStrings #-}
module Waldo.BrowserCap (
BrowserCap
, BrowserEntry(..)
, loadBrowserCap
, lookupBrowser
) where
import qualified Data.ByteString.Char8 as BS8
import qualified Data.Text as T
import qualified Data.Text.IO as T
import qualified Data.Text.Encoding as T
import qualified Data... | davean/waldo | Waldo/BrowserCap.hs | bsd-3-clause | 11,632 | 0 | 22 | 2,994 | 3,634 | 1,904 | 1,730 | 371 | 11 |
{-# LANGUAGE CPP #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Sandbox
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- UI for the sandboxing functionality.
----------------------------------------------------------... | trskop/cabal | cabal-install/Distribution/Client/Sandbox.hs | bsd-3-clause | 38,728 | 0 | 19 | 10,494 | 6,014 | 3,149 | 2,865 | 563 | 6 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE Rank2Types #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE MultiParamTypeClasses #-}
#ifndef MIN_VERSION_mtl
#define MIN_VERSION_mtl(x,y,z) 1
#endif
--------------------------------------... | cchalmers/lens | src/Control/Lens/Lens.hs | bsd-3-clause | 52,064 | 0 | 15 | 11,191 | 8,764 | 5,223 | 3,541 | 356 | 2 |
{-# LANGUAGE
TypeOperators
, FlexibleContexts
, ScopedTypeVariables
#-}
-------------------------------------------------------------------------------
-- |
-- Module : Generics.Regular.XmlPickler.Function
-- Copyright : (c) 2009, typLAB
-- License : BSD3
--
-- Maintainer : typLAB <code@typlab.com>
-- Stabili... | typLAB/regular-xmlpickler | src/Generics/Regular/XmlPickler/Function.hs | bsd-3-clause | 3,025 | 0 | 13 | 619 | 938 | 511 | 427 | 43 | 3 |
module Week2.LogAnalysis where
import Week2.Log
type MsgBuilder = TimeStamp -> String -> LogMessage
whatWentWrong :: [LogMessage] -> [String]
whatWentWrong = map getMsg . inOrder . build . filter seriousError
where
seriousError (LogMessage (Error c) _ _) | c >= 50 = True
seriousError _ = False
getMsg ... | gneuvill/haskell-exos | src/Week2/LogAnalysis.hs | bsd-3-clause | 1,520 | 2 | 12 | 314 | 576 | 297 | 279 | 40 | 3 |
module System.Build.Access.Private where
class Private r where
setPrivate ::
r
-> r
unsetPrivate ::
r
-> r
| tonymorris/lastik | System/Build/Access/Private.hs | bsd-3-clause | 132 | 0 | 7 | 42 | 35 | 20 | 15 | 8 | 0 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TemplateHaskell #-}
module Lib.Minesweeper ( Field(..)
, FieldStatus(..)
, GameState(..)
, Board
, BoardStatus
, Game
, status
... | swian/minesweeper | src/Lib/Minesweeper.hs | bsd-3-clause | 4,679 | 1 | 17 | 1,750 | 1,637 | 860 | 777 | 121 | 5 |
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE FlexibleContexts #-}
module Mistral.TypeCheck.Unify (
-- * Unification
mgu
, match
, Skolems
, UnifyError(..)
-- * Substitution
, Subst()
, freeBind, freeBinds
, boundBind, boundBinds
, Types(..)
, apply
) where
import Mistral.TypeCheck.AST
i... | GaloisInc/mistral | src/Mistral/TypeCheck/Unify.hs | bsd-3-clause | 18,134 | 0 | 16 | 5,825 | 6,603 | 3,324 | 3,279 | 340 | 10 |
-- 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 OverloadedStrings #-}
module Duckling.AmountOfMoney.RU.Corpus
( corpus
) where
import Data.Str... | facebookincubator/duckling | Duckling/AmountOfMoney/RU/Corpus.hs | bsd-3-clause | 4,923 | 0 | 10 | 2,222 | 800 | 464 | 336 | 137 | 1 |
module Asteroids.GameLogic (
module Asteroids.GameLogic.Asteroid,
module Asteroids.GameLogic.Game,
module Asteroids.GameLogic.GameOptions,
module Asteroids.GameLogic.KeyAction,
module Asteroids.GameLogic.Physical,
module Asteroids.GameLogic.Ship
)
where
import Asteroids.GameLogic.Asteroid
import... | trenttobler/hs-asteroids | src/Asteroids/GameLogic.hs | bsd-3-clause | 495 | 0 | 5 | 58 | 86 | 59 | 27 | 13 | 0 |
{-# LANGUAGE OverloadedStrings #-}
module Language.Bracer.Backends.C.Scribe where
import Prelude ()
import Overture
import Control.Monad.Writer
import Control.Monad.Identity
import Data.Vector (Vector)
import qualified Data.Vector as V
import Language.Bracer.Syntax
import Language.Bracer.Backends.C.Syntax
import La... | patrickt/bracer | Language/Bracer/Backends/C/Scribe.hs | mit | 1,365 | 0 | 10 | 265 | 475 | 256 | 219 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | olorin/amazonka | amazonka-glacier/gen/Network/AWS/Glacier/SetDataRetrievalPolicy.hs | mpl-2.0 | 4,557 | 0 | 11 | 835 | 473 | 288 | 185 | 64 | 1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
-- ... | fmapfmapfmap/amazonka | amazonka-kms/gen/Network/AWS/KMS/GenerateRandom.hs | mpl-2.0 | 4,539 | 0 | 13 | 985 | 611 | 364 | 247 | 76 | 1 |
{-# LANGUAGE StandaloneDeriving #-}
-----------------------------------------------------------------------------
-- |
-- Module : Network.Bitcoin.BitX.Response
-- Copyright : 2016 Tebello Thejane
-- License : BSD3
--
-- Maintainer : Tebello Thejane <zyxoas+hackage@gmail.com>
-- Stability : Experime... | tebello-thejane/bitx-haskell | src/Network/Bitcoin/BitX/Response.hs | bsd-3-clause | 1,540 | 0 | 8 | 397 | 129 | 87 | 42 | 13 | 0 |
f z (x:xs) = f (z*x) xs ; f z [] = z | bitemyapp/apply-refact | tests/examples/ListRec2.hs | bsd-3-clause | 36 | 0 | 7 | 12 | 43 | 22 | 21 | 1 | 1 |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE helpset PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN" "http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0" xml:lang="ar-SA">
<title>All In One Notes Add-On</title>
<maps>
<homeID>top</homeID>
<mapref loca... | thc202/zap-extensions | addOns/allinonenotes/src/main/javahelp/org/zaproxy/zap/extension/allinonenotes/resources/help_ar_SA/helpset_ar_SA.hs | apache-2.0 | 968 | 77 | 67 | 159 | 417 | 211 | 206 | -1 | -1 |
#include "../Prelude.hs"
data Tree a = Leaf a | Branch (Tree a) (Tree a)
| batterseapower/chsc | examples/peter/TreeFlip.hs | bsd-3-clause | 74 | 0 | 8 | 15 | 31 | 17 | 14 | 1 | 0 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE BangPatterns #-}
{-# OPTIONS_GHC -funbox-strict-fields #-}
-----------------------------------------------------------------------------
-- |
-- Module : Control.Concurrent.QSemN
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libr... | shlevy/ghc | libraries/base/Control/Concurrent/QSemN.hs | bsd-3-clause | 4,131 | 0 | 19 | 1,163 | 939 | 514 | 425 | 66 | 6 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE CPP, NoImplicitPrelude, BangPatterns, StandaloneDeriving,
MagicHash, UnboxedTuples #-}
{-# OPTIONS_HADDOCK hide #-}
#include "MachDeps.h"
#if SIZEOF_HSWORD == 4
#define DIGITS 9
#define BASE 1000000000
#elif SIZEOF_HSWORD == 8
#define DIGITS 18... | snoyberg/ghc | libraries/base/GHC/Show.hs | bsd-3-clause | 21,239 | 0 | 18 | 5,987 | 6,013 | 3,262 | 2,751 | -1 | -1 |
module Foo where
{-@ LIQUID "--totality" @-}
class Foo a where
foo :: a -> a
instance Foo Int where
-- no method binding error
--
goo :: Int -> Int
goo = foo
| ssaavedra/liquidhaskell | tests/neg/NoMethodBindingError.hs | bsd-3-clause | 164 | 0 | 7 | 40 | 47 | 27 | 20 | 6 | 1 |
{-# LANGUAGE FlexibleInstances, TypeSynonymInstances, MultiParamTypeClasses #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Layout.Simplest
-- Copyright : (c) 2007 Andrea Rossato
-- License : BSD-style (see xmonad/LICENSE)
--
-- Maintainer : andr... | pjones/xmonad-test | vendor/xmonad-contrib/XMonad/Layout/Simplest.hs | bsd-2-clause | 1,258 | 0 | 10 | 212 | 134 | 88 | 46 | 9 | 0 |
{-# OPTIONS -fno-warn-orphans -fno-warn-unused-imports #-}
#include "HsConfigure.h"
-- #hide
module Data.Time.LocalTime.LocalTime
(
-- * Local Time
LocalTime(..),
-- converting UTC and UT1 times to LocalTime
utcToLocalTime,localTimeToUTC,ut1ToLocalTime,localTimeToUT1,
ZonedTime(..),utcToZonedTime,zonedTimeToUT... | jtojnar/haste-compiler | libraries/time/lib/Data/Time/LocalTime/LocalTime.hs | bsd-3-clause | 3,389 | 15 | 10 | 527 | 840 | 459 | 381 | 55 | 1 |
module GenUtils (
trace,
assocMaybe, assocMaybeErr,
arrElem,
arrCond,
memoise,
Maybe(..),
MaybeErr(..),
mapMaybe,
mapMaybeFail,
maybeToBool,
maybeToObj,
maybeMap,
joinMaybe,
mkClosure,
foldb,
mapAccumL,
... | urbanslug/ghc | testsuite/tests/programs/andy_cherry/GenUtils.hs | bsd-3-clause | 6,770 | 0 | 17 | 2,313 | 2,740 | 1,465 | 1,275 | 149 | 3 |
main = putStrLn . show $ largestPrimeFactor 600851475143
largestPrimeFactor n = if m == n then m else largestPrimeFactor (div n m)
where m = smallestPrimeFactor n
smallestPrimeFactor n = head $ filter ((== 0) . mod n) [2..n]
| benji6/project-euler-solutions | haskell/3.hs | mit | 227 | 0 | 9 | 41 | 94 | 48 | 46 | 4 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module MonadBot.Plugins.Brainfuck
( plugin
) where
import qualified Data.Text as T
import MonadBot.Plugin.Development
import MonadBot.Plugins.Brainfunk
plugin :: Plugin ()
plugin = mkSimplePlugin "Brainfuck plugin" [brainfuckHandler]
-- rejoin :: SimpleHandler
-- rejoin = ... | saevarb/Monadbot | lib/MonadBot/Plugins/Brainfuck.hs | mit | 742 | 0 | 14 | 144 | 175 | 95 | 80 | 15 | 2 |
module Haskore(module Haskore.Loader) where
import Haskore.Loader
| yav/haskore-vintage | src/Haskore.hs | mit | 67 | 0 | 5 | 7 | 17 | 11 | 6 | 2 | 0 |
{-# htermination enumFrom :: Char -> [Char] #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_enumFrom_3.hs | mit | 48 | 0 | 2 | 8 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE TemplateHaskell #-}
module Models.UniqueTask.Fields where
import Database.Persist.TH
data UniqueStatus = Todo | Done | NotStarted
deriving (Show, Read, Eq)
derivePersistField "UniqueStatus"
| ostapneko/stld2 | src/main/Models/UniqueTask/Fields.hs | mit | 227 | 0 | 6 | 47 | 48 | 28 | 20 | 6 | 0 |
{-# htermination succ :: Float -> Float #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_succ_5.hs | mit | 44 | 0 | 2 | 8 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE TypeFamilies #-}
import Data.Acid
import Data.Acid.Centered
import Control.Monad (when, forM_)
import Control.Concurrent (forkIO,threadDelay)
import Control.Concurrent.MVar (MVar, newEmptyMVar, putMVar, takeMVar, readMVar)
import System.Exit (exitSuccess, exitFailure)
import System.Directory (doesDirecto... | sdx23/acid-state-dist | test/OrderingRandom.hs | mit | 2,412 | 0 | 12 | 566 | 782 | 375 | 407 | 65 | 1 |
module Proteome.Data.AddItem where
data AddItem =
AddItem {
projectType :: Text,
projectName :: Text
}
deriving stock (Eq, Show)
| tek/proteome | packages/proteome/lib/Proteome/Data/AddItem.hs | mit | 146 | 0 | 8 | 36 | 41 | 25 | 16 | -1 | -1 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
-- | A postgresql backend for persistent.
module Database.Persist.Postgresql
( withPostgresqlPool
, withPostgresqlPoolWithVersion
, withPos... | erikd/persistent | persistent-postgresql/Database/Persist/Postgresql.hs | mit | 52,619 | 0 | 25 | 17,911 | 12,689 | 6,693 | 5,996 | -1 | -1 |
module Y2016.M12.D05.Solution where
import Control.Arrow ((&&&), second)
import Control.Comonad ((=>>), extract)
import qualified Data.Map as Map
import Data.Time
-- below import available via 1HaskellADay git repository
import Control.List -- for weave and List Comonad
import Control.Logic.Frege ((<<-), adjoin)
im... | geophf/1HaskellADay | exercises/HAD/Y2016/M12/D05/Solution.hs | mit | 6,309 | 0 | 11 | 1,126 | 603 | 354 | 249 | -1 | -1 |
{-
- Whidgle.POIs
-
- Describes how Whidgle reasons about Points of Interest.
-}
module Whidgle.POIs
( getPOIs
, distPOI
, scorePOI
) where
import Control.Lens
import Data.Function
import qualified Data.Map as M
import Data.Maybe
import Whidgle.Board
import Whidgle.Pathfinding
import Whidgle.Rules
import Whidgle... | Zekka/whidgle | src/Whidgle/POIs.hs | mit | 5,560 | 110 | 20 | 1,398 | 1,328 | 718 | 610 | 98 | 4 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveGeneric #-}
module Codec.Xlsx.Types.AutoFilter where
import Control.Arrow (first)
import Control.DeepSeq (... | qrilka/xlsx | src/Codec/Xlsx/Types/AutoFilter.hs | mit | 29,833 | 0 | 22 | 6,817 | 5,652 | 2,881 | 2,771 | -1 | -1 |
{-|
Module: Flaw.Editor.Entity.Internal
Description: Entity internals.
License: MIT
-}
module Flaw.Editor.Entity.Internal
( hashTextDecl
) where
import qualified Crypto.Hash as C
import qualified Data.ByteArray as BA
import qualified Data.ByteString as B
import Data.IORef
import qualified Data.Text as T
import qu... | quyse/flaw | flaw-editor/Flaw/Editor/Entity/Internal.hs | mit | 996 | 0 | 20 | 180 | 289 | 163 | 126 | 20 | 1 |
-- Использовать юниксовую утилиту script вместо собственного терминала очень
-- неудобно. Она порождает отдельный процесс, в котором и запускается моя
-- команда. Этот процесс пишет в тот же stdout, что был у оригинального
-- процесса. Оригинальный процесс в течение 10 сек умирает. Проблема в том, что
-- я не могу ... | kahless/netm | src/WPA/DaemonTerm/Main.hs | mit | 2,473 | 0 | 16 | 404 | 383 | 208 | 175 | 34 | 1 |
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
module Kantour.WhoCallsTheFleet.Main where
import Kantour.Subcommand
import Kantour.WhoCallsTheFleet.Fetch
data SubCmdWctf
instance Subcommand SubCmdWctf where
name _ = "Wctf"
main _ = defaultMain
defaultMai... | Javran/tuppence | src/Kantour/WhoCallsTheFleet/Main.hs | mit | 381 | 0 | 8 | 58 | 78 | 43 | 35 | -1 | -1 |
{-
Реализуйте runBehaviour
(1.5 балла)
-}
data Request = Get | Put String
data Response = Result String | OK
type Behaviour = [Response] -> [Request]
prog :: Behaviour
prog ~(OK : x : xs) = Put "more? " : Get : case x of
Result "no" -> []
Result "yes" -> prog xs
_ -> Put "yes or ... | SergeyKrivohatskiy/fp_haskell | hw09/Behaviour.hs | mit | 465 | 0 | 12 | 130 | 164 | 84 | 80 | 12 | 3 |
module Main where
import PrettyJSON
--main = do putStrLn $ compact $ renderJValue (JBool False)
main = do
let jval = (JArray [(JString "foo"), (JNull), (JNumber 5)])
putStrLn $ compact $ renderJValue jval
putStrLn $ pretty 80 $ renderJValue jval
| brodyberg/Notes | PrettyJSON.hsproj/Main.hs | mit | 268 | 0 | 14 | 62 | 83 | 43 | 40 | 6 | 1 |
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE ImpredicativeTypes #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverlappingInstances #-}
{-# LANGUAGE Scoped... | beijaflor-io/ghcjs-commonjs | ghcjs-commonjs/src/GHCJS/CommonJS.hs | mit | 8,414 | 7 | 18 | 2,308 | 2,784 | 1,415 | 1,369 | 206 | 4 |
{-# LANGUAGE RankNTypes #-}
module Main (main) where
import qualified Graphics.UI.SDL as SDL
import Shared.DrawingSimple
import Shared.Input
import Shared.Lifecycle
import Shared.Polling
import Shared.Utilities
title :: String
title = "lesson04"
size :: ScreenSize
size = (640, 480)
inWindow :: (SDL.Window -> IO (... | ShigekiKarita/haskellSDL2Examples | src/lesson04.hs | gpl-2.0 | 2,052 | 0 | 13 | 368 | 670 | 339 | 331 | 54 | 1 |
module Math.REPL.Parser.Expr (parseExpr) where
--------------------------------------------------------------------------------
import Math.REPL.Parser.Base (parseId, parseNumber)
import Math.REPL.Prim.Definitions (binaryOps, unaryOps)
import Math.REPL.Prim.Expr (Expr (... | sumitsahrawat/calculator | src/Math/REPL/Parser/Expr.hs | gpl-2.0 | 3,372 | 0 | 14 | 826 | 893 | 458 | 435 | 80 | 2 |
{- |
Module : $Header$
Description : Enumerate all words of regular language
Copyright : Aleš Omerzel, Tadej Borovšak
License : GPL-3
Maintainer : omerzel.vales@gmail.com
Stability : unstable
Enumerate all words of regular language. This implementation lists shorter
words before longer ones, ensur... | tadeboro/reglang | src/Regex/Enumerator.hs | gpl-3.0 | 1,375 | 0 | 9 | 253 | 149 | 88 | 61 | 12 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Cli where
import Options.Applicative
import qualified Data.Text as T
data CliOptions = CliOptions { excludedEmails :: [T.Text]
, verbose :: Bool
, dir :: String}
parseCommaSeparated :: Monad m => String -> m... | declension/london-calling | src/Cli.hs | gpl-3.0 | 838 | 0 | 14 | 248 | 231 | 120 | 111 | 18 | 1 |
data Coend p = forall a. Coend (p a a) | hmemcpy/milewski-ctfp-pdf | src/content/3.10/code/haskell/snippet14.hs | gpl-3.0 | 38 | 0 | 8 | 9 | 24 | 13 | 11 | -1 | -1 |
data OneOfThree a b c = Sinistral a | Medial b | Dextral c | hmemcpy/milewski-ctfp-pdf | src/content/1.6/code/haskell/snippet22.hs | gpl-3.0 | 58 | 0 | 6 | 13 | 23 | 14 | 9 | 1 | 0 |
-- Copyright 2011 by Laszlo Nagy [see file COPYRIGHT]
module Domina.Set
( generate
, shuffle
) where
import Domina.Types
import System.Random
import Data.Array.ST
import Control.Monad
import Control.Monad.ST
import Data.STRef
generate :: Int -> Stock
generate max = [(a, b) | a <- [0..max], b <- [0..a]]
s... | rizsotto/Domina | src/Domina/Set.hs | gpl-3.0 | 1,200 | 0 | 17 | 370 | 413 | 210 | 203 | 32 | 1 |
module DL3052 (tests) where
import qualified Data.Map as Map
import qualified Hadolint.Process
import qualified Hadolint.Rule as Rule
import Helpers
import Test.Hspec
tests :: SpecWith ()
tests = do
let ?rulesConfig = Hadolint.Process.RulesConfig [] (Map.fromList [("urllabel", Rule.Url)]) False
describe "DL3052 ... | lukasmartinelli/hadolint | test/DL3052.hs | gpl-3.0 | 888 | 0 | 15 | 156 | 182 | 90 | 92 | -1 | -1 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the Lice... | karamellpelle/grid | source/Game/Run/Iteration/Konami.hs | gpl-3.0 | 4,343 | 0 | 15 | 1,376 | 822 | 437 | 385 | 72 | 2 |
module Fleet where
import Player
import StarConnection
import StarSystem
import Data.Maybe()
import Data.Either()
import Data.IxSet
import Data.Typeable
type Fleets = IxSet Fleet
data FleetMovement = FleetMovement {
between :: StarConnection,
turns :: Integer
} deriving (Typeable, Eq, Ord)
data FleetPositi... | Tomsik/SpaceHegemony | src/Fleet.hs | gpl-3.0 | 3,448 | 0 | 18 | 853 | 1,358 | 711 | 647 | 76 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/CourseWork/StudentSubmissions/List.hs | mpl-2.0 | 11,767 | 0 | 26 | 2,760 | 1,418 | 828 | 590 | 206 | 1 |
{-# LANGUAGE TemplateHaskell #-}
module Language.Elm.BuildUtil where
import qualified Data.Map as Map
import Elm.Compiler
import Elm.Compiler.Module
import qualified Data.Set as Set
import qualified Data.Map as Map
import Control.Monad (filterM)
import Data.Maybe (fromJust)
import qualified Language.Haskell.TH as ... | JoeyEremondi/elm-build-lib | src/Language/Elm/BuildUtil.hs | lgpl-3.0 | 7,148 | 0 | 23 | 1,909 | 1,721 | 874 | 847 | 97 | 7 |
{-# LANGUAGE FlexibleInstances, QuasiQuotes #-}
import Database.HDBC
import Database.HDBC.PostgreSQL
import System.Environment
import Acl
import Proc
import View
-- import XferData
-- import Table
-- import UDT
import Trigger
import Util
import Str
schemaList = [str|
SELECT n.nspname AS "Name"
-- ,pg_catalog.pg_get... | sourcewave/pg-schema-diff | PgSchemaDiff.hs | unlicense | 2,081 | 0 | 16 | 474 | 408 | 203 | 205 | 36 | 4 |
module ManualCurryAndUncurry where
nonsense :: Bool -> Integer
nonsense True = 805
nonsense False = 31337
typicalCurriedFunction :: Integer
-> Bool
-> Integer
typicalCurriedFunction i b =
i + (nonsense b)
uncurriedFunction :: (Integer, Bool)
->... | thewoolleyman/haskellbook | 05/05/chad/ManualCurryAndUncurry.hs | unlicense | 629 | 0 | 9 | 218 | 174 | 95 | 79 | 20 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Openshift.V1.SourceControlUser where
import GHC.Generics
import Data.Text
import qualified Data.Aeson
-- |
data SourceControlUser = SourceCon... | minhdoboi/deprecated-openshift-haskell-api | openshift/lib/Openshift/V1/SourceControlUser.hs | apache-2.0 | 586 | 0 | 9 | 92 | 93 | 56 | 37 | 15 | 0 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
module Spark.Core.Internal.Paths(
HasNodeName(..),
PathEdge... | tjhunter/karps | haskell/src/Spark/Core/Internal/Paths.hs | apache-2.0 | 6,466 | 0 | 17 | 1,380 | 1,742 | 922 | 820 | 138 | 2 |
module Tests.Main where
import qualified Tests.LambdaTest (tests)
import qualified Tests.OpsTest (tests)
import qualified Tests.SizeTest (tests)
import qualified Tests.ExpTest (tests)
import Control.Monad
tests :: [IO Bool]
tests = Tests.LambdaTest.tests
++ Tests.OpsTest.tests
++ Tests.SizeTest.tests
... | agobi/sizechecking | Tests/Main.hs | bsd-2-clause | 405 | 0 | 8 | 68 | 125 | 73 | 52 | 13 | 1 |
{-# LANGUAGE TypeOperators #-}
------------------------------------------------------------------------------
module OpenArms.API ( OpenArmsAPI, apiEndpoints ) where
------------------------------------------------------------------------------
import Servant
import Servant.Server
--------------------------------------... | dmjio/openarms | src/OpenArms/API.hs | bsd-2-clause | 736 | 0 | 5 | 55 | 74 | 47 | 27 | 12 | 1 |
module FIR where
import CLaSH.Prelude
dotp :: SaturatingNum a
=> Vec (n + 1) a
-> Vec (n + 1) a
-> a
dotp as bs = fold boundedPlus (zipWith boundedMult as bs)
fir :: (Default a, KnownNat n, SaturatingNum a)
=> Vec (n + 1) (Signal a) -> Signal a -> Signal a
fir coeffs x_t = y_t
where
y_t = do... | ggreif/clash-compiler | examples/FIR.hs | bsd-2-clause | 634 | 0 | 11 | 139 | 319 | 162 | 157 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Control.Concurrent (threadDelay)
import Network.AMQP
import qualified Data.ByteString.Lazy.Char8 as BL
main :: IO ()
main = do
conn <- openConnection "127.0.0.1" "/" "guest" "guest"
chan <- openChannel conn
-- declare a queue, exchange and binding
... | cutsea110/rabbitmq-test | rabbitmq-test.hs | bsd-3-clause | 1,139 | 0 | 12 | 220 | 255 | 133 | 122 | 23 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
module Data.API.Subledger.Request
( SubledgerRequest(..)
, HasParam(..)
, SubledgerReturn
, mkRequest
, mkEmptyRequest
, nullBody
... | whittle/subledger | subledger-core/src/Data/API/Subledger/Request.hs | bsd-3-clause | 3,618 | 0 | 11 | 936 | 921 | 523 | 398 | 74 | 1 |
{-
(c) The University of Glasgow, 2004-2006
Module
~~~~~~~~~~
Simply the name of a module, represented as a FastString.
These are Uniquable, hence we can build Maps with Modules as
the keys.
-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Module
(
-- * The ModuleName ty... | vTurbine/ghc | compiler/basicTypes/Module.hs | bsd-3-clause | 23,502 | 0 | 19 | 5,380 | 3,949 | 2,160 | 1,789 | 316 | 2 |
import Test.Hspec
import MExp
import HttpClient
import Game
main :: IO ()
main = hspec $ do
describe "Verify that winner is correct." $ do
it "Should return x" $ do
winner [(Move 0 0 "x"),(Move 2 0 "o"),(Move 1 1 "x"),(Move 0 2 "o"),(Move 2 2 "x")]
`shouldBe` Just "x"
describe "Verify that d... | tomas-stuina/fp | test/Spec.hs | bsd-3-clause | 994 | 0 | 18 | 267 | 300 | 147 | 153 | 26 | 1 |
{-# LANGUAGE ConstraintKinds, DeriveDataTypeable, GeneralizedNewtypeDeriving,
RecordWildCards #-}
module Config
( askHpRelease
, askGhcBinDistTarFile
, askBuildConfig
, addConfigOracle
, askStackExe
)
where
import Data.List (intercalate)
import Data.List.Split (splitOn)
import... | gbaz/haskell-platform | hptool/src/Config.hs | bsd-3-clause | 3,668 | 0 | 12 | 745 | 877 | 456 | 421 | 69 | 3 |
module Zipper where
-- Zipper something something something
data Zipper a = Zip | Zipper [a] a [a]
zipper :: a -> Zipper a
zipper cursor = Zipper [] cursor []
zipperFromList :: [a] -> Zipper a
zipperFromList [] = Zip
zipperFromList (h:t) = Zipper [] h t
cursorSafe :: Zipper a -> Maybe a
cursorSafe Zip = Nothing
cu... | rodneyp290/Brainfunc | src/Zipper.hs | bsd-3-clause | 1,050 | 0 | 9 | 221 | 531 | 265 | 266 | 27 | 1 |
module HaskQuery.IntIndex where
import qualified Data.IntMap.Strict
import qualified Data.IntMap.Lazy
import qualified Data.IntSet
import qualified Control.Monad.Trans.Cont
import HaskQuery.AutoIndex
data IntIndex = IntIndex { relationIndex :: Data.IntMap.Strict.IntMap Data.IntSet.IntSet } deriving (Show)
type Updat... | stevechy/haskellEditor | ext-src/HaskQueryPackage/HaskQuery/IntIndex.hs | bsd-3-clause | 2,750 | 0 | 15 | 395 | 804 | 435 | 369 | 35 | 3 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE QuasiQuotes #-}
module Area where
import Ivory.Language
import Ivory.Compile.C.CmdlineFrontend
[ivory|
struct val {
field :: Stored Uint32
}
|]
val :: MemArea (Struct "... | Hodapp87/ivory | ivory-examples/examples/Area.hs | bsd-3-clause | 945 | 0 | 13 | 182 | 330 | 170 | 160 | 29 | 1 |
module Yesod.Goodies (module X) where
import Data.Shorten as X
import Data.SimpleSearch as X
import Data.Time.Format.Human as X
import Network.Gravatar as X
import Yesod.Links as X
import Yesod.Markdown as X
import Yesod.Paginator as X
| pbrisbin/yesod-goodies | Yesod/Goodies.hs | bsd-3-clause | 284 | 0 | 4 | 81 | 63 | 45 | 18 | 8 | 0 |
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE OverloadedStrings #-}
module Language.Ha... | ssaavedra/liquidhaskell | src/Language/Haskell/Liquid/Parse.hs | bsd-3-clause | 30,144 | 0 | 38 | 7,571 | 9,648 | 4,898 | 4,750 | 684 | 5 |
module Compile (compile) where
import qualified Data.Map as Map
import Text.PrettyPrint (Doc)
import qualified AST.Module as Module
import qualified Parse.Helpers as Parse
import qualified Parse.Parse as Parse
import qualified Transform.AddDefaultImports as DefaultImports
import qualified Transform.Check as Check
imp... | JoeyEremondi/utrecht-apa-p1 | src/Compile.hs | bsd-3-clause | 1,817 | 0 | 14 | 416 | 412 | 231 | 181 | 39 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE BangPatterns #-}
import Control.DeepSeq (NFData(..))
import Control.Monad.Catch (MonadThrow)
import Control.Monad.IO.Class (MonadIO)
import Criterion (Benchmark, bench, nfIO, env)
import Criterion.Main (bgroup, defaultMain)
impo... | zohl/dictionaries | tests/Benchmark.hs | bsd-3-clause | 3,357 | 0 | 17 | 669 | 1,025 | 547 | 478 | 80 | 1 |
{-# LANGUAGE MultiWayIf, RecordWildCards #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
-- | Motivation: Sometimes peers send messages in chunks. I think this is
-- because of several reasons:
-- * Limited bandwidth allocated to the connection by remote peer.
-- * Small MTU.
-- * ...
--
-- So sometimes a single `rec... | osa1/rho-torrent | src/Rho/Listener.hs | bsd-3-clause | 5,981 | 0 | 20 | 1,628 | 1,249 | 638 | 611 | 87 | 3 |
{-# LANGUAGE OverloadedStrings #-}
module CacheDNS.APP.UDPServer
( serve
)
where
import Control.Monad
import Control.Monad.STM
import Control.Monad.Trans.Class
import Control.Monad.Trans.Maybe
import Control.Concurrent
import Control.Concurrent.Async
import Control.Concurrent.STM
import Control.Exception
imp... | DavidAlphaFox/CacheDNS | app/CacheDNS/APP/UDPServer.hs | bsd-3-clause | 4,919 | 0 | 24 | 1,631 | 1,449 | 741 | 708 | 114 | 5 |
import System.Environment (getArgs)
doublet :: (String, String) -> Int
doublet ("", "") = 1
doublet (x:xs, y:ys) | x == 'A' && y == 'B' = 0
| x == 'B' && y == 'A' = 0
| x == '*' && y == '*' = 2 * doublet (xs, ys)
| otherwise = do... | nikai3d/ce-challenges | moderate/double_trouble.hs | bsd-3-clause | 648 | 0 | 12 | 252 | 279 | 138 | 141 | 16 | 1 |
{-# LANGUAGE FlexibleInstances #-}
module Gambling.Emit where
import qualified Numeric
import qualified Data.Char as Char
import Data.Monoid
import Data.Format
import qualified Text.PrettyPrint as PP
import qualified Control.Monad.State.Lazy as LazySt
import Unbound.Generics.LocallyNameless.LFresh
import Unbound.... | lambdageek/insomnia | src/Gambling/Emit.hs | bsd-3-clause | 7,434 | 0 | 15 | 1,658 | 2,495 | 1,226 | 1,269 | 175 | 3 |
{-# LANGUAGE FlexibleContexts #-}
module Sgf.XMonad.VNC
( isVnc
, handleVnc
)
where
import Data.List
import System.Process
import System.Environment
import XMonad
import Sgf.XMonad.Util.EZConfig
-- If xmonad has run by VNC server, redefine each key with controlMask added
-- to modMask. This allows u... | sgf-dma/sgf-xmonad-modules | src/Sgf/XMonad/VNC.hs | bsd-3-clause | 2,070 | 0 | 17 | 513 | 318 | 174 | 144 | 31 | 2 |
module AppraiserProtocol where
import Protocol
--TODO
--armoredPCRSel :: [Word8] --> tpm_pcr_selection
protocol = Let (Var "pcrsel") (ArmoredPCRSel [0..23])
(Let (Var "nonce") ArmoredCreateNonce
(Let (Var "desiredEvidence") (ArmoredCreateDesiredEvidence [0..2])
(Let (Var "request") (ArmoredRequeset ... | armoredsoftware/protocol | tpm/mainline/shared/protocolprotocol/AppraiserProtocol_.hs | bsd-3-clause | 628 | 20 | 7 | 152 | 201 | 108 | 93 | -1 | -1 |
-- | This module contains various function for working with functions
-- that are is cyclic in meaning (but not in value). An obvious example
-- are angles, where in many cases there is no value in distinguishing
-- between x and x + n2π.
module Numeric.Units.Dimensional.Cyclic where
import qualified Prelude
import N... | bjornbm/dimensional-experimental | src/Numeric/Units/Dimensional/Cyclic.hs | bsd-3-clause | 5,955 | 0 | 10 | 1,257 | 1,168 | 614 | 554 | 54 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Text.XML.Hexml as Hexml
import Control.Exception
import Control.Monad
import qualified Data.ByteString.Char8 as BS
import Data.Char
import Data.Monoid
import XmlLibrary
main = mainBenchmark hexmlLibrary
hexmlLibrary = XmlLibrary parse render where
parse = BS.readFile >=> ... | pepeiborra/xml-bench | src/Hexml.hs | bsd-3-clause | 1,158 | 0 | 18 | 325 | 411 | 205 | 206 | -1 | -1 |
{-# LANGUAGE TemplateHaskell, ScopedTypeVariables #-}
module HighOrdAlu where
import CLasH.HardwareTypes
import HighOrdAluOps
{-# ANN sim_input TestInput#-}
sim_input :: [(Opcode, Vector D4 (Signed D8), Vector D4 (Signed D8))]
sim_input = [ (High, $(vTH ([4,3,2,1]::[Signed D8])), $(vTH ([1,2,3,4]::[Signed D8])))
... | christiaanb/clash | examples/HighOrdAlu.hs | bsd-3-clause | 891 | 0 | 12 | 185 | 489 | 272 | 217 | 18 | 2 |
-- |A serializer for RDF as N-Triples
-- <http://www.w3.org/TR/rdf-testcases/#ntriples>.
module Text.RDF.RDF4H.NTriplesSerializer(
writeGraph, writeTriples, writeTriple,
writeNode, writeLValue, writeLiteralString,
NTriplesSerializer(NTriplesSerializer)
) where
import Data.RDF
import Data.RDF.Utils
import Data.... | amccausl/RDF4H | src/Text/RDF/RDF4H/NTriplesSerializer.hs | bsd-3-clause | 3,024 | 0 | 15 | 870 | 986 | 488 | 498 | 72 | 6 |
{-# OPTIONS_GHC -Wall #-}
module Main ( main ) where
import Data.Maybe ( fromJust )
import SpatialMath
import qualified Vis
import Types ( QuadCopter(..), Rotor(..) )
import ParseFiles ( getStates )
data State = State [Maybe QuadCopter] [[Xyz Double]]
drawRotor :: Rotor -> Vis.VisObject Double
drawRotor (Rotor pos... | ghorn/quadviz-lol | src/Quadplot.hs | bsd-3-clause | 3,155 | 0 | 16 | 632 | 1,320 | 685 | 635 | 62 | 1 |
module Pulti
where
import Data.Char
import Data.List
import Network.HTTP.Client
import Atkodavimas
message :: String
message = "d1:0d1:v1:x1:xi2e1:yi2ee1:1d1:v1:o1:xi0e1:yi1ee1:2d1:v1:x1:xi1e1:yi0eee"
move :: String -> Maybe (Int, Int, Char)
move str = calculteMove (pirmasZingsnis str)
calculteMove :: [(Char,Char,... | alxemist/TicTacToe | src/Pulti.hs | bsd-3-clause | 4,535 | 0 | 21 | 650 | 3,271 | 1,786 | 1,485 | 42 | 1 |
{- |
Module : ./THF/ProverState.hs
Description : Help functions for all automatic theorem provers.
Copyright : (c) Rainer Grabbe
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : needs POSIX
Data structures, initialising functio... | spechub/Hets | THF/ProverState.hs | gpl-2.0 | 1,873 | 0 | 10 | 311 | 317 | 176 | 141 | 26 | 1 |
{-# LANGUAGE QuasiQuotes, TemplateHaskell #-}
module Nirum.Targets.List ( targetProxiesQ
, targetProxyMapQ
, targetTypesQ
) where
import Data.Proxy (Proxy (Proxy))
import Language.Haskell.TH ( Dec (InstanceD)
, Exp... | spoqa/nirum | src/Nirum/Targets/List.hs | gpl-3.0 | 1,090 | 0 | 13 | 379 | 268 | 153 | 115 | 26 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.InstalledPackageInfo
-- Copyright : (c) The University of Glasgow 2004
--
-- Maintainer : libraries@haskell.org
-- Portability : portable
--
-- This is the information about an /installed/ package tha... | jwiegley/ghc-release | libraries/Cabal/cabal/Distribution/InstalledPackageInfo.hs | gpl-3.0 | 13,089 | 0 | 13 | 4,073 | 2,035 | 1,224 | 811 | 211 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-opsworks/gen/Network/AWS/OpsWorks/DescribeApps.hs | mpl-2.0 | 4,450 | 0 | 10 | 943 | 586 | 354 | 232 | 65 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/ModifyVolumeAttribute.hs | mpl-2.0 | 4,241 | 0 | 9 | 877 | 472 | 289 | 183 | 57 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Data.FileEmbed
main = injectFile "Hello World" "template" "injected"
| phadej/file-embed | inject.hs | bsd-2-clause | 112 | 0 | 5 | 14 | 19 | 10 | 9 | 3 | 1 |
-- | The type of kinds of rooms, halls and passages.
module Game.LambdaHack.Content.PlaceKind
( PlaceKind(..), Cover(..), Fence(..)
, validateSinglePlaceKind, validateAllPlaceKind
) where
import Data.Text (Text)
import qualified Data.Text as T
import Game.LambdaHack.Common.Misc
import Game.LambdaHack.Content.Ti... | Concomitant/LambdaHack | Game/LambdaHack/Content/PlaceKind.hs | bsd-3-clause | 2,834 | 0 | 14 | 641 | 385 | 236 | 149 | -1 | -1 |
{-# LANGUAGE ViewPatterns #-}
module Diagrams.Backend.OpenGL.TwoD.Tesselate
( tessRegion, TessWinding(..) ) where
import System.IO.Unsafe
import Diagrams.Prelude
import Graphics.Rendering.OpenGL
import Diagrams.Backend.OpenGL.TwoD.Outlines (Convex(..))
import Graphics.Rendering.Util
te... | bergey/diagrams-opengl | src/Diagrams/Backend/OpenGL/TwoD/Tesselate.hs | bsd-3-clause | 884 | 0 | 11 | 182 | 315 | 173 | 142 | 18 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.