(value: A)
| 1243 | * @since 4.0.0 |
| 1244 | */ |
| 1245 | export const succeed = <A>(value: A): Prompt<A> => { |
| 1246 | const op = Object.create(proto) |
| 1247 | op._tag = "Succeed" |
| 1248 | op.value = value |
| 1249 | return op |
| 1250 | } |
| 1251 | |
| 1252 | /** |
| 1253 | * Creates a text-entry prompt that echoes input and returns the submitted |