Skip to Content
Effective Haskell
book

Effective Haskell

by Rebecca Skinner
July 2023
Intermediate to advanced
670 pages
17h 13m
English
Pragmatic Bookshelf
Content preview from Effective Haskell

Looking Up Type Information

As you’re writing Haskell and working with types, there are two ghci commands that will be immensely helpful to you. The :type command, which we often abbreviate :t, will give you the type of an arbitrary Haskell expression, and the :info command, which is often abbreviated :i, will give you a bit more information, but not for an arbitrary expression. :info will only work for functions that you’ve loaded in from a module or source file. Let’s look at a few examples of using :type to get the type information from some expressions. You won’t understand many of the types here yet, but as you work your way through the chapter, you’ll get a chance to use all of the features individually, and by the end, you’ll be able ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Grokking Functional Programming

Grokking Functional Programming

Michal Plachta
Grokking Algorithms

Grokking Algorithms

Aditya Bhargava
The Rust Programming Language, 2nd Edition

The Rust Programming Language, 2nd Edition

Steve Klabnik, Carol Nichols

Publisher Resources

ISBN: 9798888650400Errata Page