Skip to main content
Glama

PureScript MCP Server

by avi892nash
Utils.purs957 B
module Utils where import Prelude import Effect (Effect) import Effect.Console (log) -- Intentionally import something from Main if Main were to export a utility -- For now, let's assume Main might export a helper or constant in a real scenario -- import Main (appVersion) -- Example, will be commented out if Main.appVersion doesn't exist helperFunction :: String -> Effect Unit helperFunction msg = do log $ "Helper says: " <> msg -- log $ "App version: " <> Main.appVersion -- if Main.appVersion was available anotherHelper :: Int -> String anotherHelper x = "Number: " <> show x -- This function will call a (hypothetical) function from Main -- For testing, let's make Main.main call this, and this call a (new) function in Main -- to create a small cycle or at least a deeper call chain. -- For now, let's keep it simple: Utils.anotherUtil calls helperFunction. anotherUtil :: Effect Unit anotherUtil = helperFunction "called from anotherUtil"

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/avi892nash/purescript-mcp-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server