get tail of list haskell

To get the tail of a list in Haskell, you can use the tail function. Here's an example:

myList = [1, 2, 3, 4, 5]
tailList = tail myList

In this example, myList is the original list, and tailList contains the tail, which is [2, 3, 4, 5]. The tail function returns all elements of the list except for the first one.

You can use the tail function with any list in Haskell to obtain its tail.