You can Define a variable at Ghci Prompt by using ‘let’ keyword.
Prelude> let radius=10
Prelude> pi
3.141592653589793
Prelude>
Prelude> let area = pi * radius * radius
Prelude> area
314.1592653589793
This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here