Friday, 29 April 2016

Haskell: GHCi: Get all the bindings in GHCi prompt


Some times you want to see all the bindings you made at GHCi prompt, You can get all the bindings using the command ":show bindings".
Prelude> :show bindings
Prelude> 
Prelude> let name = "Hari Krishna"
Prelude> let age = 27
Prelude> let experience = "4Yrs 11 Months"
Prelude> 
Prelude> :show bindings
name :: [Char] = _
age :: Num a => a = _
experience :: [Char] = _



Previous                                                 Next                                                 Home

No comments:

Post a Comment