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 BangPatterns, DeriveDataTypeable, DeriveGeneric, FlexibleInstances, MultiParamTypeClasses #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Web.RTBBidder.Protocol.Adx.BidRequest.Device.DeviceType (DeviceType(..)) where
import Prelude ((+), (/), (.))
import qualified Prelude as Prelude'
import qualif... | hiratara/hs-rtb-bidder | src/Web/RTBBidder/Protocol/Adx/BidRequest/Device/DeviceType.hs | bsd-3-clause | 3,617 | 0 | 11 | 617 | 880 | 487 | 393 | 78 | 1 |
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TupleSections #-}
module YX.Initialize
where
import Prelude (error)
import Control.Applicative (Applicative, (*>), pure)
import Control.Exception (Exception, catch, throwIO)
import Control.Monad ((>>=), fo... | trskop/yx | src/YX/Initialize.hs | bsd-3-clause | 18,592 | 0 | 23 | 5,123 | 3,515 | 1,914 | 1,601 | 316 | 8 |
-- ^Uses NetCore to implement a learning switch.
--
-- Does not work on networks with loops.
module MacLearning where
import Control.Concurrent
import Control.Concurrent.SampleVar
import Data.IORef
import Control.Monad (forever)
import Frenetic.NetCore
import qualified Data.Map as Map
import Frenetic.NetCore.Util (poD... | frenetic-lang/netcore-1.0 | examples/MacLearning.hs | bsd-3-clause | 4,785 | 0 | 25 | 1,174 | 1,149 | 579 | 570 | 83 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
module Server where
import Servant.API
import Game.Game
import Account.Account
impo... | octopuscabbage/UltimateTicTacToeServer | src/Server.hs | bsd-3-clause | 1,315 | 0 | 14 | 251 | 278 | 152 | 126 | 36 | 2 |
module Web.Client.CapacitySpec (main, spec) where
import Web.Client.Capacity
import Test.Hspec
import Test.QuickCheck
import Test.QuickCheck.Instances
main :: IO ()
main = hspec spec
spec :: Spec
spec = do
describe "someFunction" $ do
it "should work fine" $ do
property someFunction
someFunction :: Boo... | athanclark/client-capacity | test/Web/Client/CapacitySpec.hs | bsd-3-clause | 369 | 0 | 13 | 70 | 118 | 63 | 55 | 14 | 1 |
{-# OPTIONS_GHC -Wall -fwarn-tabs #-}
{-# LANGUAGE CPP #-}
----------------------------------------------------------------
-- ~ 2021.12.14
-- |
-- Module : Unused.TastyQuickCheck
-- Copyright : 2008--2021 wren romano
-- License : BSD-3-Clause
-- Maintaine... | wrengr/bytestring-trie | dev/Unused/TastyQuickCheck.hs | bsd-3-clause | 4,266 | 0 | 12 | 810 | 189 | 120 | 69 | 11 | 1 |
-- This module defines different SQL dialects.
module Database.Algebra.SQL.Dialect
( Dialect(..)
, forMonetDB
, forPostgreSQL
) where
-- TODO Provide feature specific records, in case this file gets bigger.
-- | Defines the possible SQL dialects used for certain tasks like rendering and
-- materializa... | ulricha/algebra-sql | src/Database/Algebra/SQL/Dialect.hs | bsd-3-clause | 579 | 0 | 5 | 140 | 90 | 54 | 36 | 13 | 1 |
module HW11Test
(hw11Tests)
where
import Test.Tasty
import Test.Tasty.Hspec
import Data.Char
import Data.Maybe
import HW11.AParser
import HW11.SExpr
hw11Tests :: IO TestTree
hw11Tests = do
hspecSuite <- testSpec "HW11" hspecTests
return $ testGroup "tests" [hspecSuite]
hspecTests :: SpecWith ()
hspecTests ... | cgag/cis-194-solutions | test/HW11Test.hs | bsd-3-clause | 3,642 | 0 | 30 | 1,696 | 1,028 | 495 | 533 | 77 | 1 |
{-# language FlexibleContexts #-}
{-# language ScopedTypeVariables #-}
{-# language GADTs #-}
module Hard2 where
import Co
import Control.Applicative
import Control.Monad
import Feldspar
import Feldspar.Hardware
import qualified Feldspar.Hardware.Compile as Hard
import Prelude (flip, (.), ($), Bo... | markus-git/PBKDF2 | src/Hard2.hs | bsd-3-clause | 6,273 | 0 | 29 | 1,859 | 2,454 | 1,285 | 1,169 | 124 | 1 |
module Problem4 where
import Data.Char
import Data.List
import Data.Maybe
import Control.Applicative
import System.IO
-- Given two sequences a1, a2.. an (ai is the profit per click of the i-th ad) and b1, b2, . . . , bn (bi is
-- the average number of clicks per day of the i-th slot), we need to partition them into n... | msosnicki/algorithms | app/week3/Problem4.hs | bsd-3-clause | 1,443 | 0 | 16 | 366 | 592 | 309 | 283 | 39 | 3 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE FlexibleContexts #-}
module Util where
import System.Console.GetOpt.Generics
import System.Console.GetOpt.Generics.Modifier
parse :: (Generic a, HasDatatypeInfo a, All2 HasArguments (Code a)) =>
String -> Result a
parse = modsParse []
modsParse :: ... | sol/getopt-generics | test/Util.hs | bsd-3-clause | 714 | 0 | 11 | 128 | 217 | 113 | 104 | 16 | 3 |
-- Copyright (c) 2012-2013, Christoph Pohl
-- BSD License (see http://www.opensource.org/licenses/BSD-3-Clause)
-------------------------------------------------------------------------------
--
-- Project Euler Problem 16
--
-- 2^15 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.
--
-- What is the sum of ... | Psirus/euler | src/euler016.hs | bsd-3-clause | 523 | 0 | 9 | 88 | 82 | 48 | 34 | 7 | 1 |
{-
This module contains helper functions for reporting and creating
unbound variables.
-}
module GHC.Rename.Unbound
( mkUnboundName
, mkUnboundNameRdr
, isUnboundName
, reportUnboundName
, unknownNameSuggestions
, WhereLooking(..)
, unboundName
, unboundNameX
, notInScopeErr
)
where
imp... | sdiehl/ghc | compiler/GHC/Rename/Unbound.hs | bsd-3-clause | 14,889 | 0 | 17 | 4,918 | 3,263 | 1,678 | 1,585 | 267 | 9 |
module Hans.Device.Pcap (pcapOpen, pcapSend, pcapReceiveLoop) where
import Prelude (String, IO, Bool(..), const, (.))
import Hans.Layer.Ethernet (EthernetHandle, queueEthernet)
import Control.Monad (void)
import Data.ByteString.Lazy (ByteString, toStrict)
import Network.Pcap (PcapHandle, ... | tolysz/hans-pcap | Hans/Device/Pcap.hs | bsd-3-clause | 857 | 0 | 10 | 162 | 216 | 125 | 91 | 12 | 1 |
{-# LANGUAGE OverloadedStrings, TypeFamilies, QuasiQuotes,
TemplateHaskell, FlexibleInstances, MultiParamTypeClasses,
FlexibleContexts, ScopedTypeVariables
#-}
------------------------------------------------------------------------------
-- File: Chat.hs
-- Creation Date: Jul 15 20... | SimSaladin/rnfssp | Chat.hs | bsd-3-clause | 5,314 | 0 | 19 | 1,212 | 734 | 396 | 338 | 59 | 1 |
module Network.XMPP.Utils
( ReadT(..)
, ShowT(..)
) where
import Data.Text (Text)
import qualified Data.Text as T
-- | Convert 'Text' to value.
-- Like 'Read' but convert from 'Text' instead of 'String'.
class ReadT a where
readT :: Text -> a
-- | Convert value to 'Text'.
-- Like 'Show' but convert t... | Kagami/cirno | src/Network/XMPP/Utils.hs | bsd-3-clause | 445 | 0 | 7 | 103 | 100 | 60 | 40 | 11 | 0 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecursiveDo #-}
{-# LANGUAGE FlexibleContexts #-}
module Zero.Account.Profile.Widget
(
profileWidget
) where
import Control.Monad.IO.Class (liftIO)
import Data.Proxy (Proxy(..))
import ... | et4te/zero | src/Zero/Account/Profile/Widget.hs | bsd-3-clause | 7,779 | 0 | 21 | 1,650 | 2,322 | 1,130 | 1,192 | 167 | 2 |
module CarbonCopy.StorageInit (
storageInit
) where
import Control.Monad.IfElse
import Data.Maybe
import CarbonCopy.EmailStorage
import CarbonCopy.MailHeaders
import CarbonCopy.HeadersStorage
import CarbonCopy.ThreadBuilder
storageInit :: String -> FilePath -> Storage StrHeader -> IO ()
storageInit email root... | jdevelop/carboncopy | CarbonCopy/StorageInit.hs | bsd-3-clause | 1,376 | 0 | 14 | 358 | 342 | 183 | 159 | 22 | 5 |
{-# LANGUAGE OverloadedStrings, DataKinds, TypeOperators, FlexibleInstances #-}
module Api
( Coordinate(..)
, runRoute
, runExceptT
, explainError )
where
import Protolude
import Servant.API
import Servant.Client
import Network.HTTP.Client (Manager)
import qualified Data.Text as T
import Response (Response(.... | daniel-j-h/hosrm-qa | src/Api.hs | bsd-3-clause | 3,075 | 0 | 13 | 611 | 768 | 410 | 358 | 86 | 1 |
{-# LANGUAGE Rank2Types, DeriveDataTypeable #-}
{-# OPTIONS_HADDOCK hide #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
-----------------------------------------------------------------------------
-- |
-- Module : Numeric.LinearAlgebra.Vector.STBase
-- Copyright : Copyright (c) 2010, Patrick Perry <patperry@gma... | patperry/hs-linear-algebra | lib/Numeric/LinearAlgebra/Vector/STBase.hs | bsd-3-clause | 30,065 | 0 | 17 | 9,083 | 9,112 | 4,609 | 4,503 | 674 | 4 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE Rank2Types #-}
#ifndef HLINT
{-# LANGUAGE UnboxedTuples #-}
#endif
{-# LANGUAGE PatternGuards #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAG... | hvr/lens | src/Data/Data/Lens.hs | bsd-3-clause | 16,297 | 0 | 21 | 3,293 | 3,920 | 2,098 | 1,822 | 215 | 3 |
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- | Execution mode for tx creation tests.
module Test.Pos.Client.Txp.Mode
( TxpTestProperty
, TxpTestMode
, withBVData
) where
import Universum
import qualified Data.ByteString as BS
import Test.Qui... | input-output-hk/pos-haskell-prototype | client/test/Test/Pos/Client/Txp/Mode.hs | mit | 2,649 | 0 | 9 | 446 | 468 | 267 | 201 | -1 | -1 |
-- (c) Simon Marlow 2011, see the file LICENSE for copying terms.
-- Simple wrapper around HTTP, allowing proxy use
module GetURL (getURL) where
import Network.HTTP
import Network.Browser
import Network.URI
getURL :: String -> IO String
getURL url = do
Network.Browser.browse $ do
setCheckForProxy True
set... | gsdlab/clafer | src/GetURL.hs | mit | 690 | 0 | 15 | 145 | 189 | 93 | 96 | 17 | 2 |
{-| Implementation of the Ganeti LUXI interface.
-}
{-
Copyright (C) 2009, 2010, 2011 Google Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your optio... | ekohl/ganeti | htools/Ganeti/Luxi.hs | gpl-2.0 | 8,768 | 0 | 19 | 2,386 | 2,277 | 1,171 | 1,106 | 172 | 5 |
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE UnboxedTuples #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ViewPatterns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleInstances, MultiParamTypeClasses #-}
module Basement.UArray.Base
( MUArray(..)
, UArray(..)
, MUArrayBackend(..)
, UArrayBackend(.... | vincenthz/hs-foundation | basement/Basement/UArray/Base.hs | bsd-3-clause | 25,104 | 0 | 15 | 6,980 | 8,157 | 4,093 | 4,064 | -1 | -1 |
{-# LANGUAGE CPP, ForeignFunctionInterface, ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.Utils
-- Copyright : Isaac Jones, Simon Marlow 2003-2004
-- License : BSD3
-- portions Copyright (c) 2007, G... | gbaz/cabal | Cabal/Distribution/Simple/Utils.hs | bsd-3-clause | 54,720 | 0 | 21 | 14,775 | 11,599 | 6,126 | 5,473 | 903 | 7 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DeriveGeneric, DeriveAnyClass #-}
module Network.Data.OpenFlow.Statistics (
StatsRequest (..)
, TableQuery (..)
, PortQuery (..)
, QueueQuery (..)
, StatsReply (..)
, MoreToFollowFlag
, FlowStats (..)
, AggregateFlowStats (..)
, TableStats (..)
, Po... | AndreasVoellmy/nettle-openflow | src/Network/Data/OpenFlow/Statistics.hs | bsd-3-clause | 9,491 | 0 | 9 | 2,784 | 1,757 | 1,012 | 745 | 194 | 1 |
{-# LANGUAGE ViewPatterns, FlexibleContexts #-}
{-| Ganeti lock structure
-}
{-
Copyright (C) 2014 Google Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must ... | leshchevds/ganeti | src/Ganeti/Locking/Locks.hs | bsd-2-clause | 8,541 | 0 | 10 | 1,651 | 1,571 | 831 | 740 | 139 | 1 |
#!/usr/local/bin/env runghc
module Main where
{-
Uninstall.hs - a Haskell uninstaller for Mac OS X
This program is really far too big to be in a single file. However, I
wanted it to be easily distributable and runnable, and so have kept it all
together.
- Mark Lentczner
-}
import Prelude hiding... | erantapaa/haskell-platform | hptool/os-extras/osx/bin/uninstall-hs.hs | bsd-3-clause | 20,950 | 7 | 18 | 5,788 | 6,292 | 3,269 | 3,023 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
module Yesod.Routes.TH.ParseRoute
( -- ** ParseRoute
mkParseRouteInstance
) where
import Yesod.Routes.TH.Types
import Language.Haskell.TH.Syntax
import Data.Text (Text)
import Yesod.Routes.Class
import Yesod.Routes.TH.Dispatch
mkParseRouteInstance :: Cxt -> Type -> [Reso... | geraldus/yesod | yesod-core/src/Yesod/Routes/TH/ParseRoute.hs | mit | 1,802 | 0 | 14 | 488 | 438 | 251 | 187 | 37 | 3 |
{-# LANGUAGE OverloadedStrings #-}
-- | Low level XMLHttpRequest support. IE6 and older are not supported.
module Haste.Ajax (Method (..), URL, ajaxRequest, noParams) where
import Haste.Foreign
import Haste.Prim
import Haste.Prim.JSType
import Control.Monad.IO.Class
import Control.Monad (join)
ajaxReq :: Method -- m... | beni55/haste-compiler | libraries/haste-lib/src/Haste/Ajax.hs | bsd-3-clause | 2,326 | 0 | 13 | 696 | 527 | 281 | 246 | 42 | 3 |
module HAD.Y2014.M04.D11.Solution where
{- | thirdOfFive
return the third of five arguments
No other interest than pointFree
prop> \(x1, x2, x3, x4, x5) -> thirdOfFive x1 x2 x3 x4 x5 == (x3 :: Int)
thirdOfFive a b c d e = c
thirdOfFive a b c d = const c
thirdOfFive a b c = const $ const c
thi... | weima/1HAD | exercises/HAD/Y2014/M04/D11/Solution.hs | mit | 715 | 0 | 9 | 188 | 56 | 32 | 24 | 3 | 1 |
module ListClone () where
import Language.Haskell.Liquid.Prelude
make2d :: a -> Int -> Int -> [[a]]
make2d x n m = clone (clone x n) m
clone :: a -> Int -> [a]
clone x n
| n == 0
= []
| otherwise
= x : (clone x (n-1))
-- check [] = [liquidAssertB True]
-- check (xs:xss) = let n = length xs in map (\xs' -... | mightymoose/liquidhaskell | tests/pos/ListLen.hs | bsd-3-clause | 749 | 0 | 14 | 245 | 320 | 170 | 150 | 23 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
module Build
( getDeps
, touchDeps
, touch
, recompDeps
, isNewerThan
, safeReadFile
) where
import Control.Applicative ((<|>), many, (<$>))
import qualif... | ygale/yesod | yesod-bin/Build.hs | mit | 10,871 | 1 | 30 | 3,426 | 3,442 | 1,783 | 1,659 | -1 | -1 |
main = print . sum . map ((read :: String -> Int) . (:[])) . show $ factorial 100
factorial 1 = 1
factorial n = n * factorial (n - 1)
| nickspinale/euler | complete/020.hs | mit | 135 | 0 | 12 | 33 | 81 | 42 | 39 | 3 | 1 |
{-
We compare the JSON to the version we parsed from the original file, to ensure
the pretty printer doesn't accidentally change syntax.
-}
module Main where
import Data.Aeson (eitherDecodeFileStrict)
import Data.Text.Lazy (pack)
import Data.Text.Lazy.Encoding (encodeUtf8)
import Data.Text.Prettyprint.Doc (Pretty (pr... | puffnfresh/language-scala | test/scalameta-parsers/Main.hs | mit | 1,115 | 0 | 14 | 149 | 304 | 174 | 130 | 21 | 1 |
module ProjectEuler.Problem95
( problem
) where
import Data.List
import Data.Ord
import Data.Word
import Control.Monad
import Control.Monad.ST
import qualified Data.IntSet as IS
import qualified Data.IntMap.Strict as IM
import qualified Data.Vector.Unboxed as V
import qualified Data.Vector.Unboxed.Mutable as VM
... | Javran/Project-Euler | src/ProjectEuler/Problem95.hs | mit | 3,234 | 0 | 18 | 786 | 803 | 421 | 382 | 64 | 3 |
{-# LANGUAGE GADTs #-}
module Data.TBinaryTree where
import Data.Interface.TSequence
data TBinTree c x y where
Empty :: TBinTree c x x
Leaf :: c x y -> TBinTree c x y
Node :: TBinTree c x y -> TBinTree c y z -> TBinTree c x z
instance TSequence TBinTree where
tempty = Empty
tsingleton c = Leaf c
(><... | atzeus/reflectionwithoutremorse | Data/TBinaryTree.hs | mit | 546 | 0 | 10 | 164 | 232 | 120 | 112 | 16 | 0 |
{- |
Module : Numeric.Information.Model.IT
Description : Information quantities on models
Copyright : (c) Malte Harder
License : MIT
Maintainer : malte.harder@gmail.com
Stability : experimental
Portability : portable
-}
module Numeric.Information.Model.IT
(
-- * Entropy & Mutual ... | mahrz/hit | src/Numeric/Information/Model/IT.hs | mit | 7,597 | 0 | 27 | 2,891 | 2,755 | 1,486 | 1,269 | 180 | 1 |
{-# LANGUAGE TupleSections #-}
module SparseMatrix (
pageRank
) where
import Data.Graph (Graph, Edge, graphFromEdges, edges, outdegree)
import Data.Array ((!), range, bounds)
import qualified Numeric.LinearAlgebra as M
import Numeric.LinearAlgebra ((!#>), tr, mkSparse, cmap, size, konst)
import... | Magnap/pagerank-hs | src/SparseMatrix.hs | mit | 1,716 | 0 | 13 | 345 | 750 | 418 | 332 | 36 | 2 |
{-# htermination digitToInt :: Char -> Int #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_digitToInt_1.hs | mit | 47 | 0 | 2 | 8 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
module Y2018.M01.D08.Solution where
{--
Okay, one more, then a thought on generalization.
Friday, we looked at sections classifying newspaper articles as a graph, but
now we want to store unique sections in a table and relate those sections back
to the articles they cl... | geophf/1HaskellADay | exercises/HAD/Y2018/M01/D08/Solution.hs | mit | 6,048 | 0 | 10 | 1,189 | 498 | 305 | 193 | 46 | 1 |
-- | Perform an actual build, generate a binary package database and a
-- documentation directory in the process.
{-# LANGUAGE CPP #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
module Stackage.PerformBui... | jeffreyrosenbluth/stackage | Stackage/PerformBuild.hs | mit | 16,404 | 0 | 23 | 5,611 | 4,242 | 2,137 | 2,105 | 350 | 8 |
module GHCJS.DOM.WindowBase64 (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/WindowBase64.hs | mit | 42 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
{-# OPTIONS_GHC -F -pgmF htfpp #-}
{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
module Test.GenServer (htf_thisModulesTests) where
import Test.Framework
import Control.Monad.State
import Control.Concurrent.MVar (
MVar,
newEmptyMVar,
putMVar,
takeMVar,
isEmptyMVar
)
import Data.Uniqu... | SPY/haskell-otp | tests/Test/GenServer.hs | mit | 3,807 | 0 | 13 | 809 | 1,345 | 631 | 714 | 116 | 2 |
{-|
Module : EU4.IdeaGroups
Description : Feature handler for Europa Universalis IV idea groups
-}
module EU4.IdeaGroups (
IdeaGroup (..)
, Idea (..)
, parseEU4IdeaGroups
, writeEU4IdeaGroups
) where
import Control.Arrow (first)
import Control.Monad (forM, forM_, foldM)
import Contr... | HairyDude/pdxparse | src/EU4/IdeaGroups.hs | mit | 13,306 | 0 | 29 | 4,497 | 3,369 | 1,799 | 1,570 | -1 | -1 |
{-# LANGUAGE CPP, OverloadedStrings #-}
{- |
Module : System.JBI.Commands.Cabal
Description : cabal-install support
Copyright : (c) Ivan Lazar Miljenovic
License : MIT
Maintainer : Ivan.Miljenovic@gmail.com
-}
module System.JBI.Commands.Cabal
( Cabal
, CabalMode
, Sandbox
, Nix
... | ivan-m/jbi | lib/System/JBI/Commands/Cabal.hs | mit | 13,031 | 0 | 20 | 3,741 | 2,950 | 1,536 | 1,414 | -1 | -1 |
{-# LANGUAGE TemplateHaskell, DeriveDataTypeable #-}
module Algebraic.Config where
import qualified Autolib.TES.Binu as B
import Expression.Op
import Data.Typeable
import Autolib.ToDoc
import Autolib.Reader
import Autolib.Set
data Information = Formula | Value deriving Typeable
$(derives [makeReader, makeToDoc] ... | Erdwolf/autotool-bonn | src/Algebraic/Config.hs | gpl-2.0 | 732 | 2 | 11 | 137 | 191 | 113 | 78 | 19 | 0 |
{- |
Module : $Header$
Description : Utility functions for writing object logic instances
Copyright : (c) Kristina Sojakova, DFKI Bremen 2010
License : GPLv2 or higher, see LICENSE.txt
Maintainer : k.sojakova@jacobs-university.de
Stability : experimental
Portability : portable
-}
module Framework... | nevrenato/Hets_Fork | Framework/WriteLogicUtils.hs | gpl-2.0 | 1,888 | 0 | 13 | 501 | 569 | 300 | 269 | 43 | 4 |
module T where
import Tests.KesterelBasis
-- A local signal, not emitted.
e = signalE $ \(s::Signal) -> loopE pauseE
c = unitA >>> runE e
prop_correct = property (\xs -> simulate c xs == zip (repeat false) xs)
test_constructive = isJust (isConstructive c)
| peteg/ADHOC | Tests/08_Kesterel/021_signal_not_emitted.hs | gpl-2.0 | 260 | 0 | 11 | 47 | 96 | 51 | 45 | -1 | -1 |
-- Copyright (C) 2002-2004 David Roundy
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2, or (at your option)
-- any later version.
--
-- This program is distributed ... | DavidAlphaFox/darcs | src/Darcs/Repository/Motd.hs | gpl-2.0 | 1,602 | 0 | 11 | 319 | 250 | 145 | 105 | 18 | 1 |
f =>= g = g . extend f | hmemcpy/milewski-ctfp-pdf | src/content/3.7/code/haskell/snippet13.hs | gpl-3.0 | 22 | 0 | 6 | 7 | 19 | 8 | 11 | 1 | 1 |
-- Trie data structure for counting words in a string built using "basic"
-- components and data structures.
-- The trie type has been made instance of both Monad and Traversable
-- (and thus also Functor, Applicative and Foldable) as well as Show.
-- A new custom type class Mapping is implemented for finite map behavi... | JBons/Haskell-wordcount | src/trie.hs | gpl-3.0 | 4,334 | 0 | 15 | 1,261 | 1,456 | 764 | 692 | 74 | 1 |
data FreeF f a = forall i. FMap (i -> a) (f i) | hmemcpy/milewski-ctfp-pdf | src/content/3.11/code/haskell/snippet09.hs | gpl-3.0 | 46 | 0 | 8 | 12 | 32 | 18 | 14 | -1 | -1 |
process s = do
upStr <- upCase s
toWords upStr | hmemcpy/milewski-ctfp-pdf | src/content/3.4/code/haskell/snippet18.hs | gpl-3.0 | 55 | 0 | 8 | 18 | 25 | 10 | 15 | 3 | 1 |
{-# LANGUAGE UnicodeSyntax #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE DataKinds #-}
{-# OPTIONS_GHC -fcontext-stack=100 #-}
module Main where
import Control.Applicative ((<$>), (<*>))
import Control.Concurrent (forkIO)
import Control.Concurrent.Async
import Control.Concurrent.STM
im... | Fuuzetsu/h-booru | src/Main.hs | gpl-3.0 | 3,376 | 0 | 25 | 926 | 1,071 | 558 | 513 | 86 | 3 |
-- determine inorder preorder and postorder traversal of a tree
data Tree a = Empty | Branch a (Tree a) (Tree a)
-- inorder
p68 :: Tree Char -> String
p68 Empty = ""
p68 (Branch x Empty Empty) = [x]
p68 (Branch x l r) = p68 l ++ [x] ++ p68 r
-- preorder
p68' :: Tree Char -> String
p68' Empty = ""
p68' (Branch x Empt... | yalpul/CENG242 | H99/61-69/p68.hs | gpl-3.0 | 522 | 0 | 8 | 122 | 259 | 132 | 127 | 13 | 1 |
module Graphics.UI.Bottle.Animation.Id
( AnimId
, joinId, subId
, mappingFromPrefixMap
) where
import Control.Lens.Operators
import qualified Data.ByteString as SBS
import Data.List.Lens (prefixed)
import Data.Map (Map)
import qualified Data.Map as Map
import Dat... | rvion/lamdu | bottlelib/Graphics/UI/Bottle/Animation/Id.hs | gpl-3.0 | 834 | 0 | 10 | 202 | 232 | 132 | 100 | 23 | 1 |
module Z3Test where
import Language.SMTLib2.Z3
import Language.SMTLib2.QuickCheck
import Distribution.TestSuite
import Distribution.TestSuite.QuickCheck
import Data.Either
tests :: IO [Test]
tests = return [testProperty "round-trip"
(roundTripTest emptyContext (return z3Solver))]
| hguenther/smtlib2 | backends/z3/test/Z3Test.hs | gpl-3.0 | 300 | 0 | 11 | 45 | 73 | 42 | 31 | 9 | 1 |
module SharedWorld.Utils (
checksum
) where
import Data.Digest.Pure.SHA ( sha1, showDigest )
import Data.Serialize ( Serialize, encode )
import qualified Data.ByteString.Lazy.Char8 as BL
-- | Compute the checksum of some serializable object.
checksum :: (Serialize s) => s -> String
checksum = showDigest . ... | scvalex/shared-world | src/SharedWorld/Utils.hs | gpl-3.0 | 350 | 0 | 7 | 62 | 87 | 54 | 33 | 7 | 1 |
module System.DevUtils.Parser.Lines.String (
defaultLines,
runLines,
weirdLines
) where
-- runLines defaultLines "#a\r\nb\rc\nd\r\ne\ndkgodkgsdo"
-- runLines weirdLines "0.1>.{....}3.4"
import Text.Parsec
import Text.Parsec.String
import Data.Maybe
type Line = String
type St a = GenParser Char Lines a
data Line... | adarqui/DevUtils-Parser | src/System/DevUtils/Parser/Lines/String.hs | gpl-3.0 | 1,787 | 1 | 18 | 427 | 697 | 359 | 338 | 57 | 2 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | rueshyna/gogol | gogol-resourceviews/gen/Network/Google/Resource/ResourceViews/ZoneViews/AddResources.hs | mpl-2.0 | 4,409 | 0 | 18 | 1,066 | 550 | 326 | 224 | 89 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Students/Create.hs | mpl-2.0 | 6,937 | 0 | 19 | 1,529 | 889 | 525 | 364 | 127 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-debugger/gen/Network/Google/Resource/CloudDebugger/Debugger/Debuggees/Breakpoints/List.hs | mpl-2.0 | 8,796 | 0 | 24 | 2,050 | 1,200 | 694 | 506 | 179 | 1 |
module BOM where
import Control.Applicative
import Control.Monad.State
import Control.Monad.RWS
import Control.Monad.Logic
import Data.Function
import Data.List
import Data.Monoid
import Data.Ord
import qualified Data.Map as M
bom =
[ (1, pcb)
, (1, usbConnector)
, (1, usbEsdModule)
, (1, shieldDecoup... | mokus0/schematics | usb-dip-module/BOM.hs | unlicense | 5,028 | 0 | 18 | 1,619 | 1,609 | 901 | 708 | 133 | 2 |
f a b =
let i = (a*10) `div` b
o = (a*10) `mod` b
in
i:(f o b)
ans (a:b:n:_) =
sum $ take n $ f (a`mod`b) b
main = do
c <- getContents
let i = map (map read) $ map words $ lines c
o = map ans i
mapM_ print o
| a143753/AOJ | 0054.hs | apache-2.0 | 238 | 0 | 14 | 86 | 175 | 88 | 87 | 11 | 1 |
module Twitter where
-- Twitter stuff
import Control.Monad
import Data.Aeson
import GHC.Generics
import Data.ByteString
import qualified Data.ByteString.Char8 as B
import qualified Data.ByteString.Lazy as BL
import qualified Network.HTTP.Base as HTTP
import N... | daherb/GF-loves-food | Twitter.hs | artistic-2.0 | 1,878 | 0 | 12 | 458 | 438 | 241 | 197 | -1 | -1 |
-- 210
import Euler(toDigitsBase)
nn = 6
calcProd n = product $ map (champDigits !!) $ take n $ iterate (10*) 1
where champDigits = concatMap (toDigitsBase 10) [0..]
main = putStrLn $ show $ calcProd nn
| higgsd/euler | hs/40.hs | bsd-2-clause | 210 | 0 | 9 | 44 | 91 | 48 | 43 | 5 | 1 |
{-# LANGUAGE UnicodeSyntax #-}
import qualified Data.Foldable as Fold
import Data.List (sort)
import qualified Data.Sequence as Seq
import Options.Applicative (fullDesc,progDesc)
import LogicGrowsOnTrees.Parallel.Main
import LogicGrowsOnTrees.Parallel.Adapter.Threads
import LogicGrowsOnTrees.Examples.Queens
main ::... | gcross/LogicGrowsOnTrees | LogicGrowsOnTrees/examples/print-all-nqueens-solutions.hs | bsd-2-clause | 855 | 0 | 16 | 206 | 195 | 106 | 89 | 20 | 3 |
module Language.Drasil.Code.DataDesc where
import Language.Drasil.Chunk.Code (CodeVarChunk)
import Data.List (nub)
type DataDesc = [Data]
type DataItem = CodeVarChunk
type Delim = Char -- delimiter
data Data = Singleton DataItem
| JunkData
| Line LinePattern Delim
| Line... | JacquesCarette/literate-scientific-software | code/drasil-code/Language/Drasil/Code/DataDesc.hs | bsd-2-clause | 1,685 | 0 | 8 | 396 | 481 | 265 | 216 | 45 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE UnicodeSyntax #-}
{-|
[@ISO639-1@] zh
[@ISO639-2B@] chi
[@ISO639-2T@] zho
[@ISO639-3@] cmn
[@Native name@] 官話
[@English name@] Chinese
-}
module Text.Numeral.... | telser/numerals | src/Text/Numeral/Language/ZHO.hs | bsd-3-clause | 10,686 | 52 | 15 | 3,294 | 3,255 | 1,801 | 1,454 | 237 | 3 |
{-# LANGUAGE FlexibleInstances,
UndecidableInstances,
ScopedTypeVariables,
OverlappingInstances #-}
module LameTetris.Game where
import Prelude
import qualified Prelude as P
import System.Random
import Data.Maybe (catMaybes, isJust)
import Data.List (foldl', sort, findIndex)
imp... | ppseafield/lametetris | LameTetris/Game.hs | bsd-3-clause | 10,700 | 0 | 17 | 3,616 | 2,812 | 1,455 | 1,357 | 199 | 3 |
{-# LANGUAGE PolyKinds #-}
module ClenshawRounded where
import FFTRounded
import Data.Number.IReal (bsum)
import Data.Number.IReal.Rounded
import Text.Printf
import Data.Bits
import ListNumSyntax
-- Chebyshev points
chebpts :: Floating a => Int -> [a]
chebpts n = [sin (fromIntegral k*(pi/fromIntegral (2*n'))) | k <-... | sydow/ireal | applications/ClenshawRounded.hs | bsd-3-clause | 2,543 | 0 | 13 | 643 | 538 | 286 | 252 | 30 | 1 |
{-# LANGUAGE ViewPatterns
, RecordWildCards
#-}
module System.FSWatch.Slave ( createWatchProcess
, createWatchProcessWithListener
, createWatchProcessWL
, watch
, stop
... | kelemzol/watch | src/System/FSWatch/Slave.hs | bsd-3-clause | 2,565 | 0 | 17 | 723 | 760 | 383 | 377 | 57 | 3 |
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings #-}
{-# OPTIONS -Wall #-}
module Test.Paraiso.ClarisSimple (
test
)where
import Data.Dynamic
import qualified Language.Paraiso.Generator.Claris as C
import qualified Language.Paraiso.Generator.ClarisTrans as C
import Language.Paraiso.Name (... | drmaruyama/Paraiso | Test/Paraiso/ClarisSimple.hs | bsd-3-clause | 2,667 | 0 | 13 | 750 | 848 | 472 | 376 | 62 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Set1.Challenge04Spec
( spec
) where
import Test.Hspec
import Test.QuickCheck
import Control.Exception (evaluate)
import qualified Challenges.Set1 as S1
import qualified Crypto.Xor as Xor
main :: IO ()
main = hspec spec
result =
"Now that the party is jumping\n"
... | eelcoh/cryptochallenge | test/Set1/Challenge04Spec.hs | bsd-3-clause | 581 | 0 | 17 | 115 | 151 | 83 | 68 | 18 | 1 |
{-# LANGUAGE PatternSynonyms #-}
--------------------------------------------------------------------------------
-- |
-- Module : Graphics.GL.ARB.ShaderObjects
-- Copyright : (c) Sven Panne 2019
-- License : BSD3
--
-- Maintainer : Sven Panne <svenpanne@gmail.com>
-- Stability : stable
-- Portabilit... | haskell-opengl/OpenGLRaw | src/Graphics/GL/ARB/ShaderObjects.hs | bsd-3-clause | 2,639 | 0 | 5 | 347 | 336 | 218 | 118 | 80 | 0 |
import Turbinado.Controller
import App.Models.Posts as PostsModel
home::Controller()
home = do posts <- PostsModel.findAll :: Controller [Posts]
setViewDataValue "posts-titles" $ map (\p -> (Prelude.show(fromJust(_id p)),title p)) posts
return ()
| abuiles/turbinado-blog | App/Controllers/Manage.hs | bsd-3-clause | 271 | 1 | 16 | 52 | 108 | 53 | 55 | 6 | 1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
module Network.HPACK.HeaderBlock.Encode (
encodeHeader
, encodeTokenHeader
, encodeString
, encodeS
) where
import Control.Exception (bracket, throwIO)
import qualified Control.Exception as E
import qualified Data.ByteString as BS
import ... | kazu-yamamoto/http2 | Network/HPACK/HeaderBlock/Encode.hs | bsd-3-clause | 10,921 | 0 | 15 | 2,684 | 2,687 | 1,355 | 1,332 | 218 | 4 |
{-# language CPP #-}
-- | = Name
--
-- VK_EXT_texel_buffer_alignment - device extension
--
-- == VK_EXT_texel_buffer_alignment
--
-- [__Name String__]
-- @VK_EXT_texel_buffer_alignment@
--
-- [__Extension Type__]
-- Device extension
--
-- [__Registered Extension Number__]
-- 282
--
-- [__Revision__]
-- ... | expipiplus1/vulkan | src/Vulkan/Extensions/VK_EXT_texel_buffer_alignment.hs | bsd-3-clause | 9,497 | 0 | 14 | 1,471 | 1,029 | 647 | 382 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
module Commands where
import Control.Lens
import Data.Attoparsec.Text as A
import qualified Data.Text as T
import Data.Char (isSpace)
import ... | epsilonhalbe/lambdadojo | src/Commands.hs | bsd-3-clause | 1,563 | 0 | 13 | 564 | 423 | 225 | 198 | 38 | 1 |
data TrafficLight = Red | Yellow | Green
instance Eq TrafficLight where
Red == Red = True
Yellow == Yellow = True
Green == Green = True
_ == _ = False
instance Show TrafficLight where
show Red = "Red"
show Yellow = "Yellow"
show Green = "Green"
main = do
print(Red == Red)
print(R... | yuncliu/Learn | haskell/trafficLight.hs | bsd-3-clause | 348 | 0 | 9 | 103 | 135 | 65 | 70 | 14 | 1 |
-- | Output the results to HTML
--
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-unused-do-bind #-}
module Criterion.ToHtml.Html
( report
) where
import Data.Monoid (mempty)
import Data.Aeson (encode)
import Data.ByteString (ByteString)
import Text.Blaze (unsafeLazyByteString, unsafeByteString,... | jaspervdj/criterion-to-html | src/Criterion/ToHtml/Html.hs | bsd-3-clause | 1,486 | 0 | 15 | 484 | 296 | 151 | 145 | 40 | 1 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE InstanceSigs #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module Sky.Learn.GHCGenerics where
im... | xicesky/sky-haskell-playground | src/Sky/Learn/GHCGenerics.hs | bsd-3-clause | 6,283 | 0 | 12 | 1,826 | 2,030 | 1,052 | 978 | 119 | 1 |
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
module BSPM.Engine.Local
( BSPM ()
, WorkerState ()
, receive
, run
, send
) where
import BSPM.Util.CriticalSection
import BSPM.Util.RunOnce
import Control.Concurrent
import Co... | schernichkin/BSPM | bsp/src/BSPM/Engine/Local.hs | bsd-3-clause | 4,716 | 0 | 30 | 1,330 | 1,491 | 766 | 725 | 140 | 3 |
{-# LANGUAGE FlexibleInstances #-}
module Ch5
( toList,
sumL
) where
class Listable a where
toList :: a -> [Int]
instance Listable Int where
-- toList :: Int -> [Int]
toList x = [x]
instance Listable Bool where
toList True = [1]
toList False = [0]
instance Listable [Int] where
... | wangwangwar/cis194 | src/ch5/Ch5.hs | bsd-3-clause | 521 | 0 | 8 | 150 | 205 | 109 | 96 | 18 | 1 |
module Util where
import Control.Exception
import Data.Char
import Data.List
import Control.Monad.State (MonadIO(..), liftM)
import System.Random
import Text.Regex.PCRE
contains :: String -> String -> Bool
contains = flip isInfixOf
containsAny :: String -> ... | wimdu/alonzo | src/Util.hs | mit | 886 | 0 | 9 | 205 | 308 | 165 | 143 | 23 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-
Copyright (C) 2006-2010 John MacFarlane <jgm@berkeley.edu>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) a... | Lythimus/lptv | sites/all/modules/jgm-pandoc-8be6cc2/src/Text/Pandoc/Writers/RST.hs | gpl-2.0 | 13,931 | 0 | 20 | 3,529 | 4,203 | 2,098 | 2,105 | 261 | 8 |
{-# LANGUAGE PatternGuards #-}
-- |
-- Copyright : (c) 2019 Charlie Jacomme <charlie.jacomme@lsv.fr>
-- License : GPL v3 (see LICENSE)
--
-- Maintainer : Robert Künnemann <robert@kunnemann.de>
-- Portability : GHC only
--
-- Compute annotations for always-secret channels
--
-- A channel is defined always-secret ... | tamarin-prover/tamarin-prover | lib/sapic/src/Sapic/SecretChannels.hs | gpl-3.0 | 3,268 | 0 | 13 | 779 | 778 | 396 | 382 | 49 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | kim/amazonka | amazonka-cloudhsm/gen/Network/AWS/CloudHSM/DescribeLunaClient.hs | mpl-2.0 | 5,706 | 0 | 17 | 1,233 | 814 | 481 | 333 | 91 | 1 |
{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples, BangPatterns, StandaloneDeriving #-}
-----------------------------------------------------------------------------
-- |
-- Module : Java.Primitive
-- Copyright : (c) Rahul Muttineni 2016-2017
--
-- License : BSD-style (see the file libraries/base/L... | rahulmutt/ghcvm | libraries/base/Java/Primitive.hs | bsd-3-clause | 2,807 | 0 | 11 | 699 | 584 | 306 | 278 | 59 | 1 |
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE AutoDeriveTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module : Contro... | rahulmutt/ghcvm | libraries/base/Control/Applicative.hs | bsd-3-clause | 4,551 | 0 | 11 | 940 | 961 | 546 | 415 | 60 | 1 |
-- Compiler Toolkit: general purpose attribute management
--
-- Author : Manuel M. T. Chakravarty
-- Created: 14 February 95
--
-- Copyright (c) [1995..1999] Manuel M. T. Chakravarty
--
-- This file is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as ... | jrockway/c2hs | src/Data/Attributes.hs | gpl-2.0 | 14,902 | 0 | 18 | 3,903 | 2,486 | 1,360 | 1,126 | 156 | 4 |
module NPDA.Quiz where
-- $Id$
import NPDA.Type
import Language.Type
import qualified Grammatik.CF.Language as L
import qualified Grammatik.CF.Generate as G
import qualified NPDA.Inter as I
import qualified Machine.Acceptor.Type as A
import Util.Cache
import Util.Datei
import Util.Seed
import Informed
import ToDoc... | Erdwolf/autotool-bonn | src/NPDA/Quiz.hs | gpl-2.0 | 1,415 | 63 | 8 | 499 | 326 | 209 | 117 | 44 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module WaiAppStatic.Types
( -- * Pieces
Piece
, toPiece
, fromPiece
, unsafeToPiece
, Pieces
, toPieces
-- * Caching
, MaxAge (..)
-- * File\/folder serving
, FolderName
, Folder (..)
, File (..)
, LookupResult (..)
, L... | jberryman/wai | wai-app-static/WaiAppStatic/Types.hs | mit | 5,127 | 0 | 11 | 1,221 | 600 | 376 | 224 | 62 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-| Implementation of the Ganeti logging functionality.
This currently lacks the following (FIXME):
- log file reopening
Note that this requires the hslogger library version 1.1 and above.
-}
{-
Copyright (C) 2011, 2012, 2013 Google Inc.
This program is free software; you can re... | dblia/nosql-ganeti | src/Ganeti/Logging.hs | gpl-2.0 | 4,650 | 0 | 12 | 1,147 | 817 | 440 | 377 | 85 | 4 |
{-
(c) Galois, 2006
(c) University of Glasgow, 2007
-}
{-# LANGUAGE CPP, NondecreasingIndentation, RecordWildCards #-}
module Coverage (addTicksToBinds, hpcInitCode) where
#ifdef GHCI
import qualified GHCi
import GHCi.RemoteTypes
import Data.Array
import ByteCodeTypes
import GHC.Stack.CCS
#endif
import Type
import H... | mettekou/ghc | compiler/deSugar/Coverage.hs | bsd-3-clause | 51,968 | 0 | 22 | 15,484 | 13,612 | 6,879 | 6,733 | 955 | 8 |
-----------------------------------------------------------------------------
-- |
-- Module : Plugins.Monitors.Thermal
-- Copyright : (c) Juraj Hercek
-- License : BSD-style (see LICENSE)
--
-- Maintainer : Juraj Hercek <juhe_haskell@hck.sk>
-- Stability : unstable
-- Portability : unportable
--
--... | dragosboca/xmobar | src/Plugins/Monitors/Thermal.hs | bsd-3-clause | 1,453 | 0 | 16 | 288 | 240 | 137 | 103 | 19 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.License
-- Description : The License data type.
-- Copyright : Isaac Jones 2003-2005
-- Duncan Coutts 2008
-- License ... | mydaum/cabal | Cabal/Distribution/License.hs | bsd-3-clause | 6,986 | 0 | 16 | 1,649 | 985 | 563 | 422 | 71 | 1 |
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
module T14174a where
import Data.Kind
data TyFun :: Type -> Type -> Type
type a ~> b = TyFun a b -> Type
infixr 0 ~>
type family Ap... | sdiehl/ghc | testsuite/tests/polykinds/T14174a.hs | bsd-3-clause | 1,640 | 13 | 13 | 515 | 588 | 338 | 250 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.