suntheme/app/Getters.hs
q9i 3a8fb784b8 refactor: complete modularization
introduce Workers, Cache modules and shuffle around some existing functions
2024-08-16 20:22:15 -07:00

7 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