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
938675110d4b5bf7ab390ac5e8ec245c91b052af
compiler/Parse/Module.hs
compiler/Parse/Module.hs
module Parse.Module (moduleDef, imports) where import Control.Applicative ((<$>), (<*>)) import Data.List (intercalate) import Text.Parsec hiding (newline,spaces) import Parse.Helpers import SourceSyntax.Module (Module(..), ImportMethod(..), Imports) varList :: IParser [String] varList = parens $ commaSep1 (var <|...
module Parse.Module (moduleDef, imports) where import Control.Applicative ((<$>), (<*>)) import Data.List (intercalate) import Text.Parsec hiding (newline,spaces) import Parse.Helpers import SourceSyntax.Module (Module(..), ImportMethod(..), Imports) varList :: IParser [String] varList = parens $ commaSep1 (var <|...
Fix parser for "import List" which before was not importing anything.
Fix parser for "import List" which before was not importing anything.
Haskell
bsd-3-clause
pairyo/elm-compiler,mgold/Elm,5outh/Elm,deadfoxygrandpa/Elm,Axure/elm-compiler,laszlopandy/elm-compiler,JoeyEremondi/elm-pattern-effects
ed839f8d1d8a3cbb05e7b3e6750e74ae609f8cad
src/Verifier/SAW/Constant.hs
src/Verifier/SAW/Constant.hs
module Verifier.SAW.Constant (scConstant) where import Verifier.SAW.SharedTerm import Verifier.SAW.Rewriter import Verifier.SAW.Conversion {- | Module : Verifier.SAW.Constant Copyright : Galois, Inc. 2012-2015 License : BSD3 Maintainer : huffman@galois.com Stability : experimental Portability : non-porta...
{- | Module : Verifier.SAW.Constant Copyright : Galois, Inc. 2012-2015 License : BSD3 Maintainer : huffman@galois.com Stability : experimental Portability : non-portable (language extensions) -} module Verifier.SAW.Constant (scConstant) where import Verifier.SAW.SharedTerm import Verifier.SAW.Rewriter im...
Put haddock header in the right place.
Put haddock header in the right place.
Haskell
bsd-3-clause
GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script
c25f9446257fc80332ec8eaf59e5af197d757f98
library/Stratosphere/ResourceImports.hs
library/Stratosphere/ResourceImports.hs
module Stratosphere.ResourceImports ( module X ) where import Control.Lens as X (Lens', lens) import Data.Aeson as X import Data.Maybe as X (catMaybes) import Data.Map.Strict as X import Data.Monoid as X (mempty) import Data.Text as X (Text) import Stratosphere.Values as X
module Stratosphere.ResourceImports ( module X ) where import Control.Lens as X (Lens', lens) import Data.Aeson as X import Data.Aeson.TH as X import Data.Maybe as X (catMaybes) import Data.Map.Strict as X import Data.Monoid as X (mempty) import Data.Text as X (Text) import Stratosphere.Values as X
Fix missing Aeson functions in GHC 8
Fix missing Aeson functions in GHC 8
Haskell
mit
frontrowed/stratosphere
6a32a8e4d7631e93e9ad8ca0cafbb44faa080ffe
src/Query.hs
src/Query.hs
{-# LANGUAGE PatternGuards #-} module Query(Query(..), Scope(..), parseQuery, parseScope) where import Data.List import Data.Tuple.Extra import Language.Haskell.Exts import Control.Monad import Data.Monoid --------------------------------------------------------------------- -- DATA TYPE data Query = Query [Scope] ...
{-# LANGUAGE PatternGuards #-} module Query(Query(..), Scope(..), parseQuery, parseScope) where import Data.List import Data.Tuple.Extra import Language.Haskell.Exts import Control.Monad import Data.Monoid --------------------------------------------------------------------- -- DATA TYPE data Query = Query {scope :...
Add names to the fields in the query
Add names to the fields in the query
Haskell
bsd-3-clause
ndmitchell/hoogle,ndmitchell/hoogle,wolftune/hoogle,ndmitchell/hogle-dead,ndmitchell/hoogle,wolftune/hoogle,ndmitchell/hogle-dead,BartAdv/hoogle,BartAdv/hoogle,BartAdv/hoogle,wolftune/hoogle,wolftune/hoogle,BartAdv/hoogle
48cbf1244b762d3a52e15d16ba0c3391f095501c
tests/Network/BitTorrent/DHT/RoutingSpec.hs
tests/Network/BitTorrent/DHT/RoutingSpec.hs
module Network.BitTorrent.DHT.RoutingSpec (spec) where import Data.Default import Test.Hspec import Network.BitTorrent.Core import Network.BitTorrent.DHT.Routing as T spec :: Spec spec = do describe "size" $ do it "null table is empty" $ do T.size (nullTable def 2 :: Table IPv4) `shouldBe` 0
{-# LANGUAGE ScopedTypeVariables #-} module Network.BitTorrent.DHT.RoutingSpec (spec) where import Control.Applicative import Control.Monad.State import Data.Default import Data.List as L import Data.Maybe import Test.Hspec import Test.QuickCheck import Network.BitTorrent.Core import Network.BitTorrent.DHT.Routing as ...
Add 2 more behaviours for routing table
Add 2 more behaviours for routing table
Haskell
bsd-3-clause
DavidAlphaFox/bittorrent,pxqr/bittorrent
87f429b1058399a06861ea3094c07583de55be38
hackerrank/ClimbingTheLaderboard.hs
hackerrank/ClimbingTheLaderboard.hs
-- https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem -- How to run: stack runhaskell ClimbingTheLaderboard.hs module Main where import Control.Exception.Base(assert) import qualified Data.Set as Set readScores :: Int -> IO([Int]) readScores size = do line <- getLine let leaderboard = map (rea...
-- Problem statement: https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem -- How to run: stack runhaskell ClimbingTheLaderboard.hs -- How to generate docs: stack exec -- haddock --html ClimbingTheLaderboard.hs --odir=./docs module Main where import Control.Exception.Base(assert) import qualified Dat...
Add problem statement and describe how to generate docs.
Add problem statement and describe how to generate docs.
Haskell
mit
julianespinel/trainning,julianespinel/training,julianespinel/training,julianespinel/trainning,julianespinel/training,julianespinel/training
fb2187aa75b7b14853ad071145ac608a6aecdcef
src/Beautifier.hs
src/Beautifier.hs
module Beautifier(beautify) where import Datatypes beautify :: Program -> Program beautify (Program statements) = Program (map beautifyStatement statements) beautifyStatement :: Statement -> Statement beautifyStatement statement@(AssignmentStatement (Assignment lefthand assignmentOperator oldExpression)) = let ...
module Beautifier(beautify) where import Datatypes beautify :: Program -> Program beautify (Program statements) = Program (map beautifyStatement statements) beautifyStatement :: Statement -> Statement beautifyStatement (AssignmentStatement (Assignment lefthand assignmentOperator oldExpression)) = case assignmen...
Handle nested "In", revert beautifyStatement method
Handle nested "In", revert beautifyStatement method
Haskell
mit
aleksanb/hdc
3faebeca82eabab989422d6bc2d1d74d173945d2
src/State/Themes.hs
src/State/Themes.hs
module State.Themes ( listThemes , setTheme ) where import Prelude () import Prelude.MH import Brick ( invalidateCache ) import Brick.Themes ( themeToAttrMap ) import qualified Data.Text as T import Lens.Micro.Platform ( (.=) ) import State.Common...
module State.Themes ( listThemes , setTheme ) where import Prelude () import Prelude.MH import Brick ( invalidateCache ) import Brick.Themes ( themeToAttrMap ) import qualified Data.Text as T import Lens.Micro.Platform ( (.=) ) import State.Common...
Improve output formatting of /theme command
Improve output formatting of /theme command
Haskell
bsd-3-clause
matterhorn-chat/matterhorn
0fc939736ed33c11143f53bf4e82110c574f9d64
src/Test/Forward.hs
src/Test/Forward.hs
module Test.Forward(main) where import Development.Shake import Development.Shake.Forward import Development.Shake.FilePath import Control.Monad.Extra import Test.Type main = shaken test $ \args obj -> forwardRule $ do let src = "src/Test/C" cs <- getDirectoryFiles src ["*.c"] os <- forP cs $ \c -> do ...
module Test.Forward(main) where import Development.Shake import Development.Shake.Forward import Development.Shake.FilePath import Control.Monad.Extra import Test.Type main = shakeTest_ test $ forwardRule $ do let obj = id let src = root </> "src/Test/C" cs <- getDirectoryFiles src ["*.c"] os <- forP...
Switch forward to use shakeTest
Switch forward to use shakeTest
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
10e0de5b1ce0c1ec217e7017246f60a7402cd378
src/Stack.hs
src/Stack.hs
{-# LANGUAGE OverloadedStrings #-} module Stack(Stack(..), parseStack) where import Data.Yaml import Control.Exception import qualified Data.Text as T import qualified Data.HashMap.Strict as Map import qualified Data.Vector as V newtype Stack = Stack {stackPackages :: [FilePath]} parseStack :: FilePath ...
{-# LANGUAGE OverloadedStrings #-} module Stack(Stack(..), parseStack) where import Data.Yaml import Control.Exception import qualified Data.Text as T import qualified Data.HashMap.Strict as Map import qualified Data.Vector as V newtype Stack = Stack {stackPackages :: [FilePath]} parseStack :: FilePath -> IO Stack ...
Change end of line sequence
Change end of line sequence
Haskell
bsd-3-clause
ndmitchell/weeder
089f342e562f6ef9a6d04215101b4c747555eed5
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.
Haskell
bsd-3-clause
MP2E/XMonadContrib,reenberg/XMonadContrib,reenberg/XMonadContrib,MP2E/XMonadContrib
8540a102cd15ad1724387a631f4cf628e9c9833f
src/ZoomHub/Worker.hs
src/ZoomHub/Worker.hs
{-# LANGUAGE OverloadedStrings #-} module ZoomHub.Worker ( processExistingContent ) where import Control.Concurrent (threadDelay) import Control.Monad (forever) import Data.Aeson ((.=)) import ZoomHub.Config (Config) import qualified ZoomHu...
{-# LANGUAGE OverloadedStrings #-} module ZoomHub.Worker ( processExistingContent ) where import Control.Concurrent (threadDelay) import Control.Monad (forever) import Data.Aeson ((.=)) import ZoomHub.Config (Config) import qualified ZoomHu...
Reduce worker wait time to 3 seconds
Reduce worker wait time to 3 seconds
Haskell
mit
zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub
00b0afad2d41cbf529a1d0a31c49b18802880703
lib/src/Pos/Statistics/Ekg.hs
lib/src/Pos/Statistics/Ekg.hs
{-# LANGUAGE ApplicativeDo #-} module Pos.Statistics.Ekg ( EkgParams (..) , ekgParamsOption ) where import qualified Options.Applicative as Opt import Pos.Util.TimeWarp (NetworkAddress, addrParserNoWildcard) import Serokell.Util.OptParse (fromParsec) import Universum...
{-# LANGUAGE ApplicativeDo #-} module Pos.Statistics.Ekg ( EkgParams (..) , ekgParamsOption ) where import qualified Options.Applicative as Opt import Pos.Util.TimeWarp (NetworkAddress, addrParser) import Serokell.Util.OptParse (fromParsec) import Universum dat...
Allow 0.0.0.0 for EKG listening addr
[CSL-2139] Allow 0.0.0.0 for EKG listening addr
Haskell
apache-2.0
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,input-output-hk/pos-haskell-prototype
c0057b212f1995f3ba24a4d65f2a35ef4a658f01
Store/Flat.hs
Store/Flat.hs
module Store.Flat ( createStore , Store ) where import qualified Blob import qualified Store.Blob import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as L import System.Directory (removeFile) import qualified Control.Monad.Trans.State as State import Control.Monad.Trans.Class (lift) n...
module Store.Flat ( createStore , Store ) where import qualified Blob import qualified Store.Blob import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as L import System.Directory (removeFile) import qualified Control.Monad.Trans.State as State import Control.Monad.Trans.Class (lift) n...
Store objects with prefix folders
Store objects with prefix folders
Haskell
mit
danstiner/clod
f6a5294d7a3f2c49cb6814b36cb5e57cd3c94b3b
Paths_uroboro.hs
Paths_uroboro.hs
{-| Description : Mock out Cabal path abstraction This is a mock copy of soething Cabal generates during installation. -} module Paths_uroboro ( getDataFileName ) where -- |Adjust path for Cabal moving things around. getDataFileName :: FilePath -> IO FilePath getDataFileName = return
{-| Description : Mock out Cabal path abstraction This is a mock copy of something Cabal generates during installation. -} module Paths_uroboro ( getDataFileName ) where -- |Adjust path for Cabal moving things around. getDataFileName :: FilePath -> IO FilePath getDataFileName = return
Fix typo in module comment.
Fix typo in module comment.
Haskell
mit
Toxaris/uroboro,tewe/uroboro
37e96630c0032370b9b8fb5d280f9ca5dec4cd8e
tests/Tests/Module/Capnp/Rpc.hs
tests/Tests/Module/Capnp/Rpc.hs
module Tests.Module.Capnp.Rpc (rpcTests) where import Test.Hspec rpcTests :: Spec rpcTests = pure ()
module Tests.Module.Capnp.Rpc (rpcTests) where import Test.Hspec import Control.Concurrent (MVar, newEmptyMVar, putMVar, takeMVar) import Control.Monad.IO.Class (MonadIO, liftIO) import Capnp (ConstMsg) import Capnp.Rpc -- | Make a pair of in-memory transports that are connected to one another. i.e, -- mess...
Add some new transport types for testing.
Add some new transport types for testing. Builds, but is untested.
Haskell
mit
zenhack/haskell-capnp
e603c6e5eab676e1f80025d655306dfb19ee53ba
app/Main.hs
app/Main.hs
module Main where import HaskellTools import Pipes import Hasql.Connection import Data.String.Conversions (cs) main :: IO () main = do conf <- readOptions let dbConfig = cs $ configDatabase conf conOrError <- acquire dbConfig case conOrError of Left _ -> error "Error connecting" Right c -> if onlyGh ...
module Main where import HaskellTools import Pipes import Hasql.Connection import Data.String.Conversions (cs) import Data.Monoid ((<>)) main :: IO () main = do conf <- readOptions let dbConfig = cs $ configDatabase conf conOrError <- acquire dbConfig case conOrError of Left errorMessage -> error $ "Erro...
Print error when we have problems connecting
Print error when we have problems connecting
Haskell
bsd-3-clause
diogob/haskell-tools
60a1d4238a73e2616efe3c089527ea3af41049dc
src/NGramCrackers/NGramCrackers.hs
src/NGramCrackers/NGramCrackers.hs
module NGramCrackers.NGramCrackers ( getNGramsFromString , getNGramsFromList , getAlphasOnlyToString , getAlphasOnlyToList ) where import Data.Char (isAlpha) import ListManipulation getNGramsFromString :: Int -> [Char] -> [String] getNGramsFromString n wordString = (map unwords . getNGramsFromList n . words) $ getA...
module NGramCrackers.NGramCrackers ( getNGramsFromString , getNGramsFromList , getAlphasOnlyToString , getAlphasOnlyToList ) where import Data.Char (isAlpha, toLower) import ListManipulation bigrams :: [Char] -> [String] bigrams wordString = getNGramsFromString 2 wordString getNGramsFromString :: Int -> [Char] -> ...
Add bigrams function and update cleaning function
Add bigrams function and update cleaning function -- Construct bigram wrapper around getNGramsFromString -- Updated getAlphasOnlyToString string to make things all lowercase. This gets confuzzling on sentence boundaries. May need do sentence parsing of some sort.
Haskell
agpl-3.0
R-Morgan/NGramCrackers
ac83c84c8f8db7a09c1d9671aa0d073652e82c9e
src/Text/Greek/Phonology/Vowels.hs
src/Text/Greek/Phonology/Vowels.hs
module Text.Greek.Phonology.Vowels where data Vowel = Alpha | Epsilon | Eta | Iota | Omicron | Upsilon | Omega data Diphthong = Genuine Vowel Vowel | Spurious Vowel Vowel | Improper Vowel data VowelLength = Short | Long data RoundedLip = LipClosed | LipClosedMedium | LipOpen | LipOpenMedium data TonguePosition =...
module Text.Greek.Phonology.Vowels where data Vowel = Alpha | Epsilon | Eta | Iota | Omicron | Upsilon | Omega data VowelLength = Short | Long data RoundedLip = LipClosed | LipClosedMedium | LipOpen | LipOpenMedium data TonguePosition = TongueClosed | TongueClosedMedium | TongueOpen | TongueOpenMedium data Vowe...
Remove spurious/genuine distinction at the phoneme level.
Remove spurious/genuine distinction at the phoneme level. This distinction can be represented based on what contractions were used to create the phoneme.
Haskell
mit
scott-fleischman/greek-grammar,scott-fleischman/greek-grammar
e1b67b39fe8f26e68584bf5307ccbabcb36947b1
src/L0C/HOTrans/TryFusion.hs
src/L0C/HOTrans/TryFusion.hs
{-# LANGUAGE FlexibleContexts, GeneralizedNewtypeDeriving, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses #-} module L0C.HOTrans.TryFusion ( TryFusion , tryFusion , liftMaybe , liftNeedNames , liftMaybeNeedNames ) where import Control.Applicative import Control.Monad.Trans.Maybe import Co...
{-# LANGUAGE FlexibleContexts, GeneralizedNewtypeDeriving, TypeSynonymInstances, FlexibleInstances, MultiParamTypeClasses #-} module L0C.HOTrans.TryFusion ( TryFusion , tryFusion , liftMaybe , liftNeedNames , liftMaybeNeedNames ) where import Control.Applicative import Control.Monad.State import L0C.Int...
Use Maybe rather than a Maybe transformer.
Use Maybe rather than a Maybe transformer.
Haskell
isc
CulpaBS/wbBach,diku-dk/futhark,diku-dk/futhark,ihc/futhark,diku-dk/futhark,HIPERFIT/futhark,diku-dk/futhark,ihc/futhark,diku-dk/futhark,ihc/futhark,mrakgr/futhark,mrakgr/futhark,mrakgr/futhark,HIPERFIT/futhark,HIPERFIT/futhark
7e670f0dfd2c320e810bcd7bc389a1a292a4bec9
src/LiquidHaskell.hs
src/LiquidHaskell.hs
module LiquidHaskell ( -- * LiquidHaskell Specification QuasiQuoter lq -- * LiquidHaskell as a compiler plugin , plugin ) where import Language.Haskell.Liquid.UX.QuasiQuoter import Language.Haskell.Liquid.GHC.Plugin (plugin)
{-# LANGUAGE CPP #-} module LiquidHaskell ( -- * LiquidHaskell Specification QuasiQuoter lq #ifdef MIN_VERSION_GLASGOW_HASKELL #if MIN_VERSION_GLASGOW_HASKELL(8,10,0,0) -- * LiquidHaskell as a compiler plugin , plugin #endif #endif ) where import Language.Haskell.Liquid.UX.QuasiQuoter #ifdef MIN_VERS...
Use CPP to selectively export the plugin
Use CPP to selectively export the plugin
Haskell
bsd-3-clause
ucsd-progsys/liquidhaskell,ucsd-progsys/liquidhaskell,ucsd-progsys/liquidhaskell,ucsd-progsys/liquidhaskell,ucsd-progsys/liquidhaskell,ucsd-progsys/liquidhaskell
0abcc1a99a460c8ef3edfe5afd8daaabb5bd0998
src/Verifier/SAW/Prelude.hs
src/Verifier/SAW/Prelude.hs
-- Provides access to the preludeLanguage.Haskell.TH {-# LANGUAGE TemplateHaskell #-} module Verifier.SAW.Prelude ( Module , preludeModule ) where import qualified Data.ByteString.Lazy as BL import Data.ByteString.Unsafe (unsafePackAddressLen) import Language.Haskell.TH import System.IO.Unsafe (unsafePerformIO) ...
-- Provides access to the preludeLanguage.Haskell.TH {-# LANGUAGE CPP #-} {-# LANGUAGE TemplateHaskell #-} module Verifier.SAW.Prelude ( Module , preludeModule ) where import qualified Data.ByteString.Lazy as BL #if __GLASGOW_HASKELL__ >= 706 #else import qualified Data.ByteString.Lazy.UTF8 as UTF8 #endif impor...
Add compatibility with older versions of TemplateHaskell.
Add compatibility with older versions of TemplateHaskell.
Haskell
bsd-3-clause
GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script,GaloisInc/saw-script
a6747103c886bc00b5b5156d7b5df5d420a9f75b
dph-base/Data/Array/Parallel/Base/Util.hs
dph-base/Data/Array/Parallel/Base/Util.hs
module Data.Array.Parallel.Base.Util ( Tag, fromBool, toBool, tagToInt, intToTag ) where import Data.Word ( Word8 ) type Tag = Word8 fromBool :: Bool -> Tag fromBool False = 0 fromBool True = 1 {-# INLINE fromBool #-} toBool :: Tag -> Bool toBool n | n == 0 = False | otherwise = True {-# INLINE toBoo...
module Data.Array.Parallel.Base.Util ( Tag, fromBool, toBool, tagToInt, intToTag ) where import Data.Word ( Word8 ) type Tag = Int fromBool :: Bool -> Tag fromBool False = 0 fromBool True = 1 {-# INLINE fromBool #-} toBool :: Tag -> Bool toBool n | n == 0 = False | otherwise = True {-# INLINE toBool ...
Use Int instead of Word8 as tags to avoid inlining problems
Use Int instead of Word8 as tags to avoid inlining problems
Haskell
bsd-3-clause
mainland/dph,mainland/dph,mainland/dph
865e4c5d6e75cfa431bb17818119932d0dc6ba93
src/System/Taffybar/DiskIOMonitor.hs
src/System/Taffybar/DiskIOMonitor.hs
-------------------------------------------------------------------------------- -- | -- Module : System.Taffybar.DiskIOMonitor -- Maintainer : José A. Romero L. <escherdragon@gmail.com> -- -- Simple Disk IO monitor that uses a PollingGraph to visualize the speed of -- read/write operations in one selected disk or part...
-------------------------------------------------------------------------------- -- | -- Module : System.Taffybar.DiskIOMonitor -- Maintainer : José A. Romero L. <escherdragon@gmail.com> -- -- Simple Disk IO monitor that uses a PollingGraph to visualize the speed of -- read/write operations in one selected disk or part...
Fix a shadowed variable warning, add an explicit export list
Fix a shadowed variable warning, add an explicit export list
Haskell
bsd-3-clause
teleshoes/taffybar,Undeterminant/taffybar
e6eb974c2620d453a76e2324e9e82359abe9e65a
src/Server.hs
src/Server.hs
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveGeneric #-} module Main where import Web.Scotty import Data.Aeson (ToJSON) import SampleScript import Web.Scotty import qualified Text.Parsec as Parsec import Parser (cueSheet) import Interp import Data.String.Conversions (cs) import Network.Wai.Middleware.Static ...
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveGeneric #-} module Main where import Web.Scotty import Data.Aeson (ToJSON) import SampleScript import Web.Scotty import qualified Text.Parsec as Parsec import Parser (cueSheet) import Interp import Data.String.Conversions (cs) import Network.Wai.Middleware.Static ...
Update web server to allow variable PORT
Update web server to allow variable PORT
Haskell
mit
rwoll-hmc/project
c5400334551d6b24165ea123d7e47fc6b96bc1ae
src/Ermine/Console/Unicode.hsc
src/Ermine/Console/Unicode.hsc
{-# LANGUAGE CPP, ForeignFunctionInterface #-} module Ermine.Console.Unicode ( withUnicode ) where import Control.Monad.IO.Class import Control.Monad.CatchIO import System.IO ##if defined(i386_HOST_ARCH) ##define USE_CP import Control.Applicative import Foreign.C.Types foreign import stdcall "windows.h SetConsole...
{-# LANGUAGE CPP, ForeignFunctionInterface #-} module Ermine.Console.Unicode ( withUnicode ) where import Control.Monad.IO.Class import Control.Monad.CatchIO import System.IO ##if defined(i386_HOST_ARCH) ##define USE_CP import Control.Applicative import Foreign.C.Types foreign import stdcall "windows.h SetConsole...
Fix the unicode code for windows
Fix the unicode code for windows
Haskell
bsd-2-clause
PipocaQuemada/ermine,ekmett/ermine
7ad75d2efa661bc0ecc69b10abc081aaaff47d7f
src/Hi/Types.hs
src/Hi/Types.hs
{-# LANGUAGE OverloadedStrings #-} module Hi.Types ( Flag , InitFlags , Label , Option(..) , Mode(..) , Files , Error ) where type Files = [(FilePath, String)] type Flag = String type InitFlags = [(String, String)] type Error = String type Label = String -- | Options data Op...
{-# LANGUAGE OverloadedStrings #-} module Hi.Types ( InitFlags , Label , Option(..) , Mode(..) , Files , Error ) where type Files = [(FilePath, String)] type InitFlags = [(String, String)] type Error = String type Label = String -- | Options data Option = Version | Help | Arg Label Str...
Remove Flag since it wasn't used anymore
Remove Flag since it wasn't used anymore
Haskell
bsd-3-clause
jonathankochems/hi
33eacf5bc96eeb258484eb2ddf0d1ad19365d1ef
hjsmin.hs
hjsmin.hs
module Main where import Options.Applicative import Text.Jasmine import qualified Data.ByteString.Lazy as B import qualified Data.ByteString.Lazy.Char8 as C8 data Options = Options { inputFile :: String , outputFile :: Maybe String } main :: IO () main = execParser opts >>= minify' where opts...
{-# LANGUAGE CPP #-} module Main where #include "cabal_macros.h" import Options.Applicative import Text.Jasmine import qualified Data.ByteString.Lazy as B import qualified Data.ByteString.Lazy.Char8 as C8 data Options = Options { inputFile :: String , outputFile :: Maybe String } main :: IO () main = ...
Print the language-javascript version in the usage msg
Print the language-javascript version in the usage msg
Haskell
bsd-3-clause
alanz/hjsmin,alanz/hjsmin,alanz/hjsmin,alanz/hjsmin
34b95667f53f4fb9b6e1d592eb16a81be2527292
src/HSE/Eq.hs
src/HSE/Eq.hs
module HSE.Eq(eqExpShell) where import HSE.Type import HSE.Util import Data.Function import Data.Data -- A small expression ex :: Exp_ ex = Do an [] eqExpShell :: Exp_ -> Exp_ -> Bool eqExpShell x y = eqExpShellFast x y && eqExpShellSlow x y eqExpShellFast x y = toConstr x == toConstr y eqExpShellSlow = (==) `o...
module HSE.Eq(eqExpShell) where import HSE.Type import HSE.Util import Data.Function import Data.Data -- A small expression ex :: Exp_ ex = Do an [] eqExpShell :: Exp_ -> Exp_ -> Bool eqExpShell x y = eqExpShellFast x y && eqExpShellSlow x y eqExpShellFast x y = toConstr x == toConstr y eqExpShellSlow = (==) `o...
Add a comment about eqExpShellSYB
Add a comment about eqExpShellSYB
Haskell
bsd-3-clause
ndmitchell/hlint,bitemyapp/hlint,eigengrau/hlint,ndmitchell/hlint,gibiansky/hlint,mpickering/hlint
aa5b03c6ad9b1b063235f397d81f170c75ad479f
Test/Throttle.hs
Test/Throttle.hs
module Test.Throttle(main) where import Development.Shake import General.Base import Development.Shake.FilePath import Test.Type import Control.Monad main = shaken test $ \args obj -> do res <- newThrottle "test" 2 0.2 want $ map obj ["file1.1","file2.1","file3.2","file4.1","file5.2"] obj "*.*" *> \out ...
module Test.Throttle(main) where import Development.Shake import General.Base import Development.Shake.FilePath import Test.Type import Control.Monad main = shaken test $ \args obj -> do res <- newThrottle "test" 2 0.2 want $ map obj ["file1.1","file2.1","file3.2","file4.1","file5.2"] obj "*.*" *> \out ...
Make sure the throttle tests checks when everyone is waiting and nothing has been returned
Make sure the throttle tests checks when everyone is waiting and nothing has been returned
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
633fa0f4facaacea0cb22d50819e2b5577fbba11
src/Main.hs
src/Main.hs
import System.Environment import System.Exit import Text.Parsec import Text.Parsec.Error import NgLint.Parser import NgLint.Linter printUsage :: IO () printUsage = putStrLn "usage: nglint file.conf" main = do params <- getArgs case length params of 0 -> printUsage _ -> do let fi...
import System.Environment import System.Exit import Text.Parsec import Text.Parsec.Error import NgLint.Parser import NgLint.Linter printUsage :: IO () printUsage = putStrLn "usage: nglint file.conf" main = do params <- getArgs case length params of 0 -> printUsage _ -> do let fi...
Use mapM_ instead of sequence_ $ map
Use mapM_ instead of sequence_ $ map
Haskell
mit
federicobond/nglint
81b31d306b0510fbad5f60a8c16fb0d4c766ae3f
docs/manual/Build.hs
docs/manual/Build.hs
import Development.Shake import Development.Shake.Command import Development.Shake.FilePath import Development.Shake.Util main :: IO () main = shakeArgs shakeOptions{shakeFiles="_build/"} $ do want ["_build/run" <.> exe] phony "clean" $ removeFilesAfter "_build" ["//*"] "_build/run" <.> exe *> \out -> do...
import Development.Shake import Development.Shake.Command import Development.Shake.FilePath import Development.Shake.Util main :: IO () main = shakeArgs shakeOptions{shakeFiles="_build/"} $ do want ["_build/run" <.> exe] phony "clean" $ do putNormal "calling clean" removeFilesAfter "_build" ["...
Add some debug info to the manual, for the travis build
Add some debug info to the manual, for the travis build
Haskell
bsd-3-clause
ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake
e04dcb782b5335447cb676ebe7e4541cdccdaa38
exercises/hamming/src/Example.hs
exercises/hamming/src/Example.hs
module Hamming (distance) where distance :: Integral a => String -> String -> Maybe a distance (x:xs) (y:ys) = fmap (if x /= y then (+1) else id) $ distance xs ys distance [] [] = Just 0 distance _ _ = Nothing
module Hamming (distance) where distance :: Integral a => String -> String -> Maybe a distance (x:xs) (y:ys) = (if x /= y then (+1) else id) <$> distance xs ys distance [] [] = Just 0 distance _ _ = Nothing
Improve code based on HLint's suggestions.
hamming: Improve code based on HLint's suggestions.
Haskell
mit
exercism/xhaskell
4a1261af108170d42059c936983b2e6adec0783d
demo/soe/BouncingBall.hs
demo/soe/BouncingBall.hs
{- Written by Antti-Juhani Kaijanaho. You may treat this file as if it were in the public domain. -} module Main where import Graphics.SOE.Gtk main = runGraphics $ do w <- openWindowEx "Bouncing Ball" Nothing (Just (300, 300)) drawBufferedGraphic (Just 30) let loop x y xd yd = do...
{- Written by Antti-Juhani Kaijanaho. You may treat this file as if it were in the public domain. -} module Main where import Graphics.SOE.Gtk main = runGraphics $ do w <- openWindowEx "Bouncing Ball" Nothing (Just (300, 300)) drawBufferedGraphic let loop x y xd yd = do setGraphi...
Fix ball soe demo to work with newer soe api
Fix ball soe demo to work with newer soe api
Haskell
lgpl-2.1
gtk2hs/vte,gtk2hs/gstreamer,gtk2hs/webkit,gtk2hs/vte,gtk2hs/webkit,gtk2hs/webkit
c3055afe61cd385a4114131058f37a2b0f943ab7
ZoomHub/Rackspace/CloudFiles.hs
ZoomHub/Rackspace/CloudFiles.hs
{-# LANGUAGE OverloadedStrings #-} module ZoomHub.Rackspace.CloudFiles where import Control.Applicative as Applicative import Control.Lens as Lens hiding ((.=)) -- .= used in Data.Aeson as well import Data.Aeson as Aeson import Data.Aeson.Lens as Aeson import Network.Wreq as HTTP import qualified Control.Monad.IO.Cl...
{-# LANGUAGE OverloadedStrings #-} module ZoomHub.Rackspace.CloudFiles where import Control.Applicative as Applicative import Control.Lens as Lens hiding ((.=)) -- .= used in Data.Aeson as well import Data.Aeson as Aeson import Data.Aeson.Lens as Aeson import Network.Wreq as HTTP import qualified Control.Monad.IO.Cl...
Use `<$>` (`fmap`) to simplify `Maybe` logic
Use `<$>` (`fmap`) to simplify `Maybe` logic
Haskell
mit
zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub,zoomhub/zoomhub
876bc0935d3acc8a32b76a7853ca0fa7f0551094
examples/info/Main.hs
examples/info/Main.hs
module Main where import Control.Exception import Data.Foldable import Text.Pretty.Simple import Vulkan.Core10 import Vulkan.Zero main :: IO () main = withInstance zero Nothing bracket $ \i -> do myPrint i (_, layers ) <- enumerateInstanceLayerProperties (_...
module Main where import Control.Exception import Data.Foldable import Text.Pretty.Simple import Vulkan.Core10 import Vulkan.Zero main :: IO () main = withInstance zero Nothing bracket $ \i -> do myPrint i (_, layers ) <- enumerateInstanceLayerProperties (_, ...
Print device memory properties in info example
Print device memory properties in info example
Haskell
bsd-3-clause
expipiplus1/vulkan,expipiplus1/vulkan,expipiplus1/vulkan
6c255fb5b3d9d7dff7550cd59ab78bfc1508cdd6
exercises/rna-transcription/examples/success-standard/src/DNA.hs
exercises/rna-transcription/examples/success-standard/src/DNA.hs
module DNA (toRNA) where toRNA :: String -> Either Char String toRNA = mapM fromDNA where fromDNA :: Char -> Either Char Char fromDNA 'C' = return 'G' fromDNA 'G' = return 'C' fromDNA 'A' = return 'U' fromDNA 'T' = return 'A' fromDNA c = Left c
module DNA (toRNA) where toRNA :: String -> Either Char String toRNA = traverse fromDNA where fromDNA :: Char -> Either Char Char fromDNA 'C' = return 'G' fromDNA 'G' = return 'C' fromDNA 'A' = return 'U' fromDNA 'T' = return 'A' fromDNA c = Left c
Change `mapM` to `traverse` in example
rna-transcription: Change `mapM` to `traverse` in example `mapM` is just an alias for `traverse`, and `traverse` is the more general and preferred version.
Haskell
mit
exercism/xhaskell
fb722ebdc1811c5d7a24b1edac8b5162174a1f66
src/Text/Markdown.hs
src/Text/Markdown.hs
module Text.Markdown (toHTML) where import Text.Pandoc ( Pandoc , readMarkdown , writeHtmlString , def ) import Data.ByteString.Lazy.Char8 (ByteString, pack) writeHTMLStr :: Pandoc -> String writeHTMLStr = writeHtmlString def -- Function fo...
module Text.Markdown (toHTML) where import Text.Pandoc ( readMarkdown , writeHtmlString , def ) import Data.ByteString.Lazy.Char8 (ByteString, pack) -- Function for translating Markdown to HTML since `Pandoc` has several -- different generators for other marku...
Move `writeHTMLStr` back into `toHTML` function
Move `writeHTMLStr` back into `toHTML` function
Haskell
mit
sourrust/hyakko
d9ce111a77175d543390f83ad28b310de663232f
MS3/lib/DNA/Interpreter/Testing.hs
MS3/lib/DNA/Interpreter/Testing.hs
-- | Utilities for stress testing DNA code module DNA.Interpreter.Testing where import Control.Monad import Control.Monad.IO.Class import System.Random -- | Crash process crashMaybe :: MonadIO m => Double ->m () crashMaybe pCrash = liftIO $ do roll <- liftIO randomIO when (roll < pCrash) $ error "Ooops crash...
-- | Utilities for stress testing DNA code module DNA.Interpreter.Testing where import Control.Monad import Control.Monad.IO.Class import Control.Concurrent (threadDelay) import Control.Distributed.Process import System.Random import DNA.Types -- | Crash process crashMaybe :: MonadProcess m => Double -> m () crashMa...
Add delay before crashing. It uncovers internal error
Add delay before crashing. It uncovers internal error
Haskell
apache-2.0
SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC,SKA-ScienceDataProcessor/RC
553176ae405b490e059a57d5fcc939e6e44f99d1
src/System/Taffybar/Widget/Decorators.hs
src/System/Taffybar/Widget/Decorators.hs
{-# LANGUAGE OverloadedStrings #-} module System.Taffybar.Widget.Decorators where import Control.Monad.IO.Class import qualified GI.Gtk as Gtk import System.Taffybar.Widget.Util -- | Wrap a widget with two container boxes. The inner box will have the class -- "inner-pad", and the outer box will ha...
{-# LANGUAGE OverloadedStrings #-} module System.Taffybar.Widget.Decorators where import Control.Monad.IO.Class import qualified GI.Gtk as Gtk import System.Taffybar.Widget.Util -- | Wrap a widget with two container boxes. The inner box will have the class -- "inner-pad", and the outer box will ha...
Use box new for outerBox
Use box new for outerBox
Haskell
bsd-3-clause
teleshoes/taffybar
2654a91a63129caefa74f385e13531e7e2fa5360
Hints.hs
Hints.hs
module Hints where import Data.List -- concatMap f x concat_map f x = concat (map f x) -- map (f . g) x map_map f g x = map f (map g x) -- x : y box_append x y = [x] ++ y -- head x head_index x = x !! 0 -- tail x tail_drop x = drop 1 x -- replicate n x use_replicate n x = take n (repeat x) -- unwords (x:xs) u...
module Hints where import Data.List -- concatMap f x concat_map f x = concat (map f x) -- map (f . g) x map_map f g x = map f (map g x) -- x : y box_append x y = [x] ++ y -- head x head_index x = x !! 0 -- replicate n x use_replicate n x = take n (repeat x) -- unwords (x:xs) use_unwords1 x xs = x ++ concatMap ...
Remove tail_drop, the behaviour for tail [] vs drop 1 [] is different
Remove tail_drop, the behaviour for tail [] vs drop 1 [] is different
Haskell
bsd-3-clause
eigengrau/hlint,bitemyapp/hlint,mpickering/hlint,ndmitchell/hlint,gibiansky/hlint,ndmitchell/hlint
aefac4baed6321a97c186f55ba1f285af41d7489
testsuite/tests/Shaker/CommonTest.hs
testsuite/tests/Shaker/CommonTest.hs
module Shaker.CommonTest where import System.Directory import Test.HUnit import Control.Exception import Shaker.Type import Shaker.SourceHelper import Shaker.GhcInterface import Shaker.Cabal.CabalInfo import Control.Monad.Reader import GHC (runGhc) import GHC.Paths runTestOnDirectory :: FilePath -> Assertion -> A...
module Shaker.CommonTest where import System.Directory import Test.HUnit import Control.Exception import Shaker.Type import Shaker.SourceHelper import Shaker.GhcInterface import Shaker.Cabal.CabalInfo import Control.Monad.Reader import DynFlags import GHC (runGhc) import GHC.Paths runTestOnDirectory :: FilePath ...
Add test function to get packageId from ExposePackageId
Add test function to get packageId from ExposePackageId
Haskell
isc
bonnefoa/Shaker
f4258bfdbfed3bd02e2b7909cdd278230e4cf227
src/Parallel.hs
src/Parallel.hs
{- The parallel function (specialised to lists) is equivalent to: import Control.Parallel.Strategies parallel = return $ withStrategy (parList $ seqList r0) $ map unsafePerformIO However, this version performs about 10% slower with 2 processors in GHC 6.12.1 -} module Parallel(parallel) where import System.IO.Unsaf...
{- The parallel function (specialised to lists) is equivalent to: import Control.Parallel.Strategies parallel :: [IO [a]] -> IO [[a]] parallel = return . withStrategy (parList $ seqList r0) . map unsafePerformIO However, this version performs about 10% slower with 2 processors in GHC 6.12.1 -} module Parallel(parall...
Fix the commented code for running with strategies
Fix the commented code for running with strategies
Haskell
bsd-3-clause
mpickering/hlint,ndmitchell/hlint,bitemyapp/hlint,eigengrau/hlint,gibiansky/hlint,ndmitchell/hlint
9f99e240df6f3c5ad8597e2dafd9a73220dd87d3
src/Oracles/ArgsHash.hs
src/Oracles/ArgsHash.hs
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving #-} module Oracles.ArgsHash (checkArgsHash, argsHashOracle) where import Expression import Settings import Settings.Args import Target newtype ArgsHashKey = ArgsHashKey Target deriving (Show, Eq, Typeable, Binary, Hashable, NFData) -- This is an action ...
{-# LANGUAGE DeriveDataTypeable, GeneralizedNewtypeDeriving #-} module Oracles.ArgsHash (checkArgsHash, argsHashOracle) where import Expression import Settings import Settings.Args import Target newtype ArgsHashKey = ArgsHashKey Target deriving (Show, Eq, Typeable, Binary, Hashable, NFData) -- This is an action ...
Put when trackBuildSystem conditional more precisely.
Put when trackBuildSystem conditional more precisely.
Haskell
bsd-3-clause
izgzhen/hadrian,bgamari/shaking-up-ghc,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,quchen/shaking-up-ghc,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,snowleopard/hadrian,snowleopard/shaking-up-ghc
aaf45a261479320d008beaae5147e94685aad0a1
src/Language.hs
src/Language.hs
module Language ( parse, interpret, createGfx, module Language.LanguageAst ) where import Control.Monad.State.Strict import Control.Monad.Writer.Strict import Control.Monad.Except import Language.LanguageParser (parseProgram) import Language.Interpreter.Types (currentGfx) import Language.Interpreter (interp...
module Language ( parse, interpret, createGfx, module Language.LanguageAst ) where import Control.Monad.State.Strict import Control.Monad.Writer.Strict import Control.Monad.Except import Language.LanguageParser (parseProgram) import Language.Interpreter.Types (currentGfx, InterpreterProcess) import Language...
Add further stdlib functions to interpreter
Add further stdlib functions to interpreter
Haskell
bsd-3-clause
rumblesan/improviz,rumblesan/improviz
ca14e4814a1a392fd8a6bf078ccb41c8e3614352
tests/Sanity.hs
tests/Sanity.hs
import Criterion.Main (bench, defaultMain, whnf) import System.Exit (exitFailure) import System.IO (hPutStrLn, stderr) import System.Timeout (timeout) fib :: Int -> Int fib = sum . go where go 0 = [0] go 1 = [1] go n = go (n-1) ++ go (n-2) main :: IO () main = do let tooLong = 30 wat <- timeout ...
import Criterion.Main (bench, defaultMain, whnf) import System.Exit (exitFailure) import System.IO (hPutStrLn, stderr) import System.Timeout (timeout) fib :: Int -> Int fib = sum . go where go 0 = [0] go 1 = [1] go n = go (n-1) ++ go (n-2) main :: IO () main = do let tooLong = 30 wat <- timeout ...
Add a second fib test
Add a second fib test
Haskell
bsd-2-clause
iu-parfunc/criterion,bgamari/criterion,paulolieuthier/criterion,osa1/criterion,osa1/criterion,iu-parfunc/criterion,bos/criterion,rrnewton/criterion,paulolieuthier/criterion,bgamari/criterion,bos/criterion,bos/criterion,rrnewton/criterion,bgamari/criterion,iu-parfunc/criterion,rrnewton/criterion,paulolieuthier/criterion
b208c526b57a0ecac460b5c76cbde139a0f2a2d4
Handler/ResetToken.hs
Handler/ResetToken.hs
module Handler.ResetToken where import Import import Betty.Token (newToken, setToken) -- TODO: write tests postResetTokenR :: Handler Html postResetTokenR = do -- no representation without authorization Entity k u <- requireAuth let email = userEmail u -- generate new api key token <- lift new...
module Handler.ResetToken where import Import import Betty.Token (newToken, setToken) -- TODO: write tests postResetTokenR :: Handler Html postResetTokenR = do -- no representation without authorization Entity k u <- requireAuth let email = userEmail u -- generate new api key token <- lift new...
Update setToken call with correct params
Update setToken call with correct params
Haskell
agpl-3.0
sajith/betty-web
e39fc2d0165e4d811ca74faf284fc8ba191a3b24
src/PostgRESTWS/Claims.hs
src/PostgRESTWS/Claims.hs
module PostgRESTWS.Claims ( validateClaims ) where import Protolude import qualified Data.HashMap.Strict as M import PostgREST.Auth as PGR import Web.JWT (binarySecret) import Data.Aeson (Value (..)) import ...
module PostgRESTWS.Claims ( validateClaims ) where import Protolude import qualified Data.HashMap.Strict as M import PostgREST.Auth as PGR import Web.JWT (binarySecret) import Data.Aeson (Value (..)) import ...
Remove unnecessary qualifier from data constructor
Remove unnecessary qualifier from data constructor
Haskell
mit
diogob/postgrest-ws,diogob/postgrest-ws,diogob/postgrest-ws
b1cdb6f5b72181445eda82233d11a5110576c1d1
exercises/leap/src/LeapYear.hs
exercises/leap/src/LeapYear.hs
module LeapYear (isLeapYear) where isLeapYear :: Integer -> Bool isLeapYear = undefined
module LeapYear (isLeapYear) where isLeapYear :: Integer -> Bool isLeapYear year = undefined
Add variable to stub solution's signature.
leap: Add variable to stub solution's signature. Considering that `leap` is the first exercise of the track, this small change may help a beginner, because he|she may think that the part before `=` should not be changed. More experienced students will certainly already know that they can eta-reduce the function, so I...
Haskell
mit
exercism/xhaskell
42b2b1431cf14b0af583e9fb72f269e875999678
proj1/Cuboide.hs
proj1/Cuboide.hs
module Geometria.Cuboide ( volume , area ) where volume :: Float -> Float -> Float -> Float volume a b c = areaRetangulo a b * c area :: Float -> Float -> Float -> Float area a b c = areaRetangulo a b * 2 + areaRetangulo a c * 2 + areaRetangulo c b * 2 areaRetangulo :: Float -> Float -> Float areaRetangulo a b = a *...
module Geometria.Cuboide ( volume , area ) where volume :: Float -> Float -> Float -> Float volume a b c = areaRetangulo a b * c area :: Float -> Float -> Float -> Float area a b c = areaRetangulo a b * 2 + areaRetangulo a c * 2 + areaRetangulo c b * 2 areaRetangulo :: Float -> Float -> Float areaRetangulo a b...
Format spaces betw these funcs
Format spaces betw these funcs
Haskell
mit
tonussi/freezing-dubstep,tonussi/freezing-dubstep,tonussi/freezing-dubstep
355535397f911924f131f4d3df5514fb078a3bad
tests/unit-tests/LoaderTests.hs
tests/unit-tests/LoaderTests.hs
{-# LANGUAGE OverloadedStrings #-} module LoaderTests (main) where import Control.Lens import Control.Monad.Trans.Except import Data.Text (Text) import qualified Data.Text.IO as TIO import Ermine.Loader.Core import Ermine.Loader.Filesystem import System.FilePath ((</>)) import Test.Framework.Providers.API import Test....
{-# LANGUAGE OverloadedStrings #-} module LoaderTests (main) where import Control.Lens import Control.Monad (forM_) import Control.Monad.Trans.Except import Data.Functor (void) import Data.Text (Text, pack) import qualified Data.Text.IO as TIO import Ermine.Loader.Core import Ermine.Loader.Filesystem import System.Fil...
Test that filesystemLoader recognizes bad module names.
Test that filesystemLoader recognizes bad module names.
Haskell
bsd-2-clause
PipocaQuemada/ermine
81d7424d55f0b61a42f91aa79921604ae2322c2d
example-api/Type/Post.hs
example-api/Type/Post.hs
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE DeriveDataTypeable , DeriveGeneric , TemplateHaskell , TypeFamilies #-} module Type.Post where import Data.Aeson import Data.JSON.Schema import Data.Text (Text) import Data.Time (UTCTime) import Data.Typeable import GHC.Generics import Generics.Regular imp...
{-# OPTIONS_GHC -fno-warn-orphans #-} {-# LANGUAGE DeriveDataTypeable , DeriveGeneric , TemplateHaskell , TypeFamilies #-} module Type.Post where import Data.Aeson import Data.JSON.Schema import Data.JSON.Schema.Combinators import Data.Text (Text) import Data.Time (UTCTime) import Data.Typeable import GHC....
Update for next json-schema release
Update for next json-schema release
Haskell
bsd-3-clause
tinkerthaler/basic-invoice-rest,tinkerthaler/basic-invoice-rest
a7e4d7982fef647ffb1bef2d34bbfe291e9c2211
libraries/integer-simple/GHC/Integer/Type.hs
libraries/integer-simple/GHC/Integer/Type.hs
{-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.Integer.Type -- Copyright : (c) Ian Lynagh 2007-2008 -- License : BSD3 -- -- Maintainer : igloo@earth.li -- Stability : internal -- Portability : non-portable (GHC ...
{-# LANGUAGE NoImplicitPrelude #-} ----------------------------------------------------------------------------- -- | -- Module : GHC.Integer.Type -- Copyright : (c) Ian Lynagh 2007-2008 -- License : BSD3 -- -- Maintainer : igloo@earth.li -- Stability : internal -- Portability : non-portable (GHC ...
Add an import so the deps get sorted out correctly
Add an import so the deps get sorted out correctly
Haskell
bsd-3-clause
siddhanathan/ghc,ezyang/ghc,mettekou/ghc,olsner/ghc,fmthoma/ghc,sdiehl/ghc,da-x/ghc,mcschroeder/ghc,nkaretnikov/ghc,frantisekfarka/ghc-dsi,mfine/ghc,sdiehl/ghc,ezyang/ghc,jstolarek/ghc,tjakway/ghcjvm,siddhanathan/ghc,siddhanathan/ghc,forked-upstream-packages-for-ghcjs/ghc,anton-dessiatov/ghc,ghc-android/ghc,green-haske...
f161e74a87e93590ccf66a9baa01536ab2de67e9
src/Configuration.hs
src/Configuration.hs
-- Copyright 2016 Ruud van Asseldonk -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License version 3. See -- the licence file in the root of the repository. {-# LANGUAGE DeriveGeneric #-} module Configuration (Configuration, loadConfiguratio...
-- Copyright 2016 Ruud van Asseldonk -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License version 3. See -- the licence file in the root of the repository. {-# LANGUAGE DeriveGeneric #-} module Configuration (Configuration, loadConfiguratio...
Add path to local checkout to configuration
Add path to local checkout to configuration
Haskell
apache-2.0
ruuda/hoff,ruuda/hoff
26668243b5b77cf15eaf107e651ecc0b2bbdbbf5
src/NGramCrackers/NGramCrackers.hs
src/NGramCrackers/NGramCrackers.hs
module NGramCrackers.NGramCrackers ( bigrams , trigrams , getNGramsFromString , getNGramsFromList , getAlphasOnlyToString , getAlphasOnlyToList ) where import Data.Char (isAlpha, toLower) import ListManipulation bigrams :: [Char] -> [String] bigrams wordString = getNGramsFromString 2 wordString trigrams :: [Char] ...
module NGramCrackers.NGramCrackers ( bigrams , trigrams , getNGramsFromString , getNGramsFromList , getAlphasOnlyToString , getAlphasOnlyToList ) where import Data.Char (isAlpha, toLower) import ListManipulation {-| Extract bigrams from a string -} bigrams :: [Char] -> [String] bigrams wordString = getNGramsFromStr...
Add haddock-style comments to functions
Add haddock-style comments to functions
Haskell
agpl-3.0
R-Morgan/NGramCrackers
9affe8f6b3a9b07367c8c14162aecea8b15856a6
driver/Main.hs
driver/Main.hs
{-# LANGUAGE ScopedTypeVariables #-} module Main where import Control.Exception import Documentation.Haddock (haddock) import System.Environment (getArgs) import System.Exit (exitFailure) import System.IO main :: IO () main = getArgs >>= expandResponse >>= haddock -- | Arguments which look like '@foo' will be repla...
{-# LANGUAGE ScopedTypeVariables #-} module Main where import Control.Exception import Documentation.Haddock (haddock) import System.Environment (getArgs) import System.Exit (exitFailure) import System.IO main :: IO () main = getArgs >>= expandResponse >>= haddock -- | Arguments which look like '@foo' will be repla...
Break the response file by line termination rather than spaces, since spaces may be within the parameters. This simple approach avoids having the need for any quoting and/or escaping (although a newline char will not be possible in a parameter and has no escape mechanism to allow it).
Break the response file by line termination rather than spaces, since spaces may be within the parameters. This simple approach avoids having the need for any quoting and/or escaping (although a newline char will not be possible in a parameter and has no escape mechanism to allow it).
Haskell
bsd-2-clause
Acidburn0zzz/haddock,Fuuzetsu/haddock,randen/haddock,randen/haddock,haskell/haddock,niteria/haddock,Helkafen/haddock,idontgetoutmuch/haddock,lamefun/haddock,haskell/haddock,haskell/haddock,haskell/haddock,mrhania/haddock,sboosali/haddock,haskell/haddock,mrhania/haddock,mrhania/haddock,niteria/haddock,niteria/haddock,be...
9aba1db831f1822793cea96599302c8baba286e1
src/Language/Haskell/Ghcid/Terminal.hs
src/Language/Haskell/Ghcid/Terminal.hs
{-# LANGUAGE CPP #-} module Language.Haskell.Ghcid.Terminal( terminalSize, terminalTopmost, ) where #if !defined(mingw32_HOST_OS) import qualified System.Console.Terminal.Size as Terminal import System.IO (stdout) import Data.Tuple.Extra #endif #if defined(mingw32_HOST_OS) foreign import stdcall unsafe "windo...
{-# LANGUAGE CPP #-} module Language.Haskell.Ghcid.Terminal( terminalSize, terminalTopmost, ) where #if !defined(mingw32_HOST_OS) import qualified System.Console.Terminal.Size as Terminal import System.IO (stdout) import Data.Tuple.Extra #endif #if defined(mingw32_HOST_OS) foreign import stdcall unsafe "windo...
Add a top-level type signature
Add a top-level type signature
Haskell
bsd-3-clause
ndmitchell/ghcid
0e894f33af598a6c75958f47eec178ff162a545b
main.hs
main.hs
{-# LANGUAGE DeriveDataTypeable #-} import Import import Export import System.Console.CmdLib data Cmd = Import { repo :: String, format :: RepoFormat } | Export { repo :: String } deriving (Eq, Typeable, Data) instance Attributes Cmd where attributes _ = repo %> [ Positional 0 ] readFlag _ = rea...
{-# LANGUAGE DeriveDataTypeable #-} import Import import Export import System.Console.CmdLib data Cmd = Import { repo :: String, format :: RepoFormat } | Export { repo :: String } deriving (Eq, Typeable, Data) instance Attributes Cmd where attributes _ = repo %> [ Positional 0 ] %% ...
Add help for --format, and a default value.
Add help for --format, and a default value.
Haskell
bsd-3-clause
nh2/darcs-fastconvert
bd0a233ebe1ce580b83d8877d67d300d50edf6c8
src/Pos/Block/Logic.hs
src/Pos/Block/Logic.hs
{-# LANGUAGE FlexibleContexts #-} -- | Logic of blocks processing. module Pos.Block.Logic ( verifyBlock , applyBlock ) where import Control.Lens ((^.)) import Control.Monad.Catch (onException) import Universum import Pos.Context (p...
{-# LANGUAGE FlexibleContexts #-} -- | Logic of blocks processing. module Pos.Block.Logic ( verifyBlock , applyBlock ) where import Control.Lens ((^.)) import Control.Monad.Catch (onException) import Universum import Pos.Context (p...
Add more stuff to applyBlock
[CSL-306] Add more stuff to applyBlock
Haskell
apache-2.0
input-output-hk/pos-haskell-prototype,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,input-output-hk/cardano-sl
351008c3251bf25f38d67e17dc74dcd4408edfbf
src/Clay/Pseudo.hs
src/Clay/Pseudo.hs
{-# LANGUAGE OverloadedStrings #-} module Clay.Pseudo where import Data.Text (Text) import Clay.Selector -- List of specific pseudo classes, from: -- https://developer.mozilla.org/en-US/docs/CSS/Pseudo-classes after, before :: Refinement after = ":after" before = ":before" link, visited, active, hover, focus, fi...
{-# LANGUAGE OverloadedStrings #-} module Clay.Pseudo where import Data.Text (Text) import Clay.Selector -- List of specific pseudo classes, from: -- https://developer.mozilla.org/en-US/docs/CSS/Pseudo-classes after, before :: Refinement after = ":after" before = ":before" link, visited, active, hover, focus, fi...
Add :last-child pseudo selector as a refinement
Add :last-child pseudo selector as a refinement
Haskell
bsd-3-clause
rbros/clay,rbros/clay
1c33ad3e59f1d39bd2d4749e70dca9626c0d6ea9
hackerrank/ClimbingTheLaderboard.hs
hackerrank/ClimbingTheLaderboard.hs
-- https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem -- How to run: stack runhaskell ClimbingTheLaderboard.hs import Control.Exception.Base(assert) import qualified Data.Set as Set readScores :: Int -> IO([Int]) readScores size = do line <- getLine let leaderboard = map (read :: String -> Int)...
-- https://www.hackerrank.com/challenges/climbing-the-leaderboard/problem -- How to run: stack runhaskell ClimbingTheLaderboard.hs import Control.Exception.Base(assert) import qualified Data.Set as Set readScores :: Int -> IO([Int]) readScores size = do line <- getLine let leaderboard = map (read :: String -> Int)...
Improve solution to O(n) complexity.
Improve solution to O(n) complexity.
Haskell
mit
julianespinel/training,julianespinel/trainning,julianespinel/trainning,julianespinel/training,julianespinel/training,julianespinel/training
5c3de5e72d9bf8dde830e380a65db89dc036b01d
src/Text/Markdown.hs
src/Text/Markdown.hs
module Text.Markdown (toHTML) where import Text.Pandoc ( readMarkdown , writeHtmlString , defaultParserState , defaultWriterOptions ) -- Function for translating Markdown to HTML since `Pandoc` has several -- different generators for other markup languages. toHTML :: String -> String toHTML = writeHtmlStrin...
module Text.Markdown (toHTML) where import Text.Pandoc ( readMarkdown , writeHtmlString , defaultParserState , defaultWriterOptions ) import Data.ByteString.Lazy.Char8 (ByteString, pack) -- Function for translating Markdown to HTML since `Pandoc` has several -- different generators for other markup language...
Switch toHTML function to Lazy ByteStrings.
Switch toHTML function to Lazy ByteStrings. This is the first part of making hyakko deal with ByteString instead of regular Strings.
Haskell
mit
sourrust/hyakko
54dc950b4cce76e2f385394e172bb9c5a4dec8df
2270488/A.hs
2270488/A.hs
import Control.Applicative import Control.Monad import Data.List import Text.Printf main = do tests <- readLn forM_ [1..tests] $ \caseNum -> do b <- replicateM 4 getLine _ <- getLine let check c = any (all (\(i,j) -> good $ b!!i!!j)) ps where good x = x == c || x == 'T' ps = [[(i,...
import Control.Applicative import Control.Monad import Data.List import Text.Printf main = do tests <- readLn forM_ [1..tests] $ \caseNum -> do b <- replicateM 4 getLine _ <- getLine let check c = any (all (\(i,j) -> good $ b!!i!!j)) ps where good x = x == c || x == 'T' ps = [[(i,...
Use elem instead of checking if any eq
Use elem instead of checking if any eq
Haskell
mit
marknsikora/codejam,marknsikora/codejam
7fd75eab60cc919c75d96f5e8c670ae5f800218e
Example.hs
Example.hs
module Example where {- main xs = map head xs -} {- main x = neq x neq = not . eq eq x = x == (0::Int) -} {- main x y = neq (x::Int) y neq x y = not (x == y) -} {- main xs = (a . b . c) xs a x = x+(1::Int) b x = x*(4::Int) c x = x-(3::Int) -} main x = even (x :: Int)
module Example where {- main xs = map head xs -} {- main x = neq x neq = not . eq eq x = x == (0::Int) -} {- main x y = neq (x::Int) y neq x y = not (x == y) -} {- main xs = (a . b . c) xs a x = x+(1::Int) b x = x*(4::Int) c x = x-(3::Int) -} {- main x = even (x :: Int) -} {- main x = show (x :: Int) -} main =...
Add some more progressively harder examples
Add some more progressively harder examples
Haskell
bsd-3-clause
ndmitchell/firstify
2d011374c04c03d0debd94e88059ba0f92c15302
src/Language/K3/Optimization/Core.hs
src/Language/K3/Optimization/Core.hs
module Language.K3.Optimization.Core where import qualified Data.Set as S import Language.K3.Core.Common data OptHint -- | The sets of identifiers which can be bound by reference, by copy without writeback, and by -- copy with writeback. = BindHint (S.Set Identifier, S.Set Identifier, S.Set Identifier) ...
module Language.K3.Optimization.Core where import qualified Data.Set as S import Language.K3.Core.Common data OptHint -- | The sets of identifiers which can be bound by reference, by copy without writeback, and by -- copy with writeback. = BindHint (S.Set Identifier, S.Set Identifier, S.Set Identifier) ...
Add OptHint annotations to track pass and accept forms.
Add OptHint annotations to track pass and accept forms.
Haskell
apache-2.0
DaMSL/K3,DaMSL/K3,yliu120/K3
bd26d9cdd70387a53804ea89204f60fee02ae56b
Setup.hs
Setup.hs
#!/usr/bin/env runhaskell {-# LANGUAGE NamedFieldPuns #-} {-# OPTIONS_GHC -Wall -Werror #-} import System.Directory (removeFile) import System.FilePath ((</>)) import Distribution.PackageDescription (PackageDescription) import Distribution.Simple (UserHooks(..), defaultMainWithHooks, simpl...
#!/usr/bin/env runhaskell {-# LANGUAGE NamedFieldPuns #-} {-# OPTIONS_GHC -Wall -Werror #-} import System.Directory (removeFile) import System.FilePath ((</>)) import Distribution.PackageDescription (PackageDescription) import Distribution.Simple (UserHooks(..), defaultMainWithHooks, simp...
Support for Cabal 1.17.0 and greater
Support for Cabal 1.17.0 and greater Because writeFileAtomic use ByteString instead of string in new Cabal
Haskell
mit
lambda-llama/bitset,lambda-llama/bitset
a4a577ebea62d09ab66de69fb3e248fec1fa6c55
Puppet/NativeTypes/Mount.hs
Puppet/NativeTypes/Mount.hs
module Puppet.NativeTypes.Mount (nativeMount) where import Puppet.NativeTypes.Helpers import Puppet.Interpreter.Types import qualified Data.Text as T nativeMount :: (NativeTypeName, NativeTypeMethods) nativeMount = ("mount", nativetypemethods parameterfunctions return) parameterfunctions :: [(T.Text, [T.Text -> Nati...
module Puppet.NativeTypes.Mount (nativeMount) where import Puppet.NativeTypes.Helpers import Puppet.Interpreter.Types import qualified Data.Text as T nativeMount :: (NativeTypeName, NativeTypeMethods) nativeMount = ("mount", nativetypemethods parameterfunctions return) parameterfunctions :: [(T.Text, [T.Text -> Nati...
Fix which arguments are mandatory in mounts
Fix which arguments are mandatory in mounts
Haskell
bsd-3-clause
bartavelle/language-puppet,bartavelle/language-puppet
e3f029197817eb62889c79dda5337c4ab930fe01
lib/Data/Capnp.hs
lib/Data/Capnp.hs
module Data.Capnp where -- | A 'Get' is a wrapper around a @get_*@ function for a field. This is -- intended to be used with the OverloadedLabels extension, like -- @'get' #myField struct@. The newtype wrapper and 'get' function allow -- us to disambiguate between different uses of @#myField@. newtype Get m parent chi...
module Data.Capnp where -- | A 'Get' is a wrapper around a @get_*@ function for a field. This is -- intended to be used with the OverloadedLabels extension, like -- @'get' #myField struct@. The newtype wrapper and 'get' function allow -- us to disambiguate between different uses of @#myField@. newtype Get m parent chi...
Add a 'New' newtype wrapper.
Add a 'New' newtype wrapper. This will wrap upcoming new_* functions, which return a newly allocated field.
Haskell
mit
zenhack/haskell-capnp
96e90507dcddd9634b91099dfd19ef5fd17df654
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 scope related errors.
Add new scope related errors.
Haskell
bsd-3-clause
vituscze/norri
3cab6b88649ca082dc3cd32096476845fe50c7af
misc/HLint_Hints.hs
misc/HLint_Hints.hs
import "hint" HLint.HLint -- Hints that apply only to the HLint source code error = QVarOp a (UnQual b x) ==> toNamed x error = QConOp a (UnQual b x) ==> toNamed x error = UnQual a (Symbol b x) ==> toNamed x error = UnQual a (Ident b x) ==> toNamed x error = idea Warning ==> warn error = idea Suggestion ==> suggest...
import "hint" HLint.HLint -- Hints that apply only to the HLint source code error = QVarOp a (UnQual b x) ==> toNamed x error = QConOp a (UnQual b x) ==> toNamed x error = UnQual a (Symbol b x) ==> toNamed x error = UnQual a (Ident b x) ==> toNamed x error = idea Warning ==> warn error = idea Suggestion ==> suggest...
Drop the ignore warnings, no longer necessary
Drop the ignore warnings, no longer necessary
Haskell
bsd-3-clause
ndmitchell/hlint,ndmitchell/hlint
d15b2549d5bfacc52af5c35eae938a115402552e
src/HasteMain.hs
src/HasteMain.hs
module Main where import Haste import Haste.DOM (withElems, getValue, setProp) import Haste.Events (onEvent, MouseEvent(Click)) import PLexceptGOTOdotNET main = withElems ["prog", "result", "run-button"] driver driver [progElem, resultElem, runButtonElem] = do onEvent runButtonElem Click $ \_ -> do Just...
module Main where import Haste import Haste.DOM (withElems, getValue, setProp) import Haste.Events (onEvent, MouseEvent(Click)) import PLexceptGOTOdotNET (run) main = withElems ["prog", "result", "run-button"] driver driver [progElem, resultElem, runButtonElem] = onEvent runButtonElem Click $ \_ -> do J...
Simplify a little more, even.
Simplify a little more, even.
Haskell
unlicense
catseye/PL-GOTO.NET
106a97978ea17a9163823b91979cec0454f8bb18
src/MultisetExample.hs
src/MultisetExample.hs
{-# LANGUAGE OverloadedStrings #-} module MultisetExample where import qualified Data.MultiSet as MultiSet import qualified Data.Text.Lazy as LazyText import qualified Data.Text.Lazy.Builder as LazyBuilder import Data.Text.Lazy.Builder.Int (decimal) import Data.Ord (Down(..)) import qualified Data.Char as Char import...
{-# LANGUAGE OverloadedStrings #-} module MultisetExample where import qualified Data.MultiSet as MultiSet import qualified Data.Text.Lazy as LazyText import qualified Data.Text.Lazy.Builder as LazyBuilder import Data.Text.Lazy.Builder.Int (decimal) import Data.Ord (Down(..)) import qualified Data.Char as Char import...
Add traditional syntax for Day 8.
Add traditional syntax for Day 8.
Haskell
bsd-3-clause
FranklinChen/twenty-four-days2015-of-hackage
670d374b9febad3793f5588cac4f2cf3f745cae0
LocalSettings.hs
LocalSettings.hs
module LocalSettings where screenSize :: Int screenSize = screenSizeiPad2Landscape screenSizeiPad2Landscape :: Int screenSizeiPad2Landscape = 18 screenSizeiPhone4Portrait :: Int screenSizeiPhone4Portrait = 9
module LocalSettings ( screenSize , screenWidth , screenDetail ) where data DeviceType = Console | Ipad2 | Iphone4 device :: DeviceType screenSize :: Int screenSize = case device of Console -> screenSizeConsole Ipad2 -> screenSizeiPad2Landscape Iphone4...
Make local settings a bit more flexible
Make local settings a bit more flexible
Haskell
mit
tnrangwi/haskellGames4iPad
09cf1b10a15266b37b208eb7cefed6ae8081e653
Handler/System.hs
Handler/System.hs
module Handler.System where import Import import System.Process (readProcess) getSystemR :: Handler String getSystemR = liftIO $ do x <- readProcess "df" ["-ih"] "" y <- readProcess "ls" ["-lh", "/tmp"] "" return $ unlines [x, y]
module Handler.System where import Import import System.Process (readProcess) getSystemR :: Handler String getSystemR = liftIO $ readProcess "df" ["-ih"] ""
Remove some incriminating info from /system
Remove some incriminating info from /system
Haskell
mit
fpco/stackage-server
2b040516e0be223e7c171a4f6087be9b7fff8b03
clk-ls.hs
clk-ls.hs
module App.Clk.Command.Ls where import App.Clk.Util import Data.Time.Clock import System.Directory import Text.Regex.Posix type Name = String type Tags = [String] type Message = String data Entry = Entry Name UTCTime Tags Message deriving Show instance Read Entry where readsPrec _ line = [( Entry nam...
import App.Clk.Util import Data.Time.Clock import System.Directory import Text.Regex.Posix type Name = String type Tags = [String] type Message = String data Entry = Entry Name UTCTime Tags Message deriving Show instance Read Entry where readsPrec _ line = [( Entry name time tags msg, "" )] wh...
Remove the `ls` command module declaration
Remove the `ls` command module declaration Although this declaration makes it easier to debug the code in ghci, it prevents ghc --make from building an executable. I suppose I'll have to add the module declaration only when debugging.
Haskell
unlicense
mndrix/clk
33a75988faea6f9bbd3ba5b63857449944d70b1e
test/integration/tests/sanity/Main.hs
test/integration/tests/sanity/Main.hs
import StackTest main :: IO () main = do stack ["--version"] stack ["--help"] stack ["unpack", "acme-missiles-0.2"] stack ["unpack", "acme-missiles"] stackErr ["command-does-not-exist"] stackErr ["unpack", "invalid-package-name-"] stackErr ["build"] doesNotExist "stack.yaml" stack ...
import StackTest main :: IO () main = do stack ["--version"] stack ["--help"] stack ["unpack", "acme-missiles-0.2"] stack ["unpack", "acme-missiles"] stackErr ["command-does-not-exist"] stackErr ["unpack", "invalid-package-name-"] stackErr ["build"] doesNotExist "stack.yaml" if isW...
Fix sanity integration test on Alpine Linux
Fix sanity integration test on Alpine Linux
Haskell
bsd-3-clause
MichielDerhaeg/stack,juhp/stack,AndreasPK/stack,martin-kolinek/stack,mrkkrp/stack,martin-kolinek/stack,Fuuzetsu/stack,anton-dessiatov/stack,AndreasPK/stack,anton-dessiatov/stack,deech/stack,Fuuzetsu/stack,mrkkrp/stack,AndrewRademacher/stack,juhp/stack,AndrewRademacher/stack,deech/stack,MichielDerhaeg/stack
81d5bd5a8e255a058ea44683755e0f065e585dbc
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 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...
Fix typo in `writeSet`, fix bind analysis thereby.
Fix typo in `writeSet`, fix bind analysis thereby.
Haskell
apache-2.0
DaMSL/K3,yliu120/K3,DaMSL/K3
aca63cce9cd1cb454aa8f8e64361248d82f9778f
testsuite/tests/ghc-regress/ffi/should_run/ffi014.hs
testsuite/tests/ghc-regress/ffi/should_run/ffi014.hs
-- exposed a bug in GHC 6.4 threaded RTS, fixed in Schedule.c rev. 1.232 module Main where import Control.Concurrent import Control.Monad import Foreign.Ptr import Data.IORef main = do ms <- replicateM 100 $ do putStrLn "." m <- newEmptyMVar forkOS (thread >> putMVar m ()) ...
-- exposed a bug in GHC 6.4 threaded RTS, fixed in Schedule.c rev. 1.232 module Main where import Control.Concurrent import Control.Monad import Foreign.Ptr import Data.IORef main = do ms <- replicateM 100 $ do putStrLn "." m <- newEmptyMVar forkOS (thread >> putMVar m ()) ...
Switch from foreign import ccall threadsafe to just safe The 'threadsafe' one is now deprecated.
Switch from foreign import ccall threadsafe to just safe The 'threadsafe' one is now deprecated.
Haskell
bsd-3-clause
vikraman/ghc,holzensp/ghc,ml9951/ghc,ml9951/ghc,mcschroeder/ghc,ryantm/ghc,urbanslug/ghc,wxwxwwxxx/ghc,snoyberg/ghc,vikraman/ghc,mettekou/ghc,vikraman/ghc,anton-dessiatov/ghc,nushio3/ghc,christiaanb/ghc,ghc-android/ghc,elieux/ghc,acowley/ghc,GaloisInc/halvm-ghc,lukexi/ghc-7.8-arm64,ezyang/ghc,vTurbine/ghc,wxwxwwxxx/ghc...
025b31e5f2cce6e8cf1d4269d4d15a436f1686eb
examples/bank/src/Bank/CLI.hs
examples/bank/src/Bank/CLI.hs
module Bank.CLI ( bankCLIMain ) where import Control.Monad.Logger (runNoLoggingT) import Data.Text (pack) import Database.Persist.Sqlite import Eventful.Store.Sqlite import Bank.CLI.Options import Bank.CLI.RunCommand bankCLIMain :: IO () bankCLIMain = do Options{..} <- runOptionsParser -- Set up DB connect...
module Bank.CLI ( bankCLIMain ) where import Control.Monad.Logger (NoLoggingT (..), runNoLoggingT) import Data.Text (pack) import Database.Persist.Sqlite import Eventful.Store.Sqlite import Bank.CLI.Options import Bank.CLI.RunCommand bankCLIMain :: IO () bankCLIMain = do Options{..} <- runOptionsParser -- ...
Fix leaving behind sqlite WAL file in bank example
Fix leaving behind sqlite WAL file in bank example
Haskell
mit
jdreaver/eventful
be5a3519c3ecb5d10a00c62837704a3c1a27a3e7
Handler/Home.hs
Handler/Home.hs
{-# LANGUAGE TupleSections, OverloadedStrings #-} module Handler.Home where import qualified Database.Esqueleto as E import Import -- This is a handler function for the GET request method on the HomeR -- resource pattern. All of your resource patterns are defined in -- config/routes -- -- The majority of th...
{-# LANGUAGE TupleSections, OverloadedStrings #-} module Handler.Home where import Data.Slug import qualified Database.Esqueleto as E import Import -- This is a handler function for the GET request method on the HomeR -- resource pattern. All of your resource patterns are defined in -- config/rout...
Use .==. for slug comparison
Use .==. for slug comparison @snoyberg Okay, this type checks. E.like requires an IsString constraint (pity, as Slug is technically string-like, but smart-constructored)
Haskell
mit
fpco/stackage-server
f9d8c3ef9ea65aa54a48657dc4356a0573648e1a
src/PeerReview/Web/API.hs
src/PeerReview/Web/API.hs
{-# LANGUAGE OverloadedStrings #-} module PeerReview.Web.API ( create , update , list , find ) where import Control.Monad.IO.Class (liftIO) import Web.Spock.Shared import PeerReview.Core import PeerReview.Types (PeerReview (..), PeerReviewID) import ...
{-# LANGUAGE OverloadedStrings #-} module PeerReview.Web.API ( create , update , list , find ) where import Control.Monad.IO.Class (liftIO) import Web.Spock.Shared import PeerReview.Core import PeerReview.Types (PeerReview (..), PeerReviewID) import ...
Rename function generating review responses.
Rename function generating review responses.
Haskell
bsd-3-clause
keveri/peer-review-service
f7363f564453d6c4718bd73ff77b083fe4ed0c37
Language/Pretty.hs
Language/Pretty.hs
{-# LANGUAGE NoImplicitPrelude #-} module FOL.Language.Pretty ( Pretty , pp , real , pprint , sepMap , ppList , symbol , ppForm , module Text.PrettyPrint ) where import FOL.Language.Common import Data.Char import Text.PrettyPrint class Pretty a where pp :: a -> Doc r...
{-# LANGUAGE NoImplicitPrelude #-} module FOL.Language.Pretty ( Pretty , pp , real , pprint , sepMap , ppList , symbol , ppForm , module Text.PrettyPrint ) where import FOL.Language.Common import Text.PrettyPrint class Pretty a where pp :: a -> Doc real :: Real -> Doc...
Print symbols in low case letters.
Print symbols in low case letters. Ignore for a while that symbols and code don't stand out as clearly in error messages.
Haskell
agpl-3.0
axch/dysvunctional-language,axch/dysvunctional-language,axch/dysvunctional-language,axch/dysvunctional-language
3c26ccf12f7c7d1245678c1c6df23f567d786755
Main.hs
Main.hs
-- Main.hs -- by alemedeiros <alexandre.n.medeiros _at_ gmail.com> -- -- JSON to XML translation using Aeson -- -- Main file for ECS713 Functional Programming Project {-# LANGUAGE OverloadedStrings #-} module Main where --import AesonSample import Datatypes import Data.Aeson import qualified Data.ByteString.Lazy a...
-- Main.hs -- by alemedeiros <alexandre.n.medeiros _at_ gmail.com> -- -- JSON to XML translation using Aeson -- -- Main file for ECS713 Functional Programming Project {-# LANGUAGE OverloadedStrings #-} module Main where import Datatypes import Data.Aeson import qualified Data.ByteString.Lazy as BS import Data.Mayb...
Add query 0 - getArtistPrimAlias
Add query 0 - getArtistPrimAlias Find an artist primary alias if there is any.
Haskell
bsd-3-clause
alemedeiros/json-to-xml
41b0e5dbf111dd275686737e8a6bd2629436a90c
src/Hint/All.hs
src/Hint/All.hs
module Hint.All( Hint(..), DeclHint, ModuHint, staticHints, dynamicHints ) where import Settings import Hint.Type import Hint.Match import Hint.List import Hint.ListRec import Hint.Monad import Hint.Lambda import Hint.Bracket import Hint.Naming import Hint.Structure import Hint.Import import Hint.Pragma ...
module Hint.All( Hint(..), DeclHint, ModuHint, staticHints, dynamicHints ) where import Settings import Hint.Type import Hint.Match import Hint.List import Hint.ListRec import Hint.Monad import Hint.Lambda import Hint.Bracket import Hint.Naming import Hint.Structure import Hint.Import import Hint.Pragma ...
Replace * with ! for single declaration hints
Replace * with ! for single declaration hints
Haskell
bsd-3-clause
ndmitchell/hlint,mpickering/hlint,eigengrau/hlint,gibiansky/hlint,bitemyapp/hlint,ndmitchell/hlint
9c07a0944716ba918cc6115830b0559e41bdc466
commands/Disintegrate.hs
commands/Disintegrate.hs
{-# LANGUAGE OverloadedStrings, DataKinds, GADTs #-} module Main where import Language.Hakaru.Pretty.Concrete import Language.Hakaru.Syntax.TypeCheck import Language.Hakaru.Syntax.IClasses import Language.Hakaru.Types.Sing import Language.Hakaru.Disintegrate import ...
{-# LANGUAGE OverloadedStrings, DataKinds, GADTs #-} module Main where import Language.Hakaru.Pretty.Concrete import Language.Hakaru.Syntax.TypeCheck import Language.Hakaru.Syntax.IClasses import Language.Hakaru.Types.Sing import Language.Hakaru.Disintegrate import ...
Make disintegrate more like other commands
Make disintegrate more like other commands
Haskell
bsd-3-clause
zachsully/hakaru,zaxtax/hakaru,zaxtax/hakaru,zachsully/hakaru
ed08cfa42e61ad0df059716338848ef6a532deff
src/Data/EXT2/Integrity/Superblock.hs
src/Data/EXT2/Integrity/Superblock.hs
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE ViewPatterns #-} ----------------------------------------------------------------------------- -- | -- Module : Data.EXT2.Integrity.Superblock -- Copyright : (C) 2015 Braden Walters, -- 2015 Ricky Elrod -- License : MIT (see LICENSE file) -- Mai...
{-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE ViewPatterns #-} ----------------------------------------------------------------------------- -- | -- Module : Data.EXT2.Integrity.Superblock -- Copyright : (C) 2015 Braden Walters, -- 2015 Ricky Elrod -- License : MIT (see LICENSE file) -- Mai...
Add a function for superblock consistency checking
Add a function for superblock consistency checking @meoblast001 will hate my use of ViewPatterns here. Signed-off-by: Ricky Elrod <3de8762d49a778edd8b1aa9f381ea5a9ccb62944@elrod.me>
Haskell
mit
meoblast001/ext2-info
f43b452253e71add6de20f33473ab3531a1672ad
src/Database/DSH/Common/Nat.hs
src/Database/DSH/Common/Nat.hs
module Database.DSH.Common.Nat where import Control.Exception -- | Natural numbers that encode lifting levels data Nat = Zero | Succ Nat deriving (Show, Eq) instance Ord Nat where Zero <= Succ _ = True Succ n1 <= Succ n2 = n1 <= n2 _ <= _ = False (.-) :: Nat -> Nat -> Maybe Nat n1 ....
{-# LANGUAGE TemplateHaskell #-} module Database.DSH.Common.Nat where import Database.DSH.Common.Impossible -- | Natural numbers that encode lifting levels data Nat = Zero | Succ Nat deriving (Show, Eq) instance Ord Nat where Zero <= Succ _ = True Succ n1 <= Succ n2 = n1 <= n2 _ <= _ = F...
Fix conversion of integers to tuple indexes.
Fix conversion of integers to tuple indexes.
Haskell
bsd-3-clause
ulricha/dsh
879a6db62af102e4bd9e8fb26d4c6942147847e2
examples/lib/Examples/EchoClient.hs
examples/lib/Examples/EchoClient.hs
{-# LANGUAGE OverloadedStrings #-} module Examples.EchoClient (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(..), ha...
{-# LANGUAGE OverloadedStrings #-} module Examples.EchoClient (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(..), ha...
Remove missed call to stopVat
Remove missed call to stopVat
Haskell
mit
zenhack/haskell-capnp
e1252d6486216649b0ef4061aa6a1f65316c6ad6
src/Language/K3/Codegen/CPP/Simplification.hs
src/Language/K3/Codegen/CPP/Simplification.hs
module Language.K3.Codegen.CPP.Simplification ( simplifyCPP, ) where import Control.Applicative import Control.Monad.Identity import Control.Monad.State import Language.K3.Codegen.CPP.Representation type SimplificationS = () type SimplificationM = StateT SimplificationS Identity runSimplificationM :: Simplificat...
module Language.K3.Codegen.CPP.Simplification ( simplifyCPP, ) where import Control.Applicative import Control.Monad.Identity import Control.Monad.State import Language.K3.Codegen.CPP.Representation type SimplificationS = () type SimplificationM = StateT SimplificationS Identity runSimplificationM :: Simplificat...
Add proxy passes for simplification of CPP definitions and statements.
Add proxy passes for simplification of CPP definitions and statements.
Haskell
apache-2.0
DaMSL/K3,DaMSL/K3,yliu120/K3
0d99f94e5a7f4ca88cf4a28acd4a990c6090ffb5
yesod-core/test/YesodCoreTest/WaiSubsite.hs
yesod-core/test/YesodCoreTest/WaiSubsite.hs
{-# LANGUAGE CPP, QuasiQuotes, TemplateHaskell, TypeFamilies, MultiParamTypeClasses, OverloadedStrings #-} module YesodCoreTest.WaiSubsite (specs, Widget) where import YesodCoreTest.YesodTest import Yesod.Core import qualified Network.HTTP.Types as H myApp :: Application myApp _ f = f $ responseLBS H.status200 [("Con...
{-# LANGUAGE CPP, QuasiQuotes, TemplateHaskell, TypeFamilies, MultiParamTypeClasses, OverloadedStrings #-} module YesodCoreTest.WaiSubsite (specs, Widget) where import YesodCoreTest.YesodTest import Yesod.Core import qualified Network.HTTP.Types as H myApp :: Application myApp _ f = f $ responseLBS H.status200 [("Con...
Add a testcase for nested subsites
Add a testcase for nested subsites
Haskell
mit
s9gf4ult/yesod,erikd/yesod,erikd/yesod,s9gf4ult/yesod,geraldus/yesod,jprider63/yesod,psibi/yesod,yesodweb/yesod,yesodweb/yesod,tolysz/yesod,psibi/yesod,jprider63/yesod,s9gf4ult/yesod,geraldus/yesod,tolysz/yesod,jprider63/yesod,erikd/yesod,MaxGabriel/yesod,MaxGabriel/yesod,psibi/yesod,tolysz/yesod,MaxGabriel/yesod,geral...
6cd714d8afb311c970b6a4539005b5073ca9b91a
linux/xmonad/xmonad.hs
linux/xmonad/xmonad.hs
import XMonad import XMonad.Actions.Navigation2D import XMonad.Config import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks import XMonad.Layout.BinarySpacePartition import XMonad.Layout.FixedColumn import XMonad.Layout.Spacing import XMonad.Util.CustomKeys import XMonad.Util.Run import XMonad.Util.SpawnOnce ...
import XMonad import XMonad.Actions.Navigation2D import XMonad.Config import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks import XMonad.Layout.BinarySpacePartition import XMonad.Layout.FixedColumn import XMonad.Layout.Spacing import XMonad.Util.CustomKeys import XMonad.Util.Run import XMonad.Util.SpawnOnce ...
Make Ristretto launch as a floating window
Make Ristretto launch as a floating window
Haskell
mit
llgtr/dotfiles,llgtr/dotfiles
1ee2a0517d72025a2e2590798e24b7e79ec7eb4f
src/Run.hs
src/Run.hs
module Run (run ) where import Control.Lens import Control.Monad.Except import Control.Monad.Trans.AWS import Data.Text (Text) import System.IO run :: (Show a) => AWST (ExceptT Text IO) a -> IO (Either Text (Either Error a)) run f = do logger <- newLogger ...
module Run (run ) where import Control.Lens import Control.Monad.Except import Control.Monad.Trans.AWS hiding (getEnv) import qualified Control.Monad.Trans.AWS as AWS (getEnv) import Data.Text (Text) import System.Environment (getEnv) import ...
Read region from an environment variable.
Read region from an environment variable.
Haskell
bsd-3-clause
lbodor/amazonia
e6e7c8210067d18a132bc6c0bf9191c28a0d5874
acid-state/Main.hs
acid-state/Main.hs
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} import Control.Monad.Reader (ask) import Control.Monad.State (put, modify) import Data.Acid import Data.SafeCopy import Data.Typeable (Typeable) newtype Test = Test [Int] deriving (Sho...
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} import Control.Monad.Reader (ask) import Control.Monad.State (put, modify) import Data.Acid import Data.SafeCopy import Data.Typeable (Typeable) newtype Test = Test [Int] deriving (Sho...
Remove the general writeTest method.
Remove the general writeTest method.
Haskell
mit
mihaimaruseac/blog-demos,mihaimaruseac/blog-demos,mihaimaruseac/blog-demos,mihaimaruseac/blog-demos,mihaimaruseac/blog-demos
af8aa4bb080a59c08aa03aaddeb0bf2ff038bdc1
src/Server.hs
src/Server.hs
-- Copyright 2016 Ruud van Asseldonk -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License version 3. See -- the licence file in the root of the repository. {-# LANGUAGE OverloadedStrings #-} module Server (runServer) where import Network.H...
-- Copyright 2016 Ruud van Asseldonk -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License version 3. See -- the licence file in the root of the repository. {-# LANGUAGE OverloadedStrings #-} module Server (runServer) where import Network.H...
Add a basic router to the server
Add a basic router to the server
Haskell
apache-2.0
ruuda/hoff,ruuda/hoff
74de0021815f0642a89017fbb1fbdf18064cb5ea
haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs
module Haddock.Backends.Hyperlinker.Ast where import qualified GHC import Haddock.Backends.Hyperlinker.Parser data RichToken = RichToken { rtkToken :: Token , rtkName :: Maybe GHC.Name } enrich :: GHC.RenamedSource -> [Token] -> [RichToken] enrich src = map $ \token -> RichToken { rtkToken =...
{-# LANGUAGE RankNTypes #-} module Haddock.Backends.Hyperlinker.Ast where import qualified GHC import Data.Data import Control.Applicative import Haddock.Backends.Hyperlinker.Parser data RichToken = RichToken { rtkToken :: Token , rtkName :: Maybe GHC.Name } enrich :: GHC.RenamedSource -> [Token] -> [R...
Implement utility method for extracting variable identifiers from AST.
Implement utility method for extracting variable identifiers from AST.
Haskell
bsd-2-clause
Fuuzetsu/haddock,Fuuzetsu/haddock,haskell/haddock,niteria/haddock,sboosali/haddock,randen/haddock,haskell/haddock,Acidburn0zzz/haddock,randen/haddock,niteria/haddock,beni55/haddock,mrhania/haddock,lamefun/haddock,Fuuzetsu/haddock,mrhania/haddock,idontgetoutmuch/haddock,randen/haddock,Helkafen/haddock,haskell/haddock,sb...
088236db1987be3f1d6a8d28834c8bf37678f79a
src/Main.hs
src/Main.hs
module Main where import Client import Control.Monad (forever, unless) import System.IO startMessageLoop :: Handle -> IO () startMessageLoop handle = forever $ do line <- hGetLine handle unless (null line) $ putStrLn line main :: IO () main = do handle <- connect "irc.twitch.tv" 6667 login "" "" hand...
module Main where import Client import Control.Exception (finally) import Control.Monad (forever, unless) import System.IO processNetworkLoop :: Handle -> IO () processNetworkLoop handle = do eof <- hIsEOF handle unless eof $ do line <- hGetLine handle unless (null line) $ putStrLn line ...
Fix exception on an empty socket read. Improve stability
Fix exception on an empty socket read. Improve stability
Haskell
mit
Acizza/twirc
7518cc6fcf45e731c0e35eaac950dd96b19a85cb
src/Util.hs
src/Util.hs
module Util( PackageName, ModuleName, parseHanging, stripPrefixLower, (?:) ) where import Data.Char import Data.Monoid import Data.List.Extra import Data.Tuple.Extra import Prelude type PackageName = String type ModuleName = String (?:) :: (Eq a, Monoid a) => a -> a -> a a ?: b = if a == mempty th...
module Util( PackageName, ModuleName, parseHanging, (?:) ) where import Data.Char import Data.Monoid import Data.List.Extra import Data.Tuple.Extra import Prelude type PackageName = String type ModuleName = String (?:) :: (Eq a, Monoid a) => a -> a -> a a ?: b = if a == mempty then b else a parse...
Delete stripPrefixLower - was unused
Delete stripPrefixLower - was unused
Haskell
bsd-3-clause
ndmitchell/weeder
13af2461f161d4a155a646c3387c2557dc70d6bc
yesod-auth/Yesod/Auth/Routes.hs
yesod-auth/Yesod/Auth/Routes.hs
{-# LANGUAGE QuasiQuotes, TypeFamilies, TemplateHaskell #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveDataTypeable #-} module Yesod.Auth.Routes where import Yesod.Core imp...
{-# LANGUAGE QuasiQuotes, TypeFamilies, TemplateHaskell #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE DeriveDataTypeable #-} module Yesod.Auth.Routes where import Yesod.Core imp...
Add missing route for yesod-auth
Add missing route for yesod-auth
Haskell
mit
pikajude/yesod,beni55/yesod,jprider63/yesod,tolysz/yesod,frontrowed/yesod,tolysz/yesod,s9gf4ult/yesod,wuzzeb/yesod,andrewthad/yesod,wuzzeb/yesod,geraldus/yesod,MaxGabriel/yesod,urbanslug/yesod,pikajude/yesod,beni55/yesod,psibi/yesod,ygale/yesod,frontrowed/yesod,ygale/yesod,pikajude/yesod,erikd/yesod,ericnething/yesod,m...
5814d8c65b9dfe913d0cfe4793de7d32eb8946c9
src/Gonimo/Server/EmailInvitation.hs
src/Gonimo/Server/EmailInvitation.hs
{-# LANGUAGE QuasiQuotes #-} module Gonimo.Server.EmailInvitation ( makeInvitationEmail) where import Data.Text (Text) import NeatInterpolation import Network.Mail.Mime (Address (..), Mail, simpleMail') import Web.HttpApiData import qualified Data.Text.La...
{-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE CPP #-} module Gonimo.Server.EmailInvitation ( makeInvitationEmail) where import Data.Text (Text) #ifndef DEVELOPMENT import NeatInterpolation #endif DEVELOPMENT import Network.Mail.Mime (Address (..), Mail, simpleMail') im...
Add development version of invitationText
Add development version of invitationText
Haskell
agpl-3.0
gonimo/gonimo-back
0cf2bde534808acc6e809c83535366f96dd0bf14
testsuite/tests/concurrent/should_run/5238.hs
testsuite/tests/concurrent/should_run/5238.hs
{-# LANGUAGE UnicodeSyntax #-} {-# LANGUAGE ScopedTypeVariables #-} import Control.Exception import Control.Concurrent.STM main = do ms1 ← getMaskingState atomically $ (throwSTM Overflow) `catchSTM` (\(e ∷ SomeException) → return ()) ms2 ← getMaskingState putStrLn $ show (ms1, ms2)
{-# LANGUAGE UnicodeSyntax #-} {-# LANGUAGE ScopedTypeVariables #-} import Control.Exception import GHC.Conc main = do ms1 ← getMaskingState atomically $ (throwSTM Overflow) `catchSTM` (\(e ∷ SomeException) → return ()) ms2 ← getMaskingState putStrLn $ show (ms1, ms2)
Make this test not require the stm package
Make this test not require the stm package
Haskell
bsd-3-clause
ryantm/ghc,olsner/ghc,mfine/ghc,nkaretnikov/ghc,ml9951/ghc,gridaphobe/ghc,shlevy/ghc,shlevy/ghc,tibbe/ghc,da-x/ghc,fmthoma/ghc,mettekou/ghc,mcschroeder/ghc,forked-upstream-packages-for-ghcjs/ghc,lukexi/ghc-7.8-arm64,acowley/ghc,shlevy/ghc,vTurbine/ghc,fmthoma/ghc,AlexanderPankiv/ghc,GaloisInc/halvm-ghc,ghc-android/ghc,...