commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
65903fc4368aaa3519b8948c01e9c8d2747a5b00
src/FrequencyMapUsing.hs
src/FrequencyMapUsing.hs
module FrequencyMapUsing where import qualified Data.Map as Map import Control.Parallel.Strategies import FrequencyMap (fromMap, frequencyMap) import Shared (split) type Count a = (a, Int) type FrequencyCount a = [Count a] type FrequencyMap a = Map.Map a Int frequency :: (NFData a, Ord a) => [a] -> FrequencyCount ...
module FrequencyMapUsing where import qualified Data.Map as Map import Control.Parallel.Strategies import Control.DeepSeq import FrequencyMap (fromMap, frequencyMap) import Shared (split) type Count a = (a, Int) type FrequencyCount a = [Count a] type FrequencyMap a = Map.Map a Int frequency :: (NFData a, Ord a) =>...
Speed up freq7 by using a strategy of (rpar . force)
Speed up freq7 by using a strategy of (rpar . force)
Haskell
mit
apauley/parallel-frequency
f24415f0d84eae7e499d231c26d592749963f6a2
dph-prim-seq/Data/Array/Parallel/Unlifted.hs
dph-prim-seq/Data/Array/Parallel/Unlifted.hs
{-# LANGUAGE CPP #-} #include "DPH_Header.h" import Data.Array.Parallel.Unlifted.Sequential hiding ((!:), (+:+), (>:), (^+:+^), toUSegd) import qualified Data.Array.Parallel.Unlifted.Sequential as U #include "DPH_Interface.h" length = lengthU empty = emptyU replicate = replicateU replicateEach = replicateEachU ...
{-# LANGUAGE CPP #-} #include "DPH_Header.h" import Data.Array.Parallel.Unlifted.Sequential hiding ((!:), (+:+), (>:), (^+:+^), toUSegd) import qualified Data.Array.Parallel.Unlifted.Sequential as U #include "DPH_Interface.h" length = lengthU empty = emptyU replicate = replicateU replicateEach = replicateEachU ...
Implement sum_s in seq backend
Implement sum_s in seq backend
Haskell
bsd-3-clause
mainland/dph,mainland/dph,mainland/dph
42e61035af9424ae44dce2a204506b4b5015a8ad
Interp.hs
Interp.hs
module Interp where import AST (Marker(..)) import qualified Utils fuzzyMatch :: Marker -- ^ Possible match -> Marker -- ^ Search Criteria -> Bool -- ^ True if fuzzy match, False otherwise. fuzzyMatch (Visual _ _ _) (Line _ _ _) = False fuzzyMatch (Line _ _ _) (Visual _ _ _) = False fuzzyMatch...
module Interp where import AST (Marker(..), PromptScene(..), CueGroup(..), pMarkers, pMarker) import qualified Utils fuzzyMatch :: Marker -- ^ Possible match -> Marker -- ^ Search Criteria -> Bool -- ^ True if fuzzy match, False otherwise. fuzzyMatch (Visual _ _ _) (Line _ _ _) = False fuzzyMa...
Add scene level ambiguity checker
Add scene level ambiguity checker
Haskell
mit
rwoll-hmc/project
a0e026aac7d101a87b77b40c4a59c88c2f34ca47
src/CategoryConfig.hs
src/CategoryConfig.hs
module CategoryConfig where import Category -- Predefined categories and their threshold which can change food, transportation, monthly, grocery, clothes, books, fun, medical, others :: Category food = Cat { name = "food", threshold = 200 } transportation = Cat { name = "transportation", thres...
module CategoryConfig where import Category -- Predefined categories and their threshold which can change food, transportation, monthly, grocery, clothes, books, fun, others :: Category food = Cat { name = "food", threshold = 0.00 } transportation = Cat { name = "transportation", threshold = 0....
Remove old and irrelevant personal config and put template
Remove old and irrelevant personal config and put template
Haskell
bsd-3-clause
Sam-Serpoosh/WatchIt
ce2020018f2d084938c8cef85aa2559e3dcbb610
test/UniverseSpec.hs
test/UniverseSpec.hs
module UniverseSpec (spec) where import Test.Hspec import Test.Hspec.QuickCheck import Abyme.Universe import Abyme.Universe.Generate import Abyme.Addressing spec :: Spec spec = describe "addressing" $ do prop "square occupies its location" $ \u -> do s <- randomSquare u return $ Just s ==...
module UniverseSpec (spec) where import Test.Hspec import Test.Hspec.QuickCheck import Abyme.Universe import Abyme.Universe.Generate import Abyme.Universe.Normalise import Abyme.Addressing import Abyme.Chunk spec :: Spec spec = do describe "addressing" $ do prop "square occupies its location" $ \u -> do ...
Add basic test for splitChunkIntoRegion
Add basic test for splitChunkIntoRegion
Haskell
bsd-3-clause
mvr/abyme
85bed36effc51e282fb3e2d05c0ec3114108c0dc
Betty/Auth.hs
Betty/Auth.hs
------------------------------------------------------------------------ -- -- Some customizations to Yesod.Auth.Email. -- -- Yesod.Auth.Email is good enough out of the box, although some -- things could use some work: (1) the login form (it would be nice to -- have hints about password retrieval and new accounts in th...
------------------------------------------------------------------------ -- -- Some customizations to Yesod.Auth.Email. -- -- Yesod.Auth.Email is good enough out of the box, although some -- things could use some work: (1) the login form (it would be nice to -- have hints about password retrieval and new accounts in th...
Add value="" to login form.
Add value="" to login form.
Haskell
agpl-3.0
sajith/betty-web
1f72a8dd9882b1d3e4c74e9f87fcafc9b1149e9c
tests/Tests/RootFinding.hs
tests/Tests/RootFinding.hs
-- | module Tests.RootFinding ( tests ) where import Test.Framework import Test.Framework.Providers.HUnit import Numeric.RootFinding import Tests.Helpers tests :: Test tests = testGroup "Root finding" [ testGroup "Ridders" [ testAssertion "sin x - 0.525 [exact]" $ testRidderSin0_525 0 , testAssertion "si...
-- | module Tests.RootFinding ( tests ) where import Test.Framework import Test.Framework.Providers.HUnit import Numeric.RootFinding import Tests.Helpers tests :: Test tests = testGroup "Root finding" [ testGroup "Ridders" [ testAssertion "sin x - 0.525 [exact]" $ testRiddersSin0_525 0 , testAssertion "s...
Add tests for Newton-Raphson method
Add tests for Newton-Raphson method
Haskell
bsd-2-clause
bos/math-functions,Shimuuar/math-functions,bos/math-functions,Shimuuar/math-functions
c014459ca2b8b64ba8dd9548ee8ebea4229790c9
Examples/Test/OrderOnly.hs
Examples/Test/OrderOnly.hs
module Examples.Test.OrderOnly(main) where import Development.Shake import Examples.Util main = shaken test $ \args obj -> do want $ map obj args obj "bar.txt" *> \out -> do alwaysRerun writeFile' out =<< liftIO (readFile $ obj "bar.in") obj "foo.txt" *> \out -> do let src = ob...
module Examples.Test.OrderOnly(main) where import Development.Shake import Examples.Util main = shaken test $ \args obj -> do want $ map obj args obj "bar.txt" *> \out -> do alwaysRerun writeFile' out =<< liftIO (readFile $ obj "bar.in") obj "foo.txt" *> \out -> do let src = ob...
Add another --sleep to the orderOnly test
Add another --sleep to the orderOnly test
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
9b450606b1bb91f3da87eea10747eeb7a44cf340
test/Handler/HomeSpec.hs
test/Handler/HomeSpec.hs
module Handler.HomeSpec (spec) where import TestImport spec :: Spec spec = withApp $ do describe "Homepage" $ do it "loads the index and checks it looks right" $ do get HomeR statusIs 200 htmlAnyContain "h1" "a modern framework for blazing fast websites" request $...
module Handler.HomeSpec (spec) where import TestImport spec :: Spec spec = withApp $ do describe "Homepage" $ do it "loads the index and checks it looks right" $ do get HomeR statusIs 200 htmlAnyContain "h1" "Opiskelijamajoitus" statusIs 200 -- This is a ...
Remove default tests, test h1 correctly
Remove default tests, test h1 correctly
Haskell
agpl-3.0
Lasokki/omanet
fb7bb6d191a383adfe7017588f14efa058e3d9b4
travis.hs
travis.hs
import System.Time.Extra import System.Process.Extra import Control.Exception.Extra main :: IO () main = do let timed x = do putStrLn $ "\n\nSearching for " ++ x (time,_) <- duration $ system_ $ "hoogle +RTS -T -M1.8G -K2000K -RTS " ++ show x putStrLn $ "Search " ++ show x ++ ...
import System.Time.Extra import System.Process.Extra import Control.Exception.Extra main :: IO () main = do let timed x = do putStrLn $ "\n\nSearching for " ++ x (time,_) <- duration $ system_ $ "hoogle +RTS -T -M1.8G -K2000K -RTS " ++ show x putStrLn $ "Search " ++ show x ++ ...
Put a bit of sleep in the retry loop
Put a bit of sleep in the retry loop
Haskell
bsd-3-clause
ndmitchell/hoogle,ndmitchell/hoogle,ndmitchell/hoogle
7b2c5f8c12bff4b6eb8c4697bc170a2d0ad391c1
src/Pos/Binary/Genesis.hs
src/Pos/Binary/Genesis.hs
-- | Binary instances for Genesis data (such as `StakeDistribution`) module Pos.Binary.Genesis () where import Data.Binary.Get (Get, getWord8) import Data.Binary.Put (Put, putWord8) import Universum import Pos.Binary.Class (Bi (..), UnsignedVarInt (..)) import P...
-- | Binary instances for Genesis data (such as `StakeDistribution`) module Pos.Binary.Genesis () where import Data.Binary.Get (Get, getWord8) import Data.Binary.Put (Put, putWord8) import Universum import Pos.Binary.Class (Bi (..), UnsignedVarInt (..)) import P...
Fix ExponentialStakes binary instance warning
Fix ExponentialStakes binary instance warning
Haskell
apache-2.0
input-output-hk/pos-haskell-prototype,input-output-hk/cardano-sl,input-output-hk/cardano-sl,input-output-hk/cardano-sl,input-output-hk/cardano-sl,input-output-hk/pos-haskell-prototype,input-output-hk/pos-haskell-prototype
b037a34c4aa03d3acecc3ff30d6da98f528e40ae
test/BroadcastSpec.hs
test/BroadcastSpec.hs
module BroadcastSpec (spec) where import Protolude import Control.Concurrent.STM.TChan import Control.Concurrent.STM.TQueue import Test.Hspec import PostgRESTWS.Broadcast spec :: Spec spec = describe "Broadcast" $ it "relays a single message from producer to 1 listener on 1 test channel" $ do output <- ...
module BroadcastSpec (spec) where import Protolude import Control.Concurrent.STM.TChan import Control.Concurrent.STM.TQueue import Test.Hspec import PostgRESTWS.Broadcast spec :: Spec spec = do describe "newMultiplexer" $ it "opens a separate thread for a producer function" $ do output <- newTQueueIO ::...
Add new test case for newMultiplexer
Add new test case for newMultiplexer
Haskell
mit
diogob/postgrest-ws,diogob/postgrest-ws,diogob/postgrest-ws
7f8beb28d00d2d2ec2d0d81386056c8994dda7db
System/Console/CmdArgs/Implicit/Reform.hs
System/Console/CmdArgs/Implicit/Reform.hs
{-# LANGUAGE PatternGuards, RecordWildCards #-} module System.Console.CmdArgs.Implicit.Reform(reform) where import System.Console.CmdArgs.Implicit.Local import System.Console.CmdArgs.Implicit.Type import System.Console.CmdArgs.Verbosity import Data.Generics.Any import Data.List import Data.Maybe reform :: Prog_ ->...
{-# LANGUAGE RecordWildCards #-} module System.Console.CmdArgs.Implicit.Reform(reform) where import System.Console.CmdArgs.Implicit.Local import System.Console.CmdArgs.Implicit.Type import System.Console.CmdArgs.Verbosity import Data.Generics.Any import Data.List import Data.Maybe reform :: Prog_ -> CmdArgs Any ->...
Remove unused extension, suggested by hlint
Remove unused extension, suggested by hlint
Haskell
bsd-3-clause
ndmitchell/cmdargs,copland/cmdargs,ozgurakgun/cmdargs
d36bb068fe3a122df9543cace2ead6b711d5f372
test/suite/SafeCWD.hs
test/suite/SafeCWD.hs
module SafeCWD ( inDir , removeDirectoryRecursiveSafe ) where import Control.Concurrent.QSem import Control.Exception import Control.Monad import System.Directory import System.IO.Unsafe sem :: QSem sem = unsafePerformIO $ newQSem 1 inDir :: Bool -> FilePath -> IO a -> IO a inDir startClean dir action = bracke...
module SafeCWD ( inDir , removeDirectoryRecursiveSafe ) where import Control.Concurrent.QSem import Control.Exception import Control.Monad import System.Directory import System.IO.Unsafe sem :: QSem sem = unsafePerformIO $ newQSem 1 {-# NOINLINE sem #-} inDir :: Bool -> FilePath -> IO a -> IO a inDir startCle...
Add a NOINLINE around unsafePerformIO-guarded semaphore in testsuite.
Add a NOINLINE around unsafePerformIO-guarded semaphore in testsuite.
Haskell
bsd-3-clause
23Skidoo/snap,snapframework/snap,bitemyapp/snap,sopvop/snap
ce8625ce79e23b902143a99258a577a820a06e85
src/lib/TemplateHaskell.hs
src/lib/TemplateHaskell.hs
{-# OPTIONS -XDeriveDataTypeable -XFlexibleInstances -XTemplateHaskell #-} module TemplateHaskell where import Language.Haskell.TH import Types -- template Haskell code for deriving Initial instances -- usage: deriveInitial ''DataType (must appear after the declaration of the data type) -- Unfortunately, deriveIn...
{-# LANGUAGE DeriveDataTypeable, FlexibleInstances, TemplateHaskell #-} module TemplateHaskell where import Language.Haskell.TH import Types -- template Haskell code for deriving Initial instances -- usage: deriveInitial ''DataType (must appear after the declaration of the data type) -- Unfortunately, deriveIniti...
Use LANGUAGE instead of OPTIONS (src-exts-1.13.3 still cannot handle this one because of a problem in its TH parser)
Use LANGUAGE instead of OPTIONS (src-exts-1.13.3 still cannot handle this one because of a problem in its TH parser) git-svn-id: aa6b683a0c3c4a7a7056638acacb3aaf04dd239a@2925 63c81c92-1a08-11de-87e6-23293a004a03
Haskell
mit
Oblosys/webviews,Oblosys/webviews
4aca8e4a530bb55b777fb3a92705c4df2e74c5d8
Distribution/Server/Pages/BuildReports.hs
Distribution/Server/Pages/BuildReports.hs
-- Generate an HTML page listing all build reports for a package module Distribution.Server.Pages.BuildReports (buildReportSummary) where import Distribution.Server.BuildReport import Distribution.Server.BuildReports import Distribution.Server.Pages.Template ( hackagePage ) import Distribution.Package ( Pac...
-- Generate an HTML page listing all build reports for a package module Distribution.Server.Pages.BuildReports (buildReportSummary) where import qualified Distribution.Server.BuildReport as BuildReport import Distribution.Server.BuildReport (BuildReport) import Distribution.Server.BuildReports import Distribution.Ser...
Add initial build report summary table
Add initial build report summary table
Haskell
bsd-3-clause
grayjay/hackage-server,dzackgarza/hackage-server,agrafix/hackage-server,chrisdotcode/hackage-server,erantapaa/hackage-server,agrafix/hackage-server,snoyberg/hackage-server,chrisdotcode/hackage-server,haskell-infra/hackage-server,grayjay/hackage-server,tkvogt/hackage-server,dzackgarza/hackage-server,erantapaa/hackage-se...
edcb6334b4f7100e814bd4af4f227247e4d144d4
src/ZoomHub/Types/Internal/DeepZoomImage.hs
src/ZoomHub/Types/Internal/DeepZoomImage.hs
{-# LANGUAGE DeriveGeneric #-} module ZoomHub.Types.Internal.DeepZoomImage ( DeepZoomImage(DeepZoomImage) , dziWidth , dziHeight , dziTileSize , dziTileOverlap , dziTileFormat ) where import Data.Aeson (FromJSON, ToJSON, genericParseJSON, genericToJSO...
{-# LANGUAGE DeriveGeneric #-} module ZoomHub.Types.Internal.DeepZoomImage ( DeepZoomImage(DeepZoomImage) , dziWidth , dziHeight , dziTileSize , dziTileOverlap , dziTileFormat ) where import Data.Aeson (FromJSON, ToJSON, genericParseJSON, genericToJSO...
Introduce data type for `dziTileFormat`
TODO: Introduce data type for `dziTileFormat`
Haskell
mit
zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub
ccbf74759a7207832c91e4bca45c23b60c8630db
server/src/SentryLogging.hs
server/src/SentryLogging.hs
-- | Module for logging (crash) reports to Sentry module SentryLogging( getCrashLogger, logCrashMessage ) where import qualified System.Log.Raven as Sentry import qualified System.Log.Raven.Transport.Debug as Sentry import qualified System.Log.Raven.Types as Sentry -- | Returns a Maybe SentryService which can be us...
-- | Module for logging (crash) reports to Sentry module SentryLogging( getCrashLogger, logCrashMessage ) where import qualified System.Log.Raven as Sentry import qualified System.Log.Raven.Transport.HttpConduit as Sentry import qualified System.Log.Raven.Types as Sentry -- | Returns a Maybe SentryService which can...
Fix not sending of record but dumping them
Fix not sending of record but dumping them
Haskell
bsd-3-clause
channable/icepeak,channable/icepeak,channable/icepeak
ea4ccf5b23440bdac8309a240cef0075a719fe4f
test-report.hs
test-report.hs
#! /bin/sh HPC_DIR=dist/hpc cabal clean cabal configure --enable-tests --enable-library-coverage cabal build cabal test open ${HPC_DIR}/html/*/hpc-index.html
#! /bin/sh HPC_DIR=dist/hpc cabal-dev clean cabal-dev configure --enable-tests --enable-library-coverage cabal-dev build cabal-dev test open ${HPC_DIR}/html/*/hpc-index.html
Use cabal-dev for hpc report generation
Use cabal-dev for hpc report generation
Haskell
bsd-3-clause
haskell-distributed/distributed-process-extras,qnikst/distributed-process-extras
55d6633c2c8f628ffad7e8596e60ffa0e0f83092
travis.hs
travis.hs
import System.Process.Extra main = system_ "cabal test --show-details=streaming"
import System.Process.Extra main = system_ "cabal v1-test --show-details=streaming"
Fix up tests for Cabal v3
Fix up tests for Cabal v3
Haskell
bsd-3-clause
ndmitchell/ghcid
a6ac10a9aa081c54ff00b9a4d25a7b9e92867e4b
src/Shapes.hs
src/Shapes.hs
module Shapes ( Shape(..), Drawing, Transform, empty, circle, square, identity, translate, rotate, scale, (<+>), transform ) where import qualified Data.Matrix as M import StyleSheet (StyleSheet) data Shape = Empty | Circle | Square deriving Show empty, circle, square :: ...
module Shapes ( Shape(..), Drawing, Transform, empty, circle, square, identity, translate, rotate, scale, (<+>), transform ) where import Data.Aeson import qualified Data.Matrix as M import StyleSheet (StyleSheet) data Shape = Empty | Circle | Square deriving Sho...
Implement FromJSON instance for Shape
Implement FromJSON instance for Shape
Haskell
mit
houli/shape-server
0ef54d08effefdbf583127f687f2ab0f576f23b4
saw/Main.hs
saw/Main.hs
{- | Module : $Header$ Description : License : BSD3 Stability : provisional Point-of-contact : atomb -} module Main where import Control.Exception import Data.List import System.Exit import System.IO import System.Console.GetOpt import System.Environment import SAWScript.Options import...
{- | Module : $Header$ Description : License : BSD3 Stability : provisional Point-of-contact : atomb -} module Main where import Control.Exception import Data.List import System.Exit import System.IO import System.Console.GetOpt import System.Environment import SAWScript.Options import...
Set output from `saw` to be line buffered
Set output from `saw` to be line buffered This should make it more usable on Windows, and make use with `tee` friendlier than it is now.
Haskell
bsd-3-clause
GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script
f423990ad7d4cdd68b69f68ffba07add7a4568dd
Network/LambdaBridge/Logging.hs
Network/LambdaBridge/Logging.hs
-- | This modules sets up the hslogger details, including catching ^C. module Network.LambdaBridge.Logging ( init_logging , debugM ) where import Control.Exception as E import Control.Concurrent import System.Posix.Signals import System.Environment import qualified System.Log.Logger as L impo...
-- | This modules sets up the hslogger details, including catching ^C. module Network.LambdaBridge.Logging ( init_logging , debugM ) where import Control.Exception as E import Control.Concurrent import System.Posix.Signals import System.Environment import qualified System.Log.Logger as L impor...
Fix to work with 7.6
Fix to work with 7.6
Haskell
bsd-3-clause
andygill/lambda-bridge
b3caee62fc543594afae6759123e77c79359086b
libraries/base/System/Mem.hs
libraries/base/System/Mem.hs
{-# LANGUAGE Safe #-} ----------------------------------------------------------------------------- -- | -- Module : System.Mem -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stability : prov...
{-# LANGUAGE Safe #-} ----------------------------------------------------------------------------- -- | -- Module : System.Mem -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Stability : prov...
Fix name of minor GC function.
Fix name of minor GC function. I accidentally forgot to commit this. Signed-off-by: Austin Seipp <7ea35d812706d9213868749011af1ed4fa2f6aa0@well-typed.com>
Haskell
bsd-3-clause
snoyberg/ghc,elieux/ghc,ryantm/ghc,gridaphobe/ghc,elieux/ghc,mcschroeder/ghc,ml9951/ghc,nathyong/microghc-ghc,gcampax/ghc,anton-dessiatov/ghc,AlexanderPankiv/ghc,bitemyapp/ghc,vikraman/ghc,vikraman/ghc,holzensp/ghc,GaloisInc/halvm-ghc,elieux/ghc,urbanslug/ghc,nushio3/ghc,ml9951/ghc,vTurbine/ghc,siddhanathan/ghc,Alexand...
308fdfdaaeb9f6e836f66b57605b87b10ebc6eba
day8/day8.hs
day8/day8.hs
import Data.Char (isHexDigit, isSpace) import Control.Monad (liftM) main :: IO () main = do input <- liftM (filter (not . isSpace)) $ readFile "input.txt" print $ codeChars input - memChars input codeChars :: String -> Int codeChars = length memChars :: String -> Int memChars [] = 0 memChars ('\\':'\\':xs) =...
import Data.Char (isHexDigit) main :: IO () main = do input <- readFile "input.txt" let encoded = concatMap encode . lines $ input let unencoded = concat . lines $ input print $ codeChars encoded - codeChars unencoded encode :: String -> String encode s = "\"" ++ concatMap escape s ++ "\"" where e...
Complete Day 8 Part 2
Complete Day 8 Part 2
Haskell
mit
devonhollowood/adventofcode,devonhollowood/adventofcode
15416291731fc2a64d634fbda591c915424536d9
Main.hs
Main.hs
module Main where import Idris.Core.TT import Idris.AbsSyntax import Idris.ElabDecls import Idris.REPL import IRTS.Compiler import IRTS.CodegenLLVM import System.Environment import System.Exit import Paths_idris data Opts = Opts { inputs :: [FilePath], output :: FilePath } showUsage = do putStr...
module Main where import Idris.Core.TT import Idris.AbsSyntax import Idris.ElabDecls import Idris.REPL import IRTS.Compiler import IRTS.CodegenLLVM import qualified IRTS.CodegenCommon as CG import LLVM.General.Target import System.Environment import System.Exit import Paths_idris data Opts = Opts { inputs :: [Fil...
Make the codegen actually work
Make the codegen actually work
Haskell
bsd-3-clause
idris-hackers/idris-llvm,melted/idris-llvm,melted/idris-llvm,idris-hackers/idris-llvm
56f93f4343168c55516cdefa7ce3d3db80971851
src/Version.hs
src/Version.hs
module Version ( version ) where import qualified Paths_apollo as P (version) import Data.Version (showVersion) version = showVersion P.version
module Version ( version ) where import qualified Paths_apollo as P (version) import Data.Version (showVersion) version :: String version = showVersion P.version
Add type signature to version
Add type signature to version
Haskell
mit
apollo-lang/apollo
9d4a1872a984618391615ca4ef1d8d2e9443a26e
src/SAWScript/Panic.hs
src/SAWScript/Panic.hs
{- | Module : SAWScript.Panic License : BSD3 Maintainer : huffman Stability : provisional -} {-# LANGUAGE Trustworthy, TemplateHaskell #-} module SAWScript.Panic (HasCallStack, panic) where import Panic hiding (panic) import qualified Panic as Panic data Saw = Saw -- | Raise a fatal error. The purpose...
{- | Module : SAWScript.Panic License : BSD3 Maintainer : huffman Stability : provisional -} {-# LANGUAGE Trustworthy, TemplateHaskell #-} module SAWScript.Panic (HasCallStack, panic) where import Panic hiding (panic) import qualified Panic as Panic data SAW = SAW -- | Raise a fatal error. The purpose...
Change panic component name capitalization from "Saw" to "SAW".
Change panic component name capitalization from "Saw" to "SAW".
Haskell
bsd-3-clause
GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script
233db247b95382fda16731498f0d775baa9e97e1
Model.hs
Model.hs
module Model where import ClassyPrelude.Yesod import Database.Persist.Quasi -- You can define all of your database entities in the entities file. -- You can find more information on persistent and how to declare entities -- at: -- http://www.yesodweb.com/book/persistent/ share [mkPersist sqlSettings, mkMigrate "migra...
module Model where import ClassyPrelude.Yesod import Database.Persist.Quasi -- You can define all of your database entities in the entities file. -- You can find more information on persistent and how to declare entities -- at: -- http://www.yesodweb.com/book/persistent/ share [mkPersist sqlSettings, mkMigrate "migra...
Add Eq and Ord instances for User
Add Eq and Ord instances for User
Haskell
mit
jspahrsummers/ScrumBut
f6436407f6f8e50588987b8320775ea7a5533903
tests/CallGraphTest.hs
tests/CallGraphTest.hs
module Main ( main ) where import Data.ByteString.Char8 ( unpack ) import Data.Set ( Set ) import qualified Data.Set as S import System.FilePath import Test.HUnit ( assertEqual ) import LLVM.Analysis import LLVM.Analysis.CallGraph import LLVM.Analysis.PointsTo.TrivialFunction import LLVM.Analysis.CallGraphSCCTraversa...
module Main ( main ) where import Data.Set ( Set ) import qualified Data.Set as S import System.FilePath import Test.HUnit ( assertEqual ) import LLVM.Analysis import LLVM.Analysis.CallGraph import LLVM.Analysis.PointsTo.TrivialFunction import LLVM.Analysis.CallGraphSCCTraversal import LLVM.Analysis.Util.Testing impo...
Fix an import in a test case
Fix an import in a test case
Haskell
bsd-3-clause
wangxiayang/llvm-analysis,travitch/llvm-analysis,travitch/llvm-analysis,wangxiayang/llvm-analysis
a3c25f69dd18a92b458c5aac2b09f52b0ff198ee
Data/Hashable/RandomSource.hs
Data/Hashable/RandomSource.hs
{-# LANGUAGE CPP, ForeignFunctionInterface #-} module Data.Hashable.RandomSource ( getRandomBytes ) where import Data.ByteString as B import Data.ByteString.Internal (create) import Data.Word (Word8) import Foreign.C.Error (throwErrnoIfMinus1_) import Foreign.C.Types (CInt(..)) import Foreign.Ptr (Ptr) ...
{-# LANGUAGE CPP, ForeignFunctionInterface #-} module Data.Hashable.RandomSource ( getRandomBytes ) where import Data.ByteString as B import Data.ByteString.Internal (create) import Data.Word (Word8) import Foreign.C.Error (throwErrnoIfMinus1_) import Foreign.C.Types (CInt(..)) import Foreign.Ptr (Ptr) ...
Add some comments to getRandomBytes
Add some comments to getRandomBytes
Haskell
bsd-3-clause
ekmett/hashable
98ffe628a82d459fe7def07f82f524a70d020864
src/Development/Shake/Rule.hs
src/Development/Shake/Rule.hs
-- | This module is used for defining new types of rules for Shake build systems. -- Most users will find the built-in set of rules sufficient. module Development.Shake.Rule( -- * Builtin rules -- ** Defining BuiltinLint, noLint, BuiltinRun, RunChanged(..), RunResult(..), addBuiltinRule, -- ** Runnin...
-- | This module is used for defining new types of rules for Shake build systems. -- Most users will find the built-in set of rules sufficient. module Development.Shake.Rule( -- * Defining builtin rules BuiltinLint, noLint, BuiltinRun, RunChanged(..), RunResult(..), addBuiltinRule, -- * Calling builtin r...
Tweak the module doc headers
Tweak the module doc headers
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
bf004e24f284e972d79c0a443cfd2e97fa45e892
src/Widgets/Markdown.hs
src/Widgets/Markdown.hs
module Widgets.Markdown where import Import import qualified Data.Text as T snowdriftMarkdownField :: (Monad m, HandlerSite m ~ App) => Field m Markdown snowdriftMarkdownField = Field { fieldParse = parseHelper $ Right . Markdown . T.filter (/= '\r') , fieldView = \theId name attrs value _isReq -> do ...
module Widgets.Markdown where import Import import qualified Data.Text as T snowdriftMarkdownField :: (Monad m, HandlerSite m ~ App) => Field m Markdown snowdriftMarkdownField = Field { fieldParse = parseHelper $ Right . Markdown . T.filter (/= '\r') , fieldView = \theId name attrs value _isReq -> do ...
Remove unnecessary pre-render of url
Remove unnecessary pre-render of url
Haskell
agpl-3.0
snowdriftcoop/snowdrift
78c842fdc7885da3c6b9b4bb721d51f0cf572150
test/Test/Pos/Types/Identity/SafeCopySpec.hs
test/Test/Pos/Types/Identity/SafeCopySpec.hs
{-# LANGUAGE TypeApplications #-} -- | This module tests SafeCopy instances. module Test.Pos.Types.Identity.SafeCopySpec ( spec ) where import Test.Hspec (Spec, describe) import Test.Hspec.QuickCheck (prop) import Universum import qualified Pos.Types ...
{-# LANGUAGE TypeApplications #-} -- | This module tests SafeCopy instances. module Test.Pos.Types.Identity.SafeCopySpec ( spec ) where import Test.Hspec (Spec, describe) import Test.Hspec.QuickCheck (prop) import Universum import qualified Pos.Types ...
Fix obsolete comment and typo
Fix obsolete comment and typo
Haskell
apache-2.0
input-output-hk/cardano-sl,input-output-hk/pos-haskell-prototype,input-output-hk/cardano-sl,input-output-hk/cardano-sl,input-output-hk/pos-haskell-prototype,input-output-hk/pos-haskell-prototype,input-output-hk/cardano-sl
8a844afafded01eb4175da1559bb97ab884bcfc9
src/Network/Mattermost/Version.hs
src/Network/Mattermost/Version.hs
{-# LANGUAGE TemplateHaskell #-} module Network.Mattermost.Version (mmApiVersion) where import Data.Version (showVersion) import Development.GitRev (gitBranch, gitHash) import Paths_mattermost_api (version) mmApiVersion :: String mmApiVersion | $(gitHash) == ("UNKNOWN" :: String) = "mattermost-api " ++ showVersion...
{-# LANGUAGE TemplateHaskell #-} module Network.Mattermost.Version (mmApiVersion) where import Data.Version (showVersion) import Development.GitRev (gitBranch, gitHash) import Paths_mattermost_api (version) mmApiVersion :: String mmApiVersion | $(gitHash) == ("UNKNOWN" :: String) = "mattermost-api " ++ showVersion...
Truncate the git hash down to 7 characters
Truncate the git hash down to 7 characters
Haskell
bsd-3-clause
matterhorn-chat/mattermost-api,dagit/mattermost-api
f7d377ee238d3b44240a4537986a7561e822f79f
haddock-api/src/Haddock/Syb.hs
haddock-api/src/Haddock/Syb.hs
{-# LANGUAGE Rank2Types #-} module Haddock.Syb ( everything , combine ) where import Data.Data import Control.Applicative -- | Perform a query on each level of a tree. -- -- This is stolen directly from SYB package and copied here to not introduce -- additional dependencies. everything :: (r -> r -> r...
{-# LANGUAGE Rank2Types #-} module Haddock.Syb ( everything, everywhere , combine ) where import Data.Data import Control.Applicative -- | Perform a query on each level of a tree. -- -- This is stolen directly from SYB package and copied here to not introduce -- additional dependencies. everything :: ...
Implement `everywhere` transformation in SYB module.
Implement `everywhere` transformation in SYB module.
Haskell
bsd-2-clause
lamefun/haddock,niteria/haddock,Fuuzetsu/haddock,idontgetoutmuch/haddock,beni55/haddock,sboosali/haddock,randen/haddock,Helkafen/haddock,idontgetoutmuch/haddock,beni55/haddock,sboosali/haddock,haskell/haddock,Fuuzetsu/haddock,lamefun/haddock,sboosali/haddock,randen/haddock,haskell/haddock,beni55/haddock,lamefun/haddock...
b7a08aa85115e93078cc9420026185ffa519853f
wai-eventsource/src/Main.hs
wai-eventsource/src/Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad import Control.Concurrent (forkIO, threadDelay) import Control.Concurrent.Chan import Network.Wai.Handler.Warp (run) import Network.Wai.Middleware.Gzip (gzip, def) import Network.Wai import Network.HTTP.Types (statusOK) import Data.Time.Clock.PO...
{-# LANGUAGE OverloadedStrings #-} module Main where import Control.Monad import Control.Concurrent (forkIO, threadDelay) import Control.Monad.Trans (liftIO) import Control.Concurrent.Chan import Network.Wai.Handler.Warp (run) import Network.Wai.Middleware.Gzip (gzip, def) import Network.Wai import Network.HTTP.Types ...
Add examples for new EventSource API
Add examples for new EventSource API
Haskell
mit
utdemir/wai,utdemir/wai,AndrewRademacher/wai,soenkehahn/wai,coypoop/wai,jberryman/wai,iquiw/wai,beni55/wai,iquiw/wai,soenkehahn/wai,erikd/wai,frontrowed/wai,yesodweb/wai,rgrinberg/wai,tolysz/wai,ygale/wai,rgrinberg/wai,erikd/wai,urbanslug/wai,dylex/wai,mfine/wai,sol/wai,creichert/wai,erikd/wai,urbanslug/wai,beni55/wai,...
eff77d1f3167a667232beb315613b526a40fab91
test/GhcPkgSpec.hs
test/GhcPkgSpec.hs
module GhcPkgSpec where import Language.Haskell.GhcMod.GhcPkg import System.Directory import System.FilePath ((</>)) import Test.Hspec spec :: Spec spec = do describe "getSandboxDb" $ do it "parses a config file and extracts sandbox package db" $ do cwd <- getCurrentDirectory pkgD...
{-# LANGUAGE CPP #-} module GhcPkgSpec where import Language.Haskell.GhcMod.GhcPkg import Language.Haskell.GhcMod.Types import System.Directory import System.FilePath ((</>)) import Test.Hspec spec :: Spec spec = do describe "getSandboxDb" $ do -- ghc < 7.8 #if !MIN_VERSION_ghc(7,8,0) it "does include a ...
Add test for sandbox compatibility with ghc < 7.8
Add test for sandbox compatibility with ghc < 7.8
Haskell
bsd-3-clause
cabrera/ghc-mod,phaazon/ghc-mod
add768bb1d0153f53be91d7d0be6806646a9e107
src/Configuration/CLIConfig.hs
src/Configuration/CLIConfig.hs
module Configuration.CLIConfig where import Options.Applicative import Data.Semigroup ((<>)) data ImpCLIConfig = ImpCLIConfig { cliScreenWidth :: Maybe Int , cliScreenHeight :: Maybe Int , cliFullscreenDisplay :: Maybe Int , cliDebug :: Bool , cliConfigFilePa...
module Configuration.CLIConfig where import Options.Applicative import Data.Semigroup ((<>)) data ImpCLIConfig = ImpCLIConfig { cliScreenWidth :: Maybe Int , cliScreenHeight :: Maybe Int , cliFullscreenDisplay :: Maybe Int , cliDebug :: Bool , cliConfigFilePa...
Fix cli parsing of config file
Fix cli parsing of config file
Haskell
bsd-3-clause
rumblesan/improviz,rumblesan/improviz
e7da6ff50e1841dd976c4ba4a7b7137ffdcec265
tests/Main.hs
tests/Main.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Test.Tasty as T import Test.Tasty.QuickCheck as T -- For Arbitrary instance for Text import Data.Text.Arbitrary () import qualified Data.Text as Text import Data.Text.Markup propertyTests :: T.TestTree propertyTests = T.testGroup "Markup" [ testProperty...
{-# LANGUAGE OverloadedStrings #-} module Main where import Test.Tasty as T import Test.Tasty.QuickCheck as T -- For Arbitrary instance for Text import Data.Text.Arbitrary () import qualified Data.Text as Text import Data.Text.Markup propertyTests :: T.TestTree propertyTests = T.testGroup "Markup" -- Markup with...
Add a no-op marking property
Add a no-op marking property
Haskell
bsd-3-clause
jtdaugherty/text-markup
9a4ece438cd60de26b6d9323677841ac0b4c28d6
Database/Persist/TH/Library.hs
Database/Persist/TH/Library.hs
{-# LANGUAGE CPP #-} #include "cabal_macros.h" module Database.Persist.TH.Library ( apE ) where import Control.Applicative #if !MIN_VERSION_base(4,3,0) instance Applicative (Either x) where pure = Right l@(Left x) <*> _ = l _ <*> l@(Left _) = l Right f ...
{-# LANGUAGE CPP #-} #include "cabal_macros.h" module Database.Persist.TH.Library ( apE ) where #if MIN_VERSION_base(4,3,0) import Control.Applicative #endif apE :: Either x (y -> z) -> Either x y -> Either x z #if MIN_VERSION_base(4,3,0) apE = (<*>) #else apE l@(Left x) _ = l apE _ l@(Left...
Implement `apE` directly instead of adding an Applicative instance
Implement `apE` directly instead of adding an Applicative instance
Haskell
mit
plow-technologies/persistent,junjihashimoto/persistent,jcristovao/persistent,superduper/persistent,greydot/persistent,gbwey/persistent,andrewthad/persistent,bitemyapp/persistent,pseudonom/persistent,gbwey/persistentold,psibi/persistent,meteficha/persistent,mkscrg/persistent,andrewthad/persistent,mitchellwrosen/persiste...
f6d975465fbbd8212dc027c2f0d1f7a9b37944e8
app/API.hs
app/API.hs
{-# LANGUAGE OverloadedStrings #-} import Web.Scotty import Data.Text (Text) import qualified Network.Wai as Wai import Data.Aeson (Value(..)) import Network.HTTP.Types main :: IO () main = scotty 3000 $ do get (regex "^") $ request >>= json . statusFor . Wai.pathInfo put (regex "^") $ do ...
{-# LANGUAGE OverloadedStrings #-} import Web.Scotty import Data.Text (Text) import qualified Network.Wai as Wai -- import Data.Aeson (Value(..)) import Network.HTTP.Types import qualified MainLoop as ML main :: IO () main = scotty 3000 $ do get (regex "^") $ request >>= json . statusFor . Wai.pat...
Use MainLoop.handlePut with req path and json body
Use MainLoop.handlePut with req path and json body
Haskell
bsd-3-clause
channable/icepeak,channable/icepeak,channable/icepeak
ac707af31bae6d5e0238b9c6d939a006da2d9629
haskell/hw3.hs
haskell/hw3.hs
insert :: Int -> [Int] -> [Int] insert x [] = [x] insert x y = if x < head y then x:y else head y:insert x (tail y) sortHelper :: [Int] -> [Int] -> [Int] sortHelper x y = if null x then y else sortHelper (tail x) (insert (head x) y) sort :: [Int] -> [Int] sort x = sortH...
test (x:xs) = if null xs then x else test xs insert :: Int -> [Int] -> [Int] insert x [] = [x] insert x (y:ys) = if x < y then x:(y:ys) else y:insert x ys sortHelper :: [Int] -> [Int] -> [Int] sortHelper [] y = y sortHelper (x:xs) y = sortHelper xs (insert x y) sort ::...
Drop head and tail ops for (z:zy)
Drop head and tail ops for (z:zy)
Haskell
mit
Jakehp/PLC
0a9f4370f7ede23ca5f3103d726958de1ef872fb
src/Data/Linear.hs
src/Data/Linear.hs
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE GADTs#-} module Data.Linear where import Prelude (Show(..), Eq(..)) id :: a ⊸ a id a = a liftUnit :: a ⊸ () ⊸ a liftUnit a () = a flip :: (a ⊸ b ⊸ c ) ⊸ b ⊸ a ⊸ c flip f b a = f a b infixr 0 $ ($) :: (a ⊸ b) ⊸ a ⊸ b f $ x = f x {-# INLINE ($) #-} (.) :: (b ⊸ c) ⊸ (a ⊸ ...
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE GADTs#-} module Data.Linear where import Prelude (Show(..), Eq(..)) import Data.Bool(Bool(..), bool) id :: a ⊸ a id a = a liftUnit :: a ⊸ () ⊸ a liftUnit a () = a flip :: (a ⊸ b ⊸ c ) ⊸ b ⊸ a ⊸ c flip f b a = f a b infixr 0 $ ($) :: (a ⊸ b) ⊸ a ⊸ b f $ x = f x {-# INLIN...
Add ifThenElse to linear toolbox
Add ifThenElse to linear toolbox
Haskell
bsd-3-clause
m0ar/safe-streaming,m0ar/safe-streaming
a314ebd0af69cc1f6c76bfd8242d88d47277fcda
html-test/src/Instances.hs
html-test/src/Instances.hs
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} module Instances where class Foo f where foo :: f Int -> a -> f a foo' :: f (f a) -> Int -> f (f Int) foo = undefined foo' = undefined instance Foo Maybe instance Foo [] instance (Eq a, Foo...
{-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ImpredicativeTypes #-} module Instances where class Foo f where foo :: f Int -> a -> f a foo' :: f (f a) -> Int -> f (f Int) foo = undefined foo' = undefined instance Foo Maybe...
Add some test cases for type renamer.
Add some test cases for type renamer.
Haskell
bsd-2-clause
niteria/haddock,Fuuzetsu/haddock,niteria/haddock,haskell/haddock,beni55/haddock,randen/haddock,haskell/haddock,niteria/haddock,Fuuzetsu/haddock,sboosali/haddock,lamefun/haddock,beni55/haddock,sboosali/haddock,sboosali/haddock,Helkafen/haddock,lamefun/haddock,randen/haddock,idontgetoutmuch/haddock,Helkafen/haddock,idont...
a0945b62df6ff5d581dff49d3d3e2dd79484b12e
src/Data/Functor/LFunctor.hs
src/Data/Functor/LFunctor.hs
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE NoImplicitPrelude #-} -- | A linear version of a Functor module Data.Functor.LFunctor where import Data.Linear (flip) class LFunctor f where fmap :: (a ⊸ b) ⊸ f a ⊸ f b (<$) :: a -> f () ⊸ f a (<$>) :: LFunctor f => (a ⊸ b) ⊸ f a ⊸ f b (<$>) = fmap ($>) :: LFunctor f =...
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE NoImplicitPrelude #-} -- | A linear version of a Functor module Data.Functor.LFunctor where import Data.Linear (flip, liftUnit) import Prelude ((.)) class LFunctor f where fmap :: (a ⊸ b) ⊸ f a ⊸ f b (<$) :: a -> f () ⊸ f a (<$) = fmap . liftUnit (<$>) :: LFunctor f ...
Add default implementation of <$
Add default implementation of <$
Haskell
bsd-3-clause
m0ar/safe-streaming,m0ar/safe-streaming
7d857e3fcc4c6c6816fd5587bb2a833deece6aba
lib/CRDT.hs
lib/CRDT.hs
{-# LANGUAGE TypeFamilies #-} -- | Conflict-free replicated data types module CRDT ( CmRDT (..) , CvRDT , query ) where import Data.Semigroup (Semigroup) import Data.Kind (Type) {- | State-based, or convergent (Cv) replicated data type. Laws: 1. Commutativity: x <> y == y <> x ...
{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} -- | Conflict-free replicated data types module CRDT ( CmRDT (..) , CvRDT , query ) where import Data.Kind (Type) import Data.Proxy (Proxy (..)) import Data.Semigroup (Semigroup) {- | State-based...
Add `initial` a class method
Add `initial` a class method
Haskell
bsd-3-clause
cblp/crdt
1d6717206c898f63bd02d33114cb413fa4702196
env/src/Spotify.hs
env/src/Spotify.hs
module Spotify where import Imports spotifyTogglePlay :: XX () spotifyTogglePlay = spotify "PlayPause" spotifyNext :: XX () spotifyNext = spotify "Next" spotifyPrevious :: XX () spotifyPrevious = spotify "Previous" spotify :: String -> XX () spotify cmd = spawn "dbus-send" [ "--print-reply" , "--dest...
module Spotify where import Imports spotifyTogglePlay :: XX () spotifyTogglePlay = spotify "PlayPause" spotifyNext :: XX () spotifyNext = spotify "Next" spotifyPrevious :: XX () spotifyPrevious = spotify "Previous" spotify :: String -> XX () spotify cmd = spawn "dbus-send" [ "--print-reply" , "--dest...
Add note about spotify volume control
Add note about spotify volume control
Haskell
mit
mgsloan/compconfig
eb9430e858ae10f95213daf973a066007abbbf71
XMonad/Actions/SinkAll.hs
XMonad/Actions/SinkAll.hs
----------------------------------------------------------------------------- -- | -- Module : Xmonad.Actions.SinkAll -- License : BSD3-style (see LICENSE) -- Stability : unstable -- Portability : unportable -- -- Provides a simple binding that pushes all floating windows on the current -- workspace back...
----------------------------------------------------------------------------- -- | -- Module : XMonad.Actions.SinkAll -- License : BSD3-style (see LICENSE) -- Stability : unstable -- Portability : unportable -- -- Provides a simple binding that pushes all floating windows on the current -- workspace back...
Correct caps in module header.
Correct caps in module header. darcs-hash:20071230061920-928c4-3c0738fd1619b9a11510bd99413045aa39707c0a
Haskell
bsd-3-clause
kmels/xmonad-launcher,kmels/xmonad-launcher
67f016c2b92d482cba4c43bec720478beddee47b
src/HSE/Match.hs
src/HSE/Match.hs
{-# LANGUAGE PatternGuards, ViewPatterns, MultiParamTypeClasses #-} module HSE.Match where import Data.Generics import Data.Generics.PlateData import Data.List import Data.Maybe import Language.Haskell.Exts import HSE.Bracket import HSE.Util class View a b where view :: a -> b data App2 = NoApp2 | App2 Exp Ex...
{-# LANGUAGE PatternGuards, ViewPatterns, MultiParamTypeClasses #-} module HSE.Match where import Data.Generics import Data.Generics.PlateData import Data.List import Data.Maybe import Language.Haskell.Exts import HSE.Bracket import HSE.Util class View a b where view :: a -> b data App2 = NoApp2 | App2 Exp Ex...
Add an Infix view pattern, to avoid opExp matches
Add an Infix view pattern, to avoid opExp matches
Haskell
bsd-3-clause
ndmitchell/hlint,gibiansky/hlint,ndmitchell/hlint,mpickering/hlint,bitemyapp/hlint,eigengrau/hlint
4df5015fdc84542cc7e73884480abdd59a802fb5
src/Test/Throttle.hs
src/Test/Throttle.hs
module Test.Throttle(main) where import Development.Shake import Development.Shake.FilePath import Test.Type import Control.Exception.Extra hiding (assert) import Control.Monad.Extra import System.Time.Extra main = shaken test $ \args obj -> do res <- newThrottle "test" 2 0.4 want $ map obj ["file1.1","file...
module Test.Throttle(main) where import Development.Shake import Development.Shake.FilePath import Test.Type import Control.Exception.Extra hiding (assert) import Control.Monad.Extra import System.Time.Extra main = shaken test $ \args obj -> do res <- newThrottle "test" 2 0.4 want $ map obj ["file1.1","file...
Fix the throttle test to take account of flags
Fix the throttle test to take account of flags
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
bd296475dd93ae987aecbc6385609c532d9a4f5f
parser-typechecker/src/Unison/Util/Less.hs
parser-typechecker/src/Unison/Util/Less.hs
module Unison.Util.Less where import System.Process import System.IO (hPutStr, hClose) import Control.Exception.Extra (ignore) import Unison.Prelude (void) less :: String -> IO () less str = do let args = ["--no-init" -- don't clear the screen on exit ,"--raw-control-chars" -- pass through ...
module Unison.Util.Less where import System.Process import System.IO (hPutStr, hClose) import Control.Exception.Extra (ignore) import Unison.Prelude (void) less :: String -> IO () less str = do let args = ["--no-init" -- don't clear the screen on exit ,"--raw-control-chars" -- pass through ...
Add a little help to the `less` prompt
Add a little help to the `less` prompt
Haskell
mit
unisonweb/platform,unisonweb/platform,unisonweb/platform
d6fe7a90d18653644a45be62a1fd0a793f128f85
src/Language/K3/Analysis/Effects/Common.hs
src/Language/K3/Analysis/Effects/Common.hs
{-# LANGUAGE ViewPatterns #-} {-# LANGUAGE OverloadedLists #-} module Language.K3.Analysis.Effects.Common where import Data.Monoid import qualified Data.Set as S import Language.K3.Core.Annotation import Language.K3.Analysis.Effects.Core readSet :: K3 Effect -> S.Set (K3 Symbol) readSet (tag -> FRead s) = S.single...
{-# LANGUAGE ViewPatterns #-} {-# LANGUAGE OverloadedLists #-} module Language.K3.Analysis.Effects.Common where import Prelude hiding (any) import Data.Foldable import Data.Monoid import qualified Data.Set as S import Language.K3.Core.Annotation import Language.K3.Analysis.Effects.Core readSet :: K3 Effect -> S.Se...
Add hasRead/Write and superstructure functions to effects.
Add hasRead/Write and superstructure functions to effects.
Haskell
apache-2.0
DaMSL/K3,yliu120/K3,DaMSL/K3
ea2705aba49228cb024de2567fadbdc5e7b23421
Crypto/Cipher/Threefish/Class.hs
Crypto/Cipher/Threefish/Class.hs
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-} module Crypto.Cipher.Threefish.Class where import Crypto.Cipher.Threefish.Common class Threefish a b | a -> b where -- | Create a Threefish key using a custom tweak value. threefishKey :: Tweak -> a -> b -- | Encrypt a block using the given key and t...
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-} module Crypto.Cipher.Threefish.Class where import Crypto.Cipher.Threefish.Common import Data.Serialize class Serialize a => Threefish a b | a -> b where -- | Create a Threefish key using a custom tweak value. threefishKey :: Tweak -> a -> b -- | Encr...
Add Serialize as a dependency for the Threefish class.
Add Serialize as a dependency for the Threefish class.
Haskell
bsd-3-clause
valderman/threefish,valderman/threefish
c58ea0edf1f5b885e4d9adaf621267c689726490
test/HasqlBroadcastSpec.hs
test/HasqlBroadcastSpec.hs
module HasqlBroadcastSpec (spec) where import Protolude import Data.Function (id) import Control.Concurrent.STM.TQueue import qualified Hasql.Query as H import qualified Hasql.Session as H import qualified Hasql.Decoders as HD import qualified Hasql.Encoders as HE import Test.Hspec ...
module HasqlBroadcastSpec (spec) where import Protolude import Data.Function (id) import Control.Concurrent.STM.TQueue import qualified Hasql.Query as H import qualified Hasql.Session as H import qualified Hasql.Decoders as HD import qualified Hasql.Encoders as HE import Test.Hspec ...
Add test case for closing (unlisten) commands on the HasqlBroadcast
Add test case for closing (unlisten) commands on the HasqlBroadcast
Haskell
mit
diogob/postgrest-ws,diogob/postgrest-ws,diogob/postgrest-ws
f2e70e7819fdcffa774ad1b1bacad86284f60c6a
test/Data/Swagger/SchemaSpec.hs
test/Data/Swagger/SchemaSpec.hs
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE QuasiQuotes #-} module Data.Swagger.SchemaSpec where import Data.Aeson import Data.Aeson.QQ import Data.Proxy import GHC.Generics import Data.Swagger import SpecCommon import Test.Hspec checkToSchema :: ToSch...
{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE QuasiQuotes #-} module Data.Swagger.SchemaSpec where import Data.Aeson import Data.Aeson.QQ import Data.Proxy import GHC.Generics import Data.Swagger import SpecCommon import Test.Hspec checkToSchema :: ToSch...
Add test for non-record product data type
Add test for non-record product data type
Haskell
bsd-3-clause
GetShopTV/swagger2
b5d3441fd07aadf8ca5e31bfd9079e6a28e8e6d3
Examples/Vectadd/VectAdd.hs
Examples/Vectadd/VectAdd.hs
module Examples.Vectadd.VectAdd (vectAdd) where import Language.StreamIt vectAddKernel :: Filter Int Int () vectAddKernel = do work Rate {pushRate=1, popRate=2, peekRate=0} $ do push(peek 0 + peek 1) pop; pop vectSource :: Var Int -> Var (Array Int) -> Filter Void Int () vectSource n z = do idx <- int ...
module Examples.Vectadd.VectAdd (vectAdd) where import Language.StreamIt vectAddKernel :: Filter Int Int () vectAddKernel = do work Rate {pushRate=1, popRate=2, peekRate=0} $ do push(peek 0 + peek 1) pop; pop vectSource :: Var Int -> Var (Array Int) -> Filter Void Int () vectSource n z = do idx <- int ...
Use static array bounds in the vectadd example.
Use static array bounds in the vectadd example.
Haskell
bsd-3-clause
iu-parfunc/haskell-streamit,adk9/haskell-streamit,iu-parfunc/haskell-streamit
e660e1184d853e62e405ccbfd942af606b9b4e8d
tests/regressions.hs
tests/regressions.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} import Data.Time.Clock (UTCTime) import Test.Tasty import Test.Tasty.HUnit import Text.RawString.QQ (r) import qualified Data.Map as M import Database.InfluxDB import Database.InfluxDB.Line import Database.InfluxDB.Write (writeByteString) import qualified...
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} import Data.Time.Clock (UTCTime) import Test.Tasty import Test.Tasty.HUnit import Text.RawString.QQ (r) import qualified Data.Map as M import Database.InfluxDB import Database.InfluxDB.Line import qualified Database.InfluxDB.Format as F main :: IO () mai...
Remove a redundant import in a test
Remove a redundant import in a test
Haskell
bsd-3-clause
maoe/influxdb-haskell
4d12e30143c475264f9ef6b7cfe0dea5d03b5464
src/Narradar/Constraints/Unify.hs
src/Narradar/Constraints/Unify.hs
module Narradar.Constraints.Unify where import Control.Exception (assert) import qualified Data.Map as Map import Data.Maybe (isJust) import Data.Term hiding (unify, unifies) import qualified Data.Term as Term import Narradar.Types.Term unifies x y = isJust (unify x y) unifies' x y = isJust (unify' x y) unify :: (O...
module Narradar.Constraints.Unify where import Control.Exception (assert) import qualified Data.Map as Map import Data.Maybe (isJust) import Data.Term hiding (unify, unifies) import qualified Data.Term as Term import Narradar.Types.Term unifies x y = isJust (unify x y) unifies' x y = isJust (unify' x y) unify :: (O...
Fix a problem with application of substitutions
Fix a problem with application of substitutions
Haskell
bsd-3-clause
pepeiborra/narradar,pepeiborra/narradar,pepeiborra/narradar
0dfb10e4788919a998cc000088ceb86146b08e90
src/HLiquid/Syntax.hs
src/HLiquid/Syntax.hs
module HLiquid.Syntax where import Data.Text data Liquid = HTML Text | If Expression Expression Expression | ReturnBlock Expression | Block Expression deriving (Eq, Show) data Expression = Expression [Text] -- Temporary Expand to actual expressions later deriving (Eq, Show)
module HLiquid.Syntax where import Data.Text data Liquid = HTML Text | ReturnBlock Expression | Block Expression deriving (Eq, Show) data Expression = Expression [Text] -- Temporary Expand to actual expressions later | If -- unless and elseif | Case -- Loop Tags | For ...
Add all tags to type
Add all tags to type
Haskell
bsd-3-clause
xldenis/hliquid
d74614347fa7a7f46ab8963d29b229dcbad0c874
Examples/Test/Util.hs
Examples/Test/Util.hs
module Examples.Test.Util(main) where import Development.Shake.Util import Examples.Util main = shaken test $ \args obj -> return () test build obj = do parseMakefile "" === [] parseMakefile "a:b c\ndef : ee" === [("a",["b","c"]),("def",["ee"])] parseMakefile "a: #comment\n#comment : b\nc : d" === [("...
module Examples.Test.Util(main) where import Development.Shake.Util import Examples.Util main = shaken test $ \args obj -> return () test build obj = do parseMakefile "" === [] parseMakefile "a:b c\ndef : ee" === [("a",["b","c"]),("def",["ee"])] parseMakefile "a: #comment\n#comment : b\nc : d" === [("...
Add a test that the parseMakefile can deal with windows newlines
Add a test that the parseMakefile can deal with windows newlines
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
da8f4d8a06bf2b8c93a8fa5216ff55baaa6c7f01
demo/sourceview/SourceViewTest.hs
demo/sourceview/SourceViewTest.hs
-- Test file for the SourceView widget. module Main where import Graphics.UI.Gtk import Graphics.UI.Gtk.SourceView main = do initGUI win <- windowNew win `onDestroy` mainQuit -- create the appropriate language lm <- sourceLanguagesManagerNew langM <- sourceLanguagesManagerGetLanguageFromMimeType lm "text...
-- Test file for the SourceView widget. module Main where import Graphics.UI.Gtk import Graphics.UI.Gtk.SourceView main = do initGUI win <- windowNew win `onDestroy` mainQuit -- create the appropriate language lm <- sourceLanguageManagerNew langM <- sourceLanguageManagerGetLanguage lm "haskell" lang <-...
Make sourceview demo compilable again.
Make sourceview demo compilable again.
Haskell
lgpl-2.1
vincenthz/webkit
8b5c534cf1201fe02f820540d9fc14ab18edebb0
lib/Quote.hs
lib/Quote.hs
module Quote where class Quote a where quote :: a -> String instance Quote String where quote = id
module Quote where class Quote a where quote :: a -> String instance Quote String where quote = id instance Quote Bool where quote = show instance Show a => Quote (Maybe a) where quote = show instance Quote Int where quote = show instance Quote Integer where quote = show instance Quote Fl...
Add instances for several builtins.
Add instances for several builtins.
Haskell
bsd-3-clause
FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs,FranklinChen/Hugs
df0220fa0d7d6cbbdaf34cb2e0d3802887b5c8ed
src/NGramCrackers/DataTypes.hs
src/NGramCrackers/DataTypes.hs
module NGramCrackers.DataTypes ( Paragraph , Sentence , Word , MetaTag , Tag , Date , SDate , Month , Day , Year , PageRange , PageBound , Level ) where import qualified Data.Text as T data Paragraph = Paragraph [Sentence] deriving (Show, Read, Eq) data Sentence = Sentence [Word] deriving (Show, Read, Eq) type Word =...
module NGramCrackers.DataTypes ( Paragraph , Sentence , Word , MetaTag , Tag , Date , SDate , Month , Day , Year , PageRange , PageBound , Level ) where import qualified Data.Text as T data Paragraph = Paragraph [Sentence] deriving (Show, Read, Eq) data Sentence = Sentence [Word] deriving (Show, Read, Eq) type Word =...
Move metadata types to MetadataParsers module
Move metadata types to MetadataParsers module
Haskell
agpl-3.0
R-Morgan/NGramCrackers
9a13dda05e745d7a73c0d17314656ba10a8f41ff
Main.hs
Main.hs
module Main where import Control.Monad import Data.List import Data.Maybe import System.Cmd import System.Environment import System.Exit import Development.NSIS import Examples.Example1 import Examples.Example2 import Examples.Primes examples = let (*) = (,) in ["example1" * example1, "example2" * example2, "prime...
module Main where import Control.Monad import Data.List import Data.Maybe import System.Cmd import System.Environment import System.Exit import System.Info import Development.NSIS import Examples.Example1 import Examples.Example2 import Examples.Primes examples = let (*) = (,) in ["example1" * example1, "example2"...
Rewrite the test script, ensure the default just works for the test routine
Rewrite the test script, ensure the default just works for the test routine
Haskell
apache-2.0
idleberg/NSIS,idleberg/NSIS,idleberg/NSIS
6afa8e0397f3b2ab69becf8387a9992fee500e1a
extract-docstrings/Extract.hs
extract-docstrings/Extract.hs
module Extract (extract) where import Prelude hiding (mod) import GHC.Paths (libdir) import GHC import FastString import DynFlags parse :: String -> IO ParsedModule parse file = runGhc (Just libdir) $ do dynflags <- getSessionDynFlags _ <- setSessionDynFlags (dopt_set dynflags Opt_Haddock) { hscTarget...
module Extract (extract) where import Prelude hiding (mod) import GHC.Paths (libdir) import GHC import FastString import DynFlags parse :: [String] -> IO [ParsedModule] parse modules = runGhc (Just libdir) $ do dynflags <- getSessionDynFlags _ <- setSessionDynFlags (dopt_set dynflags Opt_Haddock) { hs...
Make extraction work with any module name
Make extraction work with any module name
Haskell
mit
sol/doctest,ekmett/doctest,snoyberg/doctest-haskell,snoyberg/doctest-haskell,ekmett/doctest,sol/doctest
f9e17743da1cd3feee55bce770b81f5445672ab2
src/Evalso/Cruncher/Unsandboxed.hs
src/Evalso/Cruncher/Unsandboxed.hs
{-# LANGUAGE OverloadedStrings #-} module Evalso.Cruncher.Unsandboxed (version) where import Evalso.Cruncher.Language (Language, rpm) import Control.Applicative import Control.Lens import qualified Data.Text as T import qualified Shelly as S version :: Language -> IO T.Text version l = S.shelly $ S.silently $ T.s...
{-# LANGUAGE OverloadedStrings #-} module Evalso.Cruncher.Unsandboxed (version) where import Evalso.Cruncher.Language (Language, rpm) import Control.Lens import qualified Data.Text as T import qualified Shelly as S version :: Language -> IO (Maybe T.Text) version l = S.shelly . S.errExit False . S.silently $ do v...
Make version return a more useful type
Make version return a more useful type Signed-off-by: Ricky Elrod <3de8762d49a778edd8b1aa9f381ea5a9ccb62944@elrod.me>
Haskell
bsd-3-clause
eval-so/cruncher
55fcef1a8cb132730a1bb1729cd0c847960ddcb9
haskell/Language/Hakaru/Command.hs
haskell/Language/Hakaru/Command.hs
{-# LANGUAGE DataKinds #-} module Language.Hakaru.Command where import Language.Hakaru.Syntax.ABT import qualified Language.Hakaru.Syntax.AST as T import Language.Hakaru.Parser.Parser hiding (style) import Language.Hakaru.Parser.SymbolResolve (resolveAST) import Language.Hakaru....
{-# LANGUAGE DataKinds #-} module Language.Hakaru.Command where import Language.Hakaru.Syntax.ABT import qualified Language.Hakaru.Syntax.AST as T import Language.Hakaru.Parser.Import (expandImports) import Language.Hakaru.Parser.Parser hiding (style) import Language.Hakaru.Pars...
Add new version of parseAndInfer
Add new version of parseAndInfer
Haskell
bsd-3-clause
zachsully/hakaru,zaxtax/hakaru,zachsully/hakaru,zaxtax/hakaru
956f4b2eb4dc9e05bed5f230d297134ccb136249
projecteuler/problem43/src/Euler.hs
projecteuler/problem43/src/Euler.hs
module Euler where import Data.Digits import Data.List pandigitals :: [[Int]] pandigitals = filter ((/= 0).head) (permutations [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]) sublist :: Int -> Int -> [a] -> [a] sublist idx len = take len . drop idx isSubstringDivisible :: [Int] -> Bool isSubstringDivisible xs = unDigits 10 (subl...
module Euler where import Data.Digits import Data.List pandigitals :: [[Int]] pandigitals = filter ((/= 0).head) (permutations [0..9]) sublist :: Int -> Int -> [a] -> [a] sublist idx len = take len . drop idx isSubstringDivisible :: [Int] -> Bool isSubstringDivisible xs = unDigits 10 (sublist 1 3 xs) `mod` 2 == 0...
Use [0..9] instead of [1, 2, ... , 9, 0]
Use [0..9] instead of [1, 2, ... , 9, 0]
Haskell
bsd-3-clause
noraesae/euler
9e8a8072e2a5d43096800583d96b363f60dfb9d8
src/Graphics/GL.hs
src/Graphics/GL.hs
----------------------------------------------------------------------------- -- | -- Copyright : (C) 2014 Edward Kmett and Gabríel Arthúr Pétursson -- License : BSD-style (see the file LICENSE) -- Maintainer : Edward Kmett <ekmett@gmail.com> -- Stability : experimental -- Portability : portable -- ------...
----------------------------------------------------------------------------- -- | -- Copyright : (C) 2014 Edward Kmett and Gabríel Arthúr Pétursson -- License : BSD-style (see the file LICENSE) -- Maintainer : Edward Kmett <ekmett@gmail.com> -- Stability : experimental -- Portability : portable -- ------...
Add Embedded31 to the top level export
Add Embedded31 to the top level export
Haskell
bsd-3-clause
phaazon/gl
e15228777ff7f32961e5545eec3bbc33782fc719
Day3/pt2.hs
Day3/pt2.hs
import System.IO import Data.List type House = (Int, Int) everyOther :: [a] -> [a] everyOther [] = [] everyOther (x:xs) = x : (everyOther (drop 1 xs)) nextHouse :: House -> Char -> House nextHouse (startX, startY) direction | direction == '^' = (startX, startY + 1) | direction == '>' = (startX + 1, startY) ...
import System.IO import Data.List type House = (Int, Int) everyOther :: [a] -> [a] everyOther [] = [] everyOther (x:xs) = x : (everyOther (drop 1 xs)) nextHouse :: House -> Char -> House nextHouse (startX, startY) direction | direction == '^' = (startX, startY + 1) | direction == '>' = (startX + 1, startY) ...
Clean up for Day 3 Part 2
Clean up for Day 3 Part 2
Haskell
mit
rosslebeau/AdventOfCode
e471ffb85022a0260b80ff2efa8443359090398d
src/Test/FileLock.hs
src/Test/FileLock.hs
module Test.FileLock(main) where import Development.Shake import Control.Concurrent.Extra import Control.Exception.Extra import Control.Monad import Data.Either import Test.Type main = shaken test $ \args obj -> do action $ liftIO $ sleep 2 test build obj = do -- check it fails exactly once a <- onceF...
module Test.FileLock(main) where import Development.Shake import Control.Concurrent.Extra import Control.Exception.Extra import Control.Monad import Data.Either.Extra import Test.Type main = shaken test $ \args obj -> do action $ liftIO $ sleep 2 test build obj = do -- check it fails exactly once a <-...
Make sure isLeft is available
Make sure isLeft is available
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
de72d95a02fa99594b52f8f3cdf572c15cc4f979
src/Graphics/UI/Threepenny/Canvas.hs
src/Graphics/UI/Threepenny/Canvas.hs
module Graphics.UI.Threepenny.Canvas ( -- * Synopsis -- | Partial binding to the HTML5 canvas API. -- * Documentation Canvas, Vector, drawImage, clearCanvas, ) where import Graphics.UI.Threepenny.Core {----------------------------------------------------------------------------- Canva...
module Graphics.UI.Threepenny.Canvas ( -- * Synopsis -- | Partial binding to the HTML5 canvas API. -- * Documentation Canvas, Vector, drawImage, clearCanvas , fillRect, setFillStyle ) where import Graphics.UI.Threepenny.Core {---------------------------------------------------------------...
Add canvas functions `fillRect` and `setFillStyle`
Add canvas functions `fillRect` and `setFillStyle`
Haskell
bsd-3-clause
duplode/threepenny-gui,duplode/threepenny-gui,duplode/threepenny-gui
9b489e1ab6695785f80a149f1bb46b3094ba9f29
chapter6/src/Queue.hs
chapter6/src/Queue.hs
module Queue where type Queue a = [a] enqueue :: a -> Queue a -> Queue a enqueue item queue = queue ++ [item] dequeue :: Queue a -> (Maybe a, Queue a) dequeue [] = (Nothing, []) dequeue (x : xs) = (Just x, xs) empty :: Queue a empty = []
module Queue where type Queue a = [a] enqueue :: a -> Queue a -> Queue a enqueue item queue = queue ++ [item] dequeue :: Queue a -> (Maybe a, Queue a) dequeue [] = (Nothing, empty) dequeue (x : xs) = (Just x, xs) empty :: Queue a empty = []
Use the empty representation so you don't leak implementation details
Use the empty representation so you don't leak implementation details
Haskell
mit
mikegehard/grokkingAlgorithms
abbce8c8049efc7bb9f5db9e0d509678da54f920
src/Text/Karver.hs
src/Text/Karver.hs
module Text.Karver where import Text.Karver.Types import Text.Karver.Parse import Control.Applicative import Data.Attoparsec.Text import Data.HashMap.Strict (HashMap) import qualified Data.HashMap.Strict as H import Data.Text (Text) import qualified Data.Text as T import qualified Data.Vector as V renderTemplate :: ...
module Text.Karver where import Text.Karver.Types import Text.Karver.Parse import Control.Applicative import Data.Attoparsec.Text import Data.HashMap.Strict (HashMap) import qualified Data.HashMap.Strict as H import Data.Text (Text) import qualified Data.Text as T import qualified Data.Vector as V renderTemplate :: ...
Add if statement parsing in renderTemplate
Add if statement parsing in renderTemplate
Haskell
bsd-3-clause
ibotty/stencil,sourrust/karver
cdab995d9749359f4c279c9310f4d2082e0b6937
src/Tinfoil/Random/Internal.hs
src/Tinfoil/Random/Internal.hs
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE OverloadedStrings #-} module Tinfoil.Random.Internal( explodeBS , readBitsLE , dropMS , segmentsOf ) where import Data.Bits import Data.ByteString (ByteString) import qualified Data.ByteString as BS impo...
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE OverloadedStrings #-} module Tinfoil.Random.Internal( explodeBS , readBitsLE , dropMS , segmentsOf , urandom ) where import Data.Bits import Data.ByteString (ByteString) import qualified Data.ByteString...
Add urandom implementation for entropy
Add urandom implementation for entropy
Haskell
bsd-3-clause
ambiata/tinfoil,ambiata/tinfoil
1daefe34bfaea0d5725fcbaf092fe78478ab9572
src/Language/K3/Compiler/CPP.hs
src/Language/K3/Compiler/CPP.hs
module Language.K3.Compiler.CPP (compile) where import qualified Data.Sequence as S import Language.K3.TypeSystem (typecheckProgram) import qualified Language.K3.Codegen.CPP as CPP import Language.K3.Driver.Common (parseK3Input) import Language.K3.Driver.Options (Options(..), CompileOptions(..), PathOptions(..)) im...
module Language.K3.Compiler.CPP (compile) where import System.Directory (createDirectoryIfMissing) import System.FilePath (joinPath, replaceExtension, takeBaseName) import qualified Data.Sequence as S import Language.K3.TypeSystem (typecheckProgram) import qualified Language.K3.Codegen.CPP as CPP import Language.K...
Add correct handling of build directory for compilation artifacts.
Add correct handling of build directory for compilation artifacts.
Haskell
apache-2.0
DaMSL/K3,DaMSL/K3,yliu120/K3
15e46640ad35dcb2c91954d59454873e319c06ff
elm/src/Initialize.hs
elm/src/Initialize.hs
module Initialize (initialize) where import Control.Applicative ((<$>)) import Control.Monad.Error import Data.List (lookup) import Ast import Parser (parseProgram) import Rename import Types ((-:)) import Types.Hints (hints) import Types.Unify import Optimize initialize str = let nameOf (Definition n _ _) = n ...
module Initialize (initialize) where import Control.Applicative ((<$>)) import Control.Monad.Error import Data.List (lookup) import Ast import Parser (parseProgram) import Rename import Types ((-:)) import Types.Hints (hints) import Types.Unify import Optimize initialize str = let nameOf (Definition n _ _) = n ...
Make sure Prelude gets imported properly.
Make sure Prelude gets imported properly.
Haskell
bsd-3-clause
pairyo/elm-compiler,laszlopandy/elm-compiler,Axure/elm-compiler,5outh/Elm,JoeyEremondi/elm-pattern-effects,deadfoxygrandpa/Elm,mgold/Elm
5f61eb92d314ac6baf441256a5b8abb861ae9e5f
proj1/Esfera.hs
proj1/Esfera.hs
module Geometria.Esfera ( volume , area ) where volume :: Float -> Float volume raio = (4.0 / 3.0) * pi * (raio ^ 3) area :: Float -> Float area raio = 4 * pi (raio ^ 2)
module Geometria.Esfera ( volume , area ) where volume :: Float -> Float volume raio = (4.0 / 3.0) * pi * (raio ^ 3) area :: Float -> Float area raio = 4 * pi (raio ^ 2)
Add impl (separada) do modulo Geometria
Add impl (separada) do modulo Geometria
Haskell
mit
tonussi/freezing-dubstep,tonussi/freezing-dubstep,tonussi/freezing-dubstep
c975c90ff28357467553063336068440a2d43146
src/Language/K3/Codegen/CPP/Representation.hs
src/Language/K3/Codegen/CPP/Representation.hs
{-# LANGUAGE OverloadedStrings #-} module Language.K3.Codegen.CPP.Representation where import Data.String import Text.PrettyPrint.ANSI.Leijen hiding ((<$>)) class Stringifiable a where stringify :: a -> Doc data Name = Name Identifier | Qualified Identifier Name | Specialized [Type] Name deriving...
{-# LANGUAGE OverloadedStrings #-} module Language.K3.Codegen.CPP.Representation where import Data.String import Text.PrettyPrint.ANSI.Leijen hiding ((<$>)) class Stringifiable a where stringify :: a -> Doc data Name = Name Identifier | Qualified Identifier Name | Specialized [Type] Name deriving...
Define AST fragment for Statements.
Define AST fragment for Statements.
Haskell
apache-2.0
DaMSL/K3,yliu120/K3,DaMSL/K3
6170f97e3d8c54953b7cf49297374566875f4397
libraries/base/GHC/Fingerprint/Type.hs
libraries/base/GHC/Fingerprint/Type.hs
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE NoImplicitPrelude #-} -- ---------------------------------------------------------------------------- -- -- (c) The University of Glasgow 2006 -- -- Fingerprints for recompilation checking and ABI versioning, and -- implementing fast comparison of Typeable. -- -- ------------...
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE NoImplicitPrelude #-} -- ---------------------------------------------------------------------------- -- -- (c) The University of Glasgow 2006 -- -- Fingerprints for recompilation checking and ABI versioning, and -- implementing fast comparison of Typeable. -- -- ------------...
Add Show instance for easier debugging
Fingerprint: Add Show instance for easier debugging Signed-off-by: Austin Seipp <48c905ac3851f382b914247d97dd93273d5ff555@pobox.com>
Haskell
bsd-3-clause
snoyberg/ghc,nkaretnikov/ghc,shlevy/ghc,acowley/ghc,nathyong/microghc-ghc,mettekou/ghc,mfine/ghc,urbanslug/ghc,ml9951/ghc,AlexanderPankiv/ghc,sgillespie/ghc,GaloisInc/halvm-ghc,snoyberg/ghc,sdiehl/ghc,jstolarek/ghc,gcampax/ghc,christiaanb/ghc,mettekou/ghc,gridaphobe/ghc,shlevy/ghc,ml9951/ghc,gcampax/ghc,ml9951/ghc,vikr...
a47ac65a122b3806c4c9189b2f7018a465c6be6a
library/Hasql/QQ.hs
library/Hasql/QQ.hs
module Hasql.QQ where import Hasql.Prelude import Language.Haskell.TH import Language.Haskell.TH.Quote import qualified Hasql.QQ.Parser as Parser import qualified Hasql.Backend as Backend -- | -- Produces a lambda-expression, -- which takes as many parameters as there are placeholders in the quoted text -- and resu...
module Hasql.QQ where import Hasql.Prelude import Language.Haskell.TH import Language.Haskell.TH.Quote import qualified Hasql.QQ.Parser as Parser import qualified Hasql.Backend as Backend -- | -- Produces a lambda-expression, -- which takes as many parameters as there are placeholders in the quoted text -- and resu...
Correct the docs on "q"
Correct the docs on "q"
Haskell
mit
nikita-volkov/hasql
ab982e0017d6dea284a74a564ea1287a2263a077
examples/IncrementalNamedBasedEncode.hs
examples/IncrementalNamedBasedEncode.hs
{-# LANGUAGE DeriveGeneric #-} import qualified Data.ByteString.Lazy as L import Data.Csv hiding (encodeDefaultOrderedByName) import Data.Csv.Incremental import Data.Monoid import GHC.Generics data Person = Person { name :: !String , salary :: !Int } deriving Generic instance FromNamedRecord Person ...
{-# LANGUAGE DeriveGeneric #-} import qualified Data.ByteString.Lazy as L import Data.Csv hiding (encodeDefaultOrderedByName) import Data.Csv.Incremental import Data.Monoid import GHC.Generics data Person = Person { name :: !String , salary :: !Int } deriving Generic instance FromNamedRecord Person ...
Add type signature to example
Add type signature to example
Haskell
bsd-3-clause
hvr/cassava,ahodgen/cassava,bergmark/cassava,richardfergie/cassava,bgamari/cassava,tibbe/cassava,jb55/cassava,treeowl/cassava,psibi/cassava
aada7734f85d842ee8a745e9fd200007d1745701
src/Graphics/Urho3D/Math/Internal/Rect.hs
src/Graphics/Urho3D/Math/Internal/Rect.hs
module Graphics.Urho3D.Math.Internal.Rect( Rect(..) , IntRect(..) , rectCntx , HasMinPoint(..) , HasMaxPoint(..) , HasLeft(..) , HasTop(..) , HasRight(..) , HasBottom(..) ) where import qualified Language.C.Inline as C import qualified Language.C.Inline.Context as C import qualified Language.C.Ty...
module Graphics.Urho3D.Math.Internal.Rect( Rect(..) , IntRect(..) , rectCntx , HasMinPoint(..) , HasMaxPoint(..) , HasLeft(..) , HasTop(..) , HasRight(..) , HasBottom(..) ) where import qualified Language.C.Inline as C import qualified Language.C.Inline.Context as C import qualified Language.C.Ty...
Add ord instance to rects
Add ord instance to rects
Haskell
mit
Teaspot-Studio/Urho3D-Haskell,Teaspot-Studio/Urho3D-Haskell,Teaspot-Studio/Urho3D-Haskell
d5e1506fd10e656d04920ecdd12469414a064eb3
src/HL/M/Markdown.hs
src/HL/M/Markdown.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} -- | Markdown files. module HL.M.Markdown where import HL.C import HL.Types import HL.V.Code import Control.Exception import qualified Data.Text.IO as ST import qualified Data.Text.Lazy as L import Sy...
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE BangPatterns #-} -- | Markdown files. module HL.M.Markdown where import HL.C import HL.Types import HL.V.Code import Control.Exception import qualified Data.Text.IO as ST import qualified Data.Text.Lazy as L import Sy...
Fix regression on code blocks in markdown pages
Fix regression on code blocks in markdown pages
Haskell
bsd-3-clause
snoyberg/hl,gbaz/hl,imalsogreg/hl,yogsototh/hl,sergio0213/hl,erantapaa/hl,haskell-lang/haskell-lang,gbaz/hl,haskell-lang/haskell-lang,erantapaa/hl,erantapaa/hl,commercialhaskell/commercialhaskell.com,imalsogreg/hl,haskell-infra/hl,yogsototh/hl,haskell-lang/haskell-lang,josefs/hl,kxxoling/hl,josefs/hl,haskell-infra/hl,k...
a4c7cd2ea02bf94ab8f3b10c8264a2481e6a7127
mismi-s3/test/Test/Mismi/S3/Arbitrary.hs
mismi-s3/test/Test/Mismi/S3/Arbitrary.hs
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Test.Mismi.S3.Arbitrary where import Data.Text as T import Disorder.Corpus import Mismi.S3.Data import P import Test.QuickCheck instance Arbitrary W...
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-orphans #-} module Test.Mismi.S3.Arbitrary where import Data.Text as T import Disorder.Corpus import Mismi.S3.Data import P import Test.QuickCheck instance Arbitrary W...
Add special char to Key arbitrary
Add special char to Key arbitrary Fixes #116
Haskell
bsd-3-clause
ambiata/mismi,ambiata/mismi
9454260079ab6c62a7a652b04e2550e889ab3d14
src/Pos/Communication/Server/SysStart.hs
src/Pos/Communication/Server/SysStart.hs
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} -- | Server which handles system start. module Pos.Communication.Server.SysStart ( sysStartReqListener , sysStartReqListenerSlave , sysStartRespListener ) where import ...
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} -- | Server which handles system start. module Pos.Communication.Server.SysStart ( sysStartReqListener , sysStartReqListenerSlave , sysStartRespListener ) where import ...
Fix warning which nobody wants to fix :(
Fix warning which nobody wants to fix :(
Haskell
apache-2.0
input-output-hk/cardano-sl,input-output-hk/cardano-sl,input-output-hk/cardano-sl,input-output-hk/pos-haskell-prototype,input-output-hk/pos-haskell-prototype,input-output-hk/cardano-sl,input-output-hk/pos-haskell-prototype
637ca674abc77126d87e092b1fa072f444a3bfee
test/Test/Delorean/Duration.hs
test/Test/Delorean/Duration.hs
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE TemplateHaskell #-} module Test.Delorean.Duration where import Delorean.Duration import Delorean.ParserCheck import P import System.IO import Test.Delorean.Arbitrary () import Test.QuickCheck prop_consistenc...
{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE TemplateHaskell #-} module Test.Delorean.Duration where import Delorean.Duration import P import System.IO import Test.Delorean.Arbitrary () import Test.Delorean.ParserCheck import Test.QuickCheck prop_consi...
Rename test files to new Ambiata standard - fix
Rename test files to new Ambiata standard - fix
Haskell
bsd-3-clause
ambiata/delorean
84e8f05e1bf8224a1612a37729c3a4e4e294658e
src/ZoomHub/Types/EmbedDimension.hs
src/ZoomHub/Types/EmbedDimension.hs
module ZoomHub.Types.EmbedDimension ( EmbedDimension(..) , toCSSValue ) where -- Type data EmbedDimension = Zero | Auto | Pixels Integer | Percentage Integer deriving (Eq, Show) toCSSValue :: EmbedDimension -> String toCSSValue Auto = "auto" toCSSValue Zero = "0" toCSSValue (Pixels n) = show n ++ "px" toCSSVa...
module ZoomHub.Types.EmbedDimension ( EmbedDimension(..) , toCSSValue , parseCSSValue ) where -- Type data EmbedDimension = Zero | Auto | Pixels Integer | Percentage Integer deriving (Eq, Show) toCSSValue :: EmbedDimension -> String toCSSValue Auto = "auto" toCSSValue Zero = "0" toCSSValue (Pixels n) = show...
Add basic support for parsing CSS values
Add basic support for parsing CSS values
Haskell
mit
zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub
a9b3621a0af9415801473b535a59d453226f2cea
code/Language/Drasil/Chunk/CommonIdea.hs
code/Language/Drasil/Chunk/CommonIdea.hs
module Language.Drasil.Chunk.CommonIdea ( CI, commonIdea , getAcc ) where import Language.Drasil.Classes (HasUID(uid), NamedIdea(term), Idea(getA), CommonIdea(abrv)) import Language.Drasil.Spec (Sentence(S)) import Language.Drasil.NounPhrase -- | The common idea (with nounPhrase) data type. It must have a -- '...
{-# Language TemplateHaskell #-} module Language.Drasil.Chunk.CommonIdea ( CI, commonIdea , getAcc) where import Language.Drasil.Classes (HasUID(uid), NamedIdea(term), Idea(getA), CommonIdea(abrv)) import Language.Drasil.Spec (Sentence(S)) import Language.Drasil.NounPhrase (NP) import Control.Lens (makeLenses, view) ...
Build CI and its lenses the same way as with all other types.
Build CI and its lenses the same way as with all other types.
Haskell
bsd-2-clause
JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software,JacquesCarette/literate-scientific-software
ef3b88ffd6a1bfdb59620ba05a87b435987b4bca
Examples/Test/Files.hs
Examples/Test/Files.hs
module Examples.Test.Files(main) where import Development.Shake import Examples.Util import Data.List main = shaken test $ \obj -> do want $ map obj ["even.txt","odd.txt"] map obj ["even.txt","odd.txt"] *>> \[evens,odds] -> do src <- readFileLines $ obj "numbers.txt" let (es,os) = partition ...
module Examples.Test.Files(main) where import Development.Shake import Development.Shake.FilePattern import Examples.Util import Data.List main = shaken test $ \obj -> do want $ map obj ["even.txt","odd.txt"] map obj ["even.txt","odd.txt"] *>> \[evens,odds] -> do src <- readFileLines $ obj "numbers....
Add lots of tests for the advanced FilePattern functionality
Add lots of tests for the advanced FilePattern functionality
Haskell
bsd-3-clause
nh2/shake,nh2/shake,ndmitchell/shake,nh2/shake,ndmitchell/shake,nh2/shake,ndmitchell/shake,nh2/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
06a6062eb7e2473059f3ceeff2d13cf63ea4ad99
src/Pos/Update/MemState/MemState.hs
src/Pos/Update/MemState/MemState.hs
-- | In-memory state of Update System. module Pos.Update.MemState.MemState ( MemState (..) ) where import Data.Default (Default (def)) -- import Universum import Pos.Types (EpochIndex) import Pos.Update.MemState.Types (MemPool) import...
-- | In-memory state of Update System. module Pos.Update.MemState.MemState ( MemState (..) ) where import Data.Default (Default (def)) -- import Universum import Pos.Types (SlotId (..)) import Pos.Update.MemState.Types (MemPool) impor...
Store SlotId in US memory state
[CSL-516] Store SlotId in US memory state
Haskell
apache-2.0
input-output-hk/pos-haskell-prototype,input-output-hk/cardano-sl,input-output-hk/cardano-sl,input-output-hk/pos-haskell-prototype,input-output-hk/pos-haskell-prototype,input-output-hk/cardano-sl,input-output-hk/cardano-sl
f3d5b3e51c31af0e5fe156793ac7fe9b747d2bf8
examples/EchoClient.hs
examples/EchoClient.hs
{-# LANGUAGE OverloadedStrings #-} module Main where import Network.Simple.TCP (connect) import Capnp (def, defaultLimit) import Capnp.Promise (waitIO) import Capnp.Rpc ((?)) import Capnp.Rpc.Transport (socketTransport) import Capnp.Rpc.Untyped (ConnConfig(..), handleConn) import Capn...
{-# LANGUAGE OverloadedStrings #-} module Main where import Network.Simple.TCP (connect) import Capnp (def, defaultLimit) import Capnp.Promise (waitIO) import Capnp.Rpc ((?)) import Capnp.Rpc.Transport (socketTransport) import Capnp.Rpc.Untyped (ConnConfig(..), handleConn) import Capn...
Make echo client example a bit more concise.
Make echo client example a bit more concise.
Haskell
mit
zenhack/haskell-capnp
c03c74e33da149ef8c34d8ed848b9af3c5ecdaac
program/IntermediateCode.hs
program/IntermediateCode.hs
module IntermediateCode(process) where -- imports -- import InterfaceDT as IDT import LLVM.General.AST import qualified LLVM.General.AST as AST initModule :: AST.Module initModule = defaultModule { moduleName = "rail-heaven" } -- functions -- process :: IDT.SemAna2InterCode -> AST.Module process input = initModule
module IntermediateCode(process) where -- imports -- import InterfaceDT as IDT import LLVM.General.AST import qualified LLVM.General.AST as AST initModule :: AST.Module initModule = defaultModule { moduleName = "rail-heaven" } -- functions -- process :: IDT.SemAna2InterCode -> IDT.InterCode2CodeOpt process input = ...
Fix type error in intermediate code generation.
Fix type error in intermediate code generation.
Haskell
mit
SWP-Ubau-SoSe2014-Haskell/SWPSoSe14,SWP-Ubau-SoSe2014-Haskell/SWPSoSe14
aec527ad48cb81e0ea364dbf94e7641cf62d0187
server/integration-tests/sqlite_test.hs
server/integration-tests/sqlite_test.hs
#!/usr/bin/env stack -- stack --stack-yaml ../../client-haskell/stack.yaml runghc --package sqlite-simple {-# OPTIONS_GHC -Wall #-} {-# LANGUAGE OverloadedStrings #-} {- | This test does nothing yet. -} import Database.SQLite.Simple data TestField = TestField Int String deriving (Show) instance FromRow TestField w...
#!/usr/bin/env stack -- stack --stack-yaml ../../client-haskell/stack.yaml runghc --package sqlite-simple {-# OPTIONS_GHC -Wall #-} {-# LANGUAGE OverloadedStrings #-} {- | Test whether SQLite was installed with JSON support enabled by calling the "json" SQL function. -} import Data.Text (Text) import Database.SQLite...
Test SQLite for JSON support
Test SQLite for JSON support SQLite needs to be compiled with -DSQLITE_ENABLE_JSON1 in order for JSON support to be available. The version on Ubuntu comes with this support enabled by default.
Haskell
bsd-3-clause
channable/icepeak,channable/icepeak,channable/icepeak
72cff304c98daaa8cd0dce9d4485f5d7e8bba87b
src/Compiler/TypeChecking/Error.hs
src/Compiler/TypeChecking/Error.hs
module Compiler.TypeChecking.Error where import Control.Monad.Error import Compiler.AST data UnificationError = OccursCheck TyVar Type | TyConMismatch Type Type deriving (Eq, Show) data KindError = KindMismatch deriving (Eq, Show) data ScopeError = UnboundVariable Name | UndefinedTy...
module Compiler.TypeChecking.Error where import Control.Monad.Error import Compiler.AST data UnificationError = OccursCheck TyVar Type | TyConMismatch Type Type deriving (Eq, Show) data KindError = KindMismatch deriving (Eq, Show) data ScopeError = UnboundVariable Name | UndefinedTy...
Add new error message for too general types.
Add new error message for too general types.
Haskell
bsd-3-clause
vituscze/norri
2f9c5da36f7eafa69267e29d47766816d29d510a
hlog.hs
hlog.hs
import Network hiding (accept) import Network.Socket (fdSocket, accept) import Network.Socket.ByteString import Data.List (intercalate) import Data.ByteString.Char8 hiding (length, intercalate) import GHC.Event import System.Posix import System.Posix.IO main :: IO () main = withSocketsDo $ do sock <- listenOn $ Po...
import Network hiding (accept) import Network.Socket (fdSocket, accept) import Network.Socket.ByteString import Data.List (intercalate) import Data.ByteString.Char8 hiding (length, intercalate) import GHC.Event import System.Posix import System.Posix.IO main :: IO () main = withSocketsDo $ do sock <- listenOn $ Po...
Update HTTP 200 response reason
Update HTTP 200 response reason
Haskell
bsd-3-clause
tripped/hlog
a8db08f25256768274ecf6bd93df071f6038068d
src/Node.hs
src/Node.hs
module Node where import Network.Socket type ID = String data Node = Node { myPort :: String, sockets :: [Socket] } initNode :: String -> [Socket] -> Node initNode port sockets = Node port sockets
module Node where import qualified Data.ByteString as B import qualified Data.HashMap.Strict as HM import Network.Socket import RoutingData data Node = Node { port :: B.ByteString , id :: ID , tree :: Tree , store :: HM.HashMap B.ByteString B.ByteS...
Move all info to routing data, construct (almost) full node
Move all info to routing data, construct (almost) full node
Haskell
bsd-3-clause
semaj/hademlia
298f0db49c0b218dc17fdfffec2e72cc86e2510e
libraries/base/GHC/Event.hs
libraries/base/GHC/Event.hs
{-# LANGUAGE Trustworthy #-} -- ---------------------------------------------------------------------------- -- | This module provides scalable event notification for file -- descriptors and timeouts. -- -- This module should be considered GHC internal. -- -- -----------------------------------------------------------...
{-# LANGUAGE Trustworthy #-} -- ---------------------------------------------------------------------------- -- | This module provides scalable event notification for file -- descriptors and timeouts. -- -- This module should be considered GHC internal. -- -- -----------------------------------------------------------...
Remove functions to step the system io manager in preparation for parallel io manager changes.
Remove functions to step the system io manager in preparation for parallel io manager changes. These functions are considered GHC-private and are not used by any packages on hackage.
Haskell
bsd-3-clause
gridaphobe/ghc,spacekitteh/smcghc,snoyberg/ghc,sdiehl/ghc,mfine/ghc,vikraman/ghc,fmthoma/ghc,GaloisInc/halvm-ghc,urbanslug/ghc,elieux/ghc,sdiehl/ghc,sgillespie/ghc,elieux/ghc,green-haskell/ghc,anton-dessiatov/ghc,mfine/ghc,anton-dessiatov/ghc,ghc-android/ghc,fmthoma/ghc,gcampax/ghc,tjakway/ghcjvm,AlexanderPankiv/ghc,Al...
0133c7a4ba1540e5a8d8a467602e0aba284643be
src/Francium/Components/Form/Input.hs
src/Francium/Components/Form/Input.hs
{-# LANGUAGE RecordWildCards #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} module Francium.Components.Form.Input where import Control.Monad (void) import Data.Monoid import Francium.Component import Francium.Hooks import GHCJS.DOM.HTMLInputElement import GHCJS.Foreign import GHCJS.Types import ...
{-# LANGUAGE RecordWildCards #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} module Francium.Components.Form.Input where import Control.Monad (void) import Data.Foldable (for_) import Data.Monoid import Francium.Component import Francium.Hooks import GHCJS.DOM.HTMLInputElement import GHCJS.DOM.HT...
Remove unsafeCoerce in favour of slightly-less-unsafe-coerce
Remove unsafeCoerce in favour of slightly-less-unsafe-coerce
Haskell
bsd-3-clause
ocharles/Francium