mirror of
https://github.com/facebook/Haxl.git
synced 2024-12-24 01:04:21 +03:00
lint
Summary: From PR 5 on github Test Plan: unit tests Reviewed By: akr@fb.com Subscribers: ldbrandy, jonp, smarlow, akr, bnitka, jcoens FB internal diff: D1384641
This commit is contained in:
parent
6ddd602873
commit
e6dbb92d4b
@ -89,7 +89,7 @@ class IfThenElse a b where
|
||||
ifThenElse :: a -> b -> b -> b
|
||||
|
||||
instance IfThenElse Bool a where
|
||||
ifThenElse b t e = case b of True -> t; False -> e
|
||||
ifThenElse b t e = if b then t else e
|
||||
|
||||
-- The equality constraint is necessary to convince the typechecker that
|
||||
-- this is valid:
|
||||
|
Loading…
Reference in New Issue
Block a user