mirror of
https://github.com/quantum9Innovation/suntheme.git
synced 2024-11-28 11:03:50 -08:00
8 lines
185 B
Haskell
8 lines
185 B
Haskell
|
module Getters where
|
||
|
|
||
|
import Control.Exception (SomeException, try)
|
||
|
import Network.HTTP.Request (Response, get)
|
||
|
|
||
|
fetch :: String -> IO (Either SomeException Response)
|
||
|
fetch = try . get
|