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 ScopedTypeVariables #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
import Database.LMDB
import System.Exit
import System.Environment
import qualified Data.ByteString.Char8 as B
import qualified Data.ByteString.Lazy as L
import Data.Maybe
import Data.Monoid
import Text.Pr... | jimcrayne/lmdb-bindings | tools/lmdbtool.hs | agpl-3.0 | 13,322 | 0 | 24 | 4,987 | 4,161 | 2,134 | 2,027 | 252 | 29 |
-- | How to use symbolic map (serial and parallel).
{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE DataKinds #-}
module Main ( main ) where
import Data.Proxy ( Proxy(..) )
import Data.Time.Clock ( getCurrentTime, diffUTCTime )
import Linear ( V2(..), V3(..) )
import Text.Printf ( printf )
import Casadi.DM ( DM )
import Cas... | ghorn/dynobud | dynobud/examples/ParallelMap.hs | lgpl-3.0 | 2,537 | 0 | 18 | 780 | 1,115 | 577 | 538 | 64 | 2 |
{-# LANGUAGE FlexibleInstances #-}
module LogicGoats where
-- 1.
class TooMany a where
tooMany :: a -> Bool
instance TooMany (Int, String) where
tooMany (n,_) = n > 42
-- 2.
instance TooMany (Int, Int) where
tooMany (x,y) = (x+y) > 42
-- 3.
instance (Num a, TooMany a) => TooMany (a, a) where
tooMany (x, y... | dmp1ce/Haskell-Programming-Exercises | Chapter 11/Exercises: Logic Goats.hs | unlicense | 340 | 0 | 8 | 76 | 150 | 85 | 65 | 10 | 0 |
module MonadServ.Types where
import Data.Maybe
import Control.Concurrent.MVar ( MVar, newEmptyMVar, tryTakeMVar, tryPutMVar, withMVar, takeMVar, putMVar )
import Network
import System.IO ( stdout, stderr, stdin, hFlush, hPutStr, hPutStrLn
, hGetLine, hGetChar, hGetBuffering, hSetBuffering, Handle
... | jcaldwell/monadserv | src/MonadServ/Types.hs | bsd-2-clause | 4,963 | 0 | 15 | 2,066 | 995 | 559 | 436 | 79 | 1 |
module Data.Hexagon.DiagonalsSpec where
import SpecHelper
spec :: Spec
spec = do
describe "Data.Hexagon.Diagonals" $ do
context "context" $ do
it "does something" $ do
True `shouldBe` True
main :: IO ()
main = hspec spec
| alios/hexagon | test/Data/Hexagon/DiagonalsSpec.hs | bsd-3-clause | 246 | 0 | 16 | 60 | 77 | 39 | 38 | 10 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Scripts.Execute where
import ClassyPrelude
import Stats.CsvStream
import Appian.Client
import Appian.Instances
import Appian
import Scripts.Common
import qualified Streaming.Prelude as S
import qua... | limaner2002/EPC-tools | USACScripts/src/Scripts/Execute.hs | bsd-3-clause | 4,474 | 0 | 19 | 1,485 | 1,230 | 626 | 604 | 63 | 1 |
-- | A test for ensuring that GHC's supporting language extensions remains in
-- sync with Cabal's own extension list.
--
-- If you have ended up here due to a test failure, please see
-- Note [Adding a language extension] in compiler/main/DynFlags.hs.
module Main (main) where
import Control.Monad
import Data.List
im... | shlevy/ghc | testsuite/tests/driver/T4437.hs | bsd-3-clause | 2,355 | 0 | 16 | 884 | 342 | 183 | 159 | 45 | 1 |
-- #hide
module Data.Time.Clock.CTimeval where
#ifndef mingw32_HOST_OS
-- All Unix-specific, this
#if __GLASGOW_HASKELL__ >= 709
import Foreign
#else
import Foreign.Safe
#endif
import Foreign.C
data CTimeval = MkCTimeval CLong CLong
instance Storable CTimeval where
sizeOf _ = (sizeOf (undefined :: CLong)) * 2
ali... | DavidAlphaFox/ghc | libraries/time/lib/Data/Time/Clock/CTimeval.hs | bsd-3-clause | 889 | 0 | 11 | 162 | 280 | 142 | 138 | 19 | 1 |
{-# LANGUAGE FlexibleContexts, RankNTypes #-}
module EC2Tests.SecurityGroupTests
( runSecurityGroupTests
)
where
import Data.Maybe (fromMaybe)
import Data.Monoid ((<>))
import Data.Text (Text)
import Test.Hspec
import Cloud.AWS.EC2
import Cloud.AWS.EC2.Types
import qualified Cloud.AWS.EC2.Util as Util
im... | worksap-ate/aws-sdk | test/EC2Tests/SecurityGroupTests.hs | bsd-3-clause | 5,959 | 0 | 34 | 2,015 | 1,211 | 621 | 590 | 122 | 1 |
module Exercises1010 where
stops = "pbtdkg"
vowels = "aeiou"
{-
1.
To decompose this,
The strings each need to be broken down into individual lists.
The stop-vowel-stop combinations must be combvined into 3-tuples.
It should enumerate all the possible combinations and generate the words.
The simplest way to do this... | pdmurray/haskell-book-ex | src/ch10/Exercises10.10.hs | bsd-3-clause | 2,310 | 0 | 13 | 572 | 990 | 547 | 443 | 42 | 2 |
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS -Wall #-}
-- |
-- Module : Network.Mail.Client.Gmail
-- License : BSD3
-- Maintainer : Enzo Haussecker
-- Stability : Experimental
-- Portability : Unknown
--
-- A dead simp... | abailly/smtps-gmail | Network/Mail/Client/Gmail.hs | bsd-3-clause | 24,925 | 0 | 17 | 6,968 | 4,537 | 2,335 | 2,202 | 592 | 449 |
{-# LANGUAGE UndecidableInstances, FlexibleInstances, TypeSynonymInstances #-}
{-# OPTIONS_HADDOCK prune, show-extensions #-}
-----------------------------------------------------------------------------
-- |
-- Module : ForSyDe.Core.Utility.Plot
-- Copyright : (c) George Ungureanu, KTH/ICT/ESY 2015-2017
-- Li... | forsyde/forsyde-atom | src/ForSyDe/Atom/Utility/Plot.hs | bsd-3-clause | 27,042 | 0 | 29 | 8,276 | 6,610 | 3,596 | 3,014 | 458 | 7 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
--------------------------------------------------------------------------------
-- |
-- Module: HipChat.AddOn.WebPanel
--
-- WebPanels aka sidebars
--
-- https://www.hipchat.com/docs/apiv2/webpanels
-- https://de... | mjhopkins/hipchat | src/HipChat/AddOn/WebPanel.hs | bsd-3-clause | 2,525 | 0 | 9 | 555 | 372 | 221 | 151 | 37 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
module Main where
import Control.Applicative
import Control.Lens hiding (children, transform)
import Data.Functor.Identity(Identity, runIdentity)
import Data.Monoid
import qualified Data.Text as T
import Prelude hiding (div)
import VirtualHom.Element... | j-mueller/virtual-hom | examples/components/Main.hs | bsd-3-clause | 1,282 | 0 | 16 | 226 | 390 | 218 | 172 | -1 | -1 |
{-# LANGUAGE OverloadedStrings #-}
module Main where
------------------------------------------------------------------------------
import Control.Applicative
import Control.Concurrent
import Control.Concurrent.MVar
import Data.Attoparsec.ByteString
import qualified Data.Text ... | aycanirican/hblacklist | src/Main.hs | bsd-3-clause | 3,562 | 0 | 13 | 795 | 795 | 402 | 393 | 57 | 2 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE TypeFamilies #-}
module Data.Vector.Utils
( binarySearchByKey
, salami
) where
import Data.Bits
import Data.Vector.Generic (Vector)
import qualified Data.Vector.Generic as G
import Data.Function
{-# INLINE binarySearchByKey #-}
binarySearchByKey :: ( Vector ... | schernichkin/BSPM | graphomania/src/Data/Vector/Utils.hs | bsd-3-clause | 1,316 | 0 | 13 | 529 | 504 | 256 | 248 | 34 | 3 |
module Spec where
import Control.Monad.CanSpec
import Test.Tasty
main :: IO ()
main = defaultMain tests
tests :: TestTree
tests = testGroup "Testing..."
[spec]
| athanclark/monad-can | test/Spec.hs | bsd-3-clause | 167 | 0 | 6 | 30 | 51 | 29 | 22 | 8 | 1 |
-------------------------------------------------------------------------------
-- |
-- Module : Control.Lens.Loupe
-- Copyright : (C) 2012-14 Edward Kmett
-- License : BSD-style (see the file LICENSE)
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : provisional
-- Portability : Rank2T... | hvr/lens | src/Control/Lens/Loupe.hs | bsd-3-clause | 1,443 | 0 | 8 | 264 | 177 | 130 | 47 | 16 | 0 |
import System.Environment
import QueryArrow.Serialization
import System.Directory
import Network.Socket
import System.IO
import QueryArrow.RPC.Message
import QueryArrow.Chopper.Data
import Test.Hspec
import Control.Monad
import System.Process
import Data.List
import Text.Parsec
import qualified Text.Parsec.Token as P
i... | xu-hao/QueryArrow | test-QueryArrow/app/runner/TestRunner.hs | bsd-3-clause | 5,808 | 0 | 29 | 2,343 | 1,588 | 767 | 821 | 138 | 6 |
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-|
This module provides replacements for the 'httpServe' and 'quickHttpServe'
functions exported by 'Snap.Http.Server'. By taking a 'Initializer' as an argument,
these functions simplify the glue code that is needed to use Snap ... | duairc/snap-extensions | src/Snap/Extension/Server.hs | bsd-3-clause | 5,721 | 0 | 12 | 1,376 | 832 | 466 | 366 | 74 | 2 |
module SecretBox
( tests -- :: Int -> Tests
) where
import Control.Monad
import Data.ByteString (ByteString)
import Crypto.Encrypt.SecretBox
import Crypto.Key
import Crypto.Nonce
import Test.QuickCheck
import Util
----------... | thoughtpolice/hs-nacl | tests/SecretBox.hs | bsd-3-clause | 932 | 0 | 11 | 237 | 229 | 124 | 105 | 22 | 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.
module Duckling.Dimensions.DA
( allDimensions
) where
import Duckling.Dimensions.Types
allDimensions :: [Se... | facebookincubator/duckling | Duckling/Dimensions/DA.hs | bsd-3-clause | 420 | 0 | 6 | 80 | 63 | 38 | 25 | 9 | 1 |
{-# LANGUAGE TupleSections, ConstraintKinds #-}
-- | Extra functions for creating processes. Specifically variants that automatically check
-- the 'ExitCode' and capture the 'stdout' \/ 'stderr' handles.
module System.Process.Extra(
module System.Process,
system_, systemOutput, systemOutput_
) where
imp... | ndmitchell/extra | src/System/Process/Extra.hs | bsd-3-clause | 1,491 | 0 | 18 | 306 | 322 | 171 | 151 | -1 | -1 |
module FibAsHisto where
-- We would like to do this!
psi Nothing = (0, Nothing) -- 0
-- psi (Just Nothing) = (1, Just Nothing) -- NOT this
psi (Just Nothing) = (1, Just (0, Nothing)) -- 1
psi (Just (Just Nothing)) = (1, Just (1, Just (0, Nothing))) -- 2
psi (Just (Just (Just Nothing))) = (2, Just (1, Just (1, Just (0,... | cutsea110/aop | src/FibAsHisto.hs | bsd-3-clause | 1,727 | 0 | 17 | 403 | 919 | 498 | 421 | 29 | 3 |
{- |
Module : Main
Description : Runs the puffy tool kit (ptk)
Copyright : 2014, Peter Harpending
License : BSD3
Maintainer : Peter Harpending <pharpend2@gmail.com>
Stability : experimental
Portability : Linux
-}
module Main where
import Data.Version
import Paths_puffytools
i... | pharpend/puffytools | ptk/Main.hs | bsd-3-clause | 1,370 | 0 | 10 | 355 | 259 | 138 | 121 | 27 | 1 |
module Main where
main = x
| aavogt/preludeFlag | src/Main.hs | bsd-3-clause | 27 | 0 | 4 | 6 | 9 | 6 | 3 | 2 | 1 |
module Data.HABSim.HABSim
( module Data.HABSim.Types
, sim
) where
import Control.Lens
import Control.Monad.Writer
import qualified Data.DList as D
import qualified Data.HABSim.Internal as I
import Data.HABSim.Lens
import Data.HABSim.Types
import Data.HABSim.Grib2.CSVParse.Types
import qualified Data.HashMap.Laz... | kg4sgp/habsim | haskell/src/Data/HABSim/HABSim.hs | bsd-3-clause | 5,573 | 0 | 15 | 1,843 | 1,645 | 846 | 799 | 161 | 6 |
{-# OPTIONS -XScopedTypeVariables -XOverloadedStrings #-}
module MFlow.Cookies (
CookieT,
Cookie(..),
contentHtml,
cookieuser,
cookieHeaders,
getCookies,
paranoidEncryptCookie,
paranoidDecryptCookie,
encryptCookie,
decryptCookie
)
where
import Control.Monad(MonadPlus(..), guard, replicateM_, whe... | agocorona/MFlow | src/MFlow/Cookies.hs | bsd-3-clause | 5,578 | 1 | 12 | 1,475 | 1,811 | 940 | 871 | 148 | 3 |
{-# LANGUAGE NoOverloadedStrings, TypeSynonymInstances, GADTs, CPP #-}
{- | Description : Wrapper around GHC API, exposing a single `evaluate` interface that runs
a statement, declaration, import, or directive.
This module exports all functions used for evaluation of IHaskell input.
-}
module IHask... | FranklinChen/IHaskell | src/IHaskell/Eval/Evaluate.hs | mit | 50,316 | 0 | 30 | 15,590 | 9,784 | 4,946 | 4,838 | 882 | 30 |
module Rasa.Ext.Cursors
(
-- * Main
cursors
-- * Actions
, delete
, insertText
, findNext
, findNextFrom
, findPrev
, findPrevFrom
-- * Working with Cursor Ranges
, addRange
, getRanges
, setRanges
, rangeDo
, rangeDo_
, overRanges
, moveRangesByN
, moveRangesByC
) where
import... | samcal/rasa | rasa-ext-cursors/src/Rasa/Ext/Cursors.hs | gpl-3.0 | 593 | 0 | 8 | 126 | 114 | 73 | 41 | 23 | 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-ecs/gen/Network/AWS/ECS/StartTask.hs | mpl-2.0 | 7,557 | 0 | 14 | 1,736 | 1,038 | 625 | 413 | 121 | 1 |
-------------------------------------------------------------------------------------------
-- |
-- Module : Control.Category.Hask
-- Copyright : 2008 Edward Kmett
-- License : BSD
--
-- Maintainer : Edward Kmett <ekmett@gmail.com>
-- Stability : experimental
-- Portability : portable
--
-- Make it clearer when we are... | urska19/MFP---Samodejno-racunanje-dvosmernih-preslikav | Control/Category/Hask.hs | apache-2.0 | 578 | 0 | 5 | 71 | 34 | 27 | 7 | 2 | 0 |
-- The Timber compiler <timber-lang.org>
--
-- Copyright 2008-2009 Johan Nordlander <nordland@csee.ltu.se>
-- 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 sour... | mattias-lundell/timber-llvm | src/Depend.hs | bsd-3-clause | 5,456 | 0 | 14 | 2,105 | 1,589 | 854 | 735 | 68 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
module Main (main) where
import System.Environment (getArgs)
import Data.Int (Int16, Int32)
import GDAL
{-
type BandType = Int16
type SummaryType = Int
sumTypeInf, sumTypeNegInf :: SummaryType
sumTypeInf = maxBoun... | meteogrid/bindings-gdal | exe/RasterStats.hs | bsd-3-clause | 1,792 | 0 | 14 | 352 | 465 | 252 | 213 | 41 | 2 |
module Snap where
import Snap.Core
--import Snap.Http.Server (httpServe)
--import Snap.Http.Server.Config
--import Snap.Util.FileServe (getSafePath, serveDirectoryWith, simpleDirectoryConfig)
import Data.Text.Encoding (decodeUtf8With)
import Data.Text.Encoding.Error (lenientDecode)
import qualified Data.Text as T
--... | pgj/ActiveHs | Snap.hs | bsd-3-clause | 700 | 0 | 10 | 84 | 157 | 90 | 67 | 12 | 1 |
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE TupleSections #-}
-- | This module provides the core widget combinators and rendering
-- routines. Everything this library does is in terms of these basic
-- primitives.
module Brick.Widgets.Core
( -- * Basic rendering primitives
emptyWidget
, raw
, txt
, str
, fil... | sisirkoppaka/brick | src/Brick/Widgets/Core.hs | bsd-3-clause | 30,264 | 1 | 27 | 8,113 | 6,474 | 3,438 | 3,036 | -1 | -1 |
{-# LANGUAGE Safe #-}
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.Safe
-- Copyright : (c) The FFI task force 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : ffi@haskell.org... | pparkkin/eta | libraries/base/Foreign/Safe.hs | bsd-3-clause | 1,116 | 0 | 5 | 220 | 115 | 80 | 35 | 19 | 0 |
module Renaming.A2 where
import Renaming.B2
import Renaming.C2
import Renaming.D2
main :: Tree Int ->Bool
main t = isSame (sumSquares (fringe t))
(sumSquares (Renaming.B2.myFringe t)+sumSquares (Renaming.C2.myFringe t))
| kmate/HaRe | test/testdata/Renaming/A2.hs | bsd-3-clause | 240 | 0 | 11 | 46 | 89 | 47 | 42 | 7 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedLabels #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
module TH_overloadedlabels where
import Language.Haskell.TH
import GHC.OverloadedLabels
data T = T { sel :: Int... | ezyang/ghc | testsuite/tests/th/TH_overloadedlabels.hs | bsd-3-clause | 457 | 0 | 8 | 79 | 119 | 69 | 50 | 16 | 1 |
-- Tests enhanced polymorphism
module ShouldCompile where
foo xs = let
f :: Eq a => [a] -> [a]
f [] = []
f xs | null (g [True]) = []
| otherwise = tail (g xs)
g :: Eq b => [b] -> [b]
g [] = []
g xs | null (f "hello") = []
| otherwise = tail (f xs)
in f xs
| urbanslug/ghc | testsuite/tests/typecheck/should_compile/tc207.hs | bsd-3-clause | 307 | 2 | 15 | 116 | 175 | 87 | 88 | 11 | 3 |
module Bilinear4 where
import qualified Vector2f as V2
import qualified Vector4f as V4
interpolate :: (V4.T, V4.T, V4.T, V4.T) -> V2.T -> V4.T
interpolate (x0y0, x1y0, x0y1, x1y1) position =
let u0 = V4.interpolate x0y0 (V2.x position) x1y0
u1 = V4.interpolate x0y1 (V2.x position) x1y1
in V4.interpolate u0 ... | io7m/r2 | com.io7m.r2.documentation/src/main/resources/com/io7m/r2/documentation/haskell/Bilinear4.hs | isc | 339 | 0 | 12 | 63 | 142 | 79 | 63 | 8 | 1 |
module RPG.Shop where
import Control.Monad (guard, when)
import Control.Arrow ((&&&))
import Data.Maybe (isJust)
class IsItem a where
item :: a -> Item
data Item =
Item { name :: String
, itemCost :: Int
, itemDamage :: Int
, itemArmor :: Int
} deriving (Show, Eq)
newtype Weapon = We... | corajr/adventofcode2015 | 21/src/RPG/Shop.hs | mit | 2,504 | 0 | 12 | 783 | 1,026 | 542 | 484 | 78 | 2 |
countingLatticePath :: Int -> Integer
countingLatticePath n = head $ fn (take (n+1) $ repeat 1)
where
fn r@(x:[]) = r -- result
fn xs = let t = tail xs
h = head t * 2
in fn $ foldl (\acc v -> acc ++ [last acc + v]) [h] (tail t)
| samidarko/euler | problem015.hs | mit | 269 | 0 | 16 | 94 | 146 | 74 | 72 | 6 | 2 |
type PhoneNumber = String
type Name = String
type PhoneBook = [(Name, PhoneNumber)]
inPhoneBook :: Name -> PhoneNumber -> PhoneBook -> Bool
inPhoneBook name pnumber pbook = (name, pnumber) `elem` pbook
phoneBook =
[("betty", "555-2938")
,("bonnie", "452-2928")
,("patsy", "493-2928")
,("lucille", "205-2928")
... | rglew/lyah | phonebook.hs | mit | 374 | 0 | 7 | 63 | 128 | 80 | 48 | 12 | 1 |
{-# Language DeriveGeneric #-}
{-# Language DeriveFoldable #-}
{-# Language DeriveFunctor #-}
{-# Language DeriveTraversable #-}
module Unison.Remote where
import Data.Aeson (ToJSON(..),FromJSON(..))
import Data.ByteString (ByteString)
import Data.Text (Text)
import Data.Text.Encoding (decodeUtf8, encodeUtf8)
import ... | nightscape/platform | shared/src/Unison/Remote.hs | mit | 6,451 | 0 | 12 | 1,334 | 1,512 | 790 | 722 | 87 | 0 |
module CFDI.Types.Concept where
import CFDI.Chainable
import CFDI.Types.Amount
import CFDI.Types.ConceptTaxes
import CFDI.Types.CustomInfo
import CFDI.Types.MeasurementUnit
import CFDI.Types.ProductDescription
import CFDI.Types.ProductId
import CFDI.Types.ProductOrService
import CFDI.Types.ProductUnit
import CFDI.Type... | yusent/cfdis | src/CFDI/Types/Concept.hs | mit | 2,408 | 0 | 18 | 607 | 587 | 307 | 280 | 71 | 0 |
-- Copyright (c) 2016-present, SoundCloud Ltd.
-- All rights reserved.
--
-- This source code is distributed under the terms of a MIT license,
-- found in the LICENSE file.
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
module Kubern... | soundcloud/haskell-kubernetes | lib/Kubernetes/Model/V1/RBDVolumeSource.hs | mit | 2,508 | 0 | 14 | 862 | 442 | 260 | 182 | 58 | 1 |
{-# LANGUAGE OverloadedStrings #-}
import Asterius.Types (JSString (JSString), JSVal (JSVal),
fromJSString, toJSString)
import qualified Control.Foldl as Foldl
import Data.Functor.Identity (Identity (runIdentity))
import Data.Monoid ... | igrep/igrep-cashbook | hs2/wasm/Main.hs | mit | 944 | 1 | 13 | 254 | 226 | 130 | 96 | 20 | 1 |
-- Copyright (c) Microsoft. All rights reserved.
-- Licensed under the MIT license. See LICENSE file in the project root for full license information.
{-# LANGUAGE OverloadedStrings, RecordWildCards, DeriveGeneric #-}
{-|
Copyright : (c) Microsoft
License : MIT
Maintainer : adamsap@microsoft.com
Stability : ... | alfpark/bond | compiler/src/Language/Bond/Syntax/Types.hs | mit | 7,040 | 0 | 9 | 2,128 | 852 | 554 | 298 | 115 | 0 |
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeOperators #-}
module Protop.Core.Natural
( N(..)
, Zero(..)
, Succ(..)
, Rec(..)
, RECZ(..)
, RECS(..)
, REC(..)
, Add
, add
, Mul
, mu... | brunjlar/protop | src/Protop/Core/Natural.hs | mit | 4,667 | 0 | 16 | 1,792 | 1,955 | 1,016 | 939 | 129 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeFamilies #-}
module ZoomHub.Types.ContentMIME
( ContentMIME,
ContentMIME' (ContentMIME),
unContentMIME,
fromText,
)
where
import Codec.MIME.Parse (par... | zoomhub/zoomhub | src/ZoomHub/Types/ContentMIME.hs | mit | 1,219 | 0 | 9 | 191 | 297 | 179 | 118 | 32 | 1 |
import Test.QuickCheck
import Test.QuickCheck.Checkers
import Test.QuickCheck.Classes
import Control.Monad (join)
data List a = Nil | Cons a (List a) deriving (Show)
instance Monoid (List a) where
mempty = Nil
Nil `mappend` x = x
x `mappend` Nil = x
Cons x xs `mappend` ys = Cons x (xs `mappend` ys)
... | JustinUnger/haskell-book | ch18/ch18-ex-4.hs | mit | 1,333 | 0 | 12 | 372 | 615 | 303 | 312 | 41 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StaticPointers, TypeFamilies, FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving, MultiParamTypeClasses #-}
import Haste.App
newtype LoggingServer a = L (Server a)
deriving (Functor, Applicative, Monad, MonadIO)
warn :: RemotePtr (String -> LoggingServer ()... | valderman/haste-app | examples/logging.hs | mit | 839 | 0 | 10 | 142 | 236 | 119 | 117 | 22 | 1 |
{-# htermination compare :: Bool -> Bool -> Ordering #-}
| ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/full_haskell/Prelude_compare_8.hs | mit | 57 | 0 | 2 | 10 | 3 | 2 | 1 | 1 | 0 |
{-# LANGUAGE RecordWildCards #-}
module Network.Haskbot.Internal.Environment
( Environment (..)
, bootstrap
, HaskbotM
, EnvironT
) where
import Control.Concurrent.STM.TVar (TVar, newTVarIO)
import Control.Monad.Error (Error, ErrorT)
import Control.Monad.Error.Class (noMsg, strMsg)
import Control.Monad.Reader (Reader... | bendyworks/haskbot-plugins | haskbot-core-0.2/src/Network/Haskbot/Internal/Environment.hs | mit | 1,399 | 0 | 11 | 290 | 349 | 206 | 143 | 33 | 1 |
-- Helpers/tests/StringsSpec.hs
import Test.Hspec
import Helpers.Strings
main :: IO()
main = hspec $ do
describe "permute" $ do
it "Should permute a short String" $ do
"231" `elem` (permute "123") `shouldBe` True
it "Should permute a long String" $ do
"46123" `elem` (permut... | Sgoettschkes/learning | haskell/ProjectEuler/Helpers/tests/StringsSpec.hs | mit | 658 | 1 | 17 | 198 | 203 | 101 | 102 | 16 | 1 |
-- This is for GHCi use only - it will be replaced by Cabal with the real implementation.
module Paths (getDataDir) where
import System.Directory
getDataDir = getCurrentDirectory
| sevcsik/sevdev-hakyll | generator/Paths.hs | mit | 183 | 0 | 4 | 31 | 20 | 13 | 7 | 3 | 1 |
-----------------------------------------------------------------------------
--
-- Module : Keys
-- Copyright :
-- License : AllRightsReserved
--
-- Maintainer :
-- Stability :
-- Portability :
--
-- |
--
-----------------------------------------------------------------------------
module App.Keys
... | triplepointfive/hapi | src/App/Keys.hs | gpl-2.0 | 1,033 | 0 | 8 | 307 | 305 | 151 | 154 | 34 | 27 |
{-# LANGUAGE FlexibleInstances, TemplateHaskell, NoMonomorphismRestriction, TupleSections, MultiParamTypeClasses, ScopedTypeVariables, FlexibleContexts, FunctionalDependencies, TypeFamilies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS -Wall #-}
-- {-# OPTIONS -ddump-... | DanielSchuessler/hstri | Simplicial/DeltaSet1.hs | gpl-3.0 | 3,310 | 0 | 20 | 796 | 967 | 532 | 435 | -1 | -1 |
module Graphics.UI.Bottle.MainLoop (mainLoopAnim, mainLoopImage, mainLoopWidget) where
import Control.Applicative ((<$>))
import Control.Concurrent (threadDelay)
import Control.Lens.Operators
import Control.Lens.Tuple
import Control.Monad (when)
import Data.IORef
import Data.MRUMemo (memoIO)
import Data.Time.Clock (ge... | Mathnerd314/lamdu | bottlelib/Graphics/UI/Bottle/MainLoop.hs | gpl-3.0 | 5,700 | 0 | 19 | 1,311 | 1,654 | 867 | 787 | -1 | -1 |
module PrettyPrint where
import Map
import CommandAST
import Check
import Text.PrettyPrint.HughesPJ hiding (Str)
unescape :: String -> String
unescape [] = []
unescape ('\\':(x:xs)) = case x of
'\\' -> '\\' : unescape xs
'r' -> '\r' : unescape xs... | jgalat0/bot | src/PrettyPrint.hs | gpl-3.0 | 7,958 | 0 | 13 | 3,131 | 2,524 | 1,258 | 1,266 | 141 | 25 |
-- | Simple fork example
module Fork (runExample) where
import Control.Concurrent
import Control.Monad
import System.IO
-- | Shows an example on the use of fork
runExample :: IO ()
runExample = do
forkIO $ replicateM_ 100 (putChar 'A')
replicateM_ 100 (putChar 'B')
| capitanbatata/marlows-parconc-exercises | parconc-ch07/src/Fork.hs | gpl-3.0 | 303 | 0 | 10 | 79 | 73 | 39 | 34 | 8 | 1 |
module HEP.Physics.TTBar.Model.SM where
import HEP.Physics.TTBar.Model.Mandelstam
import HEP.Util.Functions
-- | top quark pole mass
mt :: Double
mt = 174.3
-- | Parton-level total cross section of SM : qqbar
-- reference : Nason, Dawson, Ellis <http://141.211.99.67:8080/pub/Study/TTbarPhysics/NasonDawsonEllis1... | wavewave/ttbar | lib/HEP/Physics/TTBar/Model/SM.hs | gpl-3.0 | 3,023 | 0 | 33 | 810 | 1,227 | 647 | 580 | 54 | 2 |
{-# LANGUAGE RecordWildCards,NamedFieldPuns #-}
module Main where
import System.IO
import Hs243.Console
import Hs243.Logic
import System.Random (getStdRandom,randomR)
main = do
hSetBuffering stdout NoBuffering
hSetBuffering stdin NoBuffering
hSetEcho stdout False
actualmain $ Config (getStdRandom (ra... | cetu86/hs243 | exe/Main.hs | gpl-3.0 | 556 | 0 | 14 | 190 | 146 | 81 | 65 | 16 | 1 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE BangPatterns #-}
{-# OPTIONS_GHC -fno-liberate-case #-}
module Linguistics.ThreeWay.Simple where
import Data.Array.Repa.Index
import qualified Data.Vector as V
import qualified Data.Vector.Unboxed as VU
import qualified Data.Vector.Fusion... | choener/WordAlignment | _old/ThreeWay/Simple.hs | gpl-3.0 | 4,986 | 0 | 18 | 932 | 2,052 | 1,132 | 920 | 102 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module NGramCrackers.Parsers.Body
(
parseSent
, parseParagraph
, parseMultiPara
, wordString
) where
import Data.Text as T
import Text.Parsec.Text as PT
import Control.Applicative ((<$>), (<*), (*>), (<*>), (<|>), liftA3)
import Data.Functor (void)
import Data.List (concat, unwor... | R-Morgan/NGramCrackers | src/NGramCrackers/Parsers/Body.hs | agpl-3.0 | 3,644 | 0 | 12 | 841 | 778 | 422 | 356 | 58 | 1 |
module Git.Command.Merge (run) where
run :: [String] -> IO ()
run args = return () | wereHamster/yag | Git/Command/Merge.hs | unlicense | 83 | 0 | 7 | 15 | 42 | 23 | 19 | 3 | 1 |
{-#LANGUAGE GADTs#-}
module Data.P440.XML.Render where
import Prelude hiding (sequence)
import Data.Text (Text)
import qualified Data.Map.Lazy as M
import Text.XML
class ToNode a where
toNode :: a -> Node
instance ToNode Node where
toNode = id
class ToSequence a where
toSequence :: a -> [Node]
data ... | Macil-dev/p440 | src/Data/P440/XML/Render.hs | unlicense | 1,653 | 0 | 11 | 373 | 615 | 326 | 289 | 47 | 1 |
{-#LANGUAGE PatternSynonyms #-}
{-#LANGUAGE ViewPatterns #-}
module SIL where
import Control.DeepSeq
import Control.Monad.Except
import Control.Monad.State.Lazy
import Data.Char
-- if classes were categories, this would be an EndoFunctor?
class EndoMapper a where
endoMap :: (a -> a) -> a -> a
class EitherEndoMappe... | sfultong/stand-in-language | src/SIL.hs | apache-2.0 | 12,822 | 0 | 30 | 3,601 | 5,224 | 2,624 | 2,600 | 329 | 2 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QGraphicsSceneContextMenuEvent.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:35
Warning : this file is machi... | keera-studios/hsQt | Qtc/Enums/Gui/QGraphicsSceneContextMenuEvent.hs | bsd-2-clause | 2,958 | 0 | 18 | 535 | 612 | 310 | 302 | 55 | 1 |
-- 55
import Data.Array((!), (//), listArray)
import Euler(fromDigits, primeSieve, toDigitsBase)
nn = 1000000
genCircular n = map (\x -> fromDigits $ take k $ drop x $ cycle ds) [1..k]
where ds = toDigitsBase 10 n
k = length ds
countCircularPrimes n = length $ filter isCircularPrime primes
where pr... | higgsd/euler | hs/35.hs | bsd-2-clause | 519 | 0 | 11 | 124 | 218 | 117 | 101 | -1 | -1 |
{-# LANGUAGE Haskell2010 #-}
module OrphanInstancesClass (AClass(..)) where
class AClass a where
aClass :: a -> Int
| haskell/haddock | html-test/src/OrphanInstancesClass.hs | bsd-2-clause | 119 | 0 | 7 | 20 | 32 | 19 | 13 | 4 | 0 |
{-# LANGUAGE OverloadedStrings #-}
-- | Visualize a collection of images as a three-dimensional volume.
module Web.Lightning.Plots.Volume
(
VolumePlot(..)
, Visualization (..)
, volumePlot
)
where
--------------------------------------------------------------------------------
import Data.Aeso... | cmoresid/lightning-haskell | src/Web/Lightning/Plots/Volume.hs | bsd-3-clause | 1,965 | 0 | 10 | 602 | 276 | 166 | 110 | 28 | 1 |
module HKatalog where
import System.Environment
-- | 'main' runs the main program
main :: IO ()
main = getArgs >>= print . haqify . head
haqify :: String -> String
haqify s = "Haq! " ++ s
| txominpelu/hkatalog | HKatalog.hs | bsd-3-clause | 191 | 0 | 7 | 40 | 58 | 32 | 26 | 6 | 1 |
{- |
File paths of interest to Dyre, and related values.
-}
module Config.Dyre.Paths where
import Control.Monad ( filterM )
import Data.List ( isSuffixOf )
import System.Info (os, arch)
import System.FilePath
( (</>), (<.>), takeExtension, splitExtension )
import System.Directory
( doesDirecto... | willdonnelly/dyre | Config/Dyre/Paths.hs | bsd-3-clause | 4,203 | 0 | 17 | 967 | 970 | 517 | 453 | 82 | 5 |
{-# OPTIONS_HADDOCK hide #-}
module Graphics.Gloss.Internals.Interface.Simulate.State
( State (..)
, stateInit )
where
-- | Simulation state
data State
= State
{ -- | The iteration number we're up to.
stateIteration :: !Integer
-- | How many simulation set... | ardumont/snake | deps/gloss/Graphics/Gloss/Internals/Interface/Simulate/State.hs | bsd-3-clause | 785 | 0 | 9 | 316 | 95 | 61 | 34 | 21 | 1 |
{-# LANGUAGE TypeFamilies, ViewPatterns #-}
module Data.Coordinates where
class Coord c where
type Vect c :: *
type Direction c :: *
type Distance c :: *
type instance Vect c = (Direction c, Distance c )
distance :: c -> c -> Vect c
move :: Vect c -> c -> c
newtype Point = Point { unP ::... | onomatic/sigmund | src/Data/Coordinates.hs | bsd-3-clause | 875 | 0 | 12 | 351 | 380 | 212 | 168 | 21 | 1 |
module SimpleModule.Evaluator
( valueOf
, run
, eval
, evalProgram
) where
import Control.Applicative ((<|>))
import Control.Arrow (second)
import Control.Monad.Except
import Data.Maybe (fromMaybe)
import SimpleModule.Data
import ... | li-zhirui/EoplLangs | src/SimpleModule/Evaluator.hs | bsd-3-clause | 9,682 | 0 | 14 | 2,125 | 3,285 | 1,689 | 1,596 | 210 | 2 |
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
module Content.Contents
( parserContents
)
where
import Data.OrgMode.Parse.Attoparsec.Content (parseContents)
import Data.OrgMode.Types
import Data.Text (Text)
import Test.Tasty
im... | digitalmentat/orgmode-parse | test/Content/Contents.hs | bsd-3-clause | 2,477 | 0 | 20 | 834 | 514 | 278 | 236 | 55 | 1 |
module Pipes.Exhaustion (
inexhaustible
) where
import Control.Exception
import Pipes
import Pipes.Core
inexhaustible :: Monad m => Proxy a' a b' b m r -> Proxy a' a b' b m x
inexhaustible p = p *> (throw . AssertionFailed $ "Inexhaustible proxy exhausted.")
| Rotaerk/iircc | src/common/Pipes/Exhaustion.hs | bsd-3-clause | 263 | 0 | 8 | 48 | 89 | 47 | 42 | 7 | 1 |
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Config where
import Control.Monad.Except (ExceptT(..))
import Data.Aeson
import qualified Data.Text as TS
import Data.Yaml
import Network.URI (URI, parseURI)
import ... | savannidgerinel/mead | app/Config.hs | bsd-3-clause | 1,068 | 0 | 14 | 372 | 254 | 143 | 111 | 28 | 1 |
{-# LANGUAGE CPP #-}
#ifdef MainCall
#else
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE DeriveTraversable #... | nikivazou/verified_string_matching | src/Proofs/ListMonoidLemmata.hs | bsd-3-clause | 2,882 | 40 | 12 | 822 | 785 | 396 | 389 | 60 | 1 |
--------------------------------------------------------------------------------
-- Copyright © 2011 National Institute of Aerospace / Galois, Inc.
--------------------------------------------------------------------------------
{-# LANGUAGE GADTs #-}
module Copilot.Tools.CBMC
( Params (..)
, defaultParams
, g... | niswegmann/copilot-cbmc | src/Copilot/Tools/CBMC.hs | bsd-3-clause | 4,825 | 0 | 15 | 856 | 1,204 | 624 | 580 | 109 | 11 |
{-# LANGUAGE TupleSections, OverloadedStrings #-}
module Handler.Home where
import Import
import BreakthroughGame
import AgentGeneric
import GenericGame
import qualified Data.Text as T
import Data.List (tail)
-- boardRepr :: Text
-- boardRepr b = T.pack $ reprToRow $ boardToDense b
gameRepr g = T.pack $ reverse $ t... | Tener/deeplearning-thesis | yesod/abaloney/Handler/Home.hs | bsd-3-clause | 1,591 | 0 | 13 | 356 | 332 | 175 | 157 | 33 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Data.SBV.Examples.Misc.Auxiliary
-- Copyright : (c) Levent Erkok
-- License : BSD3
-- Maintainer : erkokl@gmail.com
-- Stability : experimental
--
-- Demonstrates model construction with auxiliary variables... | josefs/sbv | Data/SBV/Examples/Misc/Auxiliary.hs | bsd-3-clause | 2,257 | 0 | 9 | 465 | 187 | 121 | 66 | 12 | 1 |
module Network.DGS.Status.Imports
(
module Data.List
, module Data.Monoid
, module Network.DGS.Atto
, module Network.DGS.Bulletin
, module Network.DGS.Game
, module Network.DGS.Message
, module Network.DGS.Misc
, module Network.DGS.Monad
, module Network.DGS.Time
, module Network.DGS.User
, UTCTime
, Col... | dmwit/dgs | Network/DGS/Status/Imports.hs | bsd-3-clause | 708 | 6 | 6 | 92 | 200 | 135 | 65 | 27 | 0 |
module Shared.ParserTools
( sepEndBy
, sepEndBy1
) where
import Control.Applicative
import Data.Attoparsec.Text
sepEndBy :: Alternative f => f a -> f b -> f [a]
sepEndBy p sep = sepBy p sep <* optional sep
sepEndBy1 :: Alternative m => m a -> m sep -> m [a]
sepEndBy1 p sep = (:) <$> p... | Rydgel/advent-of-code-2016 | src/Shared/ParserTools.hs | bsd-3-clause | 363 | 0 | 10 | 99 | 155 | 79 | 76 | 9 | 1 |
module Fay.Exts where
import qualified Language.Haskell.Exts.Annotated as A
type X = A.SrcSpanInfo
type Alt = A.Alt X
type BangType = A.BangType X
type ClassDecl = A.ClassDecl X
type Decl = A.Decl X
type DeclHead = A.DeclHead X
type Ex = A.Exp X
type Exp = A.Exp X
type ExportSpec = A.ExportSpec X
type FieldDecl = A.... | fpco/fay | src/Fay/Exts.hs | bsd-3-clause | 2,092 | 0 | 12 | 413 | 891 | 464 | 427 | 59 | 3 |
module Main where
import Data.Semigroup
import Data.Version (showVersion)
import Options.Applicative
import qualified Paths_surface as Library (version)
import Surface.Command
command :: Parser Command
command
= flag' Interactive (long "interactive" <> short 'i' <> help "Launch the interactive REPL.")
<|> flag Ru... | robrix/surface | app/Main.hs | bsd-3-clause | 1,063 | 0 | 11 | 170 | 263 | 134 | 129 | 23 | 1 |
-------------------------------------------------------------------------
-- Main
-------------------------------------------------------------------------
{-
text2text converts a nested combination of typed text fragments to 1 typed output. A text fragment is delimited by '@@[<type>' and '@@]',
Text is processed in t... | atzedijkstra/uhc-doc | src/text2text/Text2Text.hs | bsd-3-clause | 11,348 | 0 | 18 | 3,729 | 1,018 | 561 | 457 | 82 | 5 |
{-# LANGUAGE TypeFamilies, GeneralizedNewtypeDeriving, OverloadedStrings, GADTs #-}
module SqlConnection where
import Control.Monad.Trans.Resource (runResourceT, ResourceT)
import Data.Text.Encoding (encodeUtf8)
import Web.Scotty
import Database.Persist
import Database.Persist.TH
import Database.Persist.Postgresql
i... | chengzh2008/hpffp | src/ch19-ApplyingStructure/sqlConnection.hs | bsd-3-clause | 539 | 0 | 18 | 74 | 161 | 91 | 70 | 13 | 1 |
{-# OPTIONS_GHC -Wall #-}
{-# OPTIONS_GHC -Wno-missing-signatures #-}
{-# OPTIONS_GHC -fwarn-incomplete-uni-patterns #-}
module Day13 where
import Test.Hspec
import Data.Bits
import Control.Monad (guard)
import qualified Data.Set as Set
import Utils
-- Input DSL
-- utils
isWall :: Int -> (Int, Int) -> Bool
isWal... | guibou/AdventOfCode2016 | src/Day13.hs | bsd-3-clause | 1,748 | 0 | 17 | 574 | 662 | 361 | 301 | 45 | 2 |
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE ConstraintKinds #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE OverlappingInstances #-}
module Top... | edgarklerks/dotfiles | .xmonad/TopicAbstractMachine.hs | bsd-2-clause | 9,081 | 1 | 15 | 2,924 | 2,718 | 1,423 | 1,295 | 190 | 1 |
{-# OPTIONS_GHC -fno-implicit-prelude #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.ForeignPtr
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
-- Maintainer : ffi@haskell.org
-... | alekar/hugs | packages/base/Foreign/ForeignPtr.hs | bsd-3-clause | 6,599 | 10 | 12 | 1,171 | 948 | 520 | 428 | 49 | 1 |
{-# LANGUAGE CPP, ScopedTypeVariables #-}
module TcErrors(
reportUnsolved, reportAllUnsolved, warnAllUnsolved,
warnDefaulting,
solverDepthErrorTcS
) where
#include "HsVersions.h"
import TcRnTypes
import TcRnMonad
import TcMType
import TcType
import RnEnv( unknownNameSuggestions )
import Type
... | sgillespie/ghc | compiler/typecheck/TcErrors.hs | bsd-3-clause | 112,072 | 1 | 25 | 34,531 | 20,030 | 10,204 | 9,826 | -1 | -1 |
{-# LANGUAGE Unsafe #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK hide #-}
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.ForeignPtr.Imp
-- Copyright : (c) The University of Glasgow 2001
-- License : BSD-style (see the file libraries/ba... | rahulmutt/ghcvm | libraries/base/Foreign/ForeignPtr/Imp.hs | bsd-3-clause | 4,500 | 0 | 12 | 947 | 492 | 275 | 217 | 50 | 1 |
--
-- Lorem ipsum dolor sit. Amet perferendis metus feugiat. Suspendisse massa egestas quam.
-- Morbi vivamus dolor nisl mauris ultricies molestie lacus. Proin ad nullam id integer.
--
{-
Eget orci rutrum vel. Elit nullam amet integer. Fusce tellus ut massa. Maecenas risus dictum risus.
Augue aliquam moles... | beni55/cgrep | test/test.hs | gpl-2.0 | 776 | 0 | 7 | 153 | 34 | 21 | 13 | 5 | 1 |
-- | This module declares functions and data types for
-- JAR meta-information classes, such as MANIFEST.MF etc.
module Java.META
(module Java.META.Types,
module Java.META.Parser,
module Java.META.Spec,
Manifest (..),
ManifestEntry (..))
where
import qualified Data.Map as M
import Data.Map ((!))
impor... | ledyba/hs-java | Java/META.hs | lgpl-3.0 | 2,523 | 0 | 13 | 788 | 695 | 387 | 308 | 65 | 0 |
module DeadModule where
deadFun1 x y
= [x,y]
| forste/haReFork | StrategyLib-4.0-beta/examples/haskell/testsuite/DeadModule.hs | bsd-3-clause | 49 | 0 | 5 | 12 | 20 | 12 | 8 | 3 | 1 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
-- |
module Stack.Types.Package where
import Control.DeepSeq
import Control.Exception hiding (try,catch)
import Co... | harendra-kumar/stack | src/Stack/Types/Package.hs | bsd-3-clause | 15,066 | 0 | 18 | 3,934 | 3,022 | 1,648 | 1,374 | 371 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.