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 |
|---|---|---|---|---|---|---|---|---|---|
3991b45bd1ee0c5d516ce283147bfa03ef087ae8 | src/Iptf/Ip.hs | src/Iptf/Ip.hs | {-# LANGUAGE OverloadedStrings #-}
module Iptf.Ip where
import Data.Attoparsec.ByteString.Char8
import qualified Data.ByteString.Char8 as B
import Data.List (intersperse)
import Data.Word
data IP = IP Word8 Word8 Word8 Word8 deriving (Show, Eq)
parseIP :: Parser IP
parseIP = do
skipS... | {-# LANGUAGE OverloadedStrings #-}
module Iptf.Ip where
import qualified Data.Text as T
import Data.Attoparsec.Text
import qualified Data.ByteString.Char8 as B
import Data.List (intersperse)
import Data.Word
data IP = IP Word8 Word8 Word8 Word8 deriving (Show, Eq, Ord)
parseIP :: Parse... | Change IP to be a Text parser instead of Bytestring | Change IP to be a Text parser instead of Bytestring
| Haskell | mit | werbitt/ip-to-file |
91c294e2fbffecfe93e535ad76d0b78161b764a9 | src/Test/Hspec/Compat.hs | src/Test/Hspec/Compat.hs | {-# LANGUAGE CPP #-}
module Test.Hspec.Compat where
import Data.Typeable (Typeable, typeOf, typeRepTyCon)
import qualified Test.QuickCheck as QC
#if MIN_VERSION_base(4,4,0)
import Data.Typeable.Internal (tyConModule, tyConName)
#endif
showType :: Typeable a => a -> String
showType a = let t = typ... | {-# LANGUAGE CPP #-}
module Test.Hspec.Compat where
import Data.Typeable (Typeable, typeOf, typeRepTyCon)
import qualified Test.QuickCheck as QC
#if MIN_VERSION_base(4,4,0)
import Data.Typeable.Internal (tyConModule, tyConName)
#endif
showType :: Typeable a => a -> String
showType a = let t = typ... | Fix for QuickCheck < 2.6 | Fix for QuickCheck < 2.6
| Haskell | mit | beni55/hspec,hspec/hspec |
b3839e198b3b478632e0768d48b3cf4bbe0a4984 | src/ParseQuery.hs | src/ParseQuery.hs |
module ParseQuery(parseQuery) where
import Data.List
import Type
parseQuery :: String -> Query
parseQuery x = Query (map f cat) names Nothing
where
(cat,names) = partition (':' `elem`) $ words x
f ('+':xs) = f xs
f ('-':xs) = let QTag _ a b = f xs in QTag False a b
f xs = let (a,_... |
module ParseQuery(parseQuery) where
import Data.List
import Data.Tuple.Extra
import Language.Haskell.Exts
import Type
parseQuery :: String -> Query
parseQuery x | "::":xs <- names = Query cat [] (Just $ fromParseResult $ parseType $ unwords xs)
| otherwise = Query cat names Nothing
where
(ca... | Allow queries to be parsed as types | Allow queries to be parsed as types
| Haskell | bsd-3-clause | wolftune/hoogle,ndmitchell/hogle-dead,BartAdv/hoogle,BartAdv/hoogle,ndmitchell/hoogle,ndmitchell/hoogle,ndmitchell/hoogle,wolftune/hoogle,BartAdv/hoogle,wolftune/hoogle,BartAdv/hoogle,ndmitchell/hogle-dead,wolftune/hoogle |
2758bc5f0404b6054403dcb2f6b1c12bebfe221a | exercises/change/examples/success-standard/src/Change.hs | exercises/change/examples/success-standard/src/Change.hs | module Change (findFewestCoins) where
import Data.List (sortBy)
type Coin = Integer
type Coins = [Coin]
type Amount = Integer
findFewestCoins :: Amount -> Coins -> Maybe Coins
findFewestCoins target coins = minChange target sortedCoins [] Nothing
where
sortedCoins = sortBy (flip compare) coins
minChange t... | module Change (findFewestCoins) where
import Data.List (sortBy)
type Coin = Integer
type Coins = [Coin]
type Amount = Integer
findFewestCoins :: Amount -> Coins -> Maybe Coins
findFewestCoins target coins = minChange target sortedCoins [] Nothing
where
sortedCoins = sortBy (flip compare) coins
minChange t... | Fix HLint warning in example solution | change: Fix HLint warning in example solution
This fixes a warning that currently breaks 'nightly' CI.
```
/home/travis/build/exercism/haskell/exercises/change/examples/success-standard/src/Change.hs:28:20-29: Warning: Redundant flip
Found:
flip const
Perhaps:
\ _ x -> x
Note: Alternatively, use const id
```... | Haskell | mit | exercism/xhaskell |
b022b46bc9edb25c48e0d2493e0b9de678dcf91f | src/Pygmalion/RPC/Client.hs | src/Pygmalion/RPC/Client.hs | {-# LANGUAGE OverloadedStrings #-}
module Pygmalion.RPC.Client
( sendScanMessage
) where
import Data.Conduit
import Data.Conduit.Network
import Data.Serialize
import Pygmalion.Core
sendScanMessage :: Port -> CommandInfo -> IO ()
sendScanMessage port ci = runTCPClient settings (scanApp ci)
where settings = clientS... | {-# LANGUAGE OverloadedStrings #-}
module Pygmalion.RPC.Client
( sendScanMessage
) where
import Data.Conduit
import Data.Conduit.Network
import Data.Serialize
import System.Timeout
import Pygmalion.Core
sendScanMessage :: Port -> CommandInfo -> IO ()
sendScanMessage port ci = runTCPClient settings (scanApp ci)
wh... | Add client-side timeout to ensure pygmake crashes don't freeze make | Add client-side timeout to ensure pygmake crashes don't freeze make
| Haskell | bsd-3-clause | sethfowler/pygmalion,sethfowler/pygmalion |
89e8875f339961c84249d4af7a7c43bb77455b06 | src/MainCommon.hs | src/MainCommon.hs | module MainCommon where
import Lib
import Arch
import XMLPrint
import System.Environment (getArgs)
import Data.List.Split (chunksOf)
import Text.XML (Document)
getDocumentByArgs :: IO Text.XML.Document
getDocumentByArgs = do
args <- getArgs
case args of
(sourceType:path:[]) ->
if sourceType == ... | module MainCommon where
import Lib
import Arch
import XMLPrint
import System.Environment (getArgs)
import Data.List.Split (chunksOf)
import Text.XML (Document)
getDocumentByArgs :: IO Text.XML.Document
getDocumentByArgs = do
args <- getArgs
case args of
(sourceType:path:[]) ->
if sourceType == ... | Allow specifying url in command line arguments | Allow specifying url in command line arguments
| Haskell | bsd-3-clause | chrissound/ArchLinuxPkgStatsScraper |
9ee80deb0f52e10b8320e84ff9b15151d05da249 | 6224486/B.hs | 6224486/B.hs | import Control.Applicative
import Control.Monad
import Data.List
import Text.Printf
import GHC.Exts
main :: IO ()
main = do
tests <- readLn
forM_ [1..tests] $ \caseNum -> do
_ <- getLine
d <- map read <$> words <$> getLine
let ans = reduce 0 (sortWith Down (d::[Int]))
where
red... | import Control.Applicative
import Control.Monad
import Data.List
import Text.Printf
import GHC.Exts
main :: IO ()
main = do
tests <- readLn
forM_ [1..tests] $ \caseNum -> do
_ <- getLine
d <- map read <$> words <$> getLine
let ans = reduce 0 (sortWith Down (d::[Int]))
where
red... | Reduce all plates at once | Reduce all plates at once
| Haskell | mit | marknsikora/codejam,marknsikora/codejam |
577c76e4425730371d2dde645880d2c3eb60d69a | test/doctest.hs | test/doctest.hs | module Main where
import System.FilePath ((</>))
import Test.DocTest
addPrefix :: FilePath -> FilePath
addPrefix fp = "src" </> "System" </> "GPIO" </> fp
testFiles :: [FilePath]
testFiles =
map addPrefix
[ "Monad.hs"
, "Tutorial.hs"
, "Types.hs"
, "Linux" </> "Sysfs" </> "Mock.hs"
, ... | module Main where
import Data.Monoid ((<>))
import System.FilePath ((</>))
import Test.DocTest
addPrefix :: FilePath -> FilePath
addPrefix fp = "src" </> "System" </> "GPIO" </> fp
testFiles :: [FilePath]
testFiles =
map addPrefix
[ "Monad.hs"
, "Tutorial.hs"
, "Types.hs"
, "Linux" </> "Sys... | Fix GHC 7.8.4 build problem. | Fix GHC 7.8.4 build problem.
| Haskell | bsd-3-clause | dhess/gpio |
0ceae64327289b2cb79041cb75ec1e7c92af8546 | src/Rules/Install.hs | src/Rules/Install.hs | module Rules.Install (installTargets, installRules) where
import Base
import Expression
import GHC
import Rules.Generate
installTargets :: [FilePath]
installTargets = [ "inplace/lib/template-hsc.h"
, "inplace/lib/platformConstants" ]
installRules :: Rules ()
installRules = do
"inplace/lib/templa... | module Rules.Install (installTargets, installRules) where
import Base
import Expression
import GHC
import Rules.Generate
installTargets :: [FilePath]
installTargets = [ "inplace/lib/template-hsc.h"
, "inplace/lib/platformConstants"
, "inplace/lib/settings" ]
installRules :: Rules ()... | Add a build rule for inplace/lib/settings. | Add a build rule for inplace/lib/settings.
| Haskell | bsd-3-clause | sdiehl/ghc,snowleopard/shaking-up-ghc,sdiehl/ghc,izgzhen/hadrian,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,sdiehl/ghc,quchen/shaking-up-ghc,bgamari/shaking-up-ghc,sdiehl/ghc,snowleopard/hadrian |
c569f4c6f0165b6a121ccf022e55f09ba44ba4d5 | dph-base/Data/Array/Parallel/Base/Util.hs | dph-base/Data/Array/Parallel/Base/Util.hs | module Data.Array.Parallel.Base.Util (
fromBool, toBool
) where
fromBool :: Num a => Bool -> a
fromBool False = 0
fromBool True = 1
{-# INLINE fromBool #-}
toBool :: Num a => a -> Bool
toBool n | n == 0 = False
| otherwise = True
{-# INLINE toBool #-}
| module Data.Array.Parallel.Base.Util (
fromBool, toBool
) where
fromBool :: Bool -> Int
fromBool False = 0
fromBool True = 1
{-# INLINE fromBool #-}
toBool :: Int -> Bool
toBool n | n == 0 = False
| otherwise = True
{-# INLINE toBool #-}
| Make fromBool and toBool monomorphic | Make fromBool and toBool monomorphic
They weren't getting inlined otherwise. Big performance ouch: this change
makes sequential Quickhull about 30% faster.
| Haskell | bsd-3-clause | mainland/dph,mainland/dph,mainland/dph |
4a231f96101e9b00db0328c7fbcd16884df33325 | tests/Network/BitTorrent/DHT/TokenSpec.hs | tests/Network/BitTorrent/DHT/TokenSpec.hs | {-# OPTIONS_GHC -fno-warn-orphans #-}
module Network.BitTorrent.DHT.TokenSpec (spec) where
import Control.Applicative
import Data.String
import Test.Hspec
import Test.QuickCheck
import Network.BitTorrent.DHT.Token
instance Arbitrary Token where
arbitrary = fromString <$> arbitrary
spec :: Spec
spec = return () | {-# LANGUAGE ScopedTypeVariables #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Network.BitTorrent.DHT.TokenSpec (spec) where
import Control.Applicative
import Data.List as L
import Data.String
import Test.Hspec
import Test.QuickCheck
import Network.BitTorrent.Core
import Network.BitTorrent.CoreSpec ()
import Netwo... | Add basic spec for token map | Add basic spec for token map
| Haskell | bsd-3-clause | pxqr/bittorrent,DavidAlphaFox/bittorrent |
1f96c26f1a15c974e4d00f428f0fda4847b152c5 | todomvc/todo-main.hs | todomvc/todo-main.hs | {-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import qualified Blaze.React.Examples.Clock as Clock
import qualified Blaze.React.Examples.Todo as Todo
import Blaze.React.Examples.TabbedApps (namedApp, tabbed)
import Blaze.React.Examples.TimeMachine (withTimeMachine)
impo... | {-# LANGUAGE OverloadedStrings #-}
module Main (main) where
import qualified Blaze.React.Examples.Clock as Clock
import qualified Blaze.React.Examples.Todo as Todo
import Blaze.React.Examples.TabbedApps (namedApp, tabbed)
import Blaze.React.Examples.TimeMachine (withTimeMachine)
impo... | Remove Clock+TimeMachine from demo app - it's a memory leak | Remove Clock+TimeMachine from demo app - it's a memory leak
| Haskell | mit | MoixaEnergy/blaze-react,LumiGuide/blaze-react,meiersi/blaze-react,nilcons-contrib/blaze-react,meiersi/blaze-react,MoixaEnergy/blaze-react,LumiGuide/blaze-react,nilcons-contrib/blaze-react |
ccb9917e60df10c3de2e8a0155f3839f6003e586 | Test/Hspec/Pending.hs | Test/Hspec/Pending.hs | module Test.Hspec.Pending where
newtype Pending = Pending (Maybe String)
-- | A pending example.
--
-- If you want to report on a behavior but don't have an example yet, use this.
--
-- > describe "fancyFormatter" [
-- > it "can format text in a way that everyone likes" $
-- > pending
-- > ]
--
-- You can give ... | module Test.Hspec.Pending where
-- NOTE: This is defined in a separate packages, because it clashes with
-- Result.Pending.
newtype Pending = Pending (Maybe String)
-- | A pending example.
--
-- If you want to report on a behavior but don't have an example yet, use this.
--
-- > describe "fancyFormatter" [
-- > it ... | Add a source code comment | Add a source code comment
| Haskell | mit | hspec/hspec,beni55/hspec |
d7ea4798340dba9a60bf20b3e5427655eccda5eb | wai-extra/Network/Wai/EventSource.hs | wai-extra/Network/Wai/EventSource.hs | {-|
A WAI adapter to the HTML5 Server-Sent Events API.
-}
module Network.Wai.EventSource (
ServerEvent(..),
eventSourceAppChan,
eventSourceAppIO
) where
import Data.Function (fix)
import Control.Concurrent.Chan (Chan, dupChan, readChan)
import Control.Monad.IO.Class (l... | {-|
A WAI adapter to the HTML5 Server-Sent Events API.
If running through a proxy like Nginx you might need to add the
headers:
> [ ("X-Accel-Buffering", "no"), ("Cache-Control", "no-cache")]
-}
module Network.Wai.EventSource (
ServerEvent(..),
eventSourceAppChan,
eventSourceAppIO
) wh... | Document headers required for SSE through Nginx | Document headers required for SSE through Nginx
| Haskell | mit | sordina/wai,sordina/wai,creichert/wai,yesodweb/wai,kazu-yamamoto/wai,yesodweb/wai,sordina/wai,creichert/wai,sordina/wai,kazu-yamamoto/wai |
0ee83c8e33e91b7261ae5f07564b08629facb859 | src/LCLangLite/StdLib.hs | src/LCLangLite/StdLib.hs | module LCLangLite.StdLib where
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import LCLangLite.Interpreter.Types
import LCLangLite.Interpreter (newGfxScope, interpretBlock, addGfxCommand, getVariable)
import LCLangLite.LanguageAst
import qualified Gfx.GfxAst as GA
noop :: BuiltInFunction
noop ... | module LCLangLite.StdLib where
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import LCLangLite.Interpreter.Types
import LCLangLite.Interpreter (newGfxScope, interpretBlock, addGfxCommand, getVariable)
import LCLangLite.Interpreter.Values
import LCLangLite.LanguageAst
import qualified Gfx.GfxAst... | Make box function use args | Make box function use args
| Haskell | bsd-3-clause | rumblesan/improviz,rumblesan/improviz |
b5b370eefdde25172dffc60fc27b670873127121 | src/Text/Karver/Types.hs | src/Text/Karver/Types.hs | module Text.Karver.Types where
import Data.Text (Text)
import Data.HashMap.Strict
import Data.Vector
type Key = Text
data Tokens = LiteralTok Text
| IdentityTok Text
| ObjectTok Text Key
| ListTok Text Int
deriving (Show, Eq)
data Value = Literal Text
... | module Text.Karver.Types where
import Data.Text (Text)
import Data.HashMap.Strict
import Data.Vector
type Key = Text
data Tokens = LiteralTok Text
| IdentityTok Text
| ObjectTok Text Key
| ListTok Text Int
| ConditionTok Text Text Text
deriving (... | Add condition token for if statements | Add condition token for if statements
| Haskell | bsd-3-clause | ibotty/stencil,sourrust/karver |
6473d9e52419970bdccc653e3694bcb96f6e09a6 | Handler/OurStatic.hs | Handler/OurStatic.hs | module Handler.OurStatic
( getOurStaticR
)
where
import Import
import Data.Time
import Data.List
import qualified Data.Text as DT
import System.Locale (defaultTimeLocale)
import System.IO.Unsafe (unsafePerformIO)
import System.IO (readFile)
import Text.Blaze.Html (preEscapedToHtml)
import Data.ByteString.C... | module Handler.OurStatic
( getOurStaticR
)
where
import Import
import Data.Time
import Data.List
import qualified Data.Text as DT
import System.IO.Unsafe (unsafePerformIO)
import System.IO (readFile)
import Text.Blaze.Html (preEscapedToHtml)
readStaticFile :: FilePath -> String
readStaticFile filePath = ... | Make good url if url doesn't include file extension | Make good url if url doesn't include file extension
| Haskell | bsd-2-clause | SuetakeY/nomnichi_yesod,nomlab/nomnichi-haskell,okada-takuya/nomnichi-haskell,SuetakeY/nomnichi_yesod,SuetakeY/nomnichi_yesod,nomlab/nomnichi-haskell,okada-takuya/nomnichi-haskell,kobayashi1027/nomnichi-haskell,kobayashi1027/nomnichi-haskell,nomlab/nomnichi-haskell,okada-takuya/nomnichi-haskell,okada-takuya/nomnichi-ha... |
dbd101844d25834201ab722d52bad6510533ba28 | haskell/Pyrec/Misc.hs | haskell/Pyrec/Misc.hs | {-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
{-# LANGUAGE StandaloneDeriving #-}
module Pyrec.Misc where
import Control.Applicative
import Data.Hashable
import Data.Foldable
import Data.Traversable hiding (for)
import Text.Parsec.Pos
-- | should be pretty self explanatory
for :: Functor f => f... | {-# LANGUAGE DeriveFunctor, DeriveFoldable, DeriveTraversable #-}
{-# LANGUAGE StandaloneDeriving #-}
module Pyrec.Misc where
import Control.Applicative
import Data.Hashable
import Data.Foldable
import Data.Traversable hiding (for)
import Text.Parsec.Pos
-- | should be pretty self explanatory
for :: Functor f => f... | Remove bad instances for new GHC | Remove bad instances for new GHC
| Haskell | mit | kmicklas/pyrec |
5c0e4c64b8423c6bf7b288cc12b9f83c14777e28 | exercises/simple-linked-list/src/Example.hs | exercises/simple-linked-list/src/Example.hs | module LinkedList ( LinkedList
, fromList, toList, reverseLinkedList
, datum, next, isNil, nil, new) where
data LinkedList a = Nil
| Cons { datum :: a
, next :: LinkedList a }
new :: a -> LinkedList a -> LinkedList a
new = Cons
nil :: Lin... | module LinkedList ( LinkedList
, fromList, toList, reverseLinkedList
, datum, next, isNil, nil, new) where
data LinkedList a = Nil
| Cons { datum :: a
, next :: LinkedList a }
new :: a -> LinkedList a -> LinkedList a
new = Cons
nil :: Lin... | Improve code base on HLint's suggestions. | simple-linked-list: Improve code base on HLint's suggestions.
| Haskell | mit | exercism/xhaskell |
7159ee81527ae5abee285fd6b2aea4fa9ad5ef1b | haskell-ide-api/src/IdeApi/CabalApi.hs | haskell-ide-api/src/IdeApi/CabalApi.hs | module IdeApi.CabalApi where
import Distribution.PackageDescription.Parse
import Distribution.PackageDescription
import Distribution.Package
import Distribution.Verbosity
import qualified Distribution.Hackage.DB as DB
import Distribution.Text ( display )
import System.Directory
import System.FilePath
import Data.List
... | module IdeApi.CabalApi where
import Distribution.PackageDescription.Parse
import Distribution.PackageDescription
import Distribution.Package
import Distribution.Verbosity
import qualified Distribution.Hackage.DB as DB
import Distribution.Text ( display )
import System.Directory
import System.FilePath
import Data.List
... | Stop indexing out of bounds on cabal packages without executable sections. | Stop indexing out of bounds on cabal packages without executable sections.
| Haskell | apache-2.0 | Atsky/haskell-idea-plugin,Atsky/haskell-idea-plugin,anlun/haskell-idea-plugin,anlun/haskell-idea-plugin |
da89db72eeab2a8c4cc7e7a237350e758ef14cc5 | src/HaddockVersion.hs | src/HaddockVersion.hs | --
-- Haddock - A Haskell Documentation Tool
--
-- (c) Simon Marlow 2003
--
module HaddockVersion (
projectName, projectVersion, projectUrl
) where
import Paths_haddock_ghc ( version )
import Data.Version ( showVersion )
projectName, projectUrl :: String
projectName = "Haddock"
projectUrl = "http://www.has... | --
-- Haddock - A Haskell Documentation Tool
--
-- (c) Simon Marlow 2003
--
module HaddockVersion (
projectName, projectVersion, projectUrl
) where
import Paths_haddock_ghc ( version )
import Data.Version ( showVersion )
projectName, projectUrl :: String
projectName = "Haddock-GHC"
projectUrl = "http://www... | CHange project name to Haddock-GHC | CHange project name to Haddock-GHC | Haskell | bsd-2-clause | Wizek/haddock,Helkafen/haddock,beni55/haddock,JPMoresmau/haddock,Helkafen/haddock,sboosali/haddock,niteria/haddock,haskell/haddock,jgm/haddock,mrBliss/haddock,esmolanka/haddock,lamefun/haddock,mrhania/haddock,randen/haddock,Mistuke/haddock,idontgetoutmuch/haddock,Fuuzetsu/haddock,Fuuzetsu/haddock,Mistuke/haddock,haskel... |
61f58fe77da593c18644ec8ad14dbd5914c8cd38 | Handler/Home.hs | Handler/Home.hs | module Handler.Home where
import Data.Maybe
import Import
import qualified Prelude
import qualified Util.Formatting as F
import qualified Util.Meetup as M
getHomeR :: Handler Html
getHomeR = do
event <- liftIO $ do
settings <- M.readSettings "config/meetup.yml"
events <- M.fetchEvents $ fromJust s... | module Handler.Home where
import Data.Maybe
import Import
import qualified Prelude
import qualified Util.Formatting as F
import qualified Util.Meetup as M
getHomeR :: Handler Html
getHomeR = do
event <- liftIO $ do
settings <- M.readSettings "config/meetup.yml"
events <- M.fetchEvents $ fromJust s... | Set title on home page | Set title on home page
| Haskell | mit | rcook/seattlehaskell-org,seahug/seattlehaskell-org,rcook/seattlehaskell-org,seahug/seattlehaskell-org |
a14aaecda56e6d59f656f78282744d65fbc12457 | ivory-backend-c/src/Ivory/Compile/C/Prop.hs | ivory-backend-c/src/Ivory/Compile/C/Prop.hs | {-# LANGUAGE QuasiQuotes #-}
-- | Rewrite ensures variable with return expression.
module Ivory.Compile.C.Prop where
import qualified Ivory.Language.Syntax as I
--------------------------------------------------------------------------------
-- | Replace ensures variable with the return expression.
ensTrans :: I.E... | {-# LANGUAGE QuasiQuotes #-}
-- | Rewrite ensures variable with return expression.
module Ivory.Compile.C.Prop where
import qualified Ivory.Language.Syntax as I
--------------------------------------------------------------------------------
-- | Replace ensures variable with the return expression.
ensTrans :: I.E... | Add missing cases for DynArray expressions. | ivory-opts: Add missing cases for DynArray expressions.
| Haskell | bsd-3-clause | GaloisInc/ivory,GaloisInc/ivory,Hodapp87/ivory |
2e1b907c7ddfb2d30a0d6526e88c7f380053f83f | Main.hs | Main.hs | {- Copyright (C) 2014 Calvin Beck
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, ... | {- Copyright (C) 2014 Calvin Beck
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, ... | Check how many characters Arduino sends in 300 milliseconds. | Check how many characters Arduino sends in 300 milliseconds.
| Haskell | mit | Chobbes/SerialTimer |
0940fc24fc84ddf98fb90837ee97ccd4a436d3c1 | test/Handler/ProfileBGUnitSpec.hs | test/Handler/ProfileBGUnitSpec.hs | module Handler.ProfileBGUnitSpec (spec) where
import TestImport
spec :: Spec
spec = withApp $ do
describe "postProfileBGUnitR" $ do
error "Spec not implemented: postProfileBGUnitR"
| module Handler.ProfileBGUnitSpec (spec) where
import TestImport
import TestTools
spec :: Spec
spec = withApp $ do
describe "test /profile/bgunit" $ do
it "get /profile/bgunit without authorization" $ do
get ProfileBGUnitR
statusIs 405
it "post /profile/bgunit without auth... | Add (rudimentary!) tests for /profile/bgunit | Add (rudimentary!) tests for /profile/bgunit
| Haskell | agpl-3.0 | sajith/betty-web |
c3c055ef512324740be44db423fe4c38b5c29b90 | demo/Prestige.hs | demo/Prestige.hs | {-# LANGUAGE DataKinds, FlexibleContexts, QuasiQuotes, TemplateHaskell #-}
import Control.Applicative
import Control.Arrow ((&&&))
import Diagrams.Prelude (Diagram, R2, sizeSpec2D)
import Diagrams.Backend.Rasterific
import Data.Foldable (toList)
import Frames
import Graphics.Rendering.Chart.Backend.Diagrams (defaultEnv... | {-# LANGUAGE DataKinds, FlexibleContexts, QuasiQuotes, TemplateHaskell #-}
import Control.Applicative
import Control.Arrow ((&&&))
import Diagrams.Prelude (Diagram, R2, dims2D, width, height)
import Diagrams.Backend.Rasterific
import Data.Foldable (toList)
import Frames
import Graphics.Rendering.Chart.Backend.Diagrams ... | Update prestige demo to diagrams-1.3 | Update prestige demo to diagrams-1.3
| Haskell | bsd-3-clause | codygman/Frames,codygman/Frames |
a671d14e19e802eb0e8969d0673b381d1891ab54 | travis.hs | travis.hs |
import Control.Exception.Extra
import System.Process.Extra
main = do
retry 3 $ system_ "sudo apt-get install nsis"
system_ "makensis --version"
|
import Control.Exception.Extra
import System.Process.Extra
main = do
retry 3 $ system_ "sudo apt-get install nsis"
system_ "runhaskell Main --build"
| Build on Linux using the Linux version of makensis | Build on Linux using the Linux version of makensis
| Haskell | apache-2.0 | idleberg/NSIS,idleberg/NSIS,idleberg/NSIS |
2409e58dd44a577d78528483ebf0a3deef0ba7c2 | examples/webpack/hs/Main.hs | examples/webpack/hs/Main.hs | import Control.Concurrent
import qualified GHCJS.CommonJS as CommonJS
helloWorld = putStrLn "[haskell] Hello World"
launchTheMissiles :: IO Int
launchTheMissiles = do
threadDelay (1000 * 1000 * 5)
putStrLn "[haskell] OMG what did I do?!"
return 10
main =
CommonJS.exportMain
[ Common... | import Control.Concurrent
import GHCJS.CommonJS (exportMain, exports)
helloWorld = putStrLn "[haskell] Hello World"
launchTheMissiles :: IO Int
launchTheMissiles = do
threadDelay (1000 * 1000 * 5)
putStrLn "[haskell] OMG what did I do?!"
return 10
main =
exportMain
[ "... | Update webpack example to the latest API | Update webpack example to the latest API
| Haskell | mit | beijaflor-io/ghcjs-commonjs,beijaflor-io/ghcjs-commonjs,beijaflor-io/ghcjs-commonjs |
9714cd12f4e4bb98a328d4770c7bdb649406c2da | exercises/simple-cipher/src/Example.hs | exercises/simple-cipher/src/Example.hs | module Cipher (caesarEncode, caesarDecode, caesarEncodeRandom) where
import System.Random (newStdGen, randomRs)
caesarEncode, caesarDecode :: String -> String -> String
caesarEncode = caesar (+)
caesarDecode = caesar (-)
caesarEncodeRandom :: String -> IO (String, String)
caesarEncodeRandom xs = do
g <- newStdGen
... | module Cipher (caesarEncode, caesarDecode, caesarEncodeRandom) where
import Data.Char (isAsciiLower)
import System.Random (newStdGen, randomRs)
caesarEncode, caesarDecode :: String -> String -> String
caesarEncode = caesar (+)
caesarDecode = caesar (-)
caesarEncodeRandom :: String -> IO (String, String)
caesarEn... | Improve code based on HLint's suggestions. | simple-cipher: Improve code based on HLint's suggestions.
| Haskell | mit | exercism/xhaskell |
37f6f37f5fdaffff4420e897d12aa21d6161bd2f | index.hs | index.hs | {-# LANGUAGE OverloadedStrings #-}
import Network.Wai
import Network.HTTP.Types
import Network.Wai.Application.Static (staticApp, defaultWebAppSettings)
import Network.Wai.Handler.Warp (run)
import Data.Conduit (($$))
import Data.Conduit.Filesystem (sinkFile)
import Control.Monad.Trans (liftIO)
import Filesystem.Path.C... | {-# LANGUAGE OverloadedStrings #-}
import Network.Wai
import Network.HTTP.Types
import Network.Wai.Application.Static (staticApp, defaultWebAppSettings)
import Network.Wai.Handler.Warp (run)
import Data.Conduit (($$))
import Data.Conduit.Binary (sinkHandle)
import System.IO (withFile, IOMode(WriteMode))
import Control.... | Upgrade to WAI / Warp 2.0.0 | Upgrade to WAI / Warp 2.0.0
| Haskell | mit | LeifW/online-typechecker |
94a331ef7431c1aeeedda73c1eadd4d7ba674e94 | 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 System.Environment
import System.Exit
import Paths_idris
data Opts = Opts { inputs :: [FilePath],
output :: FilePath }
showUsage = do putStr... | Correct layout to make it compile | Correct layout to make it compile
| Haskell | bsd-3-clause | idris-hackers/idris-llvm,melted/idris-llvm,melted/idris-llvm,idris-hackers/idris-llvm |
86933c5100639f86a727ecd05ca336a37215f137 | Graphics/ImageMagick/MagickCore/Types/FFI/Types.hsc | Graphics/ImageMagick/MagickCore/Types/FFI/Types.hsc | {-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE RankNTypes #-}
module Graphics.ImageMagick.MagickCore.Types.FFI.Types
where
import Data.Int
import Data.Word
#include <magick/MagickCore.h>
type MagickRealType = #type MagickRealType
type MagickS... | {-# LANGUAGE CPP #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE RankNTypes #-}
module Graphics.ImageMagick.MagickCore.Types.FFI.Types
where
import Data.Int
import Data.Word
#include <magick/MagickCore.h>
type MagickRealType = #type MagickRealType
type MagickS... | Drop magickHuge as it was deprecated. | Drop magickHuge as it was deprecated.
X-GitHub-BugId: 30
X-GitHub-URL: https://github.com/qnikst/imagemagick/issues/30
| Haskell | apache-2.0 | flowbox-public/imagemagick |
f158f203bf1b177008425ac9c7047ceba429d9b8 | src/Distribution/Nixpkgs/Haskell/FromCabal/Configuration/Maintainers.hs | src/Distribution/Nixpkgs/Haskell/FromCabal/Configuration/Maintainers.hs | module Distribution.Nixpkgs.Haskell.FromCabal.Configuration.Maintainers ( globalPackageMaintainers ) where
import Data.Map as Map
import Data.Set as Set
import Distribution.Nixpkgs.Haskell.FromCabal.Configuration
import Internal.Lens
globalPackageMaintainers :: Map PackageName (Set Identifier)
globalPackageMaintainer... | module Distribution.Nixpkgs.Haskell.FromCabal.Configuration.Maintainers ( globalPackageMaintainers ) where
import Data.Map as Map
import Data.Set as Set
import Distribution.Nixpkgs.Haskell.FromCabal.Configuration
import Internal.Lens
globalPackageMaintainers :: Map PackageName (Set Identifier)
globalPackageMaintainer... | Add gebner as maintainer of hledger-diff. | Add gebner as maintainer of hledger-diff.
| Haskell | bsd-3-clause | gridaphobe/cabal2nix,Fuuzetsu/cabal2nix,psibi/cabal2nix,bennofs/cabal2nix |
0c68f9331594b5f7293ca6ff74576d6d8fc615b4 | 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 AesonSample
import Datatypes
import Data.Aeson
import qualified Data.ByteString.Lazy a... | Change 'sequence . map' to mapM function | Change 'sequence . map' to mapM function
| Haskell | bsd-3-clause | alemedeiros/json-to-xml |
3a395e635b435385f17b52c520d5e5cbe0703c4e | GameData/Player.hs | GameData/Player.hs |
module GameData.Player where
import qualified FileData.Data2 as FD
import qualified Gamgine.Math.Vect as V
import qualified Event as EV
import qualified GameData.Entity as E
data Movement = ToTheLeft | ToTheRight | AtRest deriving (Show, Eq)
data Player = Player {
playerId :: Int,
initialPosition :: V.V... |
module GameData.Player where
import qualified FileData.Data2 as FD
import qualified Gamgine.Math.Vect as V
import qualified Event as EV
import qualified GameData.Entity as E
-- | in which direction the player is moving
data Movement = ToTheLeft | ToTheRight | AtRest deriving (Show, Eq)
data Player = Player {
play... | Add some doc to player | Add some doc to player
| Haskell | bsd-3-clause | dan-t/layers |
ab15136d8d065bf6256d63b5c930521c521fdd42 | Handler/Profile.hs | Handler/Profile.hs | module Handler.Profile where
import Import
import Betty.Model
import Betty.Token (getToken)
import Yesod.Auth.Email (setpassR)
------------------------------------------------------------------------
getProfileR :: Handler Html
getProfileR = do
Entity uid u <- requireAuth
t <- getToken $ userEmail u
... | module Handler.Profile where
import Import
import Betty.Model
import Betty.Token (getToken)
import Yesod.Auth.Email (setpassR)
------------------------------------------------------------------------
getProfileR :: Handler Html
getProfileR = do
Entity uid u <- requireAuth
t <- getToken uid
let to... | Declare little string to be Text | Declare little string to be Text
| Haskell | agpl-3.0 | sajith/betty-web |
55063d0adaeb07c62c8057529ee0bcde8c792c23 | testsuite/tests/polykinds/PolyKinds06.hs | testsuite/tests/polykinds/PolyKinds06.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE GADTs #-}
module PolyKinds06 where
data A = A1 | A2 (B 'B1)
data B :: A -> * where
B1 :: B 'A1
| {-# LANGUAGE DataKinds, KindSignatures #-}
{-# LANGUAGE GADTs #-}
module PolyKinds06 where
data A = A1 | A2 (B 'B1)
data B :: A -> * where
B1 :: B 'A1
| Add KindSignatures flag to test | Add KindSignatures flag to test
| Haskell | bsd-3-clause | christiaanb/ghc,jstolarek/ghc,vTurbine/ghc,ml9951/ghc,siddhanathan/ghc,sgillespie/ghc,oldmanmike/ghc,acowley/ghc,ml9951/ghc,vTurbine/ghc,ghc-android/ghc,ghc-android/ghc,urbanslug/ghc,anton-dessiatov/ghc,wxwxwwxxx/ghc,forked-upstream-packages-for-ghcjs/ghc,sdiehl/ghc,GaloisInc/halvm-ghc,holzensp/ghc,christiaanb/ghc,urba... |
4642f874c88064d9b57682a9cd6a9fd356108358 | testsuite/tests/annotations/should_fail/annfail06.hs | testsuite/tests/annotations/should_fail/annfail06.hs | {-# LANGUAGE StandaloneDeriving #-}
module Annfail06 where
-- Testing that we don't accept Typeable or Data instances defined in the same module
import Annfail06_Help
import Data.Data
import Data.Typeable
deriving instance Typeable InstancesInWrongModule
instance Data InstancesInWrongModule where
gfoldl = unde... | {-# LANGUAGE StandaloneDeriving, DeriveDataTypeable #-}
module Annfail06 where
-- Testing that we don't accept Typeable or Data instances defined in the same module
import Annfail06_Help
import Data.Data
import Data.Typeable
deriving instance Typeable InstancesInWrongModule
instance Data InstancesInWrongModule whe... | Add DeriveDataTypeable (omitted wrongly before) | Add DeriveDataTypeable (omitted wrongly before)
| Haskell | bsd-3-clause | AlexanderPankiv/ghc,gcampax/ghc,nkaretnikov/ghc,hferreiro/replay,hferreiro/replay,olsner/ghc,nathyong/microghc-ghc,nathyong/microghc-ghc,shlevy/ghc,holzensp/ghc,sgillespie/ghc,sgillespie/ghc,bitemyapp/ghc,ghc-android/ghc,ml9951/ghc,christiaanb/ghc,ezyang/ghc,mfine/ghc,urbanslug/ghc,AlexanderPankiv/ghc,holzensp/ghc,TomM... |
af4209c6c6fd1a526c695e496d2db22255e274d2 | tests/benchmarks/src/Data/Text/Benchmarks/Equality.hs | tests/benchmarks/src/Data/Text/Benchmarks/Equality.hs | -- | Take the first 100 lines from the file, and count the number of lines equal
-- to those lines
--
module Data.Text.Benchmarks.Equality
( benchmark
) where
import Control.Exception (evaluate)
import Criterion (Benchmark, bgroup, bench)
import qualified Data.ByteString.Char8 as B
import qualified Data.ByteSt... | -- | Compare a string with a copy of itself that is identical except
-- for the last character.
--
module Data.Text.Benchmarks.Equality
(
benchmark
) where
import Criterion (Benchmark, bgroup, bench, whnf)
import qualified Data.ByteString.Char8 as B
import qualified Data.ByteString.Lazy.Char8 as BL
impor... | Replace the equality test with something less noisy. | Replace the equality test with something less noisy.
| Haskell | bsd-2-clause | bos/text,23Skidoo/text,beni55/text,alexliew/text,bgamari/text,alexliew/text,bgamari/text,aloiscochard/text,alexliew/text,ekmett/text,aloiscochard/text,spencerjanssen/text,bgamari/text,hvr/text,ekmett/text,bos/text,bos/text,23Skidoo/text,hvr/text,bos/text,beni55/text,spencerjanssen/text,text-utf8/text,hvr/text,spencerja... |
80c2c09dcb1ede10875183dbe4b5293db9383ed7 | hackerrank/DiagonalDifference.hs | hackerrank/DiagonalDifference.hs | -- https://www.hackerrank.com/challenges/diagonal-difference/problem
import Control.Monad(replicateM)
import Data.List.Split(splitOn)
getIntSquareMatrix :: Int -> IO([[Int]])
getIntSquareMatrix rows = do
matrix <- replicateM rows getLine
let intMatrix = (map . map) read $ map words matrix
return intMatrix
getDi... | -- https://www.hackerrank.com/challenges/diagonal-difference/problem
import Control.Monad(replicateM)
import Data.List.Split(splitOn)
getIntSquareMatrix :: Int -> IO([[Int]])
getIntSquareMatrix rows = do
lines <- replicateM rows getLine
let intMatrix = (map . map) read $ map words lines
return intMatrix
getDiag... | Rename matrix by lines in getIntSquareMatrix | Rename matrix by lines in getIntSquareMatrix
| Haskell | mit | julianespinel/training,julianespinel/trainning,julianespinel/training,julianespinel/trainning,julianespinel/training,julianespinel/training |
3bbe3a5569cf2f031e70919de6dc70ee39b15441 | src/Compiler/TypeChecking/Context.hs | src/Compiler/TypeChecking/Context.hs | module Compiler.TypeChecking.Context
(
-- * Kinds.
Kind
, KindCtx
-- * Types.
, Scheme(..)
, TyCtx
)
where
import qualified Data.Map as Map
import Data.Map (Map)
import Compiler.AST
-- | The type for kinds.
--
-- Since the only possible kinds are of the form @* -> * -> ... ->... | module Compiler.TypeChecking.Context
(
-- * Kinds.
Kind
, KindCtx
-- * Types.
, TyCtx
-- * Type signatures.
, SigCtx
-- * Type inference context.
, TICtx
)
where
import qualified Data.Map as Map
import Data.Map (Map)
import Compiler.AST
-- | The type for kinds.
--... | Add rest of contexts needed for type inference. | Add rest of contexts needed for type inference.
| Haskell | bsd-3-clause | vituscze/norri |
ee04aca994c96b1ea00619c72c5c13c6411ee363 | Main.hs | Main.hs | module Main where
import Lexer2
import TokenTypes
import System.FilePath
import System.Environment
import System.IO
main = do
args <- getArgs
let file = head args
contents <- readFile file
let lex = execParseTokens contents
putStrLn . show . snd $ lex
| module Main where
import Lexer2
import TokenTypes
import System.FilePath
import System.Environment
import System.IO
import Control.Monad
main = do
args <- getArgs
let file = head args
contents <- readFile file
let lex = execParseTokens contents
let newcontents = concatMap show $ fst lex
--putS... | Test case: check whether printed lexed files are equal to the original | Test case: check whether printed lexed files are equal to the original
| Haskell | lgpl-2.1 | FPtje/GLuaParser,FPtje/GLuaFixer |
1b1a4acd8ec2d2bf8c5407217a781d65655f68e8 | libraries/base/GHC/Desugar.hs | libraries/base/GHC/Desugar.hs | -----------------------------------------------------------------------------
-- |
-- Module : GHC.Desugar
-- Copyright : (c) The University of Glasgow, 2007
-- License : see libraries/base/LICENSE
--
-- Maintainer : cvs-ghc@haskell.org
-- Stability : internal
-- Portability : non-portable (GHC ext... | -----------------------------------------------------------------------------
-- |
-- Module : GHC.Desugar
-- Copyright : (c) The University of Glasgow, 2007
-- License : see libraries/base/LICENSE
--
-- Maintainer : cvs-ghc@haskell.org
-- Stability : internal
-- Portability : non-portable (GHC ext... | Add AnnotationWrapper type so GHC can capture annotation dictionaries during compilation | Add AnnotationWrapper type so GHC can capture annotation dictionaries during compilation | Haskell | bsd-3-clause | forked-upstream-packages-for-ghcjs/ghc,vikraman/ghc,oldmanmike/ghc,TomMD/ghc,vikraman/ghc,gridaphobe/ghc,fmthoma/ghc,AlexanderPankiv/ghc,holzensp/ghc,lukexi/ghc,fmthoma/ghc,forked-upstream-packages-for-ghcjs/ghc,vTurbine/ghc,urbanslug/ghc,AlexanderPankiv/ghc,urbanslug/ghc,nathyong/microghc-ghc,spacekitteh/smcghc,snoybe... |
93fa15ace31ab26bde2f36ad2814fed256f53bed | real-world-haskell/ch04/FirstWord.hs | real-world-haskell/ch04/FirstWord.hs | -- file: ch04/FixLines.hs
import System.Environment (getArgs)
interactWith function inputFile outputFile = do
input <- readFile inputFile
writeFile outputFile (function input)
main = mainWith myFunction
where mainWith function = do
args <- getArgs
case args of
[input... | -- file: ch04/FixLines.hs
import System.Environment (getArgs)
interactWith function inputFile outputFile = do
input <- readFile inputFile
writeFile outputFile (function input)
main = mainWith myFunction
where mainWith function = do
args <- getArgs
case args of
[input... | Use Map like a boss | Use Map like a boss
| Haskell | mit | supermitch/learn-haskell |
a272859cc4be46c2939f0f72e697879c7f57bd91 | src/Succinct/Dictionary.hs | src/Succinct/Dictionary.hs | module Succinct.Dictionary
( module Dict
) where
import Succinct.Dictionary.Builder as Dict
import Succinct.Dictionary.Class as Dict
import Succinct.Dictionary.Partitioned as Dict
import Succinct.Dictionary.RangeMin as Dict
import Succinct.Dictionary.Rank9 as Dict
import Succinct.Dictionary.RRR as Dict
| module Succinct.Dictionary
( module Succinct.Dictionary.Builder
, module Succinct.Dictionary.Class
, module Succinct.Dictionary.Partitioned
, module Succinct.Dictionary.RangeMin
, module Succinct.Dictionary.Rank9
, module Succinct.Dictionary.RRR
) where
import Succinct.Dictionary.Builder
import Succinct.... | Drop the 'as Dict' trick, it confuses haddock | Drop the 'as Dict' trick, it confuses haddock
| Haskell | bsd-2-clause | ekmett/succinct,Gabriel439/succinct |
a13a5756b3894e3f7188c4abca9ce08584ae21b1 | Haxe/Externs/Common/unreal/AController_Extra.hx | Haxe/Externs/Common/unreal/AController_Extra.hx | package unreal;
extern class AController_Extra {
public function PawnPendingDestroy(inPawn:APawn) : Void;
@:thisConst
public function GetCharacter() : ACharacter;
@:thisConst
public function GetPawn() : APawn;
public function ChangeState(newState:FName) : Void;
@:thisConst
public function IsInState(... | package unreal;
extern class AController_Extra {
public function PawnPendingDestroy(inPawn:APawn) : Void;
@:thisConst
public function GetCharacter() : ACharacter;
@:thisConst
public function GetPawn() : APawn;
public function ChangeState(newState:FName) : Void;
@:thisConst
public function IsInState(... | Update to latest perforce change | [CL-31907] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
fc125fcd183d241066179a008ea0837f3ccc450e | Haxe/Externs/Common/unreal/FDelegateHandle.hx | Haxe/Externs/Common/unreal/FDelegateHandle.hx | package unreal;
@:glueCppIncludes("Delegates/IDelegateInstance.h")
@:uextern extern class FDelegateHandle {
function new();
}
| package unreal;
@:glueCppIncludes("Delegates/IDelegateInstance.h")
@:uextern extern class FDelegateHandle {
function new();
public function IsValid() : Bool;
public function Reset() : Void;
}
| Update to latest perforce change | [CL-32982] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
ee8c6e897ff547171dc010ee5d3e067ab1b72937 | Haxe/Externs/Common/unreal/UGameViewportClient_Extra.hx | Haxe/Externs/Common/unreal/UGameViewportClient_Extra.hx | package unreal;
@:glueCppIncludes("Engine/GameViewportClient.h")
@:uextern extern class UGameViewportClient_Extra extends unreal.UScriptViewportClient {
public var Viewport : PPtr<FViewport>;
public var EngineShowFlags : FEngineShowFlags;
public function PostRender(Canvas:UCanvas) : Void;
@:thisConst
pub... | package unreal;
@:glueCppIncludes("Engine/GameViewportClient.h")
@:uextern extern class UGameViewportClient_Extra extends unreal.UScriptViewportClient {
public var Viewport : PPtr<FViewport>;
public var EngineShowFlags : FEngineShowFlags;
public function PostRender(Canvas:UCanvas) : Void;
@:thisConst
pub... | Update to latest perforce change | [CL-28790] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
b9ff6918970c222034ab3fa70ceecdf432b702d1 | frontend/src/mapviewer/worker/WorkerMain.hx | frontend/src/mapviewer/worker/WorkerMain.hx | package mapviewer.worker;
import js.html.Uint8Array;
import js.html.WorkerContext;
import mapviewer.block.BlockRegistry;
import mapviewer.logging.Logger;
import mapviewer.Main;
import mapviewer.model.Model;
class WorkerMain {
public static var self : Dynamic = untyped __js__("self");
static function main() {
... | package mapviewer.worker;
import js.html.Uint8Array;
import js.html.WorkerContext;
import mapviewer.block.BlockRegistry;
import mapviewer.logging.Logger;
import mapviewer.Main;
import mapviewer.model.Model;
class WorkerMain {
public static var self : Dynamic = untyped __js__("self");
static function main() {
... | Fix sending the same chunk multiple times | Fix sending the same chunk multiple times
| Haxe | apache-2.0 | thinkofdeath/ThinkMap,thinkofdeath/ThinkMap,thinkofdeath/ThinkMap |
04cca9074ff1e4aef7d73bc5095a2834edd48dfb | std/cpp/vm/Gc.hx | std/cpp/vm/Gc.hx | package cpp.vm;
class Gc
{
static public function enable(inEnable:Bool) : Void
{
untyped __global__.__hxcpp_enable(inEnable);
}
static public function run(major:Bool) : Void
{
untyped __global__.__hxcpp_collect();
}
static public function trace(sought:Class<Dynamic>) : Void
{
... | package cpp.vm;
class Gc
{
static public function enable(inEnable:Bool) : Void
{
untyped __global__.__hxcpp_enable(inEnable);
}
static public function run(major:Bool) : Void
{
untyped __global__.__hxcpp_collect();
}
static public function trace(sought:Class<Dynamic>,printInstances:Bo... | Return the count of traced objects | Return the count of traced objects
| Haxe | lgpl-2.1 | pleclech/haxe-experiments,pleclech/haxe-experiments |
4e12d6b4c1e5c295272289b9bc319543c1c11242 | tests/RunTests.hx | tests/RunTests.hx | package ;
class RunTests {
static function main() {
travix.Logger.exit(0); // make sure we exit properly, which is necessary on some targets, e.g. flash & (phantom)js
}
}
class Example extends coconut.ui.View<{ foo: Int }> {
function render() '
<div>{foo}</div>
';
} | package ;
import js.Browser.*;
class RunTests {
static function main() {
travix.Logger.exit(
try {
document.body.appendChild(new Example({ foo: 4 }).toElement());
if (document.querySelector('body>div>h1').innerHTML != '4')
throw 'test failed';
0;
}
catch (e:D... | Make the test do something. | Make the test do something.
| Haxe | unlicense | MVCoconut/coconut.ui |
8f05ab27ea38ee8770226824e069b6325b286edd | Haxe/Externs/UE4.22/unreal/animationbudgetallocator/USkeletalMeshComponentBudgeted_Extra.hx | Haxe/Externs/UE4.22/unreal/animationbudgetallocator/USkeletalMeshComponentBudgeted_Extra.hx | package unreal.animationbudgetallocator;
extern class USkeletalMeshComponentBudgeted_Extra
{
/** Updates significance budget if this component has been registered with a AnimationBudgetAllocator */
public function SetComponentSignificance(Significance:Float32, bNeverSkip:Bool = false, bTickEvenIfNotRendered:Boo... | package unreal.animationbudgetallocator;
extern class USkeletalMeshComponentBudgeted_Extra
{
@:thisConst
public function GetShouldUseActorRenderedFlag() : Bool;
public function SetShouldUseActorRenderedFlag(value:Bool) : Void;
/** Updates significance budget if this component has been registered with a ... | Update to latest perforce change | [CL-62799] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
1f180e00d76d67170adab0935e26b301de051e47 | src/dtx/layout/IDetoxLayout.hx | src/dtx/layout/IDetoxLayout.hx | package dtx.layout;
using Detox;
interface IDetoxLayout
{
#if !macro
/** Updating the title will update the `<title>` element on the page **/
public var title(default,set):String;
/** This is a contentContainer that you can empty and fill with new content **/
public var contentContainer(get,null):DOMCollec... | package dtx.layout;
using Detox;
interface IDetoxLayout
{
#if !macro
/** Updating the title will update the `<title>` element on the page **/
public var title(default,set):String;
/** This is a contentContainer that you can empty and fill with new content **/
public var contentContainer(get,null):DOMNode;
... | Update to layout to reflect widget behaviour | Update to layout to reflect widget behaviour
dtx-name="" elements now are exposed as DOMNode, not DOMCollection
| Haxe | mit | jasononeil/detox,jasononeil/detox,jasononeil/detox |
3f6b75281fc9d815bccf45a1f2f0cb309abe658b | test/ufront/log/MessageTest.hx | test/ufront/log/MessageTest.hx | package ufront.log;
import utest.Assert;
import ufront.log.Message;
class MessageTest
{
var instance:Message;
public function new()
{
}
public function beforeClass():Void {}
public function afterClass():Void {}
public function setup():Void {}
public function teardown():Void {}
public functi... | package ufront.log;
import utest.Assert;
import ufront.log.Message;
class MessageTest
{
public function new()
{
}
public function beforeClass():Void {}
public function afterClass():Void {}
public function setup():Void {}
public function teardown():Void {}
public function testMessageList():Void ... | Add tests for Message / MessageList | Add tests for Message / MessageList
| Haxe | mit | ufront/ufront-mvc,kevinresol/ufront-mvc,ufront/ufront-mvc,kevinresol/ufront-mvc |
173bb19b73f94bc1f178ae1522d12edf12f4724e | tools/nme/src/project/Dependency.hx | tools/nme/src/project/Dependency.hx | using StringTools;
import sys.FileSystem;
// When used with js, name=name on server, path (if present) = source path
class Dependency
{
public var name:String;
public var path:String;
public var baseDir:String;
public var sourceTree:String;
public function new(inName:String, inPath:String, i... | using StringTools;
import sys.FileSystem;
// When used with js, name=name on server, path (if present) = source path
class Dependency
{
public var name:String;
public var path:String;
public var baseDir:String;
public var sourceTree:String;
public function new(inName:String, inPath:String, i... | Fix to allow gradle only extensions to work. | Fix to allow gradle only extensions to work.
| Haxe | mit | thomasuster/NME,madrazo/nme,haxenme/nme,madrazo/nme,haxenme/nme,haxenme/nme,thomasuster/NME,thomasuster/NME,madrazo/nme,madrazo/nme,thomasuster/NME,madrazo/nme,madrazo/nme,thomasuster/NME,haxenme/nme,thomasuster/NME,haxenme/nme |
8f733c14a6bfe2f2514342dec63732a2c22114af | haxepunk/utils/Platform.hx | haxepunk/utils/Platform.hx | package haxepunk.utils;
#if macro
import haxe.macro.Context;
@:dox(hide)
class Platform
{
static var remap = [
"haxepunk.input.Input" => "com.haxepunk.utils.Input",
"haxepunk.input.Key" => "com.haxepunk.utils.Key",
"haxepunk.input.Gesture" => "com.haxepunk.utils.Gesture",
"haxepunk.input.Touch" => "com.haxep... | package haxepunk.utils;
#if macro
import haxe.macro.Context;
@:dox(hide)
class Platform
{
static function run()
{
Context.onTypeNotFound(function (typeName:String)
{
var parts = typeName.split(".");
if (parts[0] == "com" && parts[1] == "haxepunk")
{
var name = parts[parts.length - 1],
currentP... | Remove old type remap from macro. | Remove old type remap from macro.
| Haxe | mit | wselken/HaxePunk,MattTuttle/HaxePunk,HaxePunk/HaxePunk |
9ad6421cacc633c915bd972ad3463ff487c25b16 | Haxe/Externs/Common/unreal/UGameplayStatics_Extra.hx | Haxe/Externs/Common/unreal/UGameplayStatics_Extra.hx | package unreal;
extern class UGameplayStatics_Extra {
}
| package unreal;
extern class UGameplayStatics_Extra {
@:ufunction(BlueprintCallable) @:uname("PlaySoundAtLocation")
static public function PlaySoundAtLocationWithOwner(WorldContextObject : unreal.Const<unreal.UObject>, Sound : unreal.USoundBase, Location : unreal.FVector, Rotation : unreal.FRotator, VolumeMultiplier... | Update to latest perforce change | [CL-15663] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
fafa1674abf75fe810e8d613774b3861e9e4e9c2 | flixel/group/FlxTypedGroupIterator.hx | flixel/group/FlxTypedGroupIterator.hx | package flixel.group;
/**
* Iterator implementation for groups
* Support a filter method (used for iteratorAlive, iteratorDead and iteratorExists)
* @author Masadow
*/
class FlxTypedGroupIterator<T>
{
private var _groupMembers : Array<T>;
private var _cursor : Int;
private var _filter : T -> Bool;
public func... | package flixel.group;
/**
* Iterator implementation for groups
* Support a filter method (used for iteratorAlive, iteratorDead and iteratorExists)
* @author Masadow
*/
class FlxTypedGroupIterator<T>
{
private var _groupMembers : Array<T>;
private var _cursor : Int;
private var _filter : T -> Bool;
public func... | Fix bug: You couldn't iterate over an element that had called remove without slice | Fix bug: You couldn't iterate over an element that had called remove without slice
| Haxe | mit | HaxeFlixel/flixel |
2230f3a394deb67639f71d19bbdc7371a62f371f | externs/core/flash/flash/events/ProgressEvent.hx | externs/core/flash/flash/events/ProgressEvent.hx | package flash.events; #if (!display && flash)
extern class ProgressEvent extends Event {
public static var PROGRESS (default, never):String;
public static var SOCKET_DATA (default, never):String;
public var bytesLoaded:Float;
public var bytesTotal:Float;
#if (flash && air)
static var STANDARD_OUTPUT_DATA ... | package flash.events; #if (!display && flash)
extern class ProgressEvent extends Event {
public static var PROGRESS (default, never):String;
public static var SOCKET_DATA (default, never):String;
public var bytesLoaded:Float;
public var bytesTotal:Float;
#if (flash && air)
public static var STANDARD_ERROR... | Add some missing air progress events | Add some missing air progress events
| Haxe | mit | NenadBojkovski/openfl,openfl/openfl,NenadBojkovski/openfl,Gama11/openfl,Gama11/openfl,Gama11/openfl,openfl/openfl,openfl/openfl,Gama11/openfl |
b06d48735a804d2bb67cb7b181902018550b1137 | samples/02-Text/Sample.hx | samples/02-Text/Sample.hx | import flash.Lib;
class Sample
{
public static function main()
{
var text = new flash.text.TextField();
text.x = 10;
text.y = 10;
text.text = "Hello !";
Lib.current.stage.addChild(text);
text.stage.scaleMode = flash.display.StageScaleMode.NO_SCALE;
var text = new flash.text.TextFie... | import flash.Lib;
class Sample
{
public static function main()
{
var gfx = Lib.current.graphics;
gfx.beginFill(0x000000);
gfx.drawRect(120,0,120,120);
for(side in 0...2)
{
var col = side * 0xffffff;
var text = new flash.text.TextField();
text.x = 10 + side*120;
... | Add black and white versions | Add black and white versions
git-svn-id: 6cc2fa9b7d2830c930c171b991ffcd5e23f23d5e@609 1509560c-5e2a-0410-865c-31c25e1cfdef
| Haxe | mit | haxenme/nme,madrazo/nme,haxenme/nme,thomasuster/NME,haxenme/nme,madrazo/nme,haxenme/nme,thomasuster/NME,madrazo/nme,madrazo/nme,haxenme/nme,madrazo/nme,thomasuster/NME,thomasuster/NME,thomasuster/NME,thomasuster/NME,madrazo/nme |
d51d519bcc61017ba9b7089e64b858f24117cc52 | tests/cases/Implicits.hx | tests/cases/Implicits.hx | package cases;
class Implicits extends Base {
public function test() {
mount(hxx('<Example ref=${e -> asserts.assert(e.foo.value == 123)}/>'));
mount(hxx('<Example2 ref=${e -> asserts.assert(e.foo.value == 42)}/>'));
return asserts.done();
}
}
private class Example extends View {
@:implicit var foo... | package cases;
class Implicits extends Base {
public function test() {
mount(hxx('<Example ref=${e -> asserts.assert(e.foo.value == 123)}/>'));
mount(hxx('<Example2 ref=${e -> asserts.assert(e.foo.value == 42)}/>'));
mount(hxx('
<Implicit defaults=${[ Foo => new Foo(1337) ]}>
<Example ref=... | Add failing test for local implicits. | Add failing test for local implicits.
| Haxe | unlicense | MVCoconut/coconut.ui |
421da123b1eea09a86edbc1dfab3a6f06a8e442c | src/tinx/node/mongo/ObjectID.hx | src/tinx/node/mongo/ObjectID.hx | package tinx.node.mongo;
import tink.core.types.Outcome;
import tinx.node.Error;
import tinx.node.Runtime;
@:native('require("mongodb").ObjectID')
private extern class Native {
function new(?s:String);
function toString():String;
}
abstract ObjectID<T:{}>(Native) {
public function new(?s:String) this =... | package tinx.node.mongo;
import tink.core.types.Outcome;
import tinx.node.Error;
import tinx.node.Runtime;
@:native('require("mongodb").ObjectID')
private extern class Native {
function new(?s:String);
function toString():String;
}
abstract ObjectID<T:{}>(Native) {
public function new(?s:String) this =... | Add comparison for object id. | Add comparison for object id.
| Haxe | mit | back2dos/tinkerbell,back2dos/tinkerbell |
9ebeb8ec81798d5e9346826c0a10217ddf5164cf | src/travix/commands/JavaCommand.hx | src/travix/commands/JavaCommand.hx | package travix.commands;
import tink.cli.Rest;
using sys.FileSystem;
class JavaCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
var main = Travix.getMainClassLocalName();
installLib('hxjava');
build('java', ['-java', 'bin/ja... | package travix.commands;
import tink.cli.Rest;
using sys.FileSystem;
class JavaCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
var main = Travix.getMainClassLocalName();
installLib('hxjava');
build('java', ['-java', 'bin/ja... | Fix "Uncaught exception - [file_contents,extraParams.hxml]" Java builds | Fix "Uncaught exception - [file_contents,extraParams.hxml]" Java builds
When running `haxelib run travix java` the following exception may be
thrown:
```
haxelib run hxjava hxjava_build.txt --haxe-version 4105 --feature-level
1
javac.exe "-sourcepath" "src" "-d" "obj" "-g" "@cmd"
Called from ? line 1
Called from tink... | Haxe | unlicense | back2dos/travix,back2dos/travix,back2dos/travix |
e0331d38c8ba8dc8c6ec2ad1b523ae20cd574bb5 | src/flambe/platform/flash/BitmapRenderer.hx | src/flambe/platform/flash/BitmapRenderer.hx | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform.flash;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.events.Event;
import flash.Lib;
import flambe.display.DrawingContext;
import flambe.display.Texture;
class Bitma... | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform.flash;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.events.Event;
import flash.Lib;
import flambe.display.DrawingContext;
import flambe.display.Texture;
class Bitma... | Fix for an old IE Flash bug. | Fix for an old IE Flash bug.
| Haxe | mit | Disar/flambe,markknol/flambe,mikedotalmond/flambe,aduros/flambe,weilitao/flambe,markknol/flambe,markknol/flambe,aduros/flambe,Disar/flambe,weilitao/flambe,weilitao/flambe,playedonline/flambe,mikedotalmond/flambe,weilitao/flambe,playedonline/flambe,playedonline/flambe,aduros/flambe,aduros/flambe,Disar/flambe,Disar/flamb... |
b064a09395534c553a385fb81ca7548359747ba1 | tools/Setup.hx | tools/Setup.hx | import com.haxepunk.utils.HaxelibInfo;
class Setup
{
public static function setup()
{
installDependencies();
Sys.command('haxelib run $OPENFL setup');
}
public static function update()
{
Sys.command("haxelib update HaxePunk");
installDependencies();
}
public static function installDependencies()
{
... | import com.haxepunk.utils.HaxelibInfo;
class Setup
{
public static function setup()
{
installDependencies();
Sys.command("haxelib", ["run", OPENFL, "setup"]);
}
public static function update()
{
Sys.command("haxelib" ["update", "HaxePunk"]);
installDependencies();
}
public static function installDepen... | Fix command call in setup tool | Fix command call in setup tool | Haxe | mit | scriptorum/HaxePunk,wselken/HaxePunk,scriptorum/HaxePunk,HaxePunk/HaxePunk,MattTuttle/HaxePunk |
db08e2d67c2d58d735d4ecd8cebfc08a5728829f | Collision/Sources/Project.hx | Collision/Sources/Project.hx | package;
import kha.Framebuffer;
import kha.Scheduler;
import kha.System;
import kha.math.Vector2;
import verlet.Objects.Tire;
import verlet.Verlet;
import verlet.Renderer;
import verlet.collision.Shapes;
class Project {
var world:Verlet;
var verletRenderer:Renderer;
public function new() {
System.notifyOnRend... | package;
import kha.Framebuffer;
import kha.Scheduler;
import kha.System;
import kha.math.Vector2;
import verlet.Objects.Tire;
import verlet.Verlet;
import verlet.Renderer;
import verlet.collision.Shapes;
class Project {
var world:Verlet;
var verletRenderer:Renderer;
public function new() {
System.notifyOnRend... | Move Box out of way | Collision: Move Box out of way
| Haxe | mit | Devination/VerletKha-Examples |
8f4879536d296b29008f345a6f1de81a1cdd0eac | src/npm/sequelize/ModelQuery.hx | src/npm/sequelize/ModelQuery.hx | package npm.sequelize;
import haxe.extern.EitherType;
typedef ModelQuery = {
?where : {},
?attributes : Array<String>,
?paranoid : Bool,
?include : Array<EitherType<Model<Dynamic>, ModelIncludeOptions>>,
?order : EitherType<String, EitherType<Array<String>, EitherType<Array<Array<Dynamic>>, SequelizeFunctio... | package npm.sequelize;
import haxe.extern.EitherType;
typedef ModelQuery = {
?where : {},
?attributes : Array<String>,
?paranoid : Bool,
?include : Array<EitherType<ModelIncludeOptions, Model<Dynamic>>>,
?order : EitherType<String, EitherType<Array<String>, EitherType<Array<Array<Dynamic>>, SequelizeFunctio... | Switch order of types in modelquery | Switch order of types in modelquery
| Haxe | mit | abedev/npm,abedev/npm |
59a6f60eaf88e09d5d9b6d0c047717f32d3377ab | h3d/shader/pbr/ToneMapping.hx | h3d/shader/pbr/ToneMapping.hx | package h3d.shader.pbr;
class ToneMapping extends ScreenShader {
static var SRC = {
@param var hdrTexture : Sampler2D;
@param var exposureExp : Float;
@const var isSRBG : Bool;
@const var mode : Int;
var hdrColor : Vec4;
function __init__fragment() {
hdrColor = hdrTexture.get(calcul... | package h3d.shader.pbr;
class ToneMapping extends ScreenShader {
static var SRC = {
@param var hdrTexture : Sampler2D;
@param var exposureExp : Float;
@const var isSRBG : Bool;
@const var mode : Int;
var hdrColor : Vec4;
function __init__fragment() {
hdrColor = hdrTexture.get(calcul... | Update Tonemap, add saturate() for linear | Update Tonemap, add saturate() for linear | Haxe | mit | R32/heaps,HeapsIO/heaps |
9da5a57546ea9f1e3186a42ab55a0f52f64037c3 | Haxe/Externs/unreal/onlinesubsystem/IOnlineSubsystem.hx | Haxe/Externs/unreal/onlinesubsystem/IOnlineSubsystem.hx | package unreal.onlinesubsystem;
import unreal.*;
@:glueCppIncludes("Online.h") @:umodule("OnlineSubsystem")
@:uname("IOnlineSubsystem")
@:noCopy
@:uextern extern class IOnlineSubsystem {
public static function Get(subsystemName:FName) : unreal.PPtr<IOnlineSubsystem>;
public function GetAchievementsInterface() :... | package unreal.onlinesubsystem;
import unreal.*;
@:glueCppIncludes("Online.h") @:umodule("OnlineSubsystem")
@:uname("IOnlineSubsystem")
@:noCopy
@:uextern extern class IOnlineSubsystem {
public static function Get(subsystemName:FName) : unreal.PPtr<IOnlineSubsystem>;
public function GetAchievementsInterface() :... | Support for checking if Steam controller is active in Haxe code | Support for checking if Steam controller is active in Haxe code
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
a400fc3eefe8b1983705523d6108788e25d12474 | Haxe/Externs/Common/unreal/umg/URichTextBlock_Extra.hx | Haxe/Externs/Common/unreal/umg/URichTextBlock_Extra.hx | package unreal.umg;
@:glueCppIncludes("Components/RichTextBlock.h")
extern class URichTextBlock_Extra
{
private function UpdateStyleData() : Void;
}
| package unreal.umg;
@:glueCppIncludes("Components/RichTextBlock.h")
extern class URichTextBlock_Extra
{
private function UpdateStyleData() : Void;
@:expr({ return this.Text.copy(); }) public function GetText():FText;
}
| Update to latest perforce change | [CL-48898] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
c2c3e118c3669970a9771212446ad81c7802a2f2 | extension/locale/Locale.hx | extension/locale/Locale.hx | package extension.locale;
class Locale {
private static var _getLangCode:Void->String =
#if android
openfl.utils.JNI.createStaticMethod("localeExtension/Locale", "getLangCode", "()Ljava/lang/String;");
#elseif ios
cpp.Lib.load("openflLocaleExtension","get_lang_code",0);
#elseif (flash || openfl)
funct... | package extension.locale;
class Locale {
private static var _getLangCode:Void->String =
#if android
openfl.utils.JNI.createStaticMethod("localeExtension/Locale", "getLangCode", "()Ljava/lang/String;");
#elseif ios
cpp.Lib.load("openflLocaleExtension","get_lang_code",0);
#elseif (flash || openfl)
funct... | Add getSmartLangCode() function (to provide lang code as flash protocol: two letters unless Chinese) | Add getSmartLangCode() function (to provide lang code as flash protocol: two letters unless Chinese)
| Haxe | mit | thomasuster/openfl-locale,fbricker/extension-locale,SempaiGames/extension-locale,SempaiGames/extension-locale,thomasuster/openfl-locale,fbricker/extension-locale,fbricker/extension-locale,thomasuster/openfl-locale |
042cb410dd471a4bbf1e1c3e5cef6160f11407ef | nme/display/Bitmap.hx | nme/display/Bitmap.hx | package nme.display;
import nme.display.DisplayObject;
import nme.display.PixelSnapping;
class Bitmap extends DisplayObject {
public var bitmapData(default,nmeSetBitmapData) : BitmapData;
public var pixelSnapping : PixelSnapping;
public var smoothing : Bool;
var mGraphics:Graphics;
public function ne... | package nme.display;
import nme.display.DisplayObject;
import nme.display.PixelSnapping;
class Bitmap extends DisplayObject {
public var bitmapData(default,nmeSetBitmapData) : BitmapData;
public var pixelSnapping : PixelSnapping;
public var smoothing(default,nmeSetSmoothing) : Bool;
var mGraphics:Graphic... | Allow smoothing to be set after creation | Allow smoothing to be set after creation
git-svn-id: 6cc2fa9b7d2830c930c171b991ffcd5e23f23d5e@689 1509560c-5e2a-0410-865c-31c25e1cfdef
| Haxe | mit | haxenme/nme,madrazo/nme,haxenme/nme,haxenme/nme,thomasuster/NME,haxenme/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,madrazo/nme,madrazo/nme,haxenme/nme,thomasuster/NME,madrazo/nme,thomasuster/NME,thomasuster/NME,madrazo/nme |
ed6dcabb328353e3f6c7e3ab0041c03f3e4ad962 | jive/Svg.hx | jive/Svg.hx | package jive;
import org.aswing.geom.IntDimension;
import org.aswing.geom.IntRectangle;
import format.SVG;
class Svg extends org.aswing.Component {
public var generateContent:Void -> String;
/**
* The content property is ignored if the generateContent function is set.
**/
public var content(ge... | package jive;
import org.aswing.geom.IntDimension;
import org.aswing.geom.IntRectangle;
import format.SVG;
class Svg extends org.aswing.Component {
public var generateContent:Void -> String;
/**
* The content property is ignored if the generateContent function is set.
**/
public var content(ge... | Remove traces from the SVG class | Remove traces from the SVG class
| Haxe | bsd-3-clause | ngrebenshikov/jive,ngrebenshikov/jive,ngrebenshikov/jive |
4f2b9275aa6f056b0ce25828df4f284cc6462a63 | beluga/core/Trigger.hx | beluga/core/Trigger.hx | package beluga.core;
import haxe.xml.Fast;
/**
* ...
* @author Masadow
*/
class Trigger
{
public var action(default, null) : String;
private var routes : Array<CallbackTrigger>;
public function new(trigger : Fast)
{
//Retrieve trigger event
action = trigger.att.name;
//Get all callback
routes = ne... | package beluga.core;
import haxe.xml.Fast;
/**
* ...
* @author Masadow
*/
class Trigger
{
public var action(default, null) : String;
private var routes : Array<CallbackTrigger>;
public function new(trigger : Fast)
{
//Retrieve trigger event
action = trigger.att.name;
//Get all callback
routes = ne... | Add params in call method | Add params in call method
| Haxe | mit | HaxeBeluga/beluga |
e647c00a5a3613b282d7ac98d4cbbe72351ab9b7 | src/ufront/web/result/DetoxResult.hx | src/ufront/web/result/DetoxResult.hx | package ufront.web.result;
import dtx.DOMCollection;
import thx.error.NullArgument;
import ufront.web.context.ActionContext;
import dtx.widget.Widget;
import dtx.IDetoxLayout;
using Detox;
/** Represents a class that is used to send JSON-formatted content to the response. */
class DetoxResult<W:DOMCollection> extends... | package ufront.web.result;
import dtx.DOMCollection;
import thx.error.NullArgument;
import ufront.web.context.ActionContext;
import dtx.widget.Widget;
import dtx.layout.IDetoxLayout;
using Detox;
/** Represents a class that is used to send JSON-formatted content to the response. */
class DetoxResult<W:DOMCollection> ... | Update to DetoxLayout to keep up with detox library | Update to DetoxLayout to keep up with detox library
| Haxe | mit | kevinresol/ufront-mvc,ufront/ufront-mvc,ufront/ufront-mvc,kevinresol/ufront-mvc |
f35dd5afc3232d49b27185cc4e411269317cf16c | src/qx/ui/core/Widget.hx | src/qx/ui/core/Widget.hx | package qx.ui.core;
extern class Widget extends LayoutItem
{
public function setVisibility(v:String):Void;
public function setDecorator(v:String):Void;
public function setAppearance(v:String):String;
public function updateAppearance():Void;
public function show():Void;
public function hide():... | package qx.ui.core;
extern class Widget extends LayoutItem
{
public function setVisibility(v:String):Void;
public function getDecorator():Dynamic;
public function setDecorator(v:Dynamic):Void;
public function resetDecorator():Void;
public function getAppearance():String;
public function setAp... | Add theming methods to Qooxdoo bindings. | Add theming methods to Qooxdoo bindings.
We will need to use them in order to set/reset decorators or appearance.
| Haxe | bsd-3-clause | imps/cncta |
3ea783137acc1dcf0f8439f713c7a4201ea24043 | Haxe/Static/ue4hx/internal/buf/CppWriter.hx | Haxe/Static/ue4hx/internal/buf/CppWriter.hx | package ue4hx.internal.buf;
class CppWriter extends BaseWriter {
public function new(path) {
super(path);
}
override private function getContents(module:String):String {
var bufContents = this.buf.toString();
if (bufContents == '')
return null;
var cpp = new HelperBuf() <<
'#include... | package ue4hx.internal.buf;
class CppWriter extends BaseWriter {
public function new(path) {
super(path);
}
override private function getContents(module:String):String {
var bufContents = this.buf.toString();
if (bufContents == '')
return null;
var cpp = new HelperBuf() <<
'#include... | Disable deprecation warnings on msvc as well | Disable deprecation warnings on msvc as well
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
df06bd088cf93ab5dca12401db35188a62731747 | jive/Jive.hx | jive/Jive.hx | package jive;
import org.aswing.AsWingManager;
import openfl.Lib;
class Jive {
public static function init() {
AsWingManager.initAsStandard(Lib.current, false);
}
public static var useMobileTheme(get, null): Bool;
private static function get_useMobileTheme(): Bool {
#if (jive_pseudo_mobile || ios || android)... | package jive;
import org.aswing.AsWingManager;
import openfl.Lib;
class Jive {
public static function init() {
AsWingManager.initAsStandard(Lib.current, false);
}
public static var useMobileTheme(get, null): Bool;
private static function get_useMobileTheme(): Bool {
#if (jive_pseudo_mobile || ios || android)... | Throw exception if display is called bu not inited | Throw exception if display is called bu not inited
| Haxe | bsd-3-clause | ngrebenshikov/jive,ngrebenshikov/jive,ngrebenshikov/jive |
d46eee8311387ed1e78e14891e56104b8098ec72 | Haxe/Externs/Common/unreal/FPrimaryAssetType_Extra.hx | Haxe/Externs/Common/unreal/FPrimaryAssetType_Extra.hx | package unreal;
@:hasEquals
extern class FPrimaryAssetType_Extra {
@:uname(".ctor") public static function create(InName:FName):FPrimaryAssetType;
@:thisConst
public function ToString() : FString;
@:expr(return ToString().toString())
public function toString():String;
}
| package unreal;
@:hasEquals
extern class FPrimaryAssetType_Extra {
@:uname(".ctor") public static function create(InName:FName):FPrimaryAssetType;
@:thisConst
public function ToString() : FString;
@:thisConst
public function IsValid():Bool;
@:expr(return ToString().toString())
public function ... | Update to latest perforce change | [CL-70851] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
5219591017a7514a23b3cc0dddb4349523d7a2f9 | Haxe/Externs/unreal/onlinesubsystem/IOnlineSubsystem.hx | Haxe/Externs/unreal/onlinesubsystem/IOnlineSubsystem.hx | package unreal.onlinesubsystem;
import unreal.*;
@:glueCppIncludes("OnlineSubsystem.h") @:umodule("OnlineSubsystem")
@:uname("IOnlineSubsystem")
@:noCopy
@:uextern extern class IOnlineSubsystem {
public static function Get(subsystemName:FName) : unreal.PPtr<IOnlineSubsystem>;
public function GetAchievementsInte... | package unreal.onlinesubsystem;
import unreal.*;
@:glueCppIncludes("OnlineSubsystem.h") @:umodule("OnlineSubsystem")
@:uname("IOnlineSubsystem")
@:noCopy
@:uextern extern class IOnlineSubsystem {
public static function Get(subsystemName:FName) : unreal.PPtr<IOnlineSubsystem>;
public function GetAchievementsInte... | Support for pulling language from Steam | Support for pulling language from Steam
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
1489cf3b4d94bdaf945ae4a635c99b0d21b8e873 | src/npm/ForeverMonitor.hx | src/npm/ForeverMonitor.hx | package npm;
import npm.forever.ForeverOptions;
@:jsRequire("forever-monitor", "Monitor")
extern class ForeverMonitor {
function new(scriptPath : String, ?options : ForeverOptions);
function on(event : String, callback : ?Dynamic -> Void): Void;
function start() : Void;
}
| package npm;
import haxe.Constraints.Function;
import npm.forever.ForeverOptions;
@:jsRequire("forever-monitor", "Monitor")
extern class ForeverMonitor {
function new(scriptPath : String, ?options : ForeverOptions);
function on(event : String, callback : Function): Void;
function start() : Void;
}
| Change forever callback to haxe.Constraints.Function | Change forever callback to haxe.Constraints.Function
| Haxe | mit | abedev/npm,abedev/npm |
5055080922eab8f012073c9c9eaabdd09951360d | lime/Lib.hx | lime/Lib.hx | package lime;
import haxe.PosInfos;
import lime.utils.Log;
#if macro
import haxe.macro.Compiler;
import haxe.macro.Context;
#end
#if !lime_debug
@:fileXml('tags="haxe,release"')
@:noDebug
#end
class Lib {
@:noCompletion private static var __sentWarnings = new Map<String, Bool> ();
#if macro
public stat... | package lime;
import haxe.PosInfos;
import lime.utils.Log;
#if macro
import haxe.macro.Compiler;
import haxe.macro.Context;
#end
#if !lime_debug
@:fileXml('tags="haxe,release"')
@:noDebug
#end
class Lib {
@:noCompletion private static var __sentWarnings = new Map<String, Bool> ();
#if macro
public stat... | Add support for -Dnocffi for tools to force no use of NDLLs | Add support for -Dnocffi for tools to force no use of NDLLs
| Haxe | mit | madrazo/lime-1,madrazo/lime-1,MinoGames/lime,openfl/lime,madrazo/lime-1,MinoGames/lime,player-03/lime,openfl/lime,player-03/lime,openfl/lime,madrazo/lime-1,madrazo/lime-1,player-03/lime,MinoGames/lime,openfl/lime,openfl/lime,player-03/lime,player-03/lime,madrazo/lime-1,player-03/lime,MinoGames/lime,MinoGames/lime,playe... |
bcc8d2da2b5be9de000770c82f90c79e7c71bef4 | jive/Svg.hx | jive/Svg.hx | package jive;
import org.aswing.geom.IntDimension;
import org.aswing.geom.IntRectangle;
import format.SVG;
class Svg extends org.aswing.Component {
public var generateContent:Void -> String;
/**
* The content property is ignored if the generateContent function is set.
**/
public var content(ge... | package jive;
import openfl.utils.Assets;
import org.aswing.geom.IntDimension;
import org.aswing.geom.IntRectangle;
import format.SVG;
class Svg extends org.aswing.Component {
public var generateContent:Void -> String;
/**
* The content property is ignored if the generateContent function is set.
*... | Load the SVG from the assets | Load the SVG from the assets
| Haxe | bsd-3-clause | ngrebenshikov/jive,ngrebenshikov/jive,ngrebenshikov/jive |
3f675b8d9d9e7d42c040bdf9a1fdb8150e4da71b | Haxe/Externs/unreal/UEngine_Extra.hx | Haxe/Externs/unreal/UEngine_Extra.hx | package unreal;
extern class UEngine_Extra {
/**
Gets all local players associated with the engine.
This function should only be used in rare cases where no UWorld* is available to get a player list associated with the world.
E.g, - use GetFirstLocalPlayerController(UWorld *InWorld) when possible!
*/
... | package unreal;
extern class UEngine_Extra {
/**
Gets all local players associated with the engine.
This function should only be used in rare cases where no UWorld* is available to get a player list associated with the world.
E.g, - use GetFirstLocalPlayerController(UWorld *InWorld) when possible!
*/
... | Fix OnTravelFailure return type - should return a reference | Fix OnTravelFailure return type - should return a reference
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
4fc0cc49739fcc412dfd390e33378af4a3abef48 | Haxe/Externs/Common/unreal/UPlayerInput_Extra.hx | Haxe/Externs/Common/unreal/UPlayerInput_Extra.hx | package unreal;
extern class UPlayerInput_Extra {
/**
This player's version of Action Mappings
**/
public var ActionMappings : TArray<FInputActionKeyMapping>;
/**
This player's version of Axis Mappings
**/
public var AxisMappings : TArray<FInputAxisKeyMapping>;
/**
Clear the current cach... | package unreal;
extern class UPlayerInput_Extra {
/**
This player's version of Action Mappings
**/
public var ActionMappings : TArray<FInputActionKeyMapping>;
/**
This player's version of Axis Mappings
**/
public var AxisMappings : TArray<FInputAxisKeyMapping>;
/**
Clear the current cach... | Update to latest perforce change | [CL-33291] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
cef76f4f2d885647f1cf54badeb77dda19ae48f2 | Haxe/Externs/Common/unreal/FStringImpl.hx | Haxe/Externs/Common/unreal/FStringImpl.hx | package unreal;
@:glueCppIncludes("Containers/UnrealString.h")
@:uname("FString")
@:ustruct
@:uextern extern class FStringImpl {
@:uname('.ctor') static function create(text:TCharStar):FStringImpl;
@:uname('new') static function createNew(text:TCharStar):POwnedPtr<FStringImpl>;
function op_Dereference() : TCharS... | package unreal;
@:glueCppIncludes("Containers/UnrealString.h")
@:uname("FString")
@:ustruct
@:uextern extern class FStringImpl {
@:uname('.ctor') static function create(text:TCharStar):FStringImpl;
@:uname('new') static function createNew(text:TCharStar):POwnedPtr<FStringImpl>;
function op_Dereference() : TCharS... | Update to latest perforce change | [CL-33424] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
54df3087b07ee7c4164a9b341c20bdf75e8e165c | Haxe/Externs/Common/unreal/UInputSettings_Extra.hx | Haxe/Externs/Common/unreal/UInputSettings_Extra.hx | package unreal;
extern class UInputSettings_Extra {
function SaveKeyMappings() : Void;
function AddActionMapping(KeyMapping:Const<PRef<FInputActionKeyMapping>>) : Void;
function AddAxisMapping(KeyMapping:Const<PRef<FInputAxisKeyMapping>>) : Void;
}
| package unreal;
extern class UInputSettings_Extra {
}
| Update to latest perforce change | [CL-17821] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
577e3775e120930a5e46b8a8a78b102c6f1579ca | src/travix/commands/PythonCommand.hx | src/travix/commands/PythonCommand.hx | package travix.commands;
import tink.cli.Rest;
class PythonCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
build('python', ['-python', 'bin/python/tests.py'].concat(rest), function () {
if (tryToRun('python3', ['--version']).match(Failure... | package travix.commands;
import tink.cli.Rest;
class PythonCommand extends Command {
public function install() {
}
public function buildAndRun(rest:Rest<String>) {
build('python', ['-python', 'bin/python/tests.py'].concat(rest), function () {
if (tryToRun('python3', ['--version']).match(Failure... | Fix installation of Python 3 on OSX via brew | Fix installation of Python 3 on OSX via brew | Haxe | unlicense | back2dos/travix,back2dos/travix,back2dos/travix |
0d653e98adf638d128316c02f1651fafa2ee0674 | Haxe/Externs/Common/unreal/rhi/FDynamicRHI.hx | Haxe/Externs/Common/unreal/rhi/FDynamicRHI.hx | package unreal.rhi;
@:glueCppIncludes("RHIResources.h", "DynamicRHI.h")
@:noCopy
@:noEquals
@:umodule("RHI")
@:uextern extern class FDynamicRHI {
@:global static function RHIGetAvailableResolutions(Resolutions:PRef<TArray<FScreenResolutionRHI>>, bIgnoreRefreshRate:Bool) : Bool;
}
| package unreal.rhi;
@:glueCppIncludes("RHI.h", "RHIResources.h", "DynamicRHI.h")
@:noCopy
@:noEquals
@:umodule("RHI")
@:uextern extern class FDynamicRHI {
@:global static function RHIGetAvailableResolutions(Resolutions:PRef<TArray<FScreenResolutionRHI>>, bIgnoreRefreshRate:Bool) : Bool;
}
| Update to latest perforce change | [CL-14440] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
e3c1e8f19dbbc700490e30aa88d5b330ad5d1012 | src/flambe/platform/CatapultClient.hx | src/flambe/platform/CatapultClient.hx | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform;
import haxe.Json;
import flambe.util.Assert;
/** Handles communication with the Catapult server run by `flambe serve`, for live reloading. */
class CatapultClient
{
private function new ()
... | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform;
import haxe.Json;
import flambe.util.Assert;
/** Handles communication with the Catapult server run by `flambe serve`, for live reloading. */
class CatapultClient
{
private function new ()
... | Enable asset reloading by default. | Enable asset reloading by default.
| Haxe | mit | Disar/flambe,mikedotalmond/flambe,playedonline/flambe,weilitao/flambe,Disar/flambe,playedonline/flambe,aduros/flambe,aduros/flambe,markknol/flambe,aduros/flambe,weilitao/flambe,aduros/flambe,markknol/flambe,markknol/flambe,playedonline/flambe,mikedotalmond/flambe,mikedotalmond/flambe,Disar/flambe,weilitao/flambe,played... |
cff2e4d86b032280637b9c10870c1372aa714fca | src/flambe/util/Assert.hx | src/flambe/util/Assert.hx | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.util;
/**
* Simple runtime assertions. A failed assertion throws an error, which should NOT be caught and
* handled. Assertions are stripped from release builds, unless the -D flambe_keep_asserts compile... | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.util;
using flambe.util.Strings;
/**
* Simple runtime assertions. A failed assertion throws an error, which should NOT be caught and
* handled. Assertions are stripped from release builds, unless the -D... | Allow formatted parameters in assert messages too. | Allow formatted parameters in assert messages too.
| Haxe | mit | weilitao/flambe,playedonline/flambe,Disar/flambe,weilitao/flambe,playedonline/flambe,mikedotalmond/flambe,weilitao/flambe,aduros/flambe,Disar/flambe,mikedotalmond/flambe,Disar/flambe,playedonline/flambe,markknol/flambe,mikedotalmond/flambe,markknol/flambe,mikedotalmond/flambe,markknol/flambe,aduros/flambe,aduros/flambe... |
79c3b0abb4d583b77348495234959f505f6a4283 | src/coconut/ui/View.hx | src/coconut/ui/View.hx | package coconut.ui;
import tink.state.Observable;
using tink.CoreApi;
@:autoBuild(coconut.ui.macros.ViewBuilder.build())
@:observable
class View extends Renderer implements Renderable {
@:noCompletion var __coco__cache = new coconut.ui.tools.ViewCache();
@:keep public var viewId(default, null):Int = idCoun... | package coconut.ui;
import tink.state.Observable;
using tink.CoreApi;
@:autoBuild(coconut.ui.macros.ViewBuilder.build())
@:observable
class View extends Renderer implements Renderable {
@:noCompletion var __coco__cache = new coconut.ui.tools.ViewCache();
@:keep public var viewId(default, null):Int = idCoun... | Remove some unused debug information. | Remove some unused debug information. | Haxe | unlicense | MVCoconut/coconut.ui |
0424526868be7708792c1c1c79eb9fd5bc33ab12 | src/ufront/web/Controller.hx | src/ufront/web/Controller.hx | package ufront.web;
import ufront.web.context.ActionContext;
/**
A simple base controller class.
It's main function is an autobuild macro, which will be used to provide some helpers in future.
It also has an empty constructor and a `context:ActionContext` property. See below for details.
**/
// @:autoBuild()
... | package ufront.web;
import haxe.PosInfos;
import ufront.web.context.ActionContext;
/**
A simple base controller class.
It's main function is an autobuild macro, which will be used to provide some helpers in future.
It also has an empty constructor and a `context:ActionContext` property. See below for details.... | Use injection to get context. Use traces on contexts | Use injection to get context. Use traces on contexts
| Haxe | mit | ufront/ufront-mvc,kevinresol/ufront-mvc,kevinresol/ufront-mvc,ufront/ufront-mvc |
15f02d063fa084377124d5cb989c8f07b258a911 | src/flambe/platform/html/HtmlStage.hx | src/flambe/platform/html/HtmlStage.hx | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform.html;
import flambe.platform.Stage;
import flambe.util.Signal0;
class HtmlStage
implements Stage
{
public var width (getWidth, null) :Int;
public var height (getHeight, null) :Int;
... | //
// Flambe - Rapid game development
// https://github.com/aduros/flambe/blob/master/LICENSE.txt
package flambe.platform.html;
import js.Lib;
import flambe.platform.Stage;
import flambe.util.Signal0;
class HtmlStage
implements Stage
{
public var width (getWidth, null) :Int;
public var height (getHeight... | Fix resize events in html. | Fix resize events in html.
| Haxe | mit | aduros/flambe,markknol/flambe,Disar/flambe,aduros/flambe,aduros/flambe,mikedotalmond/flambe,markknol/flambe,playedonline/flambe,weilitao/flambe,weilitao/flambe,mikedotalmond/flambe,playedonline/flambe,playedonline/flambe,playedonline/flambe,Disar/flambe,markknol/flambe,aduros/flambe,mikedotalmond/flambe,weilitao/flambe... |
5fe9d718964e25c398feb23648de30a2b44c1c2a | Haxe/Externs/Common/unreal/FHttpModule.hx | Haxe/Externs/Common/unreal/FHttpModule.hx | package unreal;
@:glueCppIncludes("HttpModule.h")
@:uextern @:noCopy @:noEquals extern class FHttpModule
{
static function Get() : PRef<FHttpModule>;
function CreateRequest() : TSharedRef<IHttpRequest>;
@:thisConst
function IsHttpEnabled() : Bool;
function GetHttpManager() : PRef<FHttpManager>;
}
| package unreal;
@:glueCppIncludes("HttpModule.h")
@:umodule("HTTP")
@:uextern @:noCopy @:noEquals extern class FHttpModule
{
static function Get() : PRef<FHttpModule>;
function CreateRequest() : TSharedRef<IHttpRequest>;
@:thisConst
function IsHttpEnabled() : Bool;
function GetHttpManager() : PRef<FHttpMa... | Update to latest perforce change | [CL-13504] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
e89114c1b4f7a439bfadd7cdd102da853f4d09b4 | Haxe/Externs/Common/unreal/FQuat_Extra.hx | Haxe/Externs/Common/unreal/FQuat_Extra.hx | package unreal;
extern class FQuat_Extra {
@:uname('.ctor') public static function create() : FQuat;
@:uname('new') public static function createNew() : POwnedPtr<FQuat>;
@:uname('.ctor') public static function createFromRotator(rotator:Const<PRef<FRotator>>) : FQuat;
@:uname('new') public static function crea... | package unreal;
extern class FQuat_Extra {
@:uname('.ctor') public static function create() : FQuat;
@:uname('new') public static function createNew() : POwnedPtr<FQuat>;
@:uname('.ctor') public static function createFromRotator(rotator:Const<PRef<FRotator>>) : FQuat;
@:uname('new') public static function crea... | Update to latest perforce change | [CL-21743] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
f604b3ea6af934a63aca7a4a9bb97d211e6450b7 | test/thx/TestMaps.hx | test/thx/TestMaps.hx | package thx;
import utest.Assert;
class TestMaps {
public function new() { }
public function testTuples() {
var map = [
"key1" => 1,
"key2" => 2
];
var tuples = Maps.tuples(map);
tuples.sort(function(a, b) return Strings.compare(a._0, b._0));
Assert.equals(2, tuples.length);
... | package thx;
import utest.Assert;
using thx.Arrays;
using thx.Maps;
class TestMaps {
public function new() { }
public function testTuples() {
var map = [
"key1" => 1,
"key2" => 2
];
var tuples = map.tuples();
tuples.sort(function(a, b) return Strings.compare(a._0, b._0));
Assert... | Fix test by sorting values array (because key order is not determinate) | Fix test by sorting values array (because key order is not determinate)
| Haxe | mit | andywhite37/thx.core,0b1kn00b/thx.core,mlms13/thx.core,fponticelli/thx.core |
2b34daf20f6e448ca420168d79b16569faeef62d | Haxe/Externs/Common/unreal/FVector2D_Extra.hx | Haxe/Externs/Common/unreal/FVector2D_Extra.hx | package unreal;
extern class FVector2D_Extra {
@:uname('.ctor') public static function createWithValues(x:Float32, y:Float32):FVector2D;
@:uname('new') public static function createNewWithValues(x:Float32, y:Float32):POwnedPtr<FVector2D>;
@:uname('.ctor') public static function copyCreate(InVector2D:Const<PRef<F... | package unreal;
extern class FVector2D_Extra {
@:uname('.ctor') public static function createWithValues(x:Float32, y:Float32):FVector2D;
@:uname('new') public static function createNewWithValues(x:Float32, y:Float32):POwnedPtr<FVector2D>;
@:uname('.ctor') public static function copyCreate(InVector2D:Const<PRef<F... | Update to latest perforce change | [CL-21948] Update to latest perforce change
| Haxe | mit | proletariatgames/unreal.hx,proletariatgames/unreal.hx,proletariatgames/unreal.hx |
5e3d607ab85ae13212741e12a87ea986f5a6f33b | src/tink/state/internal/Revision.hx | src/tink/state/internal/Revision.hx | package tink.state.internal;
abstract Revision(Float) {//TODO: use Int64 where it's faster and perhaps plain Int on python
static var counter = .0;
static public final ZERO = new Revision();
public inline function new()
this = counter++;
@:op(a < b) static function lt(a:Revision, b:Revision):Bool;
@:op(a... | package tink.state.internal;
abstract Revision(Float) {//TODO: use Int64 where it's faster and perhaps plain Int on python
static var counter:Float;
static public final ZERO = new Revision();
public function new() {
if (Math.isNaN(counter)) counter = .0;// seems to be a problem in initialization order
th... | Work around odd initialization order. | Work around odd initialization order.
| Haxe | unlicense | haxetink/tink_state,haxetink/tink_state |
ec8120c324609b1c67569713bb0c1c3f148131bf | js/npm/mongoose/Mongoose.hx | js/npm/mongoose/Mongoose.hx | package js.npm.mongoose;
import js.npm.mongoose.*;
import js.support.Callback;
extern class Mongoose
implements npm.Package.RequireNamespace<"mongoose","^4.0.0"> {
public function new() : Void;
public var connection (default,null) : Connection;
public var connections (default,null) : Array<Connection>;
public var... | package js.npm.mongoose;
import js.npm.mongoose.*;
import js.support.Callback;
extern class Mongoose
implements npm.Package.RequireNamespace<"mongoose","^4.0.0"> {
public function new() : Void;
public var connection (default,null) : Connection;
public var connections (default,null) : Array<Connection>;
public var... | Add method overload for connect() | Add method overload for connect() | Haxe | mit | MatthijsKamstra/haxe-js-kit,JbIPS/haxe-js-kit,clemos/haxe-js-kit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.