Category:Haskell’

haskell 02 [data type / list operators]

 - by Nat Weerawan

ต้อง blog แบบ embedded  ไม่รู้จะได้อ่านต่ออีกเมื่อไร … เริ่มรู้สึกไม่ค่อยเข้าใจ …

haskell 01

 - by Nat

ลองกดเข้าไปใน $ghci ดู แล้วก็พบว่า มันมี :info เพื่อ inspect ระดับ (presedence) ของ operator ได้

ghci> :info (+) class (Eq a, Show a) => Num a where (+) :: a -> a -> a … – Defined in GHC.Num infixl 6 + ghci> :info (*) class (Eq a, Show a) => Num a where … Read this article »